Greasy Fork

Greasy Fork is available in English.

Bilibili-Gate

Bilibili 自定义首页

当前为 2026-03-16 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Bilibili-Gate
// @namespace    https://magicdawn.fun
// @version      0.34.14
// @author       magicdawn
// @description  Bilibili 自定义首页
// @license      MIT
// @icon         https://www.bilibili.com/favicon.ico
// @homepageURL  http://greasyfork.icu/zh-CN/scripts/443530-bilibili-gate
// @supportURL   https://github.com/magicdawn/Bilibili-Gate/issues
// @match        https://www.bilibili.com/
// @match        https://www.bilibili.com/?*
// @match        https://www.bilibili.com/index.html
// @match        https://www.bilibili.com/index.html?*
// @match        https://www.bilibili.com/video/*
// @match        https://www.bilibili.com/list/watchlater?*
// @match        https://www.bilibili.com/bangumi/play/*
// @match        https://space.bilibili.com/*
// @match        https://search.bilibili.com/*
// @require      https://registry.npmmirror.com/axios/0.30.2/files/dist/axios.min.js
// @require      https://registry.npmmirror.com/ua-parser-js/1.0.41/files/dist/ua-parser.min.js
// @require      https://registry.npmmirror.com/localforage/1.10.0/files/dist/localforage.min.js
// @require      https://registry.npmmirror.com/pinyin-match/1.2.10/files/dist/main.js
// @require      https://registry.npmmirror.com/spark-md5/3.0.2/files/spark-md5.min.js
// @tag          bilibili
// @connect      app.bilibili.com
// @grant        GM.deleteValue
// @grant        GM.getValue
// @grant        GM.listValues
// @grant        GM.openInTab
// @grant        GM.registerMenuCommand
// @grant        GM.setClipboard
// @grant        GM.setValue
// @grant        GM.xmlHttpRequest
// @grant        GM_addStyle
// @grant        GM_addValueChangeListener
// @grant        GM_download
// @grant        GM_info
// @grant        unsafeWindow
// @run-at       document-body
// ==/UserScript==

(async function (lQ, DM, sparkMd5, II, cQ) {
  'use strict';

  const d=new Set;const aQ = async e=>{d.has(e)||(d.add(e),(t=>{typeof GM_addStyle=="function"?GM_addStyle(t):(document.head||document.documentElement).appendChild(document.createElement("style")).append(t);})(e));};

  aQ(' ._cls--gate-video-grid--divider_h4766_1 .ant-divider-inner-text{display:inline-flex;align-items:center;min-height:30px}._cls--gate-video-grid--divider_h4766_1 .ant-divider-inner-text a{color:var(--ant-color-link)}._cls--gate-video-grid--divider_h4766_1 .ant-divider-inner-text a:hover{color:var(--ant-color-primary)}._cls--gate-video-card--context-menu--root_h4766_13 .ant-dropdown-menu{--ant-dropdown-padding-block: 3px}._cls--gate-video-card--context-menu--root_h4766_13 .ant-dropdown-menu:has(:nth-child(12)){--ant-dropdown-padding-block: 2px}._video-grid_ucv12_1{display:grid;position:relative;width:100%;grid-gap:20px 12px;--bilibili-gate--video-card--border-radius: 15px}._grid-template-columns-using-var-col_ucv12_9{--col: 4;grid-template-columns:repeat(var(--col),minmax(0,1fr))}._grid-template-columns-using-card-min-width_ucv12_14{--card-min-width: 330px;grid-template-columns:repeat(auto-fill,minmax(var(--card-min-width),1fr))}._video-grid-addon-center-empty_ucv12_19:before{content:"";grid-column:3/-3;grid-row:1/span 9999;grid-auto-flow:dense}._video-grid-bili-feed4_ucv12_26{grid-gap:20px 20px}@media(max-width:1399px){._video-grid-bili-feed4_ucv12_26{--col: 4}}@media(min-width:1400px){._video-grid-bili-feed4_ucv12_26{--col: 5}}._video-grid-bili-feed4_ucv12_26 .ant-divider-horizontal.ant-divider-with-text{margin-bottom:-15px;margin-top:-15px}._video-grid-bili-feed4_ucv12_26 .ant-divider-horizontal.ant-divider-with-text:first-of-type{margin-top:0}._video-grid-custom_ucv12_47{--row-gap: clamp(20px, 1.4vw, 40px);column-gap:clamp(15px,1.1cqw,20px);row-gap:0}._video-grid-custom_ucv12_47 .bili-video-card{margin-bottom:var(--row-gap)}._video-grid-custom_ucv12_47 .ant-divider-horizontal.ant-divider-with-text{margin-top:calc(10px - var(--row-gap));margin-bottom:5px}._video-grid-custom_ucv12_47 .ant-divider-horizontal.ant-divider-with-text:first-of-type{margin-top:0}._narrow-mode_ucv12_63{--col: 2 !important}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.icon-only-round-button{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;padding:0}.inline-icon-only-round-button{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;padding:0}.flex-center{display:flex;align-items:center;justify-content:center}.flex-v-center{display:flex;align-items:center}.inline-flex-center{display:inline-flex;align-items:center;justify-content:center}.\\[refresh\\:scroll\\]{refresh:scroll}.pointer-events-auto{pointer-events:auto}.\\[\\&_svg\\]\\:pointer-events-none svg,.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.absolute{position:absolute}.fixed{position:fixed}.position-relative,.relative{position:relative}.sticky{position:sticky}.static{position:static}.inset-0{inset:0}.inset-x-0{left:0;right:0}.bottom--6px{bottom:-6px}.bottom-0{bottom:0}.left--2px{left:-2px}.left--30px{left:-30px}.left-0{left:0}.left-2,.left-8px{left:8px}.left-50\\%{left:50%}.right--30px{right:-30px}.right-\\[calc\\(8px\\+28px\\+5px\\)\\]{right:41px}.right-0{right:0}.right-10px{right:10px}.right-8px{right:8px}.top-\\[-0\\.5px\\]{top:-.5px}.top-\\[-1px\\]{top:-1px}.top-0{top:0}.top-0\\.5px{top:.5px}.top-10px{top:10px}.top-4px{top:4px}.top-50\\%{top:50%}.top-8px{top:8px}.hover\\:left-0:hover{left:0}.hover\\:right-0:hover{right:0}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3}.isolate{isolation:isolate}.z-10000{z-index:10000}.z-10004{z-index:10004}.z-10005{z-index:10005}.z-1001{z-index:1001}.z-11000{z-index:11000}.z-11200{z-index:11200}.z-11300{z-index:11300}.z-2{z-index:2}.z-3{z-index:3}.z-4{z-index:4}.z-5{z-index:5}.z-6{z-index:6}.z-90000{z-index:90000}.z-9999{z-index:9999}.grid{display:grid}.col-span-full,.grid-col-span-full{grid-column:1/-1}.grid-cols-\\[250px_1fr\\]{grid-template-columns:250px 1fr}.grid-cols-\\[repeat\\(2\\,max-content\\)_1fr\\]{grid-template-columns:repeat(2,max-content) 1fr}.grid-cols-\\[repeat\\(2\\,max-content\\)\\]{grid-template-columns:repeat(2,max-content)}.grid-cols-\\[repeat\\(auto-fill\\,minmax\\(225px\\,1fr\\)\\)\\]{grid-template-columns:repeat(auto-fill,minmax(225px,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.m10{margin:40px}.m12{margin:48px}.m13{margin:52px}.m14{margin:56px}.m15{margin:60px}.m16{margin:64px}.m16\\.52{margin:66.08px}.m160{margin:640px}.m19{margin:76px}.m19\\.833{margin:79.332px}.m239\\.82{margin:959.28px}.m24{margin:96px}.m27\\.952{margin:111.808px}.m29\\.756{margin:119.024px}.m3{margin:12px}.m33{margin:132px}.m434\\.8{margin:1739.2px}.m5{margin:20px}.m9{margin:36px}.\\[\\&_\\.ant-radio-wrapper\\]\\:mx-0 .ant-radio-wrapper,.\\[\\&_\\[role\\=\\"separator\\"\\]\\]\\:mx-0 [role=separator],.mx-0{margin-left:0;margin-right:0}.\\[\\&_\\[role\\=\\"separator\\"\\]\\]\\:my-2px [role=separator],.my-2px{margin-top:2px;margin-bottom:2px}.\\[\\&\\.ant-divider-horizontal\\.ant-divider-with-text\\]\\:my-5px.ant-divider-horizontal.ant-divider-with-text,.my-5px{margin-top:5px;margin-bottom:5px}.\\[\\&\\.ant-empty-normal\\]\\:my-1.ant-empty-normal,.my-1{margin-top:4px;margin-bottom:4px}.mx-1,.mx-4px{margin-left:4px;margin-right:4px}.mx-2px{margin-left:2px;margin-right:2px}.mx-5px{margin-left:5px;margin-right:5px}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-7px{margin-top:7px;margin-bottom:7px}.\\[\\&_svg\\]\\:mr-5px svg,.mr-5px{margin-right:5px}.\\[\\&_svg\\]\\:mt--1px svg,.mt--1px{margin-top:-1px}.mb-0{margin-bottom:0}.mb-10px{margin-bottom:10px}.mb-20px{margin-bottom:20px}.mb-2px{margin-bottom:2px}.mb-40px{margin-bottom:40px}.mb-5px{margin-bottom:5px}.mb-8px{margin-bottom:8px}.ml-0{margin-left:0}.ml-1,.ml-4px{margin-left:4px}.ml-1\\.5,.ml-6px{margin-left:6px}.ml-10px{margin-left:10px}.ml-12px,.ml-3{margin-left:12px}.ml-15px{margin-left:15px}.ml-1px{margin-left:1px}.ml-20px,.ml-xl{margin-left:20px}.ml-25px{margin-left:25px}.ml-2px{margin-left:2px}.ml-30px{margin-left:30px}.ml-4{margin-left:16px}.ml-5px{margin-left:5px}.ml-8px{margin-left:8px}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-0\\!{margin-right:0!important}.mr-1,.mr-4px{margin-right:4px}.mr-10px{margin-right:10px}.mr-24px{margin-right:24px}.mr-2px{margin-right:2px}.mr-auto{margin-right:auto}.ms{margin-inline-start:16px}.mt--2px{margin-top:-2px}.mt-0{margin-top:0}.mt-0\\.5em{margin-top:.5em}.mt-1,.mt-4px{margin-top:4px}.mt-10px{margin-top:10px}.mt-15px{margin-top:15px}.mt-2,.mt-8px{margin-top:8px}.mt-20px{margin-top:20px}.mt-2px{margin-top:2px}.mt-3px{margin-top:3px}.mt-6px{margin-top:6px}.first\\:ml-0:first-child{margin-left:0}.first\\:mt-0:first-child,.first\\:mt-0px:first-child{margin-top:0}.box-content{box-sizing:content-box}.inline{display:inline}.block{display:block}.inline-block{display:inline-block}.contents{display:contents}.\\[\\&\\>\\.ant-checkbox-label\\]\\:hidden>.ant-checkbox-label,.hidden{display:none}.aspect-1{aspect-ratio:1}.aspect-16\\/9{aspect-ratio:16/9}.aspect-ratio-10\\/16{aspect-ratio:10/16}.\\[\\&_svg\\]\\:size-16px svg,.size-16px{width:16px;height:16px}.ant-spin .ant-spin-dot.\\[\\.ant-spin_\\.ant-spin-dot\\&\\]\\:size-25px,.size-25px{width:25px;height:25px}.size-1\\.1em{width:1.1em;height:1.1em}.size-1\\.3em{width:1.3em;height:1.3em}.size-12px{width:12px;height:12px}.size-13px{width:13px;height:13px}.size-14px{width:14px;height:14px}.size-15px{width:15px;height:15px}.size-17px{width:17px;height:17px}.size-18px{width:18px;height:18px}.size-1em{width:1em;height:1em}.size-2\\.5{width:10px;height:10px}.size-2\\.5em{width:2.5em;height:2.5em}.size-20px{width:20px;height:20px}.size-24px{width:24px;height:24px}.size-26px{width:26px;height:26px}.size-28px{width:28px;height:28px}.size-30px{width:30px;height:30px}.size-32px{width:32px;height:32px}.size-40px{width:40px;height:40px}.size-full{width:100%;height:100%}.h-\\[calc\\(100vh-30px\\)\\]{height:calc(100vh - 30px)}.h-0{height:0}.h-100\\%,.h-full{height:100%}.h-100vh{height:100vh}.h-14px{height:14px}.h-16px{height:16px}.h-19px{height:19px}.h-22px{height:22px}.h-24px{height:24px}.h-2px{height:2px}.h-34px{height:34px}.h-35px{height:35px}.h-3px{height:3px}.h-auto{height:auto}.h-fit{height:fit-content}.max-h-\\[calc\\(90vh-50px\\)\\]{max-height:calc(90vh - 50px)}.max-h-\\[max\\(362px\\,calc\\(90vh-50px-56px-15px\\)\\)\\]{max-height:max(362px,calc(90vh - 121px))}.max-h-130px{max-height:130px}.max-h-250px{max-height:250px}.max-h-50vh{max-height:50vh}.max-h-full{max-height:100%}.max-h-unset{max-height:unset}.max-w-\\[calc\\(100\\%-6px\\)\\]{max-width:calc(100% - 6px)}.max-w-130px{max-width:130px}.max-w-250px{max-width:250px}.max-w-288px{max-width:288px}.max-w-300px{max-width:300px}.max-w-320px{max-width:320px}.max-w-350px{max-width:350px}.max-w-450px{max-width:450px}.min-h-100px{min-height:100px}.min-h-100vh{min-height:100vh}.min-h-25px{min-height:25px}.min-h-362px{min-height:362px}.min-h-40px{min-height:40px}.min-w-130px{min-width:130px}.min-w-180px{min-width:180px}.min-w-200px{min-width:200px}.min-w-240px{min-width:240px}.min-w-24px{min-width:24px}.min-w-300px{min-width:300px}.min-w-32px{min-width:32px}.min-w-60px{min-width:60px}.min-w-95px{min-width:95px}.w-\\[calc\\(100vw-30px\\)\\]{width:calc(100vw - 30px)}.w-\\[max-content\\],.w-max{width:max-content}.w-0{width:0}.w-100\\%,.w-full{width:100%}.w-114px{width:114px}.w-130px{width:130px}.w-150px{width:150px}.w-160px{width:160px}.w-16px{width:16px}.w-215px{width:215px}.w-34px{width:34px}.w-500px{width:500px}.w-50px{width:50px}.w-55px{width:55px}.w-720px{width:720px}.w-740px{width:740px}.w-75px{width:75px}.flex{display:flex}.\\[\\&_\\.ant-checkbox-label\\]\\:inline-flex .ant-checkbox-label,.\\[\\&_\\.ant-radio-label\\]\\:inline-flex .ant-radio-label,.\\[\\&_\\.ant-radio-wrapper\\]\\:inline-flex .ant-radio-wrapper,.inline-flex{display:inline-flex}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0{flex-shrink:0}.flex-shrink-1{flex-shrink:1}.flex-grow-1{flex-grow:1}.flex-basis-100\\%{flex-basis:100%}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.translate-x--50\\%{--un-translate-x:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-y--50\\%{--un-translate-y:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-y-100\\%{--un-translate-y:100%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.rotate-0{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:0deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.rotate-180{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:180deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.hover\\:rotate-90:hover{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:90deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.rotate-z-0{--un-rotate:0;--un-rotate-z:0deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.rotate-z-180deg{--un-rotate:0;--un-rotate-z:180deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.hover\\:scale-105\\%:hover{--un-scale-x:1.05;--un-scale-y:1.05;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-\\[edit\\]{cursor:edit}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.\\[\\&\\:disabled\\]\\:cursor-wait:disabled{cursor:wait}.cursor-text{cursor:text}.cursor-move{cursor:move}.cursor-grab{cursor:grab}.\\[\\&_\\.ant-checkbox-label\\]\\:select-none .ant-checkbox-label,.\\[\\&_svg\\]\\:select-none svg,.select-none{-webkit-user-select:none;user-select:none}.resize{resize:both}.list-circle{list-style-type:circle}.list-disc{list-style-type:disc}.content-start{align-content:flex-start}.items-start{align-items:flex-start}.\\[\\&_\\.ant-checkbox-label\\]\\:items-center .ant-checkbox-label,.\\[\\&_\\.ant-radio-label\\]\\:items-center .ant-radio-label,.\\[\\&_\\.ant-radio-wrapper\\]\\:items-center .ant-radio-wrapper,.items-center{align-items:center}.self-start{align-self:flex-start}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-left{justify-content:left}.justify-right{justify-content:right}.gap-0{gap:0}.gap-10px{gap:10px}.gap-15px{gap:15px}.gap-1px{gap:1px}.gap-4px{gap:4px}.gap-x-1,.gap-x-4px{column-gap:4px}.gap-x-10px{column-gap:10px}.gap-x-12px{column-gap:12px}.gap-x-15px{column-gap:15px}.gap-x-2,.gap-x-8px{column-gap:8px}.gap-x-20px{column-gap:20px}.gap-x-25px{column-gap:25px}.gap-x-2px{column-gap:2px}.gap-x-40px{column-gap:40px}.gap-x-50px{column-gap:50px}.gap-x-5px{column-gap:5px}.gap-x-6px{column-gap:6px}.gap-y-0{row-gap:0}.gap-y-0\\.5em{row-gap:.5em}.gap-y-1,.gap-y-4px{row-gap:4px}.gap-y-10px{row-gap:10px}.gap-y-15px{row-gap:15px}.gap-y-2,.gap-y-8px{row-gap:8px}.gap-y-2px{row-gap:2px}.gap-y-3px{row-gap:3px}.gap-y-5px{row-gap:5px}.gap-y-6px{row-gap:6px}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-normal{overflow-wrap:normal;word-break:normal}.break-all{word-break:break-all}.b-1px,.border{border-width:1px}.b-2px{border-width:2px}.b-5px{border-width:5px}.b-b-1px{border-bottom-width:1px}.b-t-1px{border-top-width:1px}.border-b-0{border-bottom-width:0px}.b-\\#444{--un-border-opacity:1;border-color:rgb(68 68 68 / var(--un-border-opacity))}.b-gate-bg-lv-2{border-color:var(--bilibili-gate--bg--lv2)}.b-gate-border,.bilibili-gate-using-dark .dark\\:b-gate-border{border-color:var(--bilibili-gate--border-color)}.b-gate-primary{border-color:var(--bilibili-gate--primary-color)}.b-transparent{border-color:transparent}.b-white\\/20\\%{border-color:#fff3}.b-white\\/33\\%{border-color:#ffffff54}.border-white\\/40{border-color:#fff6}.bilibili-gate-using-light .light\\:hover\\:b-gate-primary:hover,.hover\\:b-gate-primary:hover{border-color:var(--bilibili-gate--primary-color)}.b-b-gate-bg-lv1{border-bottom-color:var(--bilibili-gate--bg--lv1)}.b-b-transparent{border-bottom-color:transparent}.b-t-\\$bilibili-gate--separator-color{border-top-color:var(--bilibili-gate--separator-color)}.rounded,.rounded-4px{border-radius:4px}.rounded-10px{border-radius:10px}.rounded-15px{border-radius:15px}.rounded-18px{border-radius:18px}.rounded-20px{border-radius:20px}.rounded-2px{border-radius:2px}.rounded-5px{border-radius:5px}.rounded-6px,.rounded-md{border-radius:6px}.rounded-8px,.rounded-lg{border-radius:8px}.rounded-9px{border-radius:9px}.rounded-full{border-radius:9999px}.rounded-b-none{border-bottom-left-radius:0;border-bottom-right-radius:0}.rounded-t-6px{border-top-left-radius:6px;border-top-right-radius:6px}.rounded-t-gate-video-card{border-top-left-radius:var(--bilibili-gate--video-card--border-radius);border-top-right-radius:var(--bilibili-gate--video-card--border-radius)}.b-solid{border-style:solid}.border-none{border-style:none}.b-b-solid{border-bottom-style:solid}.b-t-solid{border-top-style:solid}.\\[\\&\\:has\\(svg\\.peeking\\)\\]\\:bg-transparent:has(svg.peeking),.bg-transparent{background-color:transparent}.bg-\\[rgb\\(33_33_33_\\/_0\\.7\\)\\]{--un-bg-opacity:.7;background-color:rgb(33 33 33 / var(--un-bg-opacity))}.bg-\\$brand_blue{background-color:var(--brand_blue)}.bg-\\$brand_pink{background-color:var(--brand_pink)}.bg-black\\/10{background-color:#0000001a}.bg-black\\/50{background-color:#00000080}.bg-black\\/65{background-color:#000000a6}.bg-black\\/90\\%{background-color:#000000e6}.bg-gate-bg{background-color:var(--bilibili-gate--bg)}.bg-gate-bg-lv1{background-color:var(--bilibili-gate--bg--lv1)}.bg-gate-primary{background-color:var(--bilibili-gate--primary-color)}.bg-gate-primary-lv-3{background-color:var(--bilibili-gate--primary-color--lv3)}.bg-gate-primary\\!{background-color:var(--bilibili-gate--primary-color)!important}.bg-white\\/14\\%{background-color:#ffffff24}.bg-white\\/50\\%{background-color:#ffffff80}.hover\\:bg-gate-bg-lv-3:hover{background-color:var(--bilibili-gate--bg--lv3)}.hover\\:bg-gate-bg-lv1:hover{background-color:var(--bilibili-gate--bg--lv1)}.hover\\:bg-gate-primary-lv1\\!:hover{background-color:var(--bilibili-gate--primary-color--lv1)!important}.hover\\:bg-gate-primary:hover{background-color:var(--bilibili-gate--primary-color)}.hover\\:bg-white\\/40\\%:hover{background-color:#fff6}.\\[\\&_g\\]\\:fill-inherit g{fill:inherit}.\\[\\&_path\\]\\:fill-gate-primary path,.fill-gate-primary{fill:var(--bilibili-gate--primary-color)}.fill-none{fill:none}.\\[\\&_\\.circle\\]\\:stroke-current .circle{stroke:currentColor}.object-cover{object-fit:cover}.object-contain{object-fit:contain}.p-10px{padding:10px}.p-15px{padding:15px}.p-1px{padding:1px}.p-20px{padding:20px}.p-2px{padding:2px}.p-4px{padding:4px}.p-8px{padding:8px}.\\[\\&_\\.ant-radio-button-wrapper\\]\\:px-10px .ant-radio-button-wrapper{padding-left:10px;padding-right:10px}.\\[\\&_\\.ant-radio-button-wrapper\\]\\:px-7px .ant-radio-button-wrapper{padding-left:7px;padding-right:7px}.\\[\\&\\.ant-empty-normal\\]\\:py-5px.ant-empty-normal,.py-5px{padding-top:5px;padding-bottom:5px}.p-x-2,.px-8px{padding-left:8px;padding-right:8px}.p-y-1,.py-4px{padding-top:4px;padding-bottom:4px}.px,.px-4{padding-left:16px;padding-right:16px}.px-0{padding-left:0;padding-right:0}.px-12px,.px-3{padding-left:12px;padding-right:12px}.px-15px{padding-left:15px;padding-right:15px}.px-24px{padding-left:24px;padding-right:24px}.px-2px{padding-left:2px;padding-right:2px}.px-4px{padding-left:4px;padding-right:4px}.px-5px{padding-left:5px;padding-right:5px}.px-6px{padding-left:6px;padding-right:6px}.py-0{padding-top:0;padding-bottom:0}.py-10px{padding-top:10px;padding-bottom:10px}.py-12px{padding-top:12px;padding-bottom:12px}.py-2,.py-8px{padding-top:8px;padding-bottom:8px}.py-2px{padding-top:2px;padding-bottom:2px}.py-30px{padding-top:30px;padding-bottom:30px}.py-3px{padding-top:3px;padding-bottom:3px}.py-6px{padding-top:6px;padding-bottom:6px}.\\!\\[\\&_\\.ant-radio-label\\]\\:pl-4px .ant-radio-label{padding-left:4px!important}.pb-15px{padding-bottom:15px}.pb-2px{padding-bottom:2px}.pb1257{padding-bottom:5028px}.pl-10px{padding-left:10px}.pl-16px{padding-left:16px}.pl-20px{padding-left:20px}.pl-2px{padding-left:2px}.pl-4px{padding-left:4px}.pl-6px{padding-left:6px}.pr-0{padding-right:0}.pr-10px{padding-right:10px}.pr-12px{padding-right:12px}.pr-15px{padding-right:15px}.pr-18px{padding-right:18px}.pr-6px{padding-right:6px}.ps{padding-inline-start:16px}.pt-0{padding-top:0}.pt-15px{padding-top:15px}.pt-5px{padding-top:5px}.text-center{text-align:center}.align-top{vertical-align:top}.\\[\\&\\.ant-divider-horizontal\\.ant-divider-with-text\\]\\:text-14px.ant-divider-horizontal.ant-divider-with-text,.text-14px,.text-size-14px{font-size:14px}.text-\\[1\\.5rem\\]{font-size:24px}.text-1\\.25em{font-size:1.25em}.text-1\\.2em{font-size:1.2em}.text-1\\.4em{font-size:1.4em}.text-1\\.5em,.text-size-1\\.5em{font-size:1.5em}.text-12px,.text-size-12px{font-size:12px}.text-13px,.text-size-13px{font-size:13px}.text-15px{font-size:15px}.text-15px\\!{font-size:15px!important}.text-18px{font-size:18px}.text-1em{font-size:1em}.text-20px,.text-size-20px{font-size:20px}.text-2em{font-size:2em}.text-size-0{font-size:0}.text-size-1\\.3em{font-size:1.3em}.text-size-120\\%{font-size:120%}.text-size-16px{font-size:16px}.color-gate-primary,.text-gate-primary{color:var(--bilibili-gate--primary-color)}.color-gate-text,.text-gate-text{color:var(--bilibili-gate--text-color)}.text-red{--un-text-opacity:1;color:rgb(248 113 113 / var(--un-text-opacity))}.color-white,.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-yellow-400{--un-text-opacity:1;color:rgb(250 204 21 / var(--un-text-opacity))}.hover\\:color-gate-primary:hover{color:var(--bilibili-gate--primary-color)}.color-inherit{color:inherit}.font-600{font-weight:600}.font-700{font-weight:700}.\\[\\&_\\.ant-btn-icon\\]\\:line-height-0 .ant-btn-icon,.line-height-\\[0\\]{line-height:0}.line-height-\\[1\\.2\\]{line-height:1.2}.line-height-\\[1\\]{line-height:1}.line-height-\\[unset\\],.line-height-unset{line-height:unset}.line-height-1\\.5{line-height:6px}.line-height-13px{line-height:13px}.line-height-17px{line-height:17px}.line-height-18px{line-height:18px}.line-height-normal{line-height:1.5}.line-height-snug{line-height:1.375}.line-height-tight{line-height:1.25}.tracking-1{letter-spacing:4px}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.italic{font-style:italic}.tab{-moz-tab-size:4;-o-tab-size:4;tab-size:4}.\\[\\&\\:has\\(svg\\.peeking\\)\\]\\:opacity-10:has(svg.peeking){opacity:.1}.shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.\\[\\&\\.ant-btn\\:not\\(\\:disabled\\)\\:focus-visible\\]\\:outline-0.ant-btn:not(:disabled):focus-visible{outline-width:0px}.outline-none\\!{outline:2px solid transparent!important;outline-offset:2px!important}.ring-1px{--un-ring-width:1px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.ring-gate-border{--un-ring-color:var(--bilibili-gate--border-color) }.ring-gate-primary{--un-ring-color:var(--bilibili-gate--primary-color) }.backdrop-blur-10px{--un-backdrop-blur:blur(10px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-200{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.transition-300{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-duration-150{transition-duration:.15s}.transition-duration-300{transition-duration:.3s}.ease,.ease-in-out,.transition-ease,.transition-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.transition-property-\\[border-color\\]{transition-property:border-color}.transition-property-all{transition-property:all}.transition-property-right\\,left{transition-property:right,left}.transition-property-transform{transition-property:transform}.\\@container,.\\@container-inline-size{container-type:inline-size}@media(min-width:1280px){.xl\\:gap-x-8px{column-gap:8px}}.bilibili-gate-root .bili-video-card__skeleton--cover,.bilibili-gate-root .bili-video-card__skeleton--text,.bilibili-gate-root .bili-video-card__skeleton--light,.bilibili-gate-root .bili-video-card__skeleton--avatar{background:linear-gradient(135deg,#0000000f 25%,#00000026 37%,#0000000f 63%)}.bilibili-gate-root .bili-video-card__skeleton--text.tiny{margin-top:4px;width:15%}html.bilibili-gate-using-dark .bilibili-gate-root .bili-video-card__skeleton--cover,html.bilibili-gate-using-dark .bilibili-gate-root .bili-video-card__skeleton--text,html.bilibili-gate-using-dark .bilibili-gate-root .bili-video-card__skeleton--light,html.bilibili-gate-using-dark .bilibili-gate-root .bili-video-card__skeleton--avatar{background-color:#444}._skeleton-active_wlycr_12 .bili-video-card__skeleton--cover,._skeleton-active_wlycr_12 .bili-video-card__skeleton--text,._skeleton-active_wlycr_12 .bili-video-card__skeleton--light,._skeleton-active_wlycr_12 .bili-video-card__skeleton--avatar{background-size:400% 100%;animation-name:_ant-skeleton-loading_wlycr_1;animation-duration:2s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_wlycr_1{0%{background-position:100% 50%}80%,to{background-position:0 50%}} ');

  function uQ(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:true,get:()=>r[o]});}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const dQ='@charset "UTF-8";:root{--bilibili-gate--font: "Alibaba PuHuiTi 3.0", "PingFang SC", "HarmonyOS_Regular", "Helvetica Neue", "Microsoft YaHei", sans-serif}:root{--bilibili-gate--primary-color--lv1: oklch(from var(--bilibili-gate--primary-color) calc(l - .04) c h/alpha);--bilibili-gate--primary-color--lv2: oklch(from var(--bilibili-gate--primary-color) calc(l - .08) c h/alpha);--bilibili-gate--primary-color--lv3: oklch(from var(--bilibili-gate--primary-color) calc(l - .12) c h/alpha);--bilibili-gate--border-color: oklch(from var(--bilibili-gate--bg) calc(l - .05) c h/alpha);--bilibili-gate--bg--lv1: oklch(from var(--bilibili-gate--bg) calc(l - .04) c h/alpha);--bilibili-gate--bg--lv2: oklch(from var(--bilibili-gate--bg) calc(l - .08) c h/alpha);--bilibili-gate--bg--lv3: oklch(from var(--bilibili-gate--bg) calc(l - .12) c h/alpha)}:root.bilibili-gate-using-dark{--bilibili-gate--border-color: oklch(from var(--bilibili-gate--bg) calc(l + .07) c h/alpha);--bilibili-gate--bg--lv1: oklch(from var(--bilibili-gate--bg) calc(l + .03) c h/alpha);--bilibili-gate--bg--lv2: oklch(from var(--bilibili-gate--bg) calc(l + .08) c h/alpha);--bilibili-gate--bg--lv3: oklch(from var(--bilibili-gate--bg) calc(l + .12) c h/alpha)}.bilibili-gate-root{font-family:var(--custom-font-family--options--font-family, var(--bilibili-gate--font))!important;font-size:14px;--back-top-right: 24px}.bilibili-gate-root dd,.bilibili-gate-root dl,.bilibili-gate-root ol,.bilibili-gate-root ul{font-size:inherit}.bilibili-gate-root li{list-style:unset}.bilibili-gate-root .bili-video-card .bili-video-card__info--tit:hover,.bilibili-gate-root .bili-video-card a:not(.disable-hover):hover{color:var(--bilibili-gate--primary-color)!important}.bilibili-gate-root .ant-btn{font-size:13px}.bilibili-gate-root img:-moz-loading{visibility:hidden}@media(max-width:1440px){.bilibili-gate-root{--back-top-right: 16px}}body .ant-tooltip a{color:#1677ff;transition:color .3s}body .ant-tooltip a:visited{color:#1677ff}body .ant-tooltip a:hover{color:#69b1ff}body .ant-tooltip a:active{color:#0958d9}body button:where(.ant-switch):focus,body button:where(.ant-switch):active{background-color:#00000040;outline:unset}body .ant-btn.ant-btn-variant-solid:focus,body .ant-btn.ant-btn-variant-solid:active{color:var(--ant-button-primary-color);background:var(--ant-color-primary)}';aQ(dQ);const fQ="_cls--gate-video-grid--divider_h4766_1",mQ="_cls--gate-video-card--context-menu--root_h4766_13",_M="_video-grid_ucv12_1",n9="_grid-template-columns-using-var-col_ucv12_9",r9="_grid-template-columns-using-card-min-width_ucv12_14",o9="_video-grid-addon-center-empty_ucv12_19",i9="_video-grid-bili-feed4_ucv12_26",s9="_video-grid-custom_ucv12_47",a9="_narrow-mode_ucv12_63",hQ={videoGrid:_M,gridTemplateColumnsUsingVarCol:n9,gridTemplateColumnsUsingCardMinWidth:r9,videoGridAddonCenterEmpty:o9,videoGridBiliFeed4:i9,videoGridCustom:s9,narrowMode:a9},OI=Object.freeze(Object.defineProperty({__proto__:null,default:hQ,gridTemplateColumnsUsingCardMinWidth:r9,gridTemplateColumnsUsingVarCol:n9,narrowMode:a9,videoGrid:_M,videoGridAddonCenterEmpty:o9,videoGridBiliFeed4:i9,videoGridCustom:s9},Symbol.toStringTag,{value:"Module"}));function pQ(e,t){const n={};for(let r=0;r<e.length;r++){const o=e[r],i=t(o,r,e);n[i]=(n[i]??0)+1;}return n}function Zl(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function gQ(e,t){const n={};for(let r=0;r<e.length;r++){const o=e[r],i=t(o,r,e);Object.hasOwn(n,i)||(n[i]=[]),n[i].push(o);}return n}function vQ(e,t,n){return e<t?n==="asc"?-1:1:e>t?n==="asc"?1:-1:0}function Ia(e,t,n){return e.slice().sort((r,o)=>{const i=n.length;for(let s=0;s<t.length;s++){const l=i>s?n[s]:n[i-1],u=t[s],d=typeof u=="function",m=d?u(r):r[u],p=d?u(o):o[u],g=vQ(m,p,l);if(g!==0)return g}return 0})}function bQ(e,t){if(t==null&&(t=e,e=0),e>=t)throw new Error("Invalid input: The maximum value must be greater than the minimum value.");return Math.random()*(t-e)+e}function yQ(e,t){return Math.floor(bQ(e,t))}function wi(e){const t=e.slice();for(let n=t.length-1;n>=1;n--){const r=Math.floor(Math.random()*(n+1));[t[n],t[r]]=[t[r],t[n]];}return t}function l9(e){return typeof e=="symbol"||e instanceof Symbol}function SQ(e){return l9(e)?NaN:Number(e)}function CQ(e){return e?(e=SQ(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function xQ(e){const t=CQ(e),n=t%1;return n?t-n:t}function rg(e){return [...new Set(e)]}function mc(e,t){const n=new Map;for(let r=0;r<e.length;r++){const o=e[r],i=t(o,r,e);n.has(i)||n.set(i,o);}return Array.from(n.values())}let wQ=class extends Error{constructor(t="The operation was aborted"){super(t),this.name="AbortError";}};function EQ(e,t,{signal:n,edges:r}={}){let o,i=null;const s=r!=null&&r.includes("leading"),l=r==null||r.includes("trailing"),u=()=>{i!==null&&(e.apply(o,i),o=void 0,i=null);},d=()=>{l&&u(),b();};let m=null;const p=()=>{m!=null&&clearTimeout(m),m=setTimeout(()=>{m=null,d();},t);},g=()=>{m!==null&&(clearTimeout(m),m=null);},b=()=>{g(),o=void 0,i=null;},y=()=>{u();},S=function(...C){if(n?.aborted)return;o=this,i=C;const w=m==null;p(),s&&w&&u();};return S.schedule=p,S.cancel=b,S.flush=y,n?.addEventListener("abort",b,{once:true}),S}function c9(e){return e}function $Q(e,t={}){const{cache:n=new Map,getCacheKey:r}=t,o=function(i){const s=r?r(i):i;if(n.has(s))return n.get(s);const l=e.call(this,i);return n.set(s,l),l};return o.cache=n,o}function u9(){}function jf(e){let t=false,n;return function(...r){return t||(t=true,n=e(...r)),n}}function gn(e,{signal:t}={}){return new Promise((n,r)=>{const o=()=>{r(new wQ);},i=()=>{clearTimeout(s),o();};if(t?.aborted)return o();const s=setTimeout(()=>{t?.removeEventListener("abort",i),n();},e);t?.addEventListener("abort",i,{once:true});})}function qa(e,t,{signal:n,edges:r=["leading","trailing"]}={}){let o=null;const i=EQ(function(...l){o=Date.now(),e.apply(this,l);},t,{signal:n,edges:r}),s=function(...l){if(o==null&&(o=Date.now()),Date.now()-o>=t){o=Date.now(),e.apply(this,l),i.cancel(),i.schedule();return}i.apply(this,l);};return s.cancel=i.cancel,s.flush=i.flush,s}function d9(e,t,n=1){if(t==null&&(t=e,e=0),!Number.isInteger(n)||n===0)throw new Error("The step value must be a non-zero integer.");const r=Math.max(Math.ceil((t-e)/n),0),o=new Array(r);for(let i=0;i<r;i++)o[i]=e+i*n;return o}function f9(e){return e==null||typeof e!="object"&&typeof e!="function"}function m9(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Px(e){if(f9(e))return e;if(Array.isArray(e)||m9(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);const t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);const n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){const r=new n(e);return r.lastIndex=e.lastIndex,r}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let r;return e instanceof AggregateError?r=new n(e.errors,e.message,{cause:e.cause}):r=new n(e.message,{cause:e.cause}),r.stack=e.stack,Object.assign(r,e),r}if(typeof File<"u"&&e instanceof File)return new n([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){const r=Object.create(t);return Object.assign(r,e)}return e}function ZE(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function JE(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const h9="[object RegExp]",p9="[object String]",g9="[object Number]",v9="[object Boolean]",e$="[object Arguments]",b9="[object Symbol]",y9="[object Date]",S9="[object Map]",C9="[object Set]",x9="[object Array]",MQ="[object Function]",w9="[object ArrayBuffer]",Qb="[object Object]",TQ="[object Error]",E9="[object DataView]",$9="[object Uint8Array]",M9="[object Uint8ClampedArray]",T9="[object Uint16Array]",A9="[object Uint32Array]",AQ="[object BigUint64Array]",R9="[object Int8Array]",N9="[object Int16Array]",P9="[object Int32Array]",RQ="[object BigInt64Array]",I9="[object Float32Array]",O9="[object Float64Array]";function Zd(e,t,n,r=new Map,o=void 0){const i=o?.(e,t,n,r);if(i!==void 0)return i;if(f9(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){const s=new Array(e.length);r.set(e,s);for(let l=0;l<e.length;l++)s[l]=Zd(e[l],l,n,r,o);return Object.hasOwn(e,"index")&&(s.index=e.index),Object.hasOwn(e,"input")&&(s.input=e.input),s}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const s=new RegExp(e.source,e.flags);return s.lastIndex=e.lastIndex,s}if(e instanceof Map){const s=new Map;r.set(e,s);for(const[l,u]of e)s.set(l,Zd(u,l,n,r,o));return s}if(e instanceof Set){const s=new Set;r.set(e,s);for(const l of e)s.add(Zd(l,void 0,n,r,o));return s}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(m9(e)){const s=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,s);for(let l=0;l<e.length;l++)s[l]=Zd(e[l],l,n,r,o);return s}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const s=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,s),Nl(s,e,n,r,o),s}if(typeof File<"u"&&e instanceof File){const s=new File([e],e.name,{type:e.type});return r.set(e,s),Nl(s,e,n,r,o),s}if(typeof Blob<"u"&&e instanceof Blob){const s=new Blob([e],{type:e.type});return r.set(e,s),Nl(s,e,n,r,o),s}if(e instanceof Error){const s=structuredClone(e);return r.set(e,s),s.message=e.message,s.name=e.name,s.stack=e.stack,s.cause=e.cause,s.constructor=e.constructor,Nl(s,e,n,r,o),s}if(e instanceof Boolean){const s=new Boolean(e.valueOf());return r.set(e,s),Nl(s,e,n,r,o),s}if(e instanceof Number){const s=new Number(e.valueOf());return r.set(e,s),Nl(s,e,n,r,o),s}if(e instanceof String){const s=new String(e.valueOf());return r.set(e,s),Nl(s,e,n,r,o),s}if(typeof e=="object"&&NQ(e)){const s=Object.create(Object.getPrototypeOf(e));return r.set(e,s),Nl(s,e,n,r,o),s}return e}function Nl(e,t,n=e,r,o){const i=[...Object.keys(t),...ZE(t)];for(let s=0;s<i.length;s++){const l=i[s],u=Object.getOwnPropertyDescriptor(e,l);(u==null||u.writable)&&(e[l]=Zd(t[l],l,n,r,o));}}function NQ(e){switch(JE(e)){case e$:case x9:case w9:case E9:case v9:case y9:case I9:case O9:case R9:case N9:case P9:case S9:case g9:case Qb:case h9:case C9:case p9:case b9:case $9:case M9:case T9:case A9:return  true;default:return  false}}function wf(e){return Zd(e,void 0,e,new Map,void 0)}function Ef(e){if(!e||typeof e!="object")return  false;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":false}function fp(e){return e==="__proto__"}function Na(e,t,n){const r=Object.keys(t);for(let o=0;o<r.length;o++){const i=r[o];if(fp(i))continue;const s=t[i],l=e[i],u=n(l,s,i,e,t);u!==void 0?e[i]=u:Array.isArray(s)?Array.isArray(l)?e[i]=Na(l,s,n):e[i]=Na([],s,n):Ef(s)?Ef(l)?e[i]=Na(l,s,n):e[i]=Na({},s,n):(l===void 0||s!==void 0)&&(e[i]=s);}return e}function D9(e,t){const n={...e};for(let r=0;r<t.length;r++){const o=t[r];delete n[o];}return n}function Nu(e,t){const n={};for(let r=0;r<t.length;r++){const o=t[r];Object.hasOwn(e,o)&&(n[o]=e[o]);}return n}const PQ=new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+","gu");function IQ(e){return Array.from(e.match(PQ)??[])}function OQ(e,t){return Na(Px(e),t,function n(r,o){if(Array.isArray(o))return Array.isArray(r)?Na(Px(r),o,n):Na([],o,n);if(Ef(o))return Ef(r)?Na(Px(r),o,n):Na({},o,n)})}function _9(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function DQ(e,t,n){return Nh(e,t,void 0,void 0,void 0,void 0,n)}function Nh(e,t,n,r,o,i,s){const l=s(e,t,n,r,o,i);if(l!==void 0)return l;if(typeof e==typeof t)switch(typeof e){case "bigint":case "string":case "boolean":case "symbol":case "undefined":return e===t;case "number":return e===t||Object.is(e,t);case "function":return e===t;case "object":return Vh(e,t,i,s)}return Vh(e,t,i,s)}function Vh(e,t,n,r){if(Object.is(e,t))return  true;let o=JE(e),i=JE(t);if(o===e$&&(o=Qb),i===e$&&(i=Qb),o!==i)return  false;switch(o){case p9:return e.toString()===t.toString();case g9:{const u=e.valueOf(),d=t.valueOf();return _9(u,d)}case v9:case y9:case b9:return Object.is(e.valueOf(),t.valueOf());case h9:return e.source===t.source&&e.flags===t.flags;case MQ:return e===t}n=n??new Map;const s=n.get(e),l=n.get(t);if(s!=null&&l!=null)return s===t;n.set(e,t),n.set(t,e);try{switch(o){case S9:{if(e.size!==t.size)return !1;for(const[u,d]of e.entries())if(!t.has(u)||!Nh(d,t.get(u),u,e,t,n,r))return !1;return !0}case C9:{if(e.size!==t.size)return !1;const u=Array.from(e.values()),d=Array.from(t.values());for(let m=0;m<u.length;m++){const p=u[m],g=d.findIndex(b=>Nh(p,b,void 0,e,t,n,r));if(g===-1)return !1;d.splice(g,1);}return !0}case x9:case $9:case M9:case T9:case A9:case AQ:case R9:case N9:case P9:case RQ:case I9:case O9:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return !1;for(let u=0;u<e.length;u++)if(!Nh(e[u],t[u],u,e,t,n,r))return !1;return !0}case w9:return e.byteLength!==t.byteLength?!1:Vh(new Uint8Array(e),new Uint8Array(t),n,r);case E9:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:Vh(new Uint8Array(e),new Uint8Array(t),n,r);case TQ:return e.name===t.name&&e.message===t.message;case Qb:{if(!(Vh(e.constructor,t.constructor,n,r)||Ef(e)&&Ef(t)))return !1;const d=[...Object.keys(e),...ZE(e)],m=[...Object.keys(t),...ZE(t)];if(d.length!==m.length)return !1;for(let p=0;p<d.length;p++){const g=d[p],b=e[g];if(!Object.hasOwn(t,g))return !1;const y=t[g];if(!Nh(b,y,g,e,t,n,r))return !1}return !0}default:return !1}}finally{n.delete(e),n.delete(t);}}function Ei(e,t){return DQ(e,t,u9)}function Xi(e){return e==null}function _Q(e){const t=IQ(e.trim());let n="";for(let r=0;r<t.length;r++){const o=t[r];n&&(n+=" "),n+=o[0].toUpperCase()+o.slice(1).toLowerCase();}return n}function LQ(e,t){if(t===void 0)return e.trimEnd();let n=e.length;switch(typeof t){case "string":{if(t.length!==1)throw new Error("The 'chars' parameter should be a single character string.");for(;n>0&&e[n-1]===t;)n--;break}case "object":for(;n>0&&t.includes(e[n-1]);)n--;}return e.substring(0,n)}function BQ(e,t){if(t===void 0)return e.trimStart();let n=0;switch(typeof t){case "string":{for(;n<e.length&&e[n]===t;)n++;break}case "object":for(;n<e.length&&t.includes(e[n]);)n++;}return e.substring(n)}function kQ(e,t){return t===void 0?e.trim():BQ(LQ(e,t),t)}function Pu(e){try{return [null,e()]}catch(t){return [t,null]}}async function c1(e){try{return [null,await e()]}catch(t){return [t,null]}}function Nr(e,t){if(!e)throw typeof t=="string"?new Error(t):t}function zQ(e){switch(typeof e){case "number":case "symbol":return  false;case "string":return e.includes(".")||e.includes("[")||e.includes("]")}}function LM(e){return typeof e=="string"||typeof e=="symbol"?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}function L9(e){if(e==null)return "";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(L9).join(",");const t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function B9(e){if(Array.isArray(e))return e.map(LM);if(typeof e=="symbol")return [e];e=L9(e);const t=[],n=e.length;if(n===0)return t;let r=0,o="",i="",s=false;for(e.charCodeAt(0)===46&&(t.push(""),r++);r<n;){const l=e[r];i?l==="\\"&&r+1<n?(r++,o+=e[r]):l===i?i="":o+=l:s?l==='"'||l==="'"?i=l:l==="]"?(s=false,t.push(o),o=""):o+=l:l==="["?(s=true,o&&(t.push(o),o="")):l==="."?o&&(t.push(o),o=""):o+=l,r++;}return o&&t.push(o),t}function er(e,t,n){if(e==null)return n;switch(typeof t){case "string":{if(fp(t))return n;const r=e[t];return r===void 0?zQ(t)?er(e,B9(t),n):n:r}case "number":case "symbol":{typeof t=="number"&&(t=LM(t));const r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return FQ(e,t,n);if(Object.is(t?.valueOf(),-0)?t="-0":t=String(t),fp(t))return n;const r=e[t];return r===void 0?n:r}}}function FQ(e,t,n){if(t.length===0)return n;let r=e;for(let o=0;o<t.length;o++){if(r==null||fp(t[o]))return n;r=r[t[o]];}return r===void 0?n:r}function DI(e){return e!==null&&(typeof e=="object"||typeof e=="function")}const HQ=/^(?:0|[1-9]\d*)$/;function VQ(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case "number":return Number.isInteger(e)&&e>=0&&e<t;case "symbol":return  false;case "string":return HQ.test(e)}}const jQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,UQ=/^\w*$/;function WQ(e,t){return Array.isArray(e)?false:typeof e=="number"||typeof e=="boolean"||e==null||l9(e)?true:typeof e=="string"&&(UQ.test(e)||!jQ.test(e))||t!=null&&Object.hasOwn(t,e)}const GQ=(e,t,n)=>{const r=e[t];(!(Object.hasOwn(e,t)&&_9(r,n))||n===void 0&&!(t in e))&&(e[t]=n);};function qQ(e,t,n,r){if(e==null&&!DI(e))return e;let o;WQ(t,e)?o=[t]:Array.isArray(t)?o=t:o=B9(t);const i=n(er(e,o));let s=e;for(let l=0;l<o.length&&s!=null;l++){const u=LM(o[l]);if(fp(u))continue;let d;if(l===o.length-1)d=i;else {const m=s[u],p=r?.(m,u,e);d=p!==void 0?p:DI(m)?m:VQ(o[l+1])?[]:{};}GQ(s,u,d),s=s[u];}return e}function Uf(e,t,n){return qQ(e,t,()=>n,()=>{})}function KQ(e,t){if(e=xQ(e),e<1||!Number.isSafeInteger(e))return [];const n=new Array(e);for(let r=0;r<e;r++)n[r]=typeof t=="function"?t(r):r;return n}const YQ=Symbol(),BM=Symbol(),Ph="a",k9="f",_I="p",z9="c",F9="t",kM="h",jh="w",zM="o",FM="k";let XQ=(e,t)=>new Proxy(e,t);const t$=Object.getPrototypeOf,n$=new WeakMap,H9=e=>e&&(n$.has(e)?n$.get(e):t$(e)===Object.prototype||t$(e)===Array.prototype),j0=e=>typeof e=="object"&&e!==null,QQ=e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(t=>!t.configurable&&!t.writable),ZQ=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=true;}),Object.create(t$(e),t)},JQ=(e,t)=>{const n={[k9]:t};let r=false;const o=(l,u)=>{if(!r){let d=n[Ph].get(e);if(d||(d={},n[Ph].set(e,d)),l===jh)d[jh]=true;else {let m=d[l];m||(m=new Set,d[l]=m),m.add(u);}}},i=()=>{r=true,n[Ph].delete(e);},s={get(l,u){return u===BM?e:(o(FM,u),V9(Reflect.get(l,u),n[Ph],n[z9],n[F9]))},has(l,u){return u===YQ?(i(),true):(o(kM,u),Reflect.has(l,u))},getOwnPropertyDescriptor(l,u){return o(zM,u),Reflect.getOwnPropertyDescriptor(l,u)},ownKeys(l){return o(jh),Reflect.ownKeys(l)}};return t&&(s.set=s.deleteProperty=()=>false),[s,n]},HM=e=>e[BM]||e,V9=(e,t,n,r)=>{if(!H9(e))return e;let o=r&&r.get(e);if(!o){const u=HM(e);QQ(u)?o=[u,ZQ(u)]:o=[u],r?.set(e,o);}const[i,s]=o;let l=n&&n.get(i);return (!l||l[1][k9]!==!!s)&&(l=JQ(i,!!s),l[1][_I]=XQ(s||i,l[0]),n&&n.set(i,l)),l[1][Ph]=t,l[1][z9]=n,l[1][F9]=r,l[1][_I]},eZ=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some((o,i)=>o!==r[i])},j9=(e,t,n,r,o=Object.is)=>{if(o(e,t))return  false;if(!j0(e)||!j0(t))return  true;const i=n.get(HM(e));if(!i)return  true;if(r){if(r.get(e)===t)return  false;r.set(e,t);}let s=null;for(const l of i[kM]||[])if(s=Reflect.has(e,l)!==Reflect.has(t,l),s)return s;if(i[jh]===true){if(s=eZ(e,t),s)return s}else for(const l of i[zM]||[]){const u=!!Reflect.getOwnPropertyDescriptor(e,l),d=!!Reflect.getOwnPropertyDescriptor(t,l);if(s=u!==d,s)return s}for(const l of i[FM]||[])if(s=j9(e[l],t[l],n,r,o),s)return s;if(s===null)throw new Error("invalid used");return s},tZ=e=>H9(e)&&e[BM]||null,LI=(e,t=true)=>{n$.set(e,t);},nZ=(e,t,n)=>{const r=[],o=new WeakSet,i=(s,l)=>{var u,d,m;if(o.has(s))return;j0(s)&&o.add(s);const p=j0(s)&&t.get(HM(s));if(p){if((u=p[kM])===null||u===void 0||u.forEach(g=>{const b=`:has(${String(g)})`;r.push(l?[...l,b]:[b]);}),p[jh]===true){const g=":ownKeys";r.push(l?[...l,g]:[g]);}else (d=p[zM])===null||d===void 0||d.forEach(g=>{const b=`:hasOwn(${String(g)})`;r.push(l?[...l,b]:[b]);});(m=p[FM])===null||m===void 0||m.forEach(g=>{"value"in(Object.getOwnPropertyDescriptor(s,g)||{})&&i(s[g],l?[...l,g]:[g]);});}else l&&r.push(l);};return i(e),r},U0={},VM=e=>typeof e=="object"&&e!==null,rZ=e=>VM(e)&&!og.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),U9=(e,t)=>{const n=r$.get(e);if(n?.[0]===t)return n[1];const r=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return LI(r,true),r$.set(e,[t,r]),Reflect.ownKeys(e).forEach(o=>{if(Object.getOwnPropertyDescriptor(r,o))return;const i=Reflect.get(e,o),{enumerable:s}=Reflect.getOwnPropertyDescriptor(e,o),l={value:i,enumerable:s,configurable:true};if(og.has(i))LI(i,false);else if(Va.has(i)){const[u,d]=Va.get(i);l.value=U9(u,d());}Object.defineProperty(r,o,l);}),Object.preventExtensions(r)},oZ=(e,t,n,r)=>({deleteProperty(o,i){Reflect.get(o,i),n(i);const s=Reflect.deleteProperty(o,i);return s&&r(void 0),s},set(o,i,s,l){const u=!e()&&Reflect.has(o,i),d=Reflect.get(o,i,l);if(u&&(W0(d,s)||mp.has(s)&&W0(d,mp.get(s))))return  true;n(i),VM(s)&&(s=tZ(s)||s);const m=!Va.has(s)&&i$(s)?zn(s):s;return t(i,m),Reflect.set(o,i,m,l),r(void 0),true}}),Va=new WeakMap,og=new WeakSet,r$=new WeakMap,Zb=[1],mp=new WeakMap;let W0=Object.is,o$=(e,t)=>new Proxy(e,t),i$=rZ,s$=U9,a$=oZ;function zn(e={}){if(!VM(e))throw new Error("object required");const t=mp.get(e);if(t)return t;let n=Zb[0];const r=new Set,o=(C,w=++Zb[0])=>{n!==w&&(i=n=w,r.forEach(E=>E(C,w)));};let i=n;const s=(C=Zb[0])=>(i!==C&&(i=C,u.forEach(([w])=>{const E=w[1](C);E>n&&(n=E);})),n),l=C=>(w,E)=>{let M;w&&(M=[...w],M[1]=[C,...M[1]]),o(M,E);},u=new Map,d=(C,w)=>{const E=!og.has(w)&&Va.get(w);if(E){if((U0?"production":void 0)!=="production"&&u.has(C))throw new Error("prop listener already exists");if(r.size){const M=E[2](l(C));u.set(C,[E,M]);}else u.set(C,[E]);}},m=C=>{var w;const E=u.get(C);E&&(u.delete(C),(w=E[1])==null||w.call(E));},p=C=>(r.add(C),r.size===1&&u.forEach(([E,M],T)=>{if((U0?"production":void 0)!=="production"&&M)throw new Error("remove already exists");const A=E[2](l(T));u.set(T,[E,A]);}),()=>{r.delete(C),r.size===0&&u.forEach(([E,M],T)=>{M&&(M(),u.set(T,[E]));});});let g=true;const b=a$(()=>g,d,m,o),y=o$(e,b);mp.set(e,y);const S=[e,s,p];return Va.set(y,S),Reflect.ownKeys(e).forEach(C=>{const w=Object.getOwnPropertyDescriptor(e,C);"value"in w&&w.writable&&(y[C]=e[C]);}),g=false,y}function BI(e){const t=Va.get(e);return t?.[1]()}function sa(e,t,n){const r=Va.get(e);(U0?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let o;const i=[],s=r[2];let l=false;const d=s(m=>{if(m&&i.push(m),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,l&&t(i.splice(0));}));});return l=true,()=>{l=false,d();}}function Gr(e){const t=Va.get(e);(U0?"production":void 0)!=="production"&&!t&&console.warn("Please use proxy object");const[n,r]=t;return s$(n,r())}function W9(e){return og.add(e),e}function jM(){return {proxyStateMap:Va,refSet:og,snapCache:r$,versionHolder:Zb,proxyCache:mp}}function iZ(e,t){switch(e){case "objectIs":W0=t(W0);break;case "newProxy":o$=t(o$);break;case "canProxy":i$=t(i$);break;case "createSnapshot":s$=t(s$);break;case "createHandler":a$=t(a$);break;default:throw new Error("unknown function")}}var db=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ni(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ix={exports:{}},Vt={};var kI;function sZ(){if(kI)return Vt;kI=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function b(_){return _===null||typeof _!="object"?null:(_=g&&_[g]||_["@@iterator"],typeof _=="function"?_:null)}var y={isMounted:function(){return  false},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function w(_,B,Y){this.props=_,this.context=B,this.refs=C,this.updater=Y||y;}w.prototype.isReactComponent={},w.prototype.setState=function(_,B){if(typeof _!="object"&&typeof _!="function"&&_!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,_,B,"setState");},w.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate");};function E(){}E.prototype=w.prototype;function M(_,B,Y){this.props=_,this.context=B,this.refs=C,this.updater=Y||y;}var T=M.prototype=new E;T.constructor=M,S(T,w.prototype),T.isPureReactComponent=true;var A=Array.isArray;function I(){}var N={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function O(_,B,Y){var J=Y.ref;return {$$typeof:e,type:_,key:B,ref:J!==void 0?J:null,props:Y}}function D(_,B){return O(_.type,B,_.props)}function L(_){return typeof _=="object"&&_!==null&&_.$$typeof===e}function F(_){var B={"=":"=0",":":"=2"};return "$"+_.replace(/[=:]/g,function(Y){return B[Y]})}var U=/\/+/g;function W(_,B){return typeof _=="object"&&_!==null&&_.key!=null?F(""+_.key):B.toString(36)}function z(_){switch(_.status){case "fulfilled":return _.value;case "rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(I,I):(_.status="pending",_.then(function(B){_.status==="pending"&&(_.status="fulfilled",_.value=B);},function(B){_.status==="pending"&&(_.status="rejected",_.reason=B);})),_.status){case "fulfilled":return _.value;case "rejected":throw _.reason}}throw _}function k(_,B,Y,J,ee){var te=typeof _;(te==="undefined"||te==="boolean")&&(_=null);var re=false;if(_===null)re=true;else switch(te){case "bigint":case "string":case "number":re=true;break;case "object":switch(_.$$typeof){case e:case t:re=true;break;case m:return re=_._init,k(re(_._payload),B,Y,J,ee)}}if(re)return ee=ee(_),re=J===""?"."+W(_,0):J,A(ee)?(Y="",re!=null&&(Y=re.replace(U,"$&/")+"/"),k(ee,B,Y,"",function(ne){return ne})):ee!=null&&(L(ee)&&(ee=D(ee,Y+(ee.key==null||_&&_.key===ee.key?"":(""+ee.key).replace(U,"$&/")+"/")+re)),B.push(ee)),1;re=0;var ie=J===""?".":J+":";if(A(_))for(var de=0;de<_.length;de++)J=_[de],te=ie+W(J,de),re+=k(J,B,Y,te,ee);else if(de=b(_),typeof de=="function")for(_=de.call(_),de=0;!(J=_.next()).done;)J=J.value,te=ie+W(J,de++),re+=k(J,B,Y,te,ee);else if(te==="object"){if(typeof _.then=="function")return k(z(_),B,Y,J,ee);throw B=String(_),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return re}function G(_,B,Y){if(_==null)return _;var J=[],ee=0;return k(_,J,"","",function(te){return B.call(Y,te,ee++)}),J}function j(_){if(_._status===-1){var B=_._result;B=B(),B.then(function(Y){(_._status===0||_._status===-1)&&(_._status=1,_._result=Y);},function(Y){(_._status===0||_._status===-1)&&(_._status=2,_._result=Y);}),_._status===-1&&(_._status=0,_._result=B);}if(_._status===1)return _._result.default;throw _._result}var K=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:true,cancelable:true,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_);},Q={map:G,forEach:function(_,B,Y){G(_,function(){B.apply(this,arguments);},Y);},count:function(_){var B=0;return G(_,function(){B++;}),B},toArray:function(_){return G(_,function(B){return B})||[]},only:function(_){if(!L(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Vt.Activity=p,Vt.Children=Q,Vt.Component=w,Vt.Fragment=n,Vt.Profiler=o,Vt.PureComponent=M,Vt.StrictMode=r,Vt.Suspense=u,Vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Vt.__COMPILER_RUNTIME={__proto__:null,c:function(_){return N.H.useMemoCache(_)}},Vt.cache=function(_){return function(){return _.apply(null,arguments)}},Vt.cacheSignal=function(){return null},Vt.cloneElement=function(_,B,Y){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var J=S({},_.props),ee=_.key;if(B!=null)for(te in B.key!==void 0&&(ee=""+B.key),B)!P.call(B,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&B.ref===void 0||(J[te]=B[te]);var te=arguments.length-2;if(te===1)J.children=Y;else if(1<te){for(var re=Array(te),ie=0;ie<te;ie++)re[ie]=arguments[ie+2];J.children=re;}return O(_.type,ee,J)},Vt.createContext=function(_){return _={$$typeof:s,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:i,_context:_},_},Vt.createElement=function(_,B,Y){var J,ee={},te=null;if(B!=null)for(J in B.key!==void 0&&(te=""+B.key),B)P.call(B,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ee[J]=B[J]);var re=arguments.length-2;if(re===1)ee.children=Y;else if(1<re){for(var ie=Array(re),de=0;de<re;de++)ie[de]=arguments[de+2];ee.children=ie;}if(_&&_.defaultProps)for(J in re=_.defaultProps,re)ee[J]===void 0&&(ee[J]=re[J]);return O(_,te,ee)},Vt.createRef=function(){return {current:null}},Vt.forwardRef=function(_){return {$$typeof:l,render:_}},Vt.isValidElement=L,Vt.lazy=function(_){return {$$typeof:m,_payload:{_status:-1,_result:_},_init:j}},Vt.memo=function(_,B){return {$$typeof:d,type:_,compare:B===void 0?null:B}},Vt.startTransition=function(_){var B=N.T,Y={};N.T=Y;try{var J=_(),ee=N.S;ee!==null&&ee(Y,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(I,K);}catch(te){K(te);}finally{B!==null&&Y.types!==null&&(B.types=Y.types),N.T=B;}},Vt.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Vt.use=function(_){return N.H.use(_)},Vt.useActionState=function(_,B,Y){return N.H.useActionState(_,B,Y)},Vt.useCallback=function(_,B){return N.H.useCallback(_,B)},Vt.useContext=function(_){return N.H.useContext(_)},Vt.useDebugValue=function(){},Vt.useDeferredValue=function(_,B){return N.H.useDeferredValue(_,B)},Vt.useEffect=function(_,B){return N.H.useEffect(_,B)},Vt.useEffectEvent=function(_){return N.H.useEffectEvent(_)},Vt.useId=function(){return N.H.useId()},Vt.useImperativeHandle=function(_,B,Y){return N.H.useImperativeHandle(_,B,Y)},Vt.useInsertionEffect=function(_,B){return N.H.useInsertionEffect(_,B)},Vt.useLayoutEffect=function(_,B){return N.H.useLayoutEffect(_,B)},Vt.useMemo=function(_,B){return N.H.useMemo(_,B)},Vt.useOptimistic=function(_,B){return N.H.useOptimistic(_,B)},Vt.useReducer=function(_,B,Y){return N.H.useReducer(_,B,Y)},Vt.useRef=function(_){return N.H.useRef(_)},Vt.useState=function(_){return N.H.useState(_)},Vt.useSyncExternalStore=function(_,B,Y){return N.H.useSyncExternalStore(_,B,Y)},Vt.useTransition=function(){return N.H.useTransition()},Vt.version="19.2.4",Vt}var zI;function UM(){return zI||(zI=1,Ix.exports=sZ()),Ix.exports}var f=UM();const q=Ni(f),l$=uQ({__proto__:null,default:q},[f]),aZ={},lZ=(e,t)=>{const n=f.useRef(void 0);f.useEffect(()=>{n.current=nZ(e,t);}),f.useDebugValue(n.current);},cZ=lZ,uZ=new WeakMap;function gt(e,t){const n=t?.sync,r=f.useMemo(()=>e&&new WeakMap,[e]),o=f.useRef(void 0);let i=true;const s=f.useSyncExternalStore(f.useCallback(u=>{const d=sa(e,u,n);return u(),d},[e,n]),()=>{const u=Gr(e);try{if(!i&&o.current&&!j9(o.current,u,r,new WeakMap))return o.current}catch{}return u},()=>Gr(e));i=false,f.useLayoutEffect(()=>{o.current=s;}),(aZ?"production":void 0)!=="production"&&cZ(s,r);const l=f.useMemo(()=>new WeakMap,[]);return V9(s,r,l,uZ)}function dZ(e){return e instanceof Error?e.stack||e.message:e}function fZ(e,t){let n=0;for(let r=0;r<t.length;r++)n=(n<<5)-n+t.charCodeAt(r),n|=0;return e[Math.abs(n)%e.length]}function FI(e,t){let n=0,r=0,o=-1,i=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]==="*"))t[r]==="*"?(o=r,i=n,r++):(n++,r++);else if(o!==-1)r=o+1,i++,n=i;else return  false;for(;r<t.length&&t[r]==="*";)r++;return r===t.length}function mZ(e){return e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`}let G0="";function G9(e,t){let n,r,o,i;const s=(...l)=>{if(!s.enabled)return;const u=Date.now(),d=u-(n||u);n=u,l[0]=dZ(l[0]),typeof l[0]!="string"&&l.unshift("%O");let m=0;l[0]=l[0].replace(/%([a-z%])/gi,(p,g)=>{if(p==="%%")return "%";m++;const b=t.formatters[g];if(typeof b=="function"){const y=l[m];p=b.call(s,y),l.splice(m,1),m--;}return p}),t.formatArgs.call(s,d,l),s.log(...l);};return s.extend=function(l,u=":"){return G9(this.namespace+u+l,{useColors:this.useColors,color:this.color,formatArgs:this.formatArgs,formatters:this.formatters,inspectOpts:this.inspectOpts,log:this.log,humanize:this.humanize})},Object.assign(s,t),s.namespace=e,Object.defineProperty(s,"enabled",{enumerable:true,configurable:false,get:()=>r??(o!==G0&&(o=G0,i=pZ(e)),i),set:l=>{r=l;}}),s}let c$=[],u$=[];function hZ(e){G0=e,c$=[],u$=[];const t=G0.trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const n of t)n[0]==="-"?u$.push(n.slice(1)):c$.push(n);}function pZ(e){for(const t of u$)if(FI(e,t))return  false;for(const t of c$)if(FI(e,t))return  true;return  false}var gZ={};const vZ=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function bZ(e,t){const{useColors:n}=this;if(t[0]=`${(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")}+${this.humanize(e)}`,!n)return;const r=`color: ${this.color}`;t.splice(1,0,r,"color: inherit");let o=0,i=0;t[0].replace(/%[a-z%]/gi,s=>{s!=="%%"&&(o++,s==="%c"&&(i=o));}),t.splice(i,0,r);}const yZ=console.debug||console.log||(()=>{}),HI=CZ(),SZ={useColors:true,formatArgs:bZ,formatters:{j(e){try{return JSON.stringify(e)}catch(t){return `[UnexpectedJSONParseError]: ${t.message}`}}},inspectOpts:{},humanize:mZ,log:yZ};function q9(e,t){var n;const r=(n=t)!==null&&n!==void 0?n:fZ(vZ,e);return G9(e,Object.assign(SZ,{color:r},t))}function CZ(){try{return localStorage}catch{}}function xZ(){let e;try{e=HI.getItem("debug")||HI.getItem("DEBUG");}catch{}return !e&&typeof process<"u"&&"env"in process&&(e=gZ.DEBUG),e||""}hZ(xZ());const Zo="Bilibili-Gate",Kr="bilibili-gate",WM="bilibili_gate",VI="bili-gate",po=q9(Kr),wZ=q9(Kr+"-verbose"),K9="https://api.bilibili.com",Y9="https://app.bilibili.com",hp={appkey:"4409e2ce8ffd12b8",appsec:"59b43e04ad6965f34319062b478f83dd"},Ns=`${Kr}-root`,EZ=`${Kr}-video-grid`,Kl=`${Kr}-video-card`,X9=`${Kr}-video-card-active`,Q9=`${Kr}-video-card-cover`,Z9=`${Kr}-tab-bar`,$Z=`${Kr}-video-card__recommend-reason`,ig="请求失败, 请重试 !!!",qM="操作失败!",fb="bilibili.com";var Jl=(e=>(e[e.Tld=fb]="Tld",e.Main=`www.${fb}`,e.Space=`space.${fb}`,e.Search=`search.${fb}`,e))(Jl||{});const{hostname:pp,pathname:jI}=location;pp===Jl.Tld||pp.endsWith(`.${Jl.Tld}`);const J9=[Jl.Tld,Jl.Main].includes(pp),MZ=pp===Jl.Space,TZ=pp===Jl.Search,Ka=J9&&(jI==="/"||jI==="/index.html");function KM(e){return function(...n){const[r,...o]=n,i=`%c${Zo}%c`,s=["padding: 2px 4px; border-radius: 4px; color: #fff; background: #01847f; font-weight: bold;",""];return typeof r=="string"?e(`${i} ${r}`,...s,...o):e(`${i}`,...s,r,...o)}}const AZ=KM(console.log),ti=KM(console.warn),RZ=KM(console.error);var Wf=(e=>(e.Pink="#f69",e.Blue="#00aeec",e))(Wf||{}),Ox={exports:{}},lh={};var UI;function NZ(){if(UI)return lh;UI=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var s=null;if(i!==void 0&&(s=""+i),o.key!==void 0&&(s=""+o.key),"key"in o){i={};for(var l in o)l!=="key"&&(i[l]=o[l]);}else i=o;return o=i.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:i}}return lh.Fragment=t,lh.jsx=n,lh.jsxs=n,lh}var WI;function PZ(){return WI||(WI=1,Ox.exports=NZ()),Ox.exports}var Jo=PZ();function IZ(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function OZ(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var DZ=(function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o);},this.isSpeedy=n.speedy===void 0?true:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag);},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(OZ(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=IZ(o);try{i.insertRule(r,i.cssRules.length);}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++;},t.flush=function(){this.tags.forEach(function(r){var o;return (o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0;},e})(),Co="-ms-",q0="-moz-",xn="-webkit-",ek="comm",YM="rule",XM="decl",_Z="@import",tk="@keyframes",LZ="@layer",BZ=Math.abs,u1=String.fromCharCode,kZ=Object.assign;function zZ(e,t){return so(e,0)^45?(((t<<2^so(e,0))<<2^so(e,1))<<2^so(e,2))<<2^so(e,3):0}function nk(e){return e.trim()}function FZ(e,t){return (e=t.exec(e))?e[0]:e}function En(e,t,n){return e.replace(t,n)}function d$(e,t){return e.indexOf(t)}function so(e,t){return e.charCodeAt(t)|0}function gp(e,t,n){return e.slice(t,n)}function Ws(e){return e.length}function QM(e){return e.length}function mb(e,t){return t.push(e),e}function HZ(e,t){return e.map(t).join("")}var d1=1,$f=1,rk=0,ni=0,$r=0,Gf="";function f1(e,t,n,r,o,i,s){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:d1,column:$f,length:s,return:""}}function ch(e,t){return kZ(f1("",null,null,"",null,null,0),e,{length:-e.length},t)}function VZ(){return $r}function jZ(){return $r=ni>0?so(Gf,--ni):0,$f--,$r===10&&($f=1,d1--),$r}function $i(){return $r=ni<rk?so(Gf,ni++):0,$f++,$r===10&&($f=1,d1++),$r}function ea(){return so(Gf,ni)}function Jb(){return ni}function sg(e,t){return gp(Gf,e,t)}function vp(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ok(e){return d1=$f=1,rk=Ws(Gf=e),ni=0,[]}function ik(e){return Gf="",e}function e0(e){return nk(sg(ni-1,f$(e===91?e+2:e===40?e+1:e)))}function UZ(e){for(;($r=ea())&&$r<33;)$i();return vp(e)>2||vp($r)>3?"":" "}function WZ(e,t){for(;--t&&$i()&&!($r<48||$r>102||$r>57&&$r<65||$r>70&&$r<97););return sg(e,Jb()+(t<6&&ea()==32&&$i()==32))}function f$(e){for(;$i();)switch($r){case e:return ni;case 34:case 39:e!==34&&e!==39&&f$($r);break;case 40:e===41&&f$(e);break;case 92:$i();break}return ni}function GZ(e,t){for(;$i()&&e+$r!==57;)if(e+$r===84&&ea()===47)break;return "/*"+sg(t,ni-1)+"*"+u1(e===47?e:$i())}function qZ(e){for(;!vp(ea());)$i();return sg(e,ni)}function KZ(e){return ik(t0("",null,null,null,[""],e=ok(e),0,[0],e))}function t0(e,t,n,r,o,i,s,l,u){for(var d=0,m=0,p=s,g=0,b=0,y=0,S=1,C=1,w=1,E=0,M="",T=o,A=i,I=r,N=M;C;)switch(y=E,E=$i()){case 40:if(y!=108&&so(N,p-1)==58){d$(N+=En(e0(E),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:N+=e0(E);break;case 9:case 10:case 13:case 32:N+=UZ(y);break;case 92:N+=WZ(Jb()-1,7);continue;case 47:switch(ea()){case 42:case 47:mb(YZ(GZ($i(),Jb()),t,n),u);break;default:N+="/";}break;case 123*S:l[d++]=Ws(N)*w;case 125*S:case 59:case 0:switch(E){case 0:case 125:C=0;case 59+m:w==-1&&(N=En(N,/\f/g,"")),b>0&&Ws(N)-p&&mb(b>32?qI(N+";",r,n,p-1):qI(En(N," ","")+";",r,n,p-2),u);break;case 59:N+=";";default:if(mb(I=GI(N,t,n,d,m,o,l,M,T=[],A=[],p),i),E===123)if(m===0)t0(N,t,I,I,T,i,p,l,A);else switch(g===99&&so(N,3)===110?100:g){case 100:case 108:case 109:case 115:t0(e,I,I,r&&mb(GI(e,I,I,0,0,o,l,M,o,T=[],p),A),o,A,p,l,r?T:A);break;default:t0(N,I,I,I,[""],A,0,l,A);}}d=m=b=0,S=w=1,M=N="",p=s;break;case 58:p=1+Ws(N),b=y;default:if(S<1){if(E==123)--S;else if(E==125&&S++==0&&jZ()==125)continue}switch(N+=u1(E),E*S){case 38:w=m>0?1:(N+="\f",-1);break;case 44:l[d++]=(Ws(N)-1)*w,w=1;break;case 64:ea()===45&&(N+=e0($i())),g=ea(),m=p=Ws(M=N+=qZ(Jb())),E++;break;case 45:y===45&&Ws(N)==2&&(S=0);}}return i}function GI(e,t,n,r,o,i,s,l,u,d,m){for(var p=o-1,g=o===0?i:[""],b=QM(g),y=0,S=0,C=0;y<r;++y)for(var w=0,E=gp(e,p+1,p=BZ(S=s[y])),M=e;w<b;++w)(M=nk(S>0?g[w]+" "+E:En(E,/&\f/g,g[w])))&&(u[C++]=M);return f1(e,t,n,o===0?YM:l,u,d,m)}function YZ(e,t,n){return f1(e,t,n,ek,u1(VZ()),gp(e,2,-2),0)}function qI(e,t,n,r){return f1(e,t,n,XM,gp(e,0,r),gp(e,r+1,-1),r)}function mf(e,t){for(var n="",r=QM(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function XZ(e,t,n,r){switch(e.type){case LZ:if(e.children.length)break;case _Z:case XM:return e.return=e.return||e.value;case ek:return "";case tk:return e.return=e.value+"{"+mf(e.children,r)+"}";case YM:e.value=e.props.join(",");}return Ws(n=mf(e.children,r))?e.return=e.value+"{"+n+"}":""}function QZ(e){var t=QM(e);return function(n,r,o,i){for(var s="",l=0;l<t;l++)s+=e[l](n,r,o,i)||"";return s}}function ZZ(e){return function(t){t.root||(t=t.return)&&e(t);}}function JZ(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var eJ=function(t,n,r){for(var o=0,i=0;o=i,i=ea(),o===38&&i===12&&(n[r]=1),!vp(i);)$i();return sg(t,ni)},tJ=function(t,n){var r=-1,o=44;do switch(vp(o)){case 0:o===38&&ea()===12&&(n[r]=1),t[r]+=eJ(ni-1,n,r);break;case 2:t[r]+=e0(o);break;case 4:if(o===44){t[++r]=ea()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=u1(o);}while(o=$i());return t},nJ=function(t,n){return ik(tJ(ok(t),n))},KI=new WeakMap,rJ=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!KI.get(r))&&!o){KI.set(t,true);for(var i=[],s=nJ(n,i),l=r.props,u=0,d=0;u<s.length;u++)for(var m=0;m<l.length;m++,d++)t.props[d]=i[u]?s[u].replace(/&\f/g,l[m]):l[m]+" "+s[u];}}},oJ=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function sk(e,t){switch(zZ(e,t)){case 5103:return xn+"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 xn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xn+e+q0+e+Co+e+e;case 6828:case 4268:return xn+e+Co+e+e;case 6165:return xn+e+Co+"flex-"+e+e;case 5187:return xn+e+En(e,/(\w+).+(:[^]+)/,xn+"box-$1$2"+Co+"flex-$1$2")+e;case 5443:return xn+e+Co+"flex-item-"+En(e,/flex-|-self/,"")+e;case 4675:return xn+e+Co+"flex-line-pack"+En(e,/align-content|flex-|-self/,"")+e;case 5548:return xn+e+Co+En(e,"shrink","negative")+e;case 5292:return xn+e+Co+En(e,"basis","preferred-size")+e;case 6060:return xn+"box-"+En(e,"-grow","")+xn+e+Co+En(e,"grow","positive")+e;case 4554:return xn+En(e,/([^-])(transform)/g,"$1"+xn+"$2")+e;case 6187:return En(En(En(e,/(zoom-|grab)/,xn+"$1"),/(image-set)/,xn+"$1"),e,"")+e;case 5495:case 3959:return En(e,/(image-set\([^]*)/,xn+"$1$`$1");case 4968:return En(En(e,/(.+:)(flex-)?(.*)/,xn+"box-pack:$3"+Co+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xn+e+e;case 4095:case 3583:case 4068:case 2532:return En(e,/(.+)-inline(.+)/,xn+"$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(Ws(e)-1-t>6)switch(so(e,t+1)){case 109:if(so(e,t+4)!==45)break;case 102:return En(e,/(.+:)(.+)-([^]+)/,"$1"+xn+"$2-$3$1"+q0+(so(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~d$(e,"stretch")?sk(En(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(so(e,t+1)!==115)break;case 6444:switch(so(e,Ws(e)-3-(~d$(e,"!important")&&10))){case 107:return En(e,":",":"+xn)+e;case 101:return En(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xn+(so(e,14)===45?"inline-":"")+"box$3$1"+xn+"$2$3$1"+Co+"$2box$3")+e}break;case 5936:switch(so(e,t+11)){case 114:return xn+e+Co+En(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xn+e+Co+En(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xn+e+Co+En(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xn+e+Co+e+e}return e}var iJ=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case XM:t.return=sk(t.value,t.length);break;case tk:return mf([ch(t,{value:En(t.value,"@","@"+xn)})],o);case YM:if(t.length)return HZ(t.props,function(i){switch(FZ(i,/(::plac\w+|:read-\w+)/)){case ":read-only":case ":read-write":return mf([ch(t,{props:[En(i,/:(read-\w+)/,":"+q0+"$1")]})],o);case "::placeholder":return mf([ch(t,{props:[En(i,/:(plac\w+)/,":"+xn+"input-$1")]}),ch(t,{props:[En(i,/:(plac\w+)/,":"+q0+"$1")]}),ch(t,{props:[En(i,/:(plac\w+)/,Co+"input-$1")]})],o)}return ""})}},sJ=[iJ],ak=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var C=S.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""));});}var o=t.stylisPlugins||sJ,i={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var C=S.getAttribute("data-emotion").split(" "),w=1;w<C.length;w++)i[C[w]]=true;l.push(S);});var u,d=[rJ,oJ];{var m,p=[XZ,ZZ(function(S){m.insert(S);})],g=QZ(d.concat(o,p)),b=function(C){return mf(KZ(C),g)};u=function(C,w,E,M){m=E,b(C?C+"{"+w.styles+"}":w.styles),M&&(y.inserted[w.name]=true);};}var y={key:n,sheet:new DZ({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return y.sheet.hydrate(l),y};function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},dr.apply(null,arguments)}var Dx={exports:{}},Mn={};var YI;function aJ(){if(YI)return Mn;YI=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function M(A){if(typeof A=="object"&&A!==null){var I=A.$$typeof;switch(I){case t:switch(A=A.type,A){case u:case d:case r:case i:case o:case p:return A;default:switch(A=A&&A.$$typeof,A){case l:case m:case y:case b:case s:return A;default:return I}}case n:return I}}}function T(A){return M(A)===d}return Mn.AsyncMode=u,Mn.ConcurrentMode=d,Mn.ContextConsumer=l,Mn.ContextProvider=s,Mn.Element=t,Mn.ForwardRef=m,Mn.Fragment=r,Mn.Lazy=y,Mn.Memo=b,Mn.Portal=n,Mn.Profiler=i,Mn.StrictMode=o,Mn.Suspense=p,Mn.isAsyncMode=function(A){return T(A)||M(A)===u},Mn.isConcurrentMode=T,Mn.isContextConsumer=function(A){return M(A)===l},Mn.isContextProvider=function(A){return M(A)===s},Mn.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},Mn.isForwardRef=function(A){return M(A)===m},Mn.isFragment=function(A){return M(A)===r},Mn.isLazy=function(A){return M(A)===y},Mn.isMemo=function(A){return M(A)===b},Mn.isPortal=function(A){return M(A)===n},Mn.isProfiler=function(A){return M(A)===i},Mn.isStrictMode=function(A){return M(A)===o},Mn.isSuspense=function(A){return M(A)===p},Mn.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===d||A===i||A===o||A===p||A===g||typeof A=="object"&&A!==null&&(A.$$typeof===y||A.$$typeof===b||A.$$typeof===s||A.$$typeof===l||A.$$typeof===m||A.$$typeof===C||A.$$typeof===w||A.$$typeof===E||A.$$typeof===S)},Mn.typeOf=M,Mn}var XI;function lJ(){return XI||(XI=1,Dx.exports=aJ()),Dx.exports}var _x,QI;function cJ(){if(QI)return _x;QI=1;var e=lJ(),t={childContextTypes:true,contextType:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,getDerivedStateFromError:true,getDerivedStateFromProps:true,mixins:true,propTypes:true,type:true},n={name:true,length:true,prototype:true,caller:true,callee:true,arguments:true,arity:true},r={$$typeof:true,render:true,defaultProps:true,displayName:true,propTypes:true},o={$$typeof:true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function s(y){return e.isMemo(y)?o:i[y.$$typeof]||t}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;function b(y,S,C){if(typeof S!="string"){if(g){var w=p(S);w&&w!==g&&b(y,w,C);}var E=u(S);d&&(E=E.concat(d(S)));for(var M=s(y),T=s(S),A=0;A<E.length;++A){var I=E[A];if(!n[I]&&!(C&&C[I])&&!(T&&T[I])&&!(M&&M[I])){var N=m(S,I);try{l(y,I,N);}catch{}}}}return y}return _x=b,_x}cJ();var uJ=true;function ZM(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ");}),r}var lk=function(t,n,r){var o=t.key+"-"+n.name;(r===false||uJ===false)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},JM=function(t,n,r){lk(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,true),i=i.next;while(i!==void 0)}};function dJ(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var fJ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},mJ=/[A-Z]|^ms/g,hJ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ck=function(t){return t.charCodeAt(1)===45},ZI=function(t){return t!=null&&typeof t!="boolean"},Lx=JZ(function(e){return ck(e)?e:e.replace(mJ,"-$&").toLowerCase()}),JI=function(t,n){switch(t){case "animation":case "animationName":if(typeof n=="string")return n.replace(hJ,function(r,o,i){return Gs={name:o,styles:i,next:Gs},o})}return fJ[t]!==1&&!ck(t)&&typeof n=="number"&&n!==0?n+"px":n};function bp(e,t,n){if(n==null)return "";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case "boolean":return "";case "object":{var o=n;if(o.anim===1)return Gs={name:o.name,styles:o.styles,next:Gs},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Gs={name:s.name,styles:s.styles,next:Gs},s=s.next;var l=i.styles+";";return l}return pJ(e,t,n)}case "function":{if(e!==void 0){var u=Gs,d=n(e);return Gs=u,bp(e,t,d)}break}}var m=n;if(t==null)return m;var p=t[m];return p!==void 0?p:m}function pJ(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=bp(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var l=s;t!=null&&t[l]!==void 0?r+=i+"{"+t[l]+"}":ZI(l)&&(r+=Lx(i)+":"+JI(i,l)+";");}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)ZI(s[u])&&(r+=Lx(i)+":"+JI(i,s[u])+";");else {var d=bp(e,t,s);switch(i){case "animation":case "animationName":{r+=Lx(i)+":"+d+";";break}default:r+=i+"{"+d+"}";}}}return r}var e5=/label:\s*([^\s;{]+)\s*(;|$)/g,Gs;function hf(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=true,o="";Gs=void 0;var i=e[0];if(i==null||i.raw===void 0)r=false,o+=bp(n,t,i);else {var s=i;o+=s[0];}for(var l=1;l<e.length;l++)if(o+=bp(n,t,e[l]),r){var u=i;o+=u[l];}e5.lastIndex=0;for(var d="",m;(m=e5.exec(o))!==null;)d+="-"+m[1];var p=dJ(o)+d;return {name:p,styles:o,next:Gs}}var gJ=function(t){return t()},uk=l$.useInsertionEffect?l$.useInsertionEffect:false,vJ=uk||gJ,t5=uk||f.useLayoutEffect,dk=f.createContext(typeof HTMLElement<"u"?ak({key:"css"}):null),bJ=dk.Provider,fk=function(t){return f.forwardRef(function(n,r){var o=f.useContext(dk);return t(n,o,r)})},mk=f.createContext({}),ag={}.hasOwnProperty,m$="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",eT=function(t,n){var r={};for(var o in n)ag.call(n,o)&&(r[o]=n[o]);return r[m$]=t,r},yJ=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return lk(n,r,o),vJ(function(){return JM(n,r,o)}),null},SJ=fk(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[m$],i=[r],s="";typeof e.className=="string"?s=ZM(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var l=hf(i,void 0,f.useContext(mk));s+=t.key+"-"+l.name;var u={};for(var d in e)ag.call(e,d)&&d!=="css"&&d!==m$&&(u[d]=e[d]);return u.className=s,n&&(u.ref=n),f.createElement(f.Fragment,null,f.createElement(yJ,{cache:t,serialized:l,isStringTag:typeof o=="string"}),f.createElement(o,u))}),tT=SJ,_e=Jo.Fragment,x=function(t,n,r){return ag.call(n,"css")?Jo.jsx(tT,eT(t,n),r):Jo.jsx(t,n,r)},H=function(t,n,r){return ag.call(n,"css")?Jo.jsxs(tT,eT(t,n),r):Jo.jsxs(t,n,r)};const ks=new WeakMap,Ui=new WeakMap,Yl=new WeakMap,Jd=new WeakMap;var CJ={};const hu=Symbol("anyProducer"),n5=Promise.resolve(),m1=Symbol("listenerAdded"),h1=Symbol("listenerRemoved"),ef=new WeakMap,tf=new WeakMap,hk=Symbol("suppressAllEnqueue"),n0=new WeakMap;let Bx=false;const Oa=e=>typeof e=="string"||typeof e=="symbol"||typeof e=="number";function kx(e){return e[Symbol.dispose]=e,e}function r0(e,t,{swallowErrors:n=false}={}){if(!e)return ()=>{};const r=()=>{if(n){try{t();}catch{}return}t();};return e.aborted?(r(),()=>{}):(e.addEventListener("abort",r,{once:true}),()=>{e.removeEventListener("abort",r);})}function jc(e){if(!Oa(e))throw new TypeError("`eventName` must be a string, symbol, or number")}function hb(e){if(typeof e!="function")throw new TypeError("listener must be a function")}function Ra(e,t){const n=Ui.get(e);if(n.has(t))return n.get(t)}function yp(e,t){const n=Oa(t)?t:hu,r=Yl.get(e);if(r.has(n))return r.get(n)}function r5(e,t,n,r){if(gk(e,t))return;const o=Yl.get(e);if(!o.has(t)&&!o.get(hu)?.size)return;const i=Promise.resolve(n),s=async()=>Ih(t,await i,r);if(o.has(t))for(const l of o.get(t))l.enqueue(s());if(o.has(hu))for(const l of o.get(hu))l.enqueue(s());}function o5(e,t,{signal:n}={}){t=Array.isArray(t)?t:[t];let r=false,o=()=>{},i=[],s=()=>{};const l={enqueue(m){i.push(m),o();},finish(){r=true,s(),o();}};for(const m of t){const p=Oa(m)?m:hu;let g=yp(e,m);g||(g=new Set,Yl.get(e).set(p,g)),g.add(l);}const u=()=>{for(const m of t){const p=Oa(m)?m:hu,g=yp(e,m);g&&(g.delete(l),g.size===0&&Yl.get(e).delete(p));}},d=()=>{i&&(i=void 0,s(),u(),o());};return s=r0(n,d),{async next(){if(!i)return {done:true};if(i.length===0){if(r)return d(),this.next();const{promise:m,resolve:p}=Promise.withResolvers();return o=p,await m,this.next()}return {done:false,value:await i.shift()}},async return(m){return d(),arguments.length>0?{done:true,value:await m}:{done:true}},[Symbol.asyncIterator](){return this},async[Symbol.asyncDispose](){await this.return();}}}function i5(e){if(e===void 0)return g$;if(!Array.isArray(e))throw new TypeError("`methodNames` must be an array of strings");for(const t of e)if(!g$.includes(t))throw typeof t!="string"?new TypeError("`methodNames` element must be a string"):new Error(`${t} is not Emittery method`);return e}const js=e=>e===m1||e===h1;function pk(e,t,n){const r=t.some(s=>!Oa(s))?[hk]:t;let o=n0.get(e);o||(o=new Set,n0.set(e,o));const i=[];for(const s of r)o.has(s)||(o.add(s),i.push(s));try{return n()}finally{for(const s of i)o.delete(s);o.size===0&&n0.delete(e);}}function gk(e,t){const n=n0.get(e);return n?n.has(hk)||n.has(t):false}function xJ(e,t,n,{eventName:r,set:o}){try{const i=t.initFn();typeof i=="function"&&(t.deinitFn=i);}catch(i){throw o.delete(n),o.size===0&&Ui.get(e).delete(r),i}}function Uh(e){const t=e?.deinitFn;t&&(e.deinitFn=void 0,t());}const K0="subscribe",Y0="unsubscribe";function h$(e,{eventName:t,listener:n,action:r,swallowLifecycleError:o=false,removeResubscribedListener:i=false}){if(r===K0){let u=Ra(e,t);u||(u=new Set,Ui.get(e).set(t,u));const d=u.size===0,m=u.has(n);if(u.add(n),!js(t)&&d&&!gk(e,t)){const p=Jd.get(e).get(t);p&&xJ(e,p,n,{eventName:t,set:u});}return {hasSet:true,changed:!m}}const s=Ra(e,t);if(!s)return {hasSet:false,changed:false};const l=s.delete(n);if(s.size===0){Ui.get(e).delete(t);const u=Jd.get(e).get(t);if(o)try{Uh(u);}catch{}else Uh(u);if(i){const d=Ra(e,t);d?.delete(n),d?.size===0&&Ui.get(e).delete(t);}}return {hasSet:true,changed:l}}function p$(e,{eventName:t,listener:n,action:r,swallowErrors:o=false}){const i=r===K0,s=i?"subscribe":"unsubscribe",l=i?m1:h1;if(o){try{e.logIfDebugEnabled(s,t,void 0);}catch{}if(!js(t))try{X0(e,l,{eventName:t,listener:n});}catch{}return}e.logIfDebugEnabled(s,t,void 0),js(t)||X0(e,l,{eventName:t,listener:n});}function wJ(e,t,n){pk(e,t,()=>{for(const r of t){const{hasSet:o}=h$(e,{eventName:r,listener:n,action:Y0,swallowLifecycleError:!0,removeResubscribedListener:!0});o&&p$(e,{eventName:r,listener:n,action:Y0,swallowErrors:!0});}});}function s5(e,t){const n=yp(e,t);if(n){for(const r of n)r.finish();n.clear();}}function zx(e){const t=Yl.get(e);for(const[n,r]of t.entries()){for(const o of r)o.finish();r.clear(),t.delete(n);}}const Ih=(e,t,n)=>n?{name:e,data:t}:{name:e};function X0(e,t,n){ef.set(e,(ef.get(e)??0)+1),tf.set(e,(tf.get(e)??0)+1);try{uo.prototype.emit.call(e,t,n);}finally{ef.set(e,(ef.get(e)??0)-1);}}class uo{static mixin(t,n){return n=i5(n),(r,o)=>{if(typeof r!="function")throw new TypeError("`target` must be function");for(const l of n)if(r.prototype[l]!==void 0)throw new Error(`The property \`${l}\` already exists on \`target\``);function i(){return Object.defineProperty(this,t,{enumerable:false,value:new uo}),this[t]}Object.defineProperty(r.prototype,t,{enumerable:false,get:i});const s=l=>function(...u){return this[t][l](...u)};for(const l of n)Object.defineProperty(r.prototype,l,{enumerable:false,value:s(l)});return r}}static get isDebugEnabled(){if(typeof CJ!="object")return Bx;const{env:t}=globalThis.process??{env:{}};return t.DEBUG==="emittery"||t.DEBUG==="*"||Bx}static set isDebugEnabled(t){Bx=t;}constructor(t={}){ks.set(this,new Set),Ui.set(this,new Map),Yl.set(this,new Map),Jd.set(this,new Map),Yl.get(this).set(hu,new Set);for(const n of g$)Object.defineProperty(this,n,{value:this[n].bind(this),writable:true,enumerable:false,configurable:true});this.debug=t.debug??{},this.debug.enabled===void 0&&(this.debug.enabled=false),this.debug.logger||=(n,r,o,i)=>{try{i=JSON.stringify(i);}catch{i=`Object with the following keys failed to stringify: ${Object.keys(i).join(",")}`;}(typeof o=="symbol"||typeof o=="number")&&(o=o.toString());const s=new Date,l=`${s.getHours()}:${s.getMinutes()}:${s.getSeconds()}.${s.getMilliseconds()}`;console.log(`[${l}][emittery:${n}][${r}] Event Name: ${o}
	data: ${i}`);};}logIfDebugEnabled(t,n,r){(uo.isDebugEnabled||this.debug.enabled)&&this.debug.logger(t,this.debug.name,n,r);}on(t,n,{signal:r}={}){hb(n),t=Array.isArray(t)?t:[t];const o=[];try{for(const u of t){jc(u);const{changed:d}=h$(this,{eventName:u,listener:n,action:K0});d&&o.push(u),p$(this,{eventName:u,listener:n,action:K0});}}catch(u){throw wJ(this,o,n),u}let i=()=>{};const s=Symbol("no-error"),l=()=>{i();let u=s;for(const d of t)try{this.off(d,n);}catch(m){u=u===s?m:u;}if(u!==s)throw u};return i=r0(r,l,{swallowErrors:true}),kx(l)}off(t,n){hb(n),t=Array.isArray(t)?t:[t];for(const r of t)jc(r),h$(this,{eventName:r,listener:n,action:Y0}),p$(this,{eventName:r,listener:n,action:Y0});}once(t,n){const{promise:r,resolve:o,reject:i}=Promise.withResolvers();let s=()=>{},l,u=false,d=()=>{};t=Array.isArray(t)?[...t]:[t];try{let m;if(typeof n=="function")m=n;else if(typeof n=="object"&&n!==null)m=n.predicate,l=n.signal;else if(n!==void 0)throw new TypeError("predicate must be a function");if(m!==void 0&&typeof m!="function")throw new TypeError("predicate must be a function");if(l?.aborted)throw l.reason;let p=()=>{};const g=()=>{d();const y=Symbol("no-error");let S=y;for(const C of t)try{this.off(C,p);}catch(w){S=S===y?w:S;}if(S!==y)throw S},b=()=>{g(),u=!0;};p=y=>{if(!(m&&!m(y))&&!u){try{b();}catch(S){i(S);return}o(y);}},this.on(t,p),s=g,d=r0(l,()=>{if(!u){try{b();}catch{}u=!0,i(l.reason);}}),r.off=()=>{u||b();};}catch(m){i(m);}return r.off===void 0&&(r.off=s),r}events(t,{signal:n}={}){t=Array.isArray(t)?t:[t];for(const r of t)jc(r);return o5(this,t,{signal:n})}async emit(t,n){if(jc(t),js(t)){const m=tf.get(this)??0;if((ef.get(this)??0)===0||m===0)throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");tf.set(this,m-1);}js(t)||this.logIfDebugEnabled("emit",t,n);const r=arguments.length>1;r5(this,t,n,r);const o=Ra(this,t)??new Set,i=ks.get(this),s=[...o],l=js(t)?[]:[...i];await n5;const d=(await Promise.allSettled([...s.map(async m=>{if(o.has(m))return m(Ih(t,n,r))}),...l.map(async m=>{if(i.has(m))return m(Ih(t,n,r))})])).values().filter(m=>m.status==="rejected").map(m=>m.reason).toArray();if(d.length>0)throw new AggregateError(d,"One or more listeners threw an error")}async emitSerial(t,n){if(jc(t),js(t)){const u=tf.get(this)??0;if((ef.get(this)??0)===0||u===0)throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");tf.set(this,u-1);}js(t)||this.logIfDebugEnabled("emitSerial",t,n);const r=arguments.length>1;r5(this,t,n,r);const o=Ra(this,t)??new Set,i=ks.get(this),s=[...o],l=js(t)?[]:[...i];await n5;for(const u of s)o.has(u)&&await u(Ih(t,n,r));for(const u of l)i.has(u)&&await u(Ih(t,n,r));}onAny(t,{signal:n}={}){hb(t),this.logIfDebugEnabled("subscribeAny",void 0,void 0),ks.get(this).add(t),X0(this,m1,{listener:t});let r=()=>{};const o=()=>{r(),this.offAny(t);};return r=r0(n,o,{swallowErrors:true}),kx(o)}anyEvent({signal:t}={}){return o5(this,void 0,{signal:t})}offAny(t){hb(t),this.logIfDebugEnabled("unsubscribeAny",void 0,void 0),X0(this,h1,{listener:t}),ks.get(this).delete(t);}clearListeners(t){t=Array.isArray(t)?t:[t];const n=t.some(r=>!Oa(r));pk(this,t,()=>{const r=Symbol("no-error");let o=r;try{for(const i of t){try{this.logIfDebugEnabled("clear",i,void 0);}catch(s){o=o===r?s:o;}if(Oa(i)){const s=Ra(this,i),l=s?.size>0;s?.clear(),s5(this,i);const u=l?Jd.get(this).get(i):void 0;try{Uh(u);}catch(d){o=o===r?d:o;}}else {ks.get(this).clear(),zx(this);for(const[s,l]of Ui.get(this).entries()){const u=l.size>0;l.clear();const d=u?Jd.get(this).get(s):void 0;try{Uh(d);}catch(m){o=o===r?m:o;}l.clear(),Ui.get(this).delete(s);}ks.get(this).clear(),zx(this);}}}finally{if(n){ks.get(this).clear();for(const i of Ui.get(this).values())i.clear();Ui.get(this).clear(),zx(this);}else for(const i of t)Oa(i)&&(Ra(this,i)?.clear(),Ui.get(this).delete(i),s5(this,i));}if(o!==r)throw o});}init(t,n){if(jc(t),js(t))throw new TypeError("`eventName` cannot be a meta event");if(typeof n!="function")throw new TypeError("`initFn` must be a function");const r=Jd.get(this);if(r.has(t))throw new Error("`eventName` already has an init function registered");const o={initFn:n,deinitFn:void 0};if(r.set(t,o),Ra(this,t)?.size>0)try{const s=n();typeof s=="function"&&(o.deinitFn=s);}catch(s){throw r.delete(t),s}return kx(()=>{try{Uh(o);}finally{r.get(t)===o&&r.delete(t);}})}listenerCount(t){t=Array.isArray(t)?t:[t];let n=0;for(const r of t){if(Oa(r)){n+=ks.get(this).size+(Ra(this,r)?.size??0)+(yp(this,r)?.size??0)+(yp(this)?.size??0);continue}r!==void 0&&jc(r),n+=ks.get(this).size;for(const o of Ui.get(this).values())n+=o.size;for(const o of Yl.get(this).values())n+=o.size;}return n}bindMethods(t,n){if(!t||typeof t!="object")throw new TypeError("`target` must be an object");n=i5(n);for(const r of n){if(t[r]!==void 0)throw new Error(`The property \`${r}\` already exists on \`target\``);Object.defineProperty(t,r,{enumerable:false,value:this[r].bind(this)});}}}const g$=Object.getOwnPropertyNames(uo.prototype).filter(e=>e!=="constructor");Object.defineProperty(uo,"listenerAdded",{value:m1,writable:false,enumerable:true,configurable:false});Object.defineProperty(uo,"listenerRemoved",{value:h1,writable:false,enumerable:true,configurable:false});function Mt(e){const t=f.useRef(e);return t.current=e,f.useCallback((...r)=>t.current?.(...r),[])}function Ti(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}const a5=Ti()?f.useLayoutEffect:f.useEffect,Rn=(e,t)=>{const n=f.useRef(true);a5(()=>e(n.current),t),a5(()=>(n.current=false,()=>{n.current=true;}),[]);},o0=(e,t)=>{Rn(n=>{if(!n)return e()},t);},vk=e=>{const t=f.useRef(false),[n,r]=f.useState(e);f.useEffect(()=>(t.current=false,()=>{t.current=true;}),[]);function o(i,s){s&&t.current||r(i);}return [n,o]};function fn(e,t){const[n,r]=f.useState(e),o=t!==void 0?t:n;return Rn(i=>{i||r(t);},[t]),[o,r]}var Fx={exports:{}},Tn={};var l5;function EJ(){if(l5)return Tn;l5=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function S(C){if(typeof C=="object"&&C!==null){var w=C.$$typeof;switch(w){case e:switch(C=C.type,C){case n:case o:case r:case d:case m:return C;default:switch(C=C&&C.$$typeof,C){case l:case s:case u:case g:case p:case i:return C;default:return w}}case t:return w}}}return Tn.ContextConsumer=s,Tn.ContextProvider=i,Tn.Element=e,Tn.ForwardRef=u,Tn.Fragment=n,Tn.Lazy=g,Tn.Memo=p,Tn.Portal=t,Tn.Profiler=o,Tn.StrictMode=r,Tn.Suspense=d,Tn.SuspenseList=m,Tn.isAsyncMode=function(){return  false},Tn.isConcurrentMode=function(){return  false},Tn.isContextConsumer=function(C){return S(C)===s},Tn.isContextProvider=function(C){return S(C)===i},Tn.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},Tn.isForwardRef=function(C){return S(C)===u},Tn.isFragment=function(C){return S(C)===n},Tn.isLazy=function(C){return S(C)===g},Tn.isMemo=function(C){return S(C)===p},Tn.isPortal=function(C){return S(C)===t},Tn.isProfiler=function(C){return S(C)===o},Tn.isStrictMode=function(C){return S(C)===r},Tn.isSuspense=function(C){return S(C)===d},Tn.isSuspenseList=function(C){return S(C)===m},Tn.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===o||C===r||C===d||C===m||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===g||C.$$typeof===p||C.$$typeof===i||C.$$typeof===s||C.$$typeof===u||C.$$typeof===y||C.getModuleId!==void 0)},Tn.typeOf=S,Tn}var c5;function $J(){return c5||(c5=1,Fx.exports=EJ()),Fx.exports}var Hx=$J();function qf(e,t,n){const r=f.useRef({});return (!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}const MJ=Symbol.for("react.element"),TJ=Symbol.for("react.transitional.element"),AJ=Symbol.for("react.fragment");function bk(e){return e&&typeof e=="object"&&(e.$$typeof===MJ||e.$$typeof===TJ)&&e.type===AJ}const RJ=Number(f.version.split(".")[0]),NJ=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t);},Yr=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{NJ(r,n);});}},Ya=(...e)=>qf(()=>Yr(...e),e,(t,n)=>t.length!==n.length||t.every((r,o)=>r!==n[o])),Vu=e=>{if(!e)return  false;if(nT(e)&&RJ>=19)return  true;const t=Hx.isMemo(e)?e.type.type:e.type;return !(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==Hx.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==Hx.ForwardRef)};function nT(e){return f.isValidElement(e)&&!bk(e)}const PJ=e=>nT(e)&&Vu(e),hc=e=>{if(e&&nT(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function gs(e,t){let n=e;for(let r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function yk(e,t,n,r){if(!t.length)return n;const[o,...i]=t;let s;return !e&&typeof o=="number"?s=[]:Array.isArray(e)?s=[...e]:s={...e},r&&n===void 0&&i.length===1?delete s[o][i[0]]:s[o]=yk(s[o],i,n,r),s}function ji(e,t,n,r=false){return t.length&&r&&n===void 0&&!gs(e,t.slice(0,-1))?e:yk(e,t,n,r)}function IJ(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function u5(e){return Array.isArray(e)?[]:{}}const OJ=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Sk(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let o=u5(e[0]);return e.forEach(i=>{function s(l,u){const d=new Set(u),m=gs(i,l),p=Array.isArray(m);if(p||IJ(m)){if(!d.has(m)){d.add(m);const g=gs(o,l);p?o=ji(o,l,r(g,m)):(!g||typeof g!="object")&&(o=ji(o,l,u5(m))),OJ(m).forEach(b=>{Object.getOwnPropertyDescriptor(m,b).enumerable&&s([...l,b],d);});}}else o=ji(o,l,m);}s([]);}),o}function nf(...e){return Sk(e)}let v$={};const DJ=e=>{};function _J(e,t){}function LJ(e,t){}function BJ(){v$={};}function Ck(e,t,n){!t&&!v$[n]&&(e(false,n),v$[n]=true);}function Pr(e,t){Ck(_J,e,t);}function kJ(e,t){Ck(LJ,e,t);}Pr.preMessage=DJ;Pr.resetWarned=BJ;Pr.noteOnce=kJ;function kn(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete n[r];}),n}function ri(e,t={}){let n=[];return q.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ri(r)):bk(r)&&r.props?n=n.concat(ri(r.props.children,t)):n.push(r));}),n}const zJ=f.createContext({});function Mf(e){return e instanceof HTMLElement||e instanceof SVGElement}function Iu(e){return e&&typeof e=="object"&&Mf(e.nativeElement)?e.nativeElement:Mf(e)?e:null}const b$=f.createContext(null);function FJ({children:e,onBatchResize:t}){const n=f.useRef(0),r=f.useRef([]),o=f.useContext(b$),i=f.useCallback((s,l,u)=>{n.current+=1;const d=n.current;r.current.push({size:s,element:l,data:u}),Promise.resolve().then(()=>{d===n.current&&(t?.(r.current),r.current=[]);}),o?.(s,l,u);},[t,o]);return f.createElement(b$.Provider,{value:i},e)}const jl=new Map;function HJ(e){e.forEach(t=>{const{target:n}=t;jl.get(n)?.forEach(r=>r(n));});}let Vx;function xk(){return Vx||(Vx=new ResizeObserver(HJ)),Vx}function VJ(e,t){jl.has(e)||(jl.set(e,new Set),xk().observe(e)),jl.get(e).add(t);}function jJ(e,t){jl.has(e)&&(jl.get(e).delete(t),jl.get(e).size||(xk().unobserve(e),jl.delete(e)));}function wk(e,t,n,r){const o=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),i=Mt(l=>{const{width:u,height:d}=l.getBoundingClientRect(),{offsetWidth:m,offsetHeight:p}=l,g=Math.floor(u),b=Math.floor(d);if(o.current.width!==g||o.current.height!==b||o.current.offsetWidth!==m||o.current.offsetHeight!==p){const y={width:g,height:b,offsetWidth:m,offsetHeight:p};o.current=y;const S=m===Math.round(u)?u:m,C=p===Math.round(d)?d:p,w={...y,offsetWidth:S,offsetHeight:C};r?.(w,l),Promise.resolve().then(()=>{n?.(w,l);});}}),s=typeof t=="function";f.useEffect(()=>{const l=s?t():t;return l&&e&&VJ(l,i),()=>{l&&jJ(l,i);}},[e,s?0:t]);}function UJ(e,t){const{children:n,disabled:r,onResize:o,data:i}=e,s=f.useRef(null),l=f.useContext(b$),u=typeof n=="function",d=u?n(s):n,m=!u&&f.isValidElement(d)&&Vu(d),p=m?hc(d):null,g=Ya(p,s),b=()=>Iu(s.current);return f.useImperativeHandle(t,()=>b()),wk(!r,b,o,(y,S)=>{l?.(y,S,i);}),m?f.cloneElement(d,{ref:g}):d}const WJ=f.forwardRef(UJ);function y$(){return y$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},y$.apply(this,arguments)}const GJ="rc-observer-key";function qJ(e,t){const{children:n}=e;return (typeof n=="function"?[n]:ri(n)).map((o,i)=>{const s=o?.key||`${GJ}-${i}`;return f.createElement(WJ,y$({},e,{key:s,ref:i===0?t:void 0}),o)})}const ys=f.forwardRef(qJ);ys.Collection=FJ;function Ek(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ek(e[t]))&&(r&&(r+=" "),r+=n);}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function X(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ek(e))&&(r&&(r+=" "),r+=t);return r}function S$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function KJ(e){if(Array.isArray(e))return S$(e)}function YJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rT(e,t){if(e){if(typeof e=="string")return S$(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S$(e,t):void 0}}function XJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zt(e){return KJ(e)||YJ(e)||rT(e)||XJ()}let $k=e=>+setTimeout(e,16),Mk=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&($k=e=>window.requestAnimationFrame(e),Mk=e=>window.cancelAnimationFrame(e));let d5=0;const oT=new Map;function Tk(e){oT.delete(e);}const _t=(e,t=1)=>{d5+=1;const n=d5;function r(o){if(o===0)Tk(n),e();else {const i=$k(()=>{r(o-1);});oT.set(n,i);}}return r(t),n};_t.cancel=e=>{const t=oT.get(e);return Tk(e),Mk(t)};function QJ(e){let t=null;const n=o=>()=>{t=null,e.apply(void 0,Zt(o));},r=(...o)=>{t===null&&(t=_t(n(o)));};return r.cancel=()=>{_t.cancel(t),t=null;},r}const Sp="ant",p1="anticon",ZJ=["outlined","borderless","filled","underlined"],JJ=(e,t)=>t||(e?`${Sp}-${e}`:Sp),wt=f.createContext({getPrefixCls:JJ,iconPrefixCls:p1}),{Consumer:FIe}=wt,f5={};function jt(e){const t=f.useContext(wt),{getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:i}=t,s=t[e];return {classNames:f5,styles:f5,...s,getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:i}}function Cp(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function C$(e,t){if(!e)return  false;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return  true;n=n.parentNode;}return  false}const m5="data-rc-order",h5="data-rc-priority",eee="rc-util-key",x$=new Map;function Ak({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:eee}function g1(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function tee(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function iT(e){return Array.from((x$.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Rk(e,t={}){if(!Ti())return null;const{csp:n,prepend:r,priority:o=0}=t,i=tee(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(m5,i),s&&o&&l.setAttribute(h5,`${o}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const u=g1(t),{firstChild:d}=u;if(r){if(s){const m=(t.styles||iT(u)).filter(p=>{if(!["prepend","prependQueue"].includes(p.getAttribute(m5)))return  false;const g=Number(p.getAttribute(h5)||0);return o>=g});if(m.length)return u.insertBefore(l,m[m.length-1].nextSibling),l}u.insertBefore(l,d);}else u.appendChild(l);return l}function Nk(e,t={}){let{styles:n}=t;return n||=iT(g1(t)),n.find(r=>r.getAttribute(Ak(t))===e)}function xp(e,t={}){const n=Nk(e,t);n&&g1(t).removeChild(n);}function nee(e,t){const n=x$.get(e);if(!n||!C$(document,n)){const r=Rk("",t),{parentNode:o}=r;x$.set(e,o),e.removeChild(r);}}function Xl(e,t,n={}){const r=g1(n),o=iT(r),i={...n,styles:o};nee(r,i);const s=Nk(t,i);if(s)return i.csp?.nonce&&s.nonce!==i.csp?.nonce&&(s.nonce=i.csp?.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;const l=Rk(e,i);return l.setAttribute(Ak(i),t),l}function ec(e,t,n=false){const r=new Set;function o(i,s,l=1){const u=r.has(i);if(Pr(!u,"Warning: There may be circular references"),u)return  false;if(i===s)return  true;if(n&&l>1)return  false;r.add(i);const d=l+1;if(Array.isArray(i)){if(!Array.isArray(s)||i.length!==s.length)return  false;for(let m=0;m<i.length;m++)if(!o(i[m],s[m],d))return  false;return  true}if(i&&s&&typeof i=="object"&&typeof s=="object"){const m=Object.keys(i);return m.length!==Object.keys(s).length?false:m.every(p=>o(i[p],s[p],d))}return  false}return o(e,t)}const ree="%";function w$(e){return e.join(ree)}let p5=0;class oee{instanceId;constructor(t){this.instanceId=t;}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(w$(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate(w$(t),n)}opUpdate(t,n){const r=this.cache.get(t),o=n(r);o===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,o),this.updateTimes.set(t,p5),p5+=1);}}const iee={},sT="data-token-hash",ka="data-css-hash",pu="__cssinjs_instance__";function Pk(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${ka}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(o=>{o[pu]||=e,o[pu]===e&&document.head.insertBefore(o,n);});const r={};Array.from(document.querySelectorAll(`style[${ka}]`)).forEach(o=>{const i=o.getAttribute(ka);r[i]?o[pu]===e&&o.parentNode?.removeChild(o):r[i]=true;});}return new oee(e)}const Ou=f.createContext({hashPriority:"low",cache:Pk(),defaultCache:true,autoPrefix:false}),see=e=>{const{children:t,...n}=e,r=f.useContext(Ou),o=qf(()=>{const i={...r};Object.keys(n).forEach(u=>{const d=n[u];n[u]!==void 0&&(i[u]=d);});const{cache:s,transformers:l=[]}=n;return i.cache=i.cache||Pk(),i.defaultCache=!s&&r.defaultCache,l.includes(iee)&&(i.autoPrefix=true),i},[r,n],(i,s)=>!ec(i[0],s[0],true)||!ec(i[1],s[1],true));return f.createElement(Ou.Provider,{value:o},t)};function aee(e,t){if(e.length!==t.length)return  false;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return  false;return  true}class Q0{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}size(){return this.keys.length}internalGet(t,n=false){let r={map:this.cache};return t.forEach(o=>{r?r=r?.map?.get(o):r=void 0;}),r?.value&&n&&(r.value[1]=this.cacheCallTimes++),r?.value}get(t){return this.internalGet(t,true)?.[0]}has(t){return !!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>Q0.MAX_CACHE_SIZE+Q0.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((i,s)=>{const[,l]=i;return this.internalGet(s)[1]<l?[s,this.internalGet(s)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(o);}this.keys.push(t);}let r=this.cache;t.forEach((o,i)=>{if(i===t.length-1)r.set(o,{value:[n,this.cacheCallTimes++]});else {const s=r.get(o);s?s.map||(s.map=new Map):r.set(o,{map:new Map}),r=r.get(o).map;}});}deleteByPath(t,n){const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),r.value?.[0];const o=this.deleteByPath(r.map,n.slice(1));return (!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),o}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!aee(n,t)),this.deleteByPath(this.cache,t)}}let g5=0;class Ik{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=g5,t.length===0&&(t.length>0,void 0),g5+=1;}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const jx=new Q0;function Z0(e){const t=Array.isArray(e)?e:[e];return jx.has(t)||jx.set(t,new Ik(t)),jx.get(t)}const lee=new WeakMap,Ux={};function cee(e,t){let n=lee;for(let r=0;r<t.length;r+=1){const o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o);}return n.has(Ux)||n.set(Ux,e()),n.get(Ux)}const v5=new WeakMap;function Wh(e){let t=v5.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof Ik?t+=r.id:r&&typeof r=="object"?t+=Wh(r):t+=r;}),t=Cp(t),v5.set(e,t)),t}function uee(e,t){return Cp(`${t}_${Wh(e)}`)}const E$=Ti();function oe(e){return typeof e=="number"?`${e}px`:e}function Ok(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return "";const r=`.${t}`;return n==="low"?`:where(${r})`:r}const dee=e=>e!=null;function aT(e,t){const n=typeof t=="function"?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}const i0=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),fee=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",scope:i}=n||{};if(!Object.keys(e).length)return "";const s=`${Ok({hashCls:r,hashPriority:o})}.${t}`,l=[i].flat().filter(Boolean);return `${l.length?l.map(d=>`${s}.${d}`).join(", "):s}{${Object.entries(e).map(([d,m])=>`${d}:${m};`).join("")}}`},Dk=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",prefix:i,unitless:s,ignore:l,preserve:u}=n||{},d={},m={};return Object.entries(e).forEach(([p,g])=>{if(u?.[p])m[p]=g;else if((typeof g=="string"||typeof g=="number")&&!l?.[p]){const b=i0(p,i);d[b]=typeof g=="number"&&!s?.[p]?`${g}px`:String(g),m[p]=`var(${b})`;}}),[m,fee(d,t,{scope:n?.scope,hashCls:r,hashPriority:o})]},pb=new Map;function lT(e,t,n,r,o){const{cache:i}=f.useContext(Ou),s=[e,...t],l=w$(s),u=p=>{i.opUpdate(l,g=>{const[b=0,y]=g||[void 0,void 0],C=y||n(),w=[b,C];return p?p(w):w});};f.useMemo(()=>{u();},[l]);const m=i.opGet(l)[1];return f.useInsertionEffect(()=>(u(([p,g])=>[p+1,g]),pb.has(l)||(o?.(m),pb.set(l,true),Promise.resolve().then(()=>{pb.delete(l);})),()=>{i.opUpdate(l,p=>{const[g=0,b]=p||[];return g-1===0?(r?.(b,false),pb.delete(l),null):[g-1,b]});}),[l]),m}const mee={},hee="css",tu=new Map;function pee(e){tu.set(e,(tu.get(e)||0)+1);}function gee(e,t){typeof document<"u"&&document.querySelectorAll(`style[${sT}="${e}"]`).forEach(r=>{r[pu]===t&&r.parentNode?.removeChild(r);});}const vee=-1;function bee(e,t){tu.set(e,(tu.get(e)||0)-1);const n=new Set;tu.forEach((r,o)=>{r<=0&&n.add(o);}),tu.size-n.size>vee&&n.forEach(r=>{gee(r,t),tu.delete(r);});}const _k=(e,t,n,r)=>{let i={...n.getDerivativeToken(e),...t};return r&&(i=r(i)),i},yee="token";function See(e,t,n){const{cache:{instanceId:r},container:o,hashPriority:i}=f.useContext(Ou),{salt:s="",override:l=mee,formatToken:u,getComputedToken:d,cssVar:m,nonce:p}=n,g=cee(()=>Object.assign({},...t),t),b=Wh(g),y=Wh(l),S=Wh(m);return lT(yee,[s,e.id,b,y,S],()=>{const w=d?d(g,l,e):_k(g,l,e,u),E={...w},M=`${s}_${m.prefix}`,T=Cp(M),A=`${hee}-${T}`;E._tokenKey=uee(E,M);const[I,N]=Dk(w,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve,hashPriority:i,hashCls:m.hashed?A:void 0});return I._hashId=T,pee(m.key),[I,A,E,N,m.key]},([,,,,w])=>{bee(w,r);},([,,,w,E])=>{if(!w)return;let M={mark:ka,prepend:"queue",attachTo:o,priority:-999};M=aT(M,p);const T=Xl(w,Cp(`css-var-${E}`),M);T[pu]=r,T.setAttribute(sT,E);})}var Cee={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Kn="-ms-",Gh="-moz-",wn="-webkit-",Lk="comm",cT="rule",uT="decl",xee="@import",wee="@namespace",Bk="@keyframes",Eee="@layer",kk=Math.abs,dT=String.fromCharCode,$$=Object.assign;function $ee(e,t){return Dr(e,0)^45?(((t<<2^Dr(e,0))<<2^Dr(e,1))<<2^Dr(e,2))<<2^Dr(e,3):0}function zk(e){return e.trim()}function Aa(e,t){return (e=t.exec(e))?e[0]:e}function Xt(e,t,n){return e.replace(t,n)}function s0(e,t,n){return e.indexOf(t,n)}function Dr(e,t){return e.charCodeAt(t)|0}function Du(e,t,n){return e.slice(t,n)}function ms(e){return e.length}function Fk(e){return e.length}function Oh(e,t){return t.push(e),e}function Mee(e,t){return e.map(t).join("")}function b5(e,t){return e.filter(function(n){return !Aa(n,t)})}var v1=1,Tf=1,Hk=0,Zi=0,Mr=0,Kf="";function b1(e,t,n,r,o,i,s,l){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:v1,column:Tf,length:s,return:"",siblings:l}}function Dl(e,t){return $$(b1("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ld(e){for(;e.root;)e=Dl(e.root,{children:[e]});Oh(e,e.siblings);}function Tee(){return Mr}function Aee(){return Mr=Zi>0?Dr(Kf,--Zi):0,Tf--,Mr===10&&(Tf=1,v1--),Mr}function Ss(){return Mr=Zi<Hk?Dr(Kf,Zi++):0,Tf++,Mr===10&&(Tf=1,v1++),Mr}function Ul(){return Dr(Kf,Zi)}function a0(){return Zi}function y1(e,t){return Du(Kf,e,t)}function wp(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ree(e){return v1=Tf=1,Hk=ms(Kf=e),Zi=0,[]}function Nee(e){return Kf="",e}function Wx(e){return zk(y1(Zi-1,M$(e===91?e+2:e===40?e+1:e)))}function Pee(e){for(;(Mr=Ul())&&Mr<33;)Ss();return wp(e)>2||wp(Mr)>3?"":" "}function Iee(e,t){for(;--t&&Ss()&&!(Mr<48||Mr>102||Mr>57&&Mr<65||Mr>70&&Mr<97););return y1(e,a0()+(t<6&&Ul()==32&&Ss()==32))}function M$(e){for(;Ss();)switch(Mr){case e:return Zi;case 34:case 39:e!==34&&e!==39&&M$(Mr);break;case 40:e===41&&M$(e);break;case 92:Ss();break}return Zi}function Oee(e,t){for(;Ss()&&e+Mr!==57;)if(e+Mr===84&&Ul()===47)break;return "/*"+y1(t,Zi-1)+"*"+dT(e===47?e:Ss())}function Dee(e){for(;!wp(Ul());)Ss();return y1(e,Zi)}function y5(e){return Nee(l0("",null,null,null,[""],e=Ree(e),0,[0],e))}function l0(e,t,n,r,o,i,s,l,u){for(var d=0,m=0,p=s,g=0,b=0,y=0,S=1,C=1,w=1,E=0,M="",T=o,A=i,I=r,N=M;C;)switch(y=E,E=Ss()){case 40:if(y!=108&&Dr(N,p-1)==58){s0(N+=Xt(Wx(E),"&","&\f"),"&\f",kk(d?l[d-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:N+=Wx(E);break;case 9:case 10:case 13:case 32:N+=Pee(y);break;case 92:N+=Iee(a0()-1,7);continue;case 47:switch(Ul()){case 42:case 47:Oh(_ee(Oee(Ss(),a0()),t,n,u),u),(wp(y||1)==5||wp(Ul()||1)==5)&&ms(N)&&Du(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/";}break;case 123*S:l[d++]=ms(N)*w;case 125*S:case 59:case 0:switch(E){case 0:case 125:C=0;case 59+m:w==-1&&(N=Xt(N,/\f/g,"")),b>0&&(ms(N)-p||S===0&&y===47)&&Oh(b>32?C5(N+";",r,n,p-1,u):C5(Xt(N," ","")+";",r,n,p-2,u),u);break;case 59:N+=";";default:if(Oh(I=S5(N,t,n,d,m,o,l,M,T=[],A=[],p,i),i),E===123)if(m===0)l0(N,t,I,I,T,i,p,l,A);else {switch(g){case 99:if(Dr(N,3)===110)break;case 108:if(Dr(N,2)===97)break;default:m=0;case 100:case 109:case 115:}m?l0(e,I,I,r&&Oh(S5(e,I,I,0,0,o,l,M,o,T=[],p,A),A),o,A,p,l,r?T:A):l0(N,I,I,I,[""],A,0,l,A);}}d=m=b=0,S=w=1,M=N="",p=s;break;case 58:p=1+ms(N),b=y;default:if(S<1){if(E==123)--S;else if(E==125&&S++==0&&Aee()==125)continue}switch(N+=dT(E),E*S){case 38:w=m>0?1:(N+="\f",-1);break;case 44:l[d++]=(ms(N)-1)*w,w=1;break;case 64:Ul()===45&&(N+=Wx(Ss())),g=Ul(),m=p=ms(M=N+=Dee(a0())),E++;break;case 45:y===45&&ms(N)==2&&(S=0);}}return i}function S5(e,t,n,r,o,i,s,l,u,d,m,p){for(var g=o-1,b=o===0?i:[""],y=Fk(b),S=0,C=0,w=0;S<r;++S)for(var E=0,M=Du(e,g+1,g=kk(C=s[S])),T=e;E<y;++E)(T=zk(C>0?b[E]+" "+M:Xt(M,/&\f/g,b[E])))&&(u[w++]=T);return b1(e,t,n,o===0?cT:l,u,d,m,p)}function _ee(e,t,n,r){return b1(e,t,n,Lk,dT(Tee()),Du(e,2,-2),0,r)}function C5(e,t,n,r,o){return b1(e,t,n,uT,Du(e,0,r),Du(e,r+1,-1),r,o)}function Vk(e,t,n){switch($ee(e,t)){case 5103:return wn+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return wn+e+e;case 4855:return wn+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Gh+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return wn+e+Gh+e+Kn+e+e;case 5936:switch(Dr(e,t+11)){case 114:return wn+e+Kn+Xt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return wn+e+Kn+Xt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return wn+e+Kn+Xt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return wn+e+Kn+e+e;case 6165:return wn+e+Kn+"flex-"+e+e;case 5187:return wn+e+Xt(e,/(\w+).+(:[^]+)/,wn+"box-$1$2"+Kn+"flex-$1$2")+e;case 5443:return wn+e+Kn+"flex-item-"+Xt(e,/flex-|-self/g,"")+(Aa(e,/flex-|baseline/)?"":Kn+"grid-row-"+Xt(e,/flex-|-self/g,""))+e;case 4675:return wn+e+Kn+"flex-line-pack"+Xt(e,/align-content|flex-|-self/g,"")+e;case 5548:return wn+e+Kn+Xt(e,"shrink","negative")+e;case 5292:return wn+e+Kn+Xt(e,"basis","preferred-size")+e;case 6060:return wn+"box-"+Xt(e,"-grow","")+wn+e+Kn+Xt(e,"grow","positive")+e;case 4554:return wn+Xt(e,/([^-])(transform)/g,"$1"+wn+"$2")+e;case 6187:return Xt(Xt(Xt(e,/(zoom-|grab)/,wn+"$1"),/(image-set)/,wn+"$1"),e,"")+e;case 5495:case 3959:return Xt(e,/(image-set\([^]*)/,wn+"$1$`$1");case 4968:return Xt(Xt(e,/(.+:)(flex-)?(.*)/,wn+"box-pack:$3"+Kn+"flex-pack:$3"),/space-between/,"justify")+wn+e+e;case 4200:if(!Aa(e,/flex-|baseline/))return Kn+"grid-column-align"+Du(e,t)+e;break;case 2592:case 3360:return Kn+Xt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Aa(r.props,/grid-\w+-end/)})?~s0(e+(n=n[t].value),"span",0)?e:Kn+Xt(e,"-start","")+e+Kn+"grid-row-span:"+(~s0(n,"span",0)?Aa(n,/\d+/):+Aa(n,/\d+/)-+Aa(e,/\d+/))+";":Kn+Xt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Aa(r.props,/grid-\w+-start/)})?e:Kn+Xt(Xt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Xt(e,/(.+)-inline(.+)/,wn+"$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(ms(e)-1-t>6)switch(Dr(e,t+1)){case 109:if(Dr(e,t+4)!==45)break;case 102:return Xt(e,/(.+:)(.+)-([^]+)/,"$1"+wn+"$2-$3$1"+Gh+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~s0(e,"stretch",0)?Vk(Xt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Xt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,l,u,d){return Kn+o+":"+i+d+(s?Kn+o+"-span:"+(l?u:+u-+i)+d:"")+e});case 4949:if(Dr(e,t+6)===121)return Xt(e,":",":"+wn)+e;break;case 6444:switch(Dr(e,Dr(e,14)===45?18:11)){case 120:return Xt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+wn+(Dr(e,14)===45?"inline-":"")+"box$3$1"+wn+"$2$3$1"+Kn+"$2box$3")+e;case 100:return Xt(e,":",":"+Kn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Xt(e,"scroll-","scroll-snap-")+e}return e}function Ep(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function x5(e,t,n,r){switch(e.type){case Eee:if(e.children.length)break;case xee:case wee:case uT:return e.return=e.return||e.value;case Lk:return "";case Bk:return e.return=e.value+"{"+Ep(e.children,r)+"}";case cT:if(!ms(e.value=e.props.join(",")))return ""}return ms(n=Ep(e.children,r))?e.return=e.value+"{"+n+"}":""}function Lee(e){var t=Fk(e);return function(n,r,o,i){for(var s="",l=0;l<t;l++)s+=e[l](n,r,o,i)||"";return s}}function Bee(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case uT:e.return=Vk(e.value,e.length,n);return;case Bk:return Ep([Dl(e,{value:Xt(e.value,"@","@"+wn)})],r);case cT:if(e.length)return Mee(n=e.props,function(o){switch(Aa(o,r=/(::plac\w+|:read-\w+)/)){case ":read-only":case ":read-write":Ld(Dl(e,{props:[Xt(o,/:(read-\w+)/,":"+Gh+"$1")]})),Ld(Dl(e,{props:[o]})),$$(e,{props:b5(n,r)});break;case "::placeholder":Ld(Dl(e,{props:[Xt(o,/:(plac\w+)/,":"+wn+"input-$1")]})),Ld(Dl(e,{props:[Xt(o,/:(plac\w+)/,":"+Gh+"$1")]})),Ld(Dl(e,{props:[Xt(o,/:(plac\w+)/,Kn+"input-$1")]})),Ld(Dl(e,{props:[o]})),$$(e,{props:b5(n,r)});break}return ""})}}const w5="data-ant-cssinjs-cache-path",jk="_FILE_STYLE__";let gu,Uk=true;function kee(){if(!gu&&(gu={},Ti())){const e=document.createElement("div");e.className=w5,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(r=>{const[o,i]=r.split(":");gu[o]=i;});const n=document.querySelector(`style[${w5}]`);n&&(Uk=false,n.parentNode?.removeChild(n)),document.body.removeChild(e);}}function zee(e){return kee(),!!gu[e]}function Fee(e){const t=gu[e];let n=null;if(t&&Ti())if(Uk)n=jk;else {const r=document.querySelector(`style[${ka}="${gu[e]}"]`);r?n=r.innerHTML:delete gu[e];}return [n,t]}const Hee="_skip_check_",Wk="_multi_value_";function Gx(e,t){return (t?Ep(y5(e),Lee([Bee,x5])):Ep(y5(e),x5)).replace(/\{%%%\:[^;];}/g,";")}function Vee(e){return typeof e=="object"&&e&&(Hee in e||Wk in e)}function E5(e,t,n="high"){if(!t)return e;const r=Ok({hashCls:t,hashPriority:n});return e.split(",").map(i=>{const s=i.trim().split(/\s+/);let l=s[0]||"";const u=l.match(/^\w+/)?.[0]||"";return l=`${u}${r}${l.slice(u.length)}`,[l,...s.slice(1)].join(" ")}).join(",")}const T$=(e,t={},{root:n,injectHash:r,parentSelectors:o}={root:true,parentSelectors:[]})=>{const{hashId:i,layer:s,path:l,hashPriority:u,transformers:d=[],linters:m=[]}=t;let p="",g={};function b(C){const w=C.getName(i);if(!g[w]){const[E]=T$(C.style,t,{root:false,parentSelectors:o});g[w]=`@keyframes ${C.getName(i)}${E}`;}}function y(C,w=[]){return C.forEach(E=>{Array.isArray(E)?y(E,w):E&&w.push(E);}),w}return y(Array.isArray(e)?e:[e]).forEach(C=>{const w=typeof C=="string"&&!n?{}:C;if(typeof w=="string")p+=`${w}
`;else if(w._keyframe)b(w);else {const E=d.reduce((M,T)=>T?.visit?.(M)||M,w);Object.keys(E).forEach(M=>{const T=E[M];if(typeof T=="object"&&T&&(M!=="animationName"||!T._keyframe)&&!Vee(T)){let A=false,I=M.trim(),N=false;(n||r)&&i?I.startsWith("@")?A=true:I==="&"?I=E5("",i,u):I=E5(M,i,u):n&&!i&&(I==="&"||I==="")&&(I="",N=true);const[P,O]=T$(T,t,{root:N,injectHash:A,parentSelectors:[...o,I]});g={...g,...O},p+=`${I}${P}`;}else {let A=function(N,P){const O=N.replace(/[A-Z]/g,L=>`-${L.toLowerCase()}`);let D=P;!Cee[N]&&typeof D=="number"&&D!==0&&(D=`${D}px`),N==="animationName"&&P?._keyframe&&(b(P),D=P.getName(i)),p+=`${O}:${D};`;};const I=T?.value??T;typeof T=="object"&&T?.[Wk]&&Array.isArray(I)?I.forEach(N=>{A(M,N);}):dee(I)&&A(M,I);}});}}),n?s&&(p&&(p=`@layer ${s.name} {${p}}`),s.dependencies&&(g[`@layer ${s.name}`]=s.dependencies.map(C=>`@layer ${C}, ${s.name};`).join(`
`))):p=`{${p}}`,[p,g]};function Gk(e,t){return Cp(`${e.join("%")}${t}`)}const jee="style";function A$(e,t){const{path:n,hashId:r,layer:o,nonce:i,clientOnly:s,order:l=0}=e,{mock:u,hashPriority:d,container:m,transformers:p,linters:g,cache:b,layer:y,autoPrefix:S}=f.useContext(Ou),C=[r||""];y&&C.push("layer"),C.push(...n);let w=E$;lT(jee,C,()=>{const E=C.join("|");if(zee(E)){const[P,O]=Fee(E);if(P)return [P,O,{},s,l]}const M=t(),[T,A]=T$(M,{hashId:r,hashPriority:d,layer:y?o:void 0,path:n.join("-"),transformers:p,linters:g}),I=Gx(T,S||false),N=Gk(C,I);return [I,N,A,s,l]},(E,M)=>{const[,T]=E;M&&E$&&xp(T,{mark:ka,attachTo:m});},E=>{const[M,T,A,,I]=E;if(w&&M!==jk){let N={mark:ka,prepend:y?false:"queue",attachTo:m,priority:I};N=aT(N,i);const P=[],O=[];Object.keys(A).forEach(L=>{L.startsWith("@layer")?P.push(L):O.push(L);}),P.forEach(L=>{Xl(Gx(A[L],S||false),`_layer-${L}`,{...N,prepend:true});});const D=Xl(M,T,N);D[pu]=b.instanceId,O.forEach(L=>{Xl(Gx(A[L],S||false),`_effect-${L}`,N);});}});}const Uee="cssVar",Wee=(e,t)=>{const{key:n,prefix:r,unitless:o,ignore:i,token:s,hashId:l,scope:u,nonce:d}=e,{cache:{instanceId:m},container:p,hashPriority:g}=f.useContext(Ou),{_tokenKey:b}=s,y=Array.isArray(u)?u.join("@@"):u,S=[...e.path,n,y,b];return lT(Uee,S,()=>{const w=t(),[E,M]=Dk(w,n,{prefix:r,unitless:o,ignore:i,scope:u,hashPriority:g,hashCls:l}),T=Gk(S,M);return [E,M,T,n]},([,,w])=>{E$&&xp(w,{mark:ka,attachTo:p});},([,w,E])=>{if(!w)return;let M={mark:ka,prepend:"queue",attachTo:p,priority:-999};M=aT(M,d);const T=Xl(w,E,M);T[pu]=m,T.setAttribute(sT,n);})};class Bt{name;style;constructor(t,n){this.name=t,this.style=n;}getName(t=""){return t?`${t}-${this.name}`:this.name}_keyframe=true}function Bd(e){return e.notSplit=true,e}Bd(["borderTop","borderBottom"]),Bd(["borderTop"]),Bd(["borderBottom"]),Bd(["borderLeft","borderRight"]),Bd(["borderLeft"]),Bd(["borderRight"]);function Ar(e){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ar(e)}function Gee(e){if(Array.isArray(e))return e}function qee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,l=[],u=true,d=false;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1;}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(m){d=true,o=m;}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return l}}function Kee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fT(e,t){return Gee(e)||qee(e,t)||rT(e,t)||Kee()}function Yee(e,t){if(Ar(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ar(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function qk(e){var t=Yee(e,"string");return Ar(t)=="symbol"?t:t+""}function Ct(e,t,n){return (t=qk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function $5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r);}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$5(Object(n),true).forEach(function(r){Ct(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function rs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M5(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false,r.configurable=true,"value"in r&&(r.writable=true),Object.defineProperty(e,qk(r.key),r);}}function os(e,t,n){return t&&M5(e.prototype,t),n&&M5(e,n),Object.defineProperty(e,"prototype",{writable:false}),e}function pf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $p(e,t){return $p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},$p(e,t)}function Kk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}}),Object.defineProperty(e,"prototype",{writable:false}),t&&$p(e,t);}function Mp(e){return Mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mp(e)}function mT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (mT=function(){return !!e})()}function Xee(e,t){if(t&&(Ar(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pf(e)}function Yk(e){var t=mT();return function(){var n,r=Mp(e);if(t){var o=Mp(this).constructor;n=Reflect.construct(r,arguments,o);}else n=r.apply(this,arguments);return Xee(this,n)}}var Qee=os(function e(){rs(this,e);}),Xk="CALC_UNIT",Zee=new RegExp(Xk,"g");function qx(e){return typeof e=="number"?"".concat(e).concat(Xk):e}var Jee=(function(e){Kk(n,e);var t=Yk(n);function n(r,o){var i;rs(this,n),i=t.call(this),Ct(pf(i),"result",""),Ct(pf(i),"unitlessCssVar",void 0),Ct(pf(i),"lowPriority",void 0);var s=Ar(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):s==="number"?i.result=qx(r):s==="string"&&(i.result=r),i}return os(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(qx(o))),this.lowPriority=true,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(qx(o))),this.lowPriority=true,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(true)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=false,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(true)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=false,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,s=o||{},l=s.unit,u=true;return typeof l=="boolean"?u=l:Array.from(this.unitlessCssVar).some(function(d){return i.result.includes(d)})&&(u=false),this.result=this.result.replace(Zee,u?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(Qee),ete=function(t,n){var r=Jee;return function(o){return new r(o,n)}},T5=function(t,n){return "".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function A5(e,t,n,r){var o=rr({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(l){var u=fT(l,2),d=u[0],m=u[1];if(o!=null&&o[d]||o!=null&&o[m]){var p;(p=o[m])!==null&&p!==void 0||(o[m]=o?.[d]);}});}var s=rr(rr({},n),o);return Object.keys(s).forEach(function(l){s[l]===t[l]&&delete s[l];}),s}var Qk=typeof CSSINJS_STATISTIC<"u",R$=true;function zt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Qk)return Object.assign.apply(Object,[{}].concat(t));R$=false;var r={};return t.forEach(function(o){if(Ar(o)==="object"){var i=Object.keys(o);i.forEach(function(s){Object.defineProperty(r,s,{configurable:true,enumerable:true,get:function(){return o[s]}});});}}),R$=true,r}var R5={};function tte(){}var nte=function(t){var n,r=t,o=tte;return Qk&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(s,l){if(R$){var u;(u=n)===null||u===void 0||u.add(l);}return s[l]}}),o=function(s,l){var u;R5[s]={global:Array.from(n),component:rr(rr({},(u=R5[s])===null||u===void 0?void 0:u.component),l)};}),{token:r,keys:n,flush:o}};function N5(e,t,n){if(typeof n=="function"){var r;return n(zt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function rte(e){return {max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return "max(".concat(r.map(function(i){return oe(i)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return "min(".concat(r.map(function(i){return oe(i)}).join(","),")")}}}var ote=1e3*60*10,ite=(function(){function e(){rs(this,e),Ct(this,"map",new Map),Ct(this,"objectIDMap",new WeakMap),Ct(this,"nextID",0),Ct(this,"lastAccessBeat",new Map),Ct(this,"accessBeat",0);}return os(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now());}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(i){return i&&Ar(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(Ar(i),"_").concat(i)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,i){r-o>ote&&(n.map.delete(i),n.lastAccessBeat.delete(i));}),this.accessBeat=0;}}}]),e})(),P5=new ite;function ste(e,t){return q.useMemo(function(){var n=P5.get(t);if(n)return n;var r=e();return P5.set(t,r),r},t)}var ate=function(){return {}};function lte(e){var t=e.useCSP,n=t===void 0?ate:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,s=e.getCommonStyle,l=e.getCompUnitless;function u(g,b,y,S){var C=Array.isArray(g)?g[0]:g;function w(P){return "".concat(String(C)).concat(P.slice(0,1).toUpperCase()).concat(P.slice(1))}var E=S?.unitless||{},M=typeof l=="function"?l(g):{},T=rr(rr({},M),{},Ct({},w("zIndexPopup"),true));Object.keys(E).forEach(function(P){T[w(P)]=E[P];});var A=rr(rr({},S),{},{unitless:T,prefixToken:w}),I=m(g,b,y,A),N=d(C,y,A);return function(P){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P,D=I(P,O),L=S?.extraCssVarPrefixCls,F=typeof L=="function"?L({prefixCls:P,rootCls:O}):L,U=N(F!=null&&F.length?[O].concat(Zt(F)):O);return [D,U]}}function d(g,b,y){var S=y.unitless,C=y.prefixToken,w=y.ignore;return function(E){var M=r(),T=M.cssVar,A=M.realToken,I=n();return Wee({path:[g],prefix:T.prefix,key:T.key,unitless:S,ignore:w,token:A,scope:E,nonce:function(){return I.nonce}},function(){var N=N5(g,A,b),P=A5(g,A,N,{deprecatedTokens:y?.deprecatedTokens});return N&&Object.keys(N).forEach(function(O){P[C(O)]=P[O],delete P[O];}),P}),T?.key}}function m(g,b,y){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=Array.isArray(g)?g:[g,g],w=fT(C,1),E=w[0],M=C.join("-"),T=e.layer||{name:"antd"};return function(A){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A,N=r(),P=N.theme,O=N.realToken,D=N.hashId,L=N.token,F=N.cssVar,U=N.zeroRuntime,W=f.useMemo(function(){return U},[]);if(W)return D;var z=o(),k=z.rootPrefixCls,G=z.iconPrefixCls,j=n(),K="css",Q=ste(function(){var ee=new Set;return Object.keys(S.unitless||{}).forEach(function(te){ee.add(i0(te,F.prefix)),ee.add(i0(te,T5(E,F.prefix)));}),ete(K,ee)},[K,E,F?.prefix]),_=rte(),B=_.max,Y=_.min,J={theme:P,token:L,hashId:D,nonce:function(){return j.nonce},clientOnly:S.clientOnly,layer:T,order:S.order||-999};return typeof i=="function"&&A$(rr(rr({},J),{},{clientOnly:false,path:["Shared",k]}),function(){return i(L,{prefix:{rootPrefixCls:k,iconPrefixCls:G},csp:j})}),A$(rr(rr({},J),{},{path:[M,A,G]}),function(){if(S.injectStyle===false)return [];var ee=nte(L),te=ee.token,re=ee.flush,ie=N5(E,O,y),de=".".concat(A),ne=A5(E,O,ie,{deprecatedTokens:S.deprecatedTokens});ie&&Ar(ie)==="object"&&Object.keys(ie).forEach(function($e){ie[$e]="var(".concat(i0($e,T5(E,F.prefix)),")");});var ae=zt(te,{componentCls:de,prefixCls:A,iconCls:".".concat(G),antCls:".".concat(k),calc:Q,max:B,min:Y},ie),ce=b(ae,{hashId:D,prefixCls:A,rootPrefixCls:k,iconPrefixCls:G});re(E,ne);var se=typeof s=="function"?s(ae,A,I,S.resetFont):null;return [S.resetStyle===false?null:se,ce]}),D}}function p(g,b,y){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=m(g,b,y,rr({resetStyle:false,order:-998},S)),w=function(M){var T=M.prefixCls,A=M.rootCls,I=A===void 0?T:A;return C(T,I),null};return w}return {genStyleHooks:u,genSubStyleComponent:p,genComponentStyleHook:m}}const na=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function c0(e){return (e+8)/e}function cte(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,i=e*Math.E**(o/5),s=r>1?Math.floor(i):Math.ceil(i);return Math.floor(s/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:c0(n)}))}const ute="6.3.2",hT={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"},Af={...hT,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'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:false,motion:true},dte={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},Vr=Math.round;function Kx(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const I5=(e,t,n)=>n===0?e:e/100;function uh(e,t){const n=t||255;return e>n?n:e<0?0:e}class dn{isValid=true;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(i){return r.startsWith(i)};const r=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(o("rgb"))this.fromRgbString(r);else if(o("hsl"))this.fromHslString(r);else if(o("hsv")||o("hsb"))this.fromHsvString(r);else {const i=dte[r.toLowerCase()];i&&this.fromHexString(parseInt(i,36).toString(16).padStart(6,"0"));}}else if(t instanceof dn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=uh(t.r),this.g=uh(t.g),this.b=uh(t.b),this.a=typeof t.a=="number"?uh(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const s=i/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Vr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4));}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax();}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else {const n=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*n-1));}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=l=>(r[l]-this[l])*o+this[l],s={r:Vr(i("r")),g:Vr(i("g")),b:Vr(i("b")),a:Vr(i("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=i=>Vr((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Vr(this.a*255).toString(16);t+=i.length===2?i:"0"+i;}return t}toHsl(){return {h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Vr(this.getHSLSaturation()*100),r=Vr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return {h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return {r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=uh(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,i){return parseInt(n[o]+n[i||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1);}fromHsl({h:t,s:n,l:r,a:o}){const i=(t%360+360)%360;if(this._h=i,this._hsl_s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const b=Vr(r*255);this.r=b,this.g=b,this.b=b;return}let s=0,l=0,u=0;const d=i/60,m=(1-Math.abs(2*r-1))*n,p=m*(1-Math.abs(d%2-1));d>=0&&d<1?(s=m,l=p):d>=1&&d<2?(s=p,l=m):d>=2&&d<3?(l=m,u=p):d>=3&&d<4?(l=p,u=m):d>=4&&d<5?(s=p,u=m):d>=5&&d<6&&(s=m,u=p);const g=r-m/2;this.r=Vr((s+g)*255),this.g=Vr((l+g)*255),this.b=Vr((u+g)*255);}fromHsv({h:t,s:n,v:r,a:o}){const i=(t%360+360)%360;this._h=i,this._hsv_s=n,this._v=r,this.a=typeof o=="number"?o:1;const s=Vr(r*255);if(this.r=s,this.g=s,this.b=s,n<=0)return;const l=i/60,u=Math.floor(l),d=l-u,m=Vr(r*(1-n)*255),p=Vr(r*(1-n*d)*255),g=Vr(r*(1-n*(1-d))*255);switch(u){case 0:this.g=g,this.b=m;break;case 1:this.r=p,this.b=m;break;case 2:this.r=m,this.b=g;break;case 3:this.r=m,this.g=p;break;case 4:this.r=g,this.g=m;break;default:this.g=m,this.b=p;break}}fromHsvString(t){const n=Kx(t,I5);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]});}fromHslString(t){const n=Kx(t,I5);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]});}fromRgbString(t){const n=Kx(t,(r,o)=>o.includes("%")?Vr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3];}}const gb=2,O5=.16,fte=.05,mte=.05,hte=.15,Zk=5,Jk=4,pte=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function D5(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-gb*t:Math.round(e.h)+gb*t:r=n?Math.round(e.h)+gb*t:Math.round(e.h)-gb*t,r<0?r+=360:r>=360&&(r-=360),r}function _5(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-O5*t:t===Jk?r=e.s+O5:r=e.s+fte*t,r>1&&(r=1),n&&t===Zk&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function L5(e,t,n){let r;return n?r=e.v+mte*t:r=e.v-hte*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function lg(e,t={}){const n=[],r=new dn(e),o=r.toHsv();for(let i=Zk;i>0;i-=1){const s=new dn({h:D5(o,i,true),s:_5(o,i,true),v:L5(o,i,true)});n.push(s);}n.push(r);for(let i=1;i<=Jk;i+=1){const s=new dn({h:D5(o,i),s:_5(o,i),v:L5(o,i)});n.push(s);}return t.theme==="dark"?pte.map(({index:i,amount:s})=>new dn(t.backgroundColor||"#141414").mix(n[i],s).toHexString()):n.map(i=>i.toHexString())}const Yx={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},N$=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];N$.primary=N$[5];const P$=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];P$.primary=P$[5];const I$=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];I$.primary=I$[5];const O$=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];O$.primary=O$[5];const D$=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];D$.primary=D$[5];const _$=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];_$.primary=_$[5];const L$=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];L$.primary=L$[5];const B$=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];B$.primary=B$[5];const J0=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];J0.primary=J0[5];const k$=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];k$.primary=k$[5];const z$=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];z$.primary=z$[5];const F$=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];F$.primary=F$[5];const H$=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];H$.primary=H$[5];const Xx={red:N$,volcano:P$,orange:I$,gold:O$,yellow:D$,lime:_$,green:L$,cyan:B$,blue:J0,geekblue:k$,purple:z$,magenta:F$,grey:H$};function ez(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:u,colorTextBase:d}=e,m=t(l),p=t(r),g=t(o),b=t(i),y=t(s),S=n(u,d),C=e.colorLink||e.colorInfo,w=t(C),E=new dn(b[1]).mix(new dn(b[3]),50).toHexString(),M={};return na.forEach(T=>{const A=e[T];if(A){const I=t(A);M[`${T}Hover`]=I[5],M[`${T}Active`]=I[7];}}),{...S,colorPrimaryBg:m[1],colorPrimaryBgHover:m[2],colorPrimaryBorder:m[3],colorPrimaryBorderHover:m[4],colorPrimaryHover:m[5],colorPrimary:m[6],colorPrimaryActive:m[7],colorPrimaryTextHover:m[8],colorPrimaryText:m[9],colorPrimaryTextActive:m[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:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:E,colorErrorBgActive:b[3],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],...M,colorBgMask:new dn("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const gte=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function vte(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return {motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1,...gte(r)}}const tz=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},nz=e=>{const t=cte(e),n=t.map(m=>m.size),r=t.map(m=>m.lineHeight),o=n[1],i=n[0],s=n[2],l=r[1],u=r[0],d=r[2];return {fontSizeSM:i,fontSize:o,fontSizeLG:s,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:d,lineHeightSM:u,fontHeight:Math.round(l*o),fontHeightLG:Math.round(d*s),fontHeightSM:Math.round(u*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function bte(e){const{sizeUnit:t,sizeStep:n}=e;return {sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Fi=(e,t)=>new dn(e).setA(t).toRgbString(),kd=(e,t)=>new dn(e).darken(t).toHexString(),yte=e=>{const t=lg(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]}},Ste=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:Fi(r,.88),colorTextSecondary:Fi(r,.65),colorTextTertiary:Fi(r,.45),colorTextQuaternary:Fi(r,.25),colorFill:Fi(r,.15),colorFillSecondary:Fi(r,.06),colorFillTertiary:Fi(r,.04),colorFillQuaternary:Fi(r,.02),colorBgSolid:Fi(r,1),colorBgSolidHover:Fi(r,.75),colorBgSolidActive:Fi(r,.95),colorBgLayout:kd(n,4),colorBgContainer:kd(n,0),colorBgElevated:kd(n,0),colorBgSpotlight:Fi(r,.85),colorBgBlur:"transparent",colorBorder:kd(n,15),colorBorderDisabled:kd(n,15),colorBorderSecondary:kd(n,6)}};function S1(e){Yx.pink=Yx.magenta,Xx.pink=Xx.magenta;const t=Object.keys(hT).map(n=>{const r=e[n]===Yx[n]?Xx[n]:lg(e[n]);return Array.from({length:10},()=>1).reduce((o,i,s)=>(o[`${n}-${s+1}`]=r[s],o[`${n}${s+1}`]=r[s],o),{})}).reduce((n,r)=>(n={...n,...r},n),{});return {...e,...t,...ez(e,{generateColorPalettes:yte,generateNeutralColorPalettes:Ste}),...nz(e.fontSize),...bte(e),...tz(e),...vte(e)}}const pT=Z0(S1),Tp={token:Af,override:{override:Af},hashed:true},gT=q.createContext(Tp);function Qx(e){return e>=0&&e<=255}function Dh(e,t){const{r:n,g:r,b:o,a:i}=new dn(e).toRgb();if(i<1)return e;const{r:s,g:l,b:u}=new dn(t).toRgb();for(let d=.01;d<=1;d+=.01){const m=Math.round((n-s*(1-d))/d),p=Math.round((r-l*(1-d))/d),g=Math.round((o-u*(1-d))/d);if(Qx(m)&&Qx(p)&&Qx(g))return new dn({r:m,g:p,b:g,a:Math.round(d*100)/100}).toRgbString()}return new dn({r:n,g:r,b:o,a:1}).toRgbString()}function rz(e){const{override:t,...n}=e,r={...t};Object.keys(Af).forEach(b=>{delete r[b];});const o={...n,...r},i=480,s=576,l=768,u=992,d=1200,m=1600,p=1920;return o.motion===false&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),{...o,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Dh(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:Dh(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Dh(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Dh(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:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowSecondary:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTertiary:`
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,screenXS:i,screenXSMin:i,screenXSMax:s-1,screenSM:s,screenSMMin:s,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:u-1,screenLG:u,screenLGMin:u,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:m-1,screenXXL:m,screenXXLMin:m,screenXXLMax:p-1,screenXXXL:p,screenXXXLMin:p,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new dn("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new dn("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new dn("rgba(0, 0, 0, 0.09)").toRgbString()}
    `,boxShadowDrawerRight:`
      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerLeft:`
      6px 0 16px 0 rgba(0, 0, 0, 0.08),
      3px 0 6px -4px rgba(0, 0, 0, 0.12),
      9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerUp:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerDown:`
      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
    `,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}}const oz={lineHeight:true,lineHeightSM:true,lineHeightLG:true,lineHeightHeading1:true,lineHeightHeading2:true,lineHeightHeading3:true,lineHeightHeading4:true,lineHeightHeading5:true,opacityLoading:true,fontWeightStrong:true,zIndexPopupBase:true,zIndexBase:true,opacityImage:true},Cte={motionBase:true,motionUnit:true},xte={screenXS:true,screenXSMin:true,screenXSMax:true,screenSM:true,screenSMMin:true,screenSMMax:true,screenMD:true,screenMDMin:true,screenMDMax:true,screenLG:true,screenLGMin:true,screenLGMax:true,screenXL:true,screenXLMin:true,screenXLMax:true,screenXXL:true,screenXXLMin:true},iz=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o,...i}=t;let s={...r,override:o};return s=rz(s),i&&Object.entries(i).forEach(([l,u])=>{const{theme:d,...m}=u;let p=m;d&&(p=iz({...s,...m},{override:m},d)),s[l]=p;}),s};function Xr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o,zeroRuntime:i}=q.useContext(gT),{csp:s}=q.useContext(wt),l={prefix:o?.prefix??"ant",key:o?.key??"css-var-root"},u=`${ute}-${t||""}`,d=n||pT,[m,p,g]=See(d,[Af,e],{salt:u,override:r,getComputedToken:iz,cssVar:{...l,unitless:oz,ignore:Cte,preserve:xte},nonce:s?.nonce});return [d,g,t?p:"",m,l,!!i]}const ra={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},mn=(e,t=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),ju=()=>({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"}}),ey=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),wte=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Ete=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==false&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...l,...s,[o]:s}}},$s=(e,t)=>({outline:`${oe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),Ai=(e,t)=>({"&:focus-visible":$s(e,t)}),sz=e=>({[`.${e}`]:{...ju(),[`.${e} .${e}-icon`]:{display:"block"}}}),$te=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...Ai(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Wt,genComponentStyleHook:Mte,genSubStyleComponent:Yf}=lte({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=f.useContext(wt);return {rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o,i]=Xr();return {theme:e,realToken:t,hashId:n,token:r,cssVar:o,zeroRuntime:i}},useCSP:()=>{const{csp:e}=f.useContext(wt);return e??{}},getResetStyles:(e,t)=>{const n=wte(e);return [n,{"&":n},sz(t?.prefix.iconPrefixCls??p1)]},getCommonStyle:Ete,getCompUnitless:()=>oz}),nr=(e,t)=>{const n=`--${e.replace(/\./g,"")}-${t}-`;return [i=>`${n}${i}`,(i,s)=>s?`var(${n}${i}, ${s})`:`var(${n}${i})`]};function C1(e,t){return na.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],s=e[`${r}6`],l=e[`${r}7`];return {...n,...t(r,{lightColor:o,lightBorderColor:i,darkColor:s,textColor:l})}},{})}const Tte=(e,t)=>(Xr(),A$({hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>sz(e)));var Ate={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const vT=f.createContext({});function az(e){return e?.getRootNode?.()}function Rte(e){return az(e)instanceof ShadowRoot}function ty(e){return Rte(e)?az(e):null}function Nte(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function Pte(e,t){Pr(e,`[@ant-design/icons] ${t}`);}function B5(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function k5(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];return n==="class"?(t.className=r,delete t.class):(delete t[n],t[Nte(n)]=r),t},{})}function V$(e,t,n){return n?q.createElement(e.tag,{key:t,...k5(e.attrs),...n},(e.children||[]).map((r,o)=>V$(r,`${t}-${e.tag}-${o}`))):q.createElement(e.tag,{key:t,...k5(e.attrs)},(e.children||[]).map((r,o)=>V$(r,`${t}-${e.tag}-${o}`)))}function lz(e){return lg(e)[0]}function cz(e){return e?Array.isArray(e)?e:[e]:[]}const Ite=`
.anticon {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
  vertical-align: inherit;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`,Ote=e=>{const{csp:t,prefixCls:n,layer:r}=f.useContext(vT);let o=Ite;n&&(o=o.replace(/anticon/g,n)),r&&(o=`@layer ${r} {
${o}
}`),f.useEffect(()=>{const i=e.current,s=ty(i);Xl(o,"@ant-design-icons",{prepend:!r,csp:t,attachTo:s});},[]);},qh={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:false};function Dte({primaryColor:e,secondaryColor:t}){qh.primaryColor=e,qh.secondaryColor=t||lz(e),qh.calculated=!!t;}function _te(){return {...qh}}const Xf=e=>{const{icon:t,className:n,onClick:r,style:o,primaryColor:i,secondaryColor:s,...l}=e,u=f.useRef(null);let d=qh;if(i&&(d={primaryColor:i,secondaryColor:s||lz(i)}),Ote(u),Pte(B5(t),`icon should be icon definiton, but got ${t}`),!B5(t))return null;let m=t;return m&&typeof m.icon=="function"&&(m={...m,icon:m.icon(d.primaryColor,d.secondaryColor)}),V$(m.icon,`svg-${m.name}`,{className:n,onClick:r,style:o,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...l,ref:u})};Xf.displayName="IconReact";Xf.getTwoToneColors=_te;Xf.setTwoToneColors=Dte;function uz(e){const[t,n]=cz(e);return Xf.setTwoToneColors({primaryColor:t,secondaryColor:n})}function Lte(){const e=Xf.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function j$(){return j$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},j$.apply(this,arguments)}uz(J0.primary);const Xn=f.forwardRef((e,t)=>{const{className:n,icon:r,spin:o,rotate:i,tabIndex:s,onClick:l,twoToneColor:u,...d}=e,{prefixCls:m="anticon",rootClassName:p}=f.useContext(vT),g=X(p,m,{[`${m}-${r.name}`]:!!r.name,[`${m}-spin`]:!!o||r.name==="loading"},n);let b=s;b===void 0&&l&&(b=-1);const y=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[S,C]=cz(u);return f.createElement("span",j$({role:"img","aria-label":r.name},d,{ref:t,tabIndex:b,onClick:l,className:g}),f.createElement(Xf,{icon:r,primaryColor:S,secondaryColor:C,style:y}))});Xn.getTwoToneColor=Lte;Xn.setTwoToneColor=uz;function U$(){return U$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},U$.apply(this,arguments)}const Bte=(e,t)=>f.createElement(Xn,U$({},e,{ref:t,icon:Ate})),bT=f.forwardRef(Bte);var kte={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function W$(){return W$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},W$.apply(this,arguments)}const zte=(e,t)=>f.createElement(Xn,W$({},e,{ref:t,icon:kte})),cg=f.forwardRef(zte);var Fte={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function G$(){return G$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},G$.apply(this,arguments)}const Hte=(e,t)=>f.createElement(Xn,G$({},e,{ref:t,icon:Fte})),Xa=f.forwardRef(Hte);var Vte={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"};function q$(){return q$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},q$.apply(this,arguments)}const jte=(e,t)=>f.createElement(Xn,q$({},e,{ref:t,icon:Vte})),ug=f.forwardRef(jte);var Ute={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"};function K$(){return K$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},K$.apply(this,arguments)}const Wte=(e,t)=>f.createElement(Xn,K$({},e,{ref:t,icon:Ute})),yT=f.forwardRef(Wte),dz=f.createContext({}),Gte=e=>{const{children:t,...n}=e,r=f.useMemo(()=>({motion:n.motion}),[n.motion]);return f.createElement(dz.Provider,{value:r},t)};function qte(e){const[,t]=f.useReducer(i=>i+1,0),n=f.useRef(e),r=Mt(()=>n.current),o=Mt(i=>{n.current=typeof i=="function"?i(n.current):i,t();});return [r,o]}const Hs="none",vb="appear",bb="enter",yb="leave",z5="none",hs="prepare",nu="start",ru="active",ST="end",fz="prepared";function F5(e,t){const n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function Kte(e,t){const n={animationend:F5("Animation","AnimationEnd"),transitionend:F5("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const Yte=Kte(Ti(),typeof window<"u"?window:{});let mz={};Ti()&&({style:mz}=document.createElement("div"));const Sb={};function hz(e){if(Sb[e])return Sb[e];const t=Yte[e];if(t){const n=Object.keys(t),r=n.length;for(let o=0;o<r;o+=1){const i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in mz)return Sb[e]=t[i],Sb[e]}}return ""}const pz=hz("animationend"),gz=hz("transitionend"),Xte=!!(pz&&gz),H5=pz||"animationend",V5=gz||"transitionend";function j5(e,t){if(!e)return null;if(typeof e=="object"){const n=t.replace(/-\w/g,r=>r[1].toUpperCase());return e[n]}return `${e}-${t}`}const Qte=(e=>{const t=f.useRef();function n(o){o&&(o.removeEventListener(V5,e),o.removeEventListener(H5,e));}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(V5,e),o.addEventListener(H5,e),t.current=o);}return f.useEffect(()=>()=>{n(t.current),t.current=null;},[]),[r,n]}),vz=Ti()?f.useLayoutEffect:f.useEffect,Zte=(()=>{const e=f.useRef(null);function t(){_t.cancel(e.current);}function n(r,o=2){t();const i=_t(()=>{o<=1?r({isCanceled:()=>i!==e.current}):n(r,o-1);});e.current=i;}return f.useEffect(()=>()=>{t();},[]),[n,t]}),Jte=[hs,nu,ru,ST],ene=[hs,fz],bz=false,tne=true;function yz(e){return e===ru||e===ST}const nne=((e,t,n)=>{const[r,o]=vk(z5),[i,s]=Zte();function l(){o(hs,true);}const u=t?ene:Jte;return vz(()=>{if(r!==z5&&r!==ST){const d=u.indexOf(r),m=u[d+1],p=n(r);p===bz?o(m,true):m&&i(g=>{function b(){g.isCanceled()||o(m,true);}p===true?b():Promise.resolve(p).then(b);});}},[e,r]),f.useEffect(()=>()=>{s();},[]),[l,r]});function rne(e,t,n,{motionEnter:r=true,motionAppear:o=true,motionLeave:i=true,motionDeadline:s,motionLeaveImmediately:l,onAppearPrepare:u,onEnterPrepare:d,onLeavePrepare:m,onAppearStart:p,onEnterStart:g,onLeaveStart:b,onAppearActive:y,onEnterActive:S,onLeaveActive:C,onAppearEnd:w,onEnterEnd:E,onLeaveEnd:M,onVisibleChanged:T}){const[A,I]=f.useState(),[N,P]=qte(Hs),[O,D]=f.useState([null,null]),L=N(),F=f.useRef(false),U=f.useRef(null);function W(){return n()}const z=f.useRef(false);function k(){P(Hs),D([null,null]);}const G=Mt(ie=>{const de=N();if(de===Hs)return;const ne=W();if(ie&&!ie.deadline&&ie.target!==ne)return;const ae=z.current;let ce;de===vb&&ae?ce=w?.(ne,ie):de===bb&&ae?ce=E?.(ne,ie):de===yb&&ae&&(ce=M?.(ne,ie)),ae&&ce!==false&&k();}),[j]=Qte(G),K=ie=>{switch(ie){case vb:return {[hs]:u,[nu]:p,[ru]:y};case bb:return {[hs]:d,[nu]:g,[ru]:S};case yb:return {[hs]:m,[nu]:b,[ru]:C};default:return {}}},Q=f.useMemo(()=>K(L),[L]),[_,B]=nne(L,!e,ie=>{if(ie===hs){const de=Q[hs];return de?de(W()):bz}return ie in Q&&D([Q[ie]?.(W(),null)||null,ie]),ie===ru&&L!==Hs&&(j(W()),s>0&&(clearTimeout(U.current),U.current=setTimeout(()=>{G({deadline:true});},s))),ie===fz&&k(),tne}),Y=yz(B);z.current=Y;const J=f.useRef(null);vz(()=>{if(F.current&&J.current===t)return;I(t);const ie=F.current;F.current=true;let de;!ie&&t&&o&&(de=vb),ie&&t&&r&&(de=bb),(ie&&!t&&i||!ie&&l&&!t&&i)&&(de=yb);const ne=K(de);de&&(e||ne[hs])?(P(de),_()):P(Hs),J.current=t;},[t]),f.useEffect(()=>{(L===vb&&!o||L===bb&&!r||L===yb&&!i)&&P(Hs);},[o,r,i]),f.useEffect(()=>()=>{F.current=false,clearTimeout(U.current);},[]);const ee=f.useRef(false);f.useEffect(()=>{A&&(ee.current=true),A!==void 0&&L===Hs&&((ee.current||A)&&T?.(A),ee.current=true);},[A,L]);let te=O[0];Q[hs]&&B===nu&&(te={transition:"none",...te});const re=O[1];return [N,B,te,A??t,!F.current&&L===Hs&&e&&o?"NONE":B===nu||B===ru?re===B:true]}function one(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(o,i){return !!(o.motionName&&t&&i!==false)}const r=f.forwardRef((o,i)=>{const{visible:s=true,removeOnLeave:l=true,forceRender:u,children:d,motionName:m,leavedClassName:p,eventProps:g}=o,{motion:b}=f.useContext(dz),y=n(o,b),S=f.useRef();function C(){return Iu(S.current)}const[w,E,M,T,A]=rne(y,s,C,o),I=w(),N=f.useRef(T);T&&(N.current=true);const P=f.useMemo(()=>{const D={};return Object.defineProperties(D,{nativeElement:{enumerable:true,get:C},inMotion:{enumerable:true,get:()=>()=>w()!==Hs},enableMotion:{enumerable:true,get:()=>()=>y}}),D},[]);f.useImperativeHandle(i,()=>P,[]);const O=f.useRef(0);return A&&(O.current+=1),f.useMemo(()=>{if(A==="NONE")return null;let D;const L={...g,visible:s};if(!d)D=null;else if(I===Hs)T?D=d({...L},S):!l&&N.current&&p?D=d({...L,className:p},S):u||!l&&!p?D=d({...L,style:{display:"none"}},S):D=null;else {let F;E===hs?F="prepare":yz(E)?F="active":E===nu&&(F="start");const U=j5(m,`${I}-${F}`);D=d({...L,className:X(j5(m,I),{[U]:U&&F,[m]:typeof m=="string"}),style:M},S);}return f.isValidElement(D)&&Vu(D)&&(hc(D)||(D=f.cloneElement(D,{ref:S}))),D},[O.current])});return r.displayName="CSSMotion",r}const To=one(Xte),Y$="add",X$="keep",Q$="remove",Zx="removed";function ine(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function Z$(e=[]){return e.map(ine)}function sne(e=[],t=[]){let n=[],r=0;const o=t.length,i=Z$(e),s=Z$(t);i.forEach(d=>{let m=false;for(let p=r;p<o;p+=1){const g=s[p];if(g.key===d.key){r<p&&(n=n.concat(s.slice(r,p).map(b=>({...b,status:Y$}))),r=p),n.push({...g,status:X$}),r+=1,m=true;break}}m||n.push({...d,status:Q$});}),r<o&&(n=n.concat(s.slice(r).map(d=>({...d,status:Y$}))));const l={};return n.forEach(({key:d})=>{l[d]=(l[d]||0)+1;}),Object.keys(l).filter(d=>l[d]>1).forEach(d=>{n=n.filter(({key:m,status:p})=>m!==d||p!==Q$),n.forEach(m=>{m.key===d&&(m.status=X$);});}),n}function J$(){return J$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},J$.apply(this,arguments)}const ane=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function lne(e,t=To){class n extends f.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:o},{keyEntities:i}){const s=Z$(o);return {keyEntities:sne(i,s).filter(u=>{const d=i.find(({key:m})=>u.key===m);return !(d&&d.status===Zx&&u.status===Q$)})}}removeKey=o=>{this.setState(i=>({keyEntities:i.keyEntities.map(l=>l.key!==o?l:{...l,status:Zx})}),()=>{const{keyEntities:i}=this.state;i.filter(({status:l})=>l!==Zx).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved();});};render(){const{keyEntities:o}=this.state,{component:i,children:s,onVisibleChanged:l,onAllRemoved:u,...d}=this.props,m=i||f.Fragment,p={};return ane.forEach(g=>{p[g]=d[g],delete d[g];}),delete d.keys,f.createElement(m,d,o.map(({status:g,...b},y)=>{const S=g===Y$||g===X$;return f.createElement(t,J$({},p,{key:b.key,visible:S,eventProps:b,onVisibleChanged:C=>{l?.(C,{key:b.key}),C||this.removeKey(b.key);}}),(C,w)=>s({...C,index:y},w))}))}}return n}const cne=lne(),une=`accept acceptCharset accessKey action allowFullScreen allowTransparency
    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
    charSet checked classID className colSpan cols content contentEditable contextMenu
    controls coords crossOrigin data dateTime default defer dir disabled download draggable
    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
    mediaGroup method min minLength multiple muted name noValidate nonce open
    optimum pattern placeholder poster preload radioGroup readOnly rel required
    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
    summary tabIndex target title type useMap value width wmode wrap`,dne=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,fne=`${une} ${dne}`.split(/[\s\n]+/),mne="aria-",hne="data-";function U5(e,t){return e.indexOf(t)===0}function $o(e,t=false){let n;t===false?n={aria:true,data:true,attr:true}:t===true?n={aria:true}:n={...t};const r={};return Object.keys(e).forEach(o=>{(n.aria&&(o==="role"||U5(o,mne))||n.data&&U5(o,hne)||n.attr&&fne.includes(o))&&(r[o]=e[o]);}),r}const Sz={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var pne={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:true};function Ap(e){"@babel/helpers - typeof";return Ap=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ap(e)}function W5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r);}return n}function G5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W5(Object(n),true).forEach(function(r){gne(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function gne(e,t,n){return t=vne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function vne(e){var t=bne(e,"string");return Ap(t)=="symbol"?t:String(t)}function bne(e,t){if(Ap(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ap(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}var yne=G5(G5({},pne),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Cz={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},q5={lang:{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"],...yne},timePickerLocale:{...Cz}},mi="${label} is not a valid ${type}",Ms={locale:"en",Pagination:Sz,DatePicker:q5,TimePicker:Cz,Calendar:q5,global:{placeholder:"Please select",close:"Close",sortable:"sortable"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:mi,method:mi,array:mi,object:mi,number:mi,date:mi,boolean:mi,integer:mi,float:mi,regexp:mi,email:mi,url:mi,hex:mi},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}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let u0={...Ms.Modal},d0=[];const K5=()=>d0.reduce((e,t)=>({...e,...t}),Ms.Modal);function Sne(e){if(e){const t={...e};return d0.push(t),u0=K5(),()=>{d0=d0.filter(n=>n!==t),u0=K5();}}u0={...Ms.Modal};}function xz(){return u0}const CT=f.createContext(void 0),Lo=(e,t)=>{const n=f.useContext(CT),r=f.useMemo(()=>{const i=t||Ms[e],s=n?.[e]??{};return {...typeof i=="function"?i():i,...s||{}}},[e,t,n]),o=f.useMemo(()=>{const i=n?.locale;return n?.exist&&!i?Ms.locale:i},[n]);return [r,o]},Cne="internalMark",xne=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f.useEffect(()=>Sne(t?.Modal),[t]);const o=f.useMemo(()=>({...t,exist:true}),[t]);return f.createElement(CT.Provider,{value:o},n)};function Y5(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r]);});}),t}const Lr=e=>e!=null,tc=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return {closable:t,closeIcon:n}},wz={},X5=(e,t)=>{if(!e&&(e===false||t===false||t===null))return  false;if(e===void 0&&t===void 0)return null;let n={closeIcon:typeof t!="boolean"&&t!==null?t:void 0};return e&&typeof e=="object"&&(n={...n,...e}),n},wne=(e,t,n)=>e===false?false:e?Y5(n,t,e):t===false?false:t?Y5(n,t):n.closable?n:false,Ene=(e,t,n)=>{const{closeIconRender:r}=t,{closeIcon:o,...i}=e;let s=o;const l=$o(i,true);return Lr(s)&&(r&&(s=r(s)),s=q.isValidElement(s)?q.cloneElement(s,{"aria-label":n,...s.props,...l}):q.createElement("span",{"aria-label":n,...l},s)),[s,l]},Ez=(e,t,n=wz,r="Close")=>{const o=X5(e?.closable,e?.closeIcon),i=X5(t?.closable,t?.closeIcon),s={closeIcon:q.createElement(Xa,null),...n},l=wne(o,i,s),u=typeof l!="boolean"?!!l?.disabled:false;if(l===false)return [false,null,u,{}];const[d,m]=Ene(l,s,r);return [true,d,u,m]},xT=(e,t,n=wz)=>{const[r]=Lo("global",Ms.global);return q.useMemo(()=>Ez(e,t,{closeIcon:q.createElement(Xa,null),...n},r.close),[e,t,n,r.close])},$z=()=>q.useReducer(e=>e+1,0),e2=(e,t)=>{let n={};return e&&typeof e=="object"&&(n=e),typeof e=="boolean"&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},$ne=(e,t,n,r)=>f.useMemo(()=>{const o=e2(e,r),i=e2(t),s={blur:false,...i,...o,closable:o.closable??r??i.closable??true},l=s.blur?`${n}-mask-blur`:void 0;return [s.enabled!==false,{mask:l},!!s.closable]},[e,t,n,r]),x1=(e,...t)=>{const n=e||{};return t.filter(Boolean).reduce((r,o)=>(Object.keys(o||{}).forEach(i=>{const s=n[i],l=o[i];if(s&&typeof s=="object")if(l&&typeof l=="object")r[i]=x1(s,r[i],l);else {const{_default:u}=s;u&&(r[i]=r[i]||{},r[i][u]=X(r[i][u],l));}else r[i]=X(r[i],l);}),r),{})},Mne=(e,...t)=>f.useMemo(()=>x1.apply(void 0,[e].concat(t)),[e].concat(t)),wT=(...e)=>e.filter(Boolean).reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]={...t[r],...n[r]};}),t),{}),Tne=(...e)=>f.useMemo(()=>wT.apply(void 0,e),[].concat(e)),t2=(e,t)=>{const n={...e};return Object.keys(t).forEach(r=>{if(r!=="_default"){const o=t[r],i=n[r]||{};n[r]=o?t2(i,o):i;}}),n},Wl=(e,t)=>typeof e=="function"?e(t):e,qt=(e,t,n,r)=>{const o=e.map(u=>u?Wl(u,n):void 0),i=t.map(u=>u?Wl(u,n):void 0),s=Mne.apply(void 0,[r].concat(Zt(o))),l=Tne.apply(void 0,Zt(i));return f.useMemo(()=>r?[t2(s,r),t2(l,r)]:[s,l],[s,l,r])},Q5=e=>{const[t,n]=f.useState(null);return [f.useCallback((o,i,s)=>{const l=t??o,u=Math.min(l||0,o),d=Math.max(l||0,o),m=i.slice(u,d+1).map(e),p=m.some(b=>!s.has(b)),g=[];return m.forEach(b=>{p?(s.has(b)||g.push(b),s.add(b)):(s.delete(b),g.push(b));}),n(p?d:null),g},[t]),n]},Z5=e=>e==="horizontal"||e==="vertical",Uu=(e,t,n)=>f.useMemo(()=>{const r=Z5(e);let o;return r?o=e:typeof t=="boolean"?o=t?"vertical":"horizontal":o=Z5(n)?n:"horizontal",[o,o==="vertical"]},[n,e,t]),Ane=()=>{const[e,t]=f.useState([]),n=f.useCallback(r=>(t(o=>[].concat(Zt(o),[r])),()=>{t(o=>o.filter(i=>i!==r));}),[]);return [e,n]},w1=q.createContext(void 0),_l=100,Rne=10,ET=_l*Rne,Mz={Modal:_l,Drawer:_l,Popover:_l,Popconfirm:_l,Tooltip:_l,Tour:_l,FloatButton:_l},Nne={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Pne=e=>e in Mz,Wu=(e,t)=>{const[,n]=Xr(),r=q.useContext(w1),o=Pne(e);let i;if(t!==void 0)i=[t,t];else {let s=r??0;o?s+=(r?0:n.zIndexPopupBase)+Mz[e]:s+=Nne[e],i=[r===void 0?t:s,s];}return i};function n2(e){return Lr(e)&&e===e.window}const Tz=e=>{if(typeof window>"u")return 0;let t=0;return n2(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!n2(e)&&typeof t!="number"&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function Ine(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function One(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),s=Tz(i),l=Date.now();let u;const d=()=>{const p=Date.now()-l,g=Ine(p>o?o:p,s,e,o);n2(i)?i.scrollTo(window.pageXOffset,g):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=g:i.scrollTop=g,p<o?u=_t(d):typeof r=="function"&&r();};return u=_t(d),()=>{_t.cancel(u);}}const Qn=e=>`${e}-css-var`,Dne=f.createContext(void 0);var Jx={exports:{}},bo={};var J5;function _ne(){if(J5)return bo;J5=1;var e=UM();function t(u){var d="https://react.dev/errors/"+u;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m]);}return "Minified React error #"+u+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function i(u,d,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return {$$typeof:o,key:p==null?null:""+p,children:u,containerInfo:d,implementation:m}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(u,d){if(u==="font")return "";if(typeof d=="string")return d==="use-credentials"?d:""}return bo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,bo.createPortal=function(u,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return i(u,d,null,m)},bo.flushSync=function(u){var d=s.T,m=r.p;try{if(s.T=null,r.p=2,u)return u()}finally{s.T=d,r.p=m,r.d.f();}},bo.preconnect=function(u,d){typeof u=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(u,d));},bo.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u);},bo.preinit=function(u,d){if(typeof u=="string"&&d&&typeof d.as=="string"){var m=d.as,p=l(m,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,b=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?r.d.S(u,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:b}):m==="script"&&r.d.X(u,{crossOrigin:p,integrity:g,fetchPriority:b,nonce:typeof d.nonce=="string"?d.nonce:void 0});}},bo.preinitModule=function(u,d){if(typeof u=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=l(d.as,d.crossOrigin);r.d.M(u,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0});}}else d==null&&r.d.M(u);},bo.preload=function(u,d){if(typeof u=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,p=l(m,d.crossOrigin);r.d.L(u,m,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0});}},bo.preloadModule=function(u,d){if(typeof u=="string")if(d){var m=l(d.as,d.crossOrigin);r.d.m(u,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0});}else r.d.m(u);},bo.requestFormReset=function(u){r.d.r(u);},bo.unstable_batchedUpdates=function(u,d){return u(d)},bo.useFormState=function(u,d,m){return s.H.useFormState(u,d,m)},bo.useFormStatus=function(){return s.H.useHostTransitionStatus()},bo.version="19.2.4",bo}var eO;function Az(){if(eO)return Jx.exports;eO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e);}catch(t){console.error(t);}}return e(),Jx.exports=_ne(),Jx.exports}var No=Az();const Rz=f.createContext(null);let Lne=false;function Bne(e){return Lne}const tO=[];function kne(e,t){const[n]=f.useState(()=>Ti()?document.createElement("div"):null),r=f.useRef(false),o=f.useContext(Rz),[i,s]=f.useState(tO),l=o||(r.current?void 0:m=>{s(p=>[m,...p]);});function u(){n.parentElement||document.body.appendChild(n),r.current=true;}function d(){n.parentElement?.removeChild(n),r.current=false;}return Rn(()=>(e?o?o(u):u():d(),d),[e]),Rn(()=>{i.length&&(i.forEach(m=>m()),s(tO));},[i]),[n,l]}function zne(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=t;const r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";let o,i;if(e){const u=getComputedStyle(e);r.scrollbarColor=u.scrollbarColor,r.scrollbarWidth=u.scrollbarWidth;const d=getComputedStyle(e,"::-webkit-scrollbar"),m=parseInt(d.width,10),p=parseInt(d.height,10);try{const g=m?`width: ${d.width};`:"",b=p?`height: ${d.height};`:"";Xl(`
#${t}::-webkit-scrollbar {
${g}
${b}
}`,t);}catch(g){console.error(g),o=m,i=p;}}document.body.appendChild(n);const s=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,l=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),xp(t),{width:s,height:l}}function Fne(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:zne(e)}function Hne(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const Vne=`rc-util-locker-${Date.now()}`;let nO=0;function jne(e){const t=!!e,[n]=f.useState(()=>(nO+=1,`${Vne}_${nO}`));Rn(()=>{if(t){const r=Fne(document.body).width,o=Hne();Xl(`
html body {
  overflow-y: hidden;
  ${o?`width: calc(100% - ${r}px);`:""}
}`,n);}else xp(n);return ()=>{xp(n);}},[t,n]);}function Une(){return {...l$}.useId}let rO=0;const oO=Une(),Qa=oO?(function(t){const n=oO();return t||n}):(function(t){const[n,r]=f.useState("ssr-id");return f.useEffect(()=>{const o=rO;rO+=1,r(`rc_unique_${o}`);},[]),t||n});let su=[];const Wne=200;let Nz=0;const Pz=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-Nz<Wne)return;const n=su.length;for(let r=n-1;r>=0;r-=1)su[r].onEsc({top:r===n-1,event:e});}},Iz=()=>{Nz=Date.now();};function Gne(){window.addEventListener("keydown",Pz),window.addEventListener("compositionend",Iz);}function qne(){su.length===0&&(window.removeEventListener("keydown",Pz),window.removeEventListener("compositionend",Iz));}function Kne(e,t){const n=Qa(),r=Mt(t),o=()=>{su.find(s=>s.id===n)||su.push({id:n,onEsc:r});},i=()=>{su=su.filter(s=>s.id!==n);};f.useMemo(()=>{e?o():e||i();},[e]),f.useEffect(()=>{if(e)return o(),Gne(),()=>{i(),qne();}},[e]);}const iO=e=>e===false?false:!Ti()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,E1=f.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:o,debug:i,autoDestroy:s=true,children:l,onEsc:u}=e,[d,m]=f.useState(n),p=d||n;f.useEffect(()=>{(s||n)&&m(n);},[n,s]);const[g,b]=f.useState(()=>iO(o));f.useEffect(()=>{const A=iO(o);b(()=>A??null);});const[y,S]=kne(p&&!g),C=g??y;jne(r&&n&&Ti()&&(C===y||C===document.body)),Kne(n,u);let w=null;l&&Vu(l)&&t&&(w=hc(l));const E=Ya(w,t);if(!p||!Ti()||g===void 0)return null;const M=C===false||Bne();let T=l;return t&&(T=f.cloneElement(l,{ref:E})),f.createElement(Rz.Provider,{value:S},M?T:No.createPortal(T,C))});function Yne(e){const{prefixCls:t,align:n,arrow:r,arrowPos:o}=e,{className:i,content:s,style:l}=r||{},{x:u=0,y:d=0}=o,m=f.useRef(null);if(!n||!n.points)return null;const p={position:"absolute"};if(n.autoArrow!==false){const g=n.points[0],b=n.points[1],y=g[0],S=g[1],C=b[0],w=b[1];y===C||!["t","b"].includes(y)?p.top=d:y==="t"?p.top=0:p.bottom=0,S===w||!["l","r"].includes(S)?p.left=u:S==="l"?p.left=0:p.right=0;}return f.createElement("div",{ref:m,className:X(`${t}-arrow`,i),style:{...p,...l}},s)}function r2(){return r2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},r2.apply(this,arguments)}function Xne(e){const{prefixCls:t,open:n,zIndex:r,mask:o,motion:i,mobile:s}=e;return o?f.createElement(To,r2({},i,{motionAppear:true,visible:n,removeOnLeave:true}),({className:l})=>f.createElement("div",{style:{zIndex:r},className:X(`${t}-mask`,s&&`${t}-mobile-mask`,l)})):null}const Qne=f.memo(({children:e})=>e,(e,t)=>t.cache);function Oz(e,t,n,r,o,i,s,l){const u="auto",d=e?{}:{left:"-1000vw",top:"-1000vh",right:u,bottom:u};if(!e&&(t||!n)){const{points:m}=r,p=r.dynamicInset||r._experimental?.dynamicInset,g=p&&m[0][1]==="r",b=p&&m[0][0]==="b";g?(d.right=o,d.left=u):(d.left=s,d.right=u),b?(d.bottom=i,d.top=u):(d.top=l,d.bottom=u);}return d}function o2(){return o2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},o2.apply(this,arguments)}const Dz=f.forwardRef((e,t)=>{const{onEsc:n,popup:r,className:o,prefixCls:i,style:s,target:l,onVisibleChanged:u,open:d,keepDom:m,fresh:p,onClick:g,mask:b,arrow:y,arrowPos:S,align:C,motion:w,maskMotion:E,mobile:M,forceRender:T,getPopupContainer:A,autoDestroy:I,portal:N,children:P,zIndex:O,onMouseEnter:D,onMouseLeave:L,onPointerEnter:F,onPointerDownCapture:U,ready:W,offsetX:z,offsetY:k,offsetR:G,offsetB:j,onAlign:K,onPrepare:Q,onResize:_,stretch:B,targetWidth:Y,targetHeight:J}=e,ee=typeof r=="function"?r():r,te=d||m,re=!!M,[ie,de,ne]=f.useMemo(()=>M?[M.mask,M.maskMotion,M.motion]:[b,E,w],[M,b,E,w]),ae=A?.length>0,[ce,se]=f.useState(!A||!ae);Rn(()=>{!ce&&ae&&l&&se(true);},[ce,ae,l]);const $e=Mt((be,Ce)=>{_?.(be,Ce),K();}),le=Oz(re,W,d,C,G,j,z,k);if(!ce)return null;const pe={};return B&&(B.includes("height")&&J?pe.height=J:B.includes("minHeight")&&J&&(pe.minHeight=J),B.includes("width")&&Y?pe.width=Y:B.includes("minWidth")&&Y&&(pe.minWidth=Y)),d||(pe.pointerEvents="none"),f.createElement(N,{open:T||te,getContainer:A&&(()=>A(l)),autoDestroy:I,onEsc:n},f.createElement(Xne,{prefixCls:i,open:d,zIndex:O,mask:ie,motion:de,mobile:re}),f.createElement(ys,{onResize:$e,disabled:!d},be=>f.createElement(To,o2({motionAppear:true,motionEnter:true,motionLeave:true,removeOnLeave:false,forceRender:T,leavedClassName:`${i}-hidden`},ne,{onAppearPrepare:Q,onEnterPrepare:Q,visible:d,onVisibleChanged:Ce=>{w?.onVisibleChanged?.(Ce),u(Ce);}}),({className:Ce,style:Ae},Ye)=>{const Re=X(i,Ce,o,{[`${i}-mobile`]:re});return f.createElement("div",{ref:Yr(be,t,Ye),className:Re,style:{"--arrow-x":`${S.x||0}px`,"--arrow-y":`${S.y||0}px`,...le,...pe,...Ae,boxSizing:"border-box",zIndex:O,...s},onMouseEnter:D,onMouseLeave:L,onPointerEnter:F,onClick:g,onPointerDownCapture:U},y&&f.createElement(Yne,{prefixCls:i,arrow:y,arrowPos:S,align:C}),f.createElement(Qne,{cache:!d&&!p},ee))})),P)}),ny=f.createContext(null),_z=f.createContext(null);function sO(e){return e?Array.isArray(e)?e:[e]:[]}function Zne(e,t,n){return f.useMemo(()=>{const r=sO(t??e),o=sO(n??e),i=new Set(r),s=new Set(o);return i.has("hover")&&!i.has("click")&&i.add("touch"),s.has("hover")&&!s.has("click")&&s.add("touch"),[i,s]},[e,t,n])}const $T=(e=>{if(!e)return  false;if(e instanceof Element){if(e.offsetParent)return  true;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return  true}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return  true}}return  false});function Jne(e=[],t=[],n){const r=(o,i)=>o[i]||"";return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function Lz(e,t,n,r){const{points:o}=n,i=Object.keys(e);for(let s=0;s<i.length;s+=1){const l=i[s];if(Jne(e[l]?.points,o,r))return `${t}-placement-${l}`}return ""}function dg(e){return e.ownerDocument.defaultView}function i2(e){const t=[];let n=e?.parentElement;const r=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:o,overflowY:i,overflow:s}=dg(n).getComputedStyle(n);[o,i,s].some(l=>r.includes(l))&&t.push(n),n=n.parentElement;}return t}function Rp(e,t=1){return Number.isNaN(e)?t:e}function dh(e){return Rp(parseFloat(e),0)}function aO(e,t){const n={...e};return (t||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:o,overflowClipMargin:i,borderTopWidth:s,borderBottomWidth:l,borderLeftWidth:u,borderRightWidth:d}=dg(r).getComputedStyle(r),m=r.getBoundingClientRect(),{offsetHeight:p,clientHeight:g,offsetWidth:b,clientWidth:y}=r,S=dh(s),C=dh(l),w=dh(u),E=dh(d),M=Rp(Math.round(m.width/b*1e3)/1e3),T=Rp(Math.round(m.height/p*1e3)/1e3),A=(b-y-w-E)*M,I=(p-g-S-C)*T,N=S*T,P=C*T,O=w*M,D=E*M;let L=0,F=0;if(o==="clip"){const G=dh(i);L=G*M,F=G*T;}const U=m.x+O-L,W=m.y+N-F,z=U+m.width+2*L-O-D-A,k=W+m.height+2*F-N-P-I;n.left=Math.max(n.left,U),n.top=Math.max(n.top,W),n.right=Math.min(n.right,z),n.bottom=Math.min(n.bottom,k);}),n}function lO(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function cO(e,t){const[n,r]=t||[];return [lO(e.width,n),lO(e.height,r)]}function uO(e=""){return [e[0],e[1]]}function zd(e,t){const n=t[0],r=t[1];let o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Pl(e,t){const n={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=n[e[t]]||"c",r}function dO(e){return e.join("")}function Bz(e,t,n,r,o,i,s,l){const[u,d]=f.useState({ready:false,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),m=f.useRef(0),p=f.useMemo(()=>!t||l?[]:i2(t),[t]),g=f.useRef({});e||(g.current={});const y=Mt(()=>{if(t&&n&&e&&!l){let Ie=function(kt,zr,Fr=$e){const Os=U.x+kt,Pi=U.y+zr,zo=Os+Y,Zr=Pi+B,$c=Math.max(Os,Fr.left),Jg=Math.max(Pi,Fr.top),Mc=Math.min(zo,Fr.right),td=Math.min(Zr,Fr.bottom);return Math.max(0,(Mc-$c)*(td-Jg))},xe=function(){Me=U.y+Be,Se=Me+B,he=U.x+Je,Oe=he+Y;};const w=t,E=w.ownerDocument,M=dg(w),{position:T}=M.getComputedStyle(w),A=w.style.left,I=w.style.top,N=w.style.right,P=w.style.bottom,O=w.style.overflow,D={...o[r],...i},L=E.createElement("div");w.parentElement?.appendChild(L),L.style.left=`${w.offsetLeft}px`,L.style.top=`${w.offsetTop}px`,L.style.position=T,L.style.height=`${w.offsetHeight}px`,L.style.width=`${w.offsetWidth}px`,w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";let F;if(Array.isArray(n))F={x:n[0],y:n[1],width:0,height:0};else {const kt=n.getBoundingClientRect();kt.x=kt.x??kt.left,kt.y=kt.y??kt.top,F={x:kt.x,y:kt.y,width:kt.width,height:kt.height};}const U=w.getBoundingClientRect(),{height:W,width:z}=M.getComputedStyle(w);U.x=U.x??U.left,U.y=U.y??U.top;const{clientWidth:k,clientHeight:G,scrollWidth:j,scrollHeight:K,scrollTop:Q,scrollLeft:_}=E.documentElement,B=U.height,Y=U.width,J=F.height,ee=F.width,te={left:0,top:0,right:k,bottom:G},re={left:-_,top:-Q,right:j-_,bottom:K-Q};let{htmlRegion:ie}=D;const de="visible",ne="visibleFirst";ie!=="scroll"&&ie!==ne&&(ie=de);const ae=ie===ne,ce=aO(re,p),se=aO(te,p),$e=ie===de?se:ce,le=ae?se:$e;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";const pe=w.getBoundingClientRect();w.style.left=A,w.style.top=I,w.style.right=N,w.style.bottom=P,w.style.overflow=O,w.parentElement?.removeChild(L);const be=Rp(Math.round(Y/parseFloat(z)*1e3)/1e3),Ce=Rp(Math.round(B/parseFloat(W)*1e3)/1e3);if(be===0||Ce===0||Mf(n)&&!$T(n))return;const{offset:Ae,targetOffset:Ye}=D;let[Re,fe]=cO(U,Ae);const[ve,Ne]=cO(F,Ye);F.x-=ve,F.y-=Ne;const[He,Ge]=D.points||[],je=uO(Ge),rt=uO(He),ot=zd(F,je),Ke=zd(U,rt),De={...D};let qe=[rt,je],Je=ot.x-Ke.x+Re,Be=ot.y-Ke.y+fe;const lt=Ie(Je,Be),Dt=Ie(Je,Be,se),pt=zd(F,["t","l"]),Lt=zd(U,["t","l"]),xt=zd(F,["b","r"]),Pt=zd(U,["b","r"]),ut=D.overflow||{},{adjustX:ct,adjustY:bt,shiftX:Fe,shiftY:Ue}=ut,ye=kt=>typeof kt=="boolean"?kt:kt>=0;let Me,Se,he,Oe;xe();const ke=ye(bt),Xe=rt[0]===je[0];if(ke&&rt[0]==="t"&&(Se>le.bottom||g.current.bt)){let kt=Be;Xe?kt-=B-J:kt=pt.y-Pt.y-fe;const zr=Ie(Je,kt),Fr=Ie(Je,kt,se);zr>lt||zr===lt&&(!ae||Fr>=Dt)?(g.current.bt=true,Be=kt,fe=-fe,qe=[Pl(qe[0],0),Pl(qe[1],0)]):g.current.bt=false;}if(ke&&rt[0]==="b"&&(Me<le.top||g.current.tb)){let kt=Be;Xe?kt+=B-J:kt=xt.y-Lt.y-fe;const zr=Ie(Je,kt),Fr=Ie(Je,kt,se);zr>lt||zr===lt&&(!ae||Fr>=Dt)?(g.current.tb=true,Be=kt,fe=-fe,qe=[Pl(qe[0],0),Pl(qe[1],0)]):g.current.tb=false;}const it=ye(ct),dt=rt[1]===je[1];if(it&&rt[1]==="l"&&(Oe>le.right||g.current.rl)){let kt=Je;dt?kt-=Y-ee:kt=pt.x-Pt.x-Re;const zr=Ie(kt,Be),Fr=Ie(kt,Be,se);zr>lt||zr===lt&&(!ae||Fr>=Dt)?(g.current.rl=true,Je=kt,Re=-Re,qe=[Pl(qe[0],1),Pl(qe[1],1)]):g.current.rl=false;}if(it&&rt[1]==="r"&&(he<le.left||g.current.lr)){let kt=Je;dt?kt+=Y-ee:kt=xt.x-Lt.x-Re;const zr=Ie(kt,Be),Fr=Ie(kt,Be,se);zr>lt||zr===lt&&(!ae||Fr>=Dt)?(g.current.lr=true,Je=kt,Re=-Re,qe=[Pl(qe[0],1),Pl(qe[1],1)]):g.current.lr=false;}De.points=[dO(qe[0]),dO(qe[1])],xe();const Et=Fe===true?0:Fe;typeof Et=="number"&&(he<se.left&&(Je-=he-se.left-Re,F.x+ee<se.left+Et&&(Je+=F.x-se.left+ee-Et)),Oe>se.right&&(Je-=Oe-se.right-Re,F.x>se.right-Et&&(Je+=F.x-se.right+Et)));const Tt=Ue===true?0:Ue;typeof Tt=="number"&&(Me<se.top&&(Be-=Me-se.top-fe,F.y+J<se.top+Tt&&(Be+=F.y-se.top+J-Tt)),Se>se.bottom&&(Be-=Se-se.bottom-fe,F.y>se.bottom-Tt&&(Be+=F.y-se.bottom+Tt)));const At=U.x+Je,yn=At+Y,Un=U.y+Be,et=Un+B,Qe=F.x,We=Qe+ee,ft=F.y,Rt=ft+J,Ut=Math.max(At,Qe),en=Math.min(yn,We),Nn=(Ut+en)/2-At,ir=Math.max(Un,ft),Sn=Math.min(et,Rt),la=(ir+Sn)/2-Un;s?.(t,De);let Wn=pe.right-U.x-(Je+U.width),ko=pe.bottom-U.y-(Be+U.height);be===1&&(Je=Math.floor(Je),Wn=Math.floor(Wn)),Ce===1&&(Be=Math.floor(Be),ko=Math.floor(ko));const ym={ready:true,offsetX:Je/be,offsetY:Be/Ce,offsetR:Wn/be,offsetB:ko/Ce,arrowX:Nn/be,arrowY:la/Ce,scaleX:be,scaleY:Ce,align:De};d(ym);}}),S=()=>{m.current+=1;const w=m.current;Promise.resolve().then(()=>{m.current===w&&y();});},C=()=>{d(w=>({...w,ready:false}));};return Rn(C,[r]),Rn(()=>{e||C();},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,S]}function kz(){const e=f.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null);},n=(r,o)=>{t(),o===0?r():e.current=setTimeout(()=>{r();},o*1e3);};return f.useEffect(()=>()=>{t();},[]),n}function ere(e,t,n,r,o){Rn(()=>{if(e&&t&&n){let p=function(){r(),o();};const i=t,s=n,l=i2(i),u=i2(s),d=dg(s),m=new Set([d,...l,...u]);return m.forEach(g=>{g.addEventListener("scroll",p,{passive:true});}),d.addEventListener("resize",p,{passive:true}),r(),()=>{m.forEach(g=>{g.removeEventListener("scroll",p),d.removeEventListener("resize",p);});}}},[e,t,n]);}function tre(e,t,n,r,o,i,s,l){const u=f.useRef(e);u.current=e;const d=f.useRef(false);f.useEffect(()=>{if(t&&r&&(!o||i)){const p=()=>{d.current=false;},g=S=>{u.current&&!s(S.composedPath?.()?.[0]||S.target)&&!d.current&&l(false);},b=dg(r);b.addEventListener("pointerdown",p,true),b.addEventListener("mousedown",g,true),b.addEventListener("contextmenu",g,true);const y=ty(n);return y&&(y.addEventListener("mousedown",g,true),y.addEventListener("contextmenu",g,true)),()=>{b.removeEventListener("pointerdown",p,true),b.removeEventListener("mousedown",g,true),b.removeEventListener("contextmenu",g,true),y&&(y.removeEventListener("mousedown",g,true),y.removeEventListener("contextmenu",g,true));}}},[t,n,r,o,i]);function m(){d.current=true;}return m}function nre(){const[e,t]=q.useState(null),[n,r]=q.useState(false),[o,i]=q.useState(false),s=q.useRef(null),l=Mt(d=>{d===false?(s.current=null,r(false)):o&&n?s.current=d:(r(true),t(d),s.current=null,n||i(true));}),u=Mt(d=>{d?(i(false),s.current&&(t(s.current),s.current=null)):(i(false),s.current=null);});return [l,n,e,u]}function s2(){return s2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},s2.apply(this,arguments)}const rre=e=>{const{prefixCls:t,isMobile:n,ready:r,open:o,align:i,offsetR:s,offsetB:l,offsetX:u,offsetY:d,arrowPos:m,popupSize:p,motion:g,uniqueContainerClassName:b,uniqueContainerStyle:y}=e,S=`${t}-unique-container`,[C,w]=q.useState(false),E=Oz(n,r,o,i,s,l,u,d),M=q.useRef(E);r&&(M.current=E);const T={};return p&&(T.width=p.width,T.height=p.height),q.createElement(To,s2({motionAppear:true,motionEnter:true,motionLeave:true,removeOnLeave:false,leavedClassName:`${S}-hidden`},g,{visible:o,onVisibleChanged:A=>{w(A);}}),({className:A,style:I})=>{const N=X(S,A,b,{[`${S}-visible`]:C});return q.createElement("div",{className:N,style:{"--arrow-x":`${m?.x||0}px`,"--arrow-y":`${m?.y||0}px`,...M.current,...T,...I,...y}})})},ore=({children:e,postTriggerProps:t})=>{const[n,r,o,i]=nre(),s=f.useMemo(()=>!o||!t?o:t(o),[o,t]),[l,u]=f.useState(null),[d,m]=f.useState(null),p=f.useRef(null),g=Mt(j=>{p.current=j,Mf(j)&&l!==j&&u(j);}),b=f.useRef(null),y=kz(),S=Mt((j,K)=>{b.current=K,y(()=>{n(j);},j.delay);}),C=j=>{y(()=>{b.current?.()||n(false);},j);},w=Mt(j=>{i(j);}),[E,M,T,A,I,N,P,,,O,D]=Bz(r,l,s?.target,s?.popupPlacement,s?.builtinPlacements||{},s?.popupAlign,void 0,false),L=f.useMemo(()=>{if(!s)return "";const j=Lz(s.builtinPlacements||{},s.prefixCls||"",O,false);return X(j,s.getPopupClassNameFromAlign?.(O))},[O,s?.getPopupClassNameFromAlign,s?.builtinPlacements,s?.prefixCls]),F=f.useMemo(()=>({show:S,hide:C}),[]);f.useEffect(()=>{D();},[s?.target]);const U=Mt(()=>(D(),Promise.resolve())),W=f.useRef({}),z=f.useContext(ny),k=f.useMemo(()=>({registerSubPopup:(j,K)=>{W.current[j]=K,z?.registerSubPopup(j,K);}}),[z]),G=s?.prefixCls;return f.createElement(_z.Provider,{value:F},e,s&&f.createElement(ny.Provider,{value:k},f.createElement(Dz,{ref:g,portal:E1,onEsc:s.onEsc,prefixCls:G,popup:s.popup,className:X(s.popupClassName,L,`${G}-unique-controlled`),style:s.popupStyle,target:s.target,open:r,keepDom:true,fresh:true,autoDestroy:false,onVisibleChanged:w,ready:E,offsetX:M,offsetY:T,offsetR:A,offsetB:I,onAlign:D,onPrepare:U,onResize:j=>m({width:j.offsetWidth,height:j.offsetHeight}),arrowPos:{x:N,y:P},align:O,zIndex:s.zIndex,mask:s.mask,arrow:s.arrow,motion:s.popupMotion,maskMotion:s.maskMotion,getPopupContainer:s.getPopupContainer},f.createElement(rre,{prefixCls:G,isMobile:false,ready:E,open:r,align:O,offsetR:A,offsetB:I,offsetX:M,offsetY:T,arrowPos:{x:N,y:P},popupSize:d,motion:s.popupMotion,uniqueContainerClassName:X(s.uniqueContainerClassName,L),uniqueContainerStyle:s.uniqueContainerStyle}))))};function ire(e=E1){return f.forwardRef((n,r)=>{const{prefixCls:o="rc-trigger-popup",children:i,action:s="hover",showAction:l,hideAction:u,popupVisible:d,defaultPopupVisible:m,onOpenChange:p,afterOpenChange:g,onPopupVisibleChange:b,afterPopupVisibleChange:y,mouseEnterDelay:S,mouseLeaveDelay:C=.1,focusDelay:w,blurDelay:E,mask:M,maskClosable:T=true,getPopupContainer:A,forceRender:I,autoDestroy:N,popup:P,popupClassName:O,uniqueContainerClassName:D,uniqueContainerStyle:L,popupStyle:F,popupPlacement:U,builtinPlacements:W={},popupAlign:z,zIndex:k,stretch:G,getPopupClassNameFromAlign:j,fresh:K,unique:Q,alignPoint:_,onPopupClick:B,onPopupAlign:Y,arrow:J,popupMotion:ee,maskMotion:te,mobile:re,...ie}=n,de=N||false,ne=d===void 0,ae=!!re,ce=f.useRef({}),se=f.useContext(ny),$e=f.useMemo(()=>({registerSubPopup:(mt,Ht)=>{ce.current[mt]=Ht,se?.registerSubPopup(mt,Ht);}}),[se]),le=f.useContext(_z),pe=Qa(),[be,Ce]=f.useState(null),Ae=f.useRef(null),Ye=Mt(mt=>{Ae.current=mt,Mf(mt)&&be!==mt&&Ce(mt),se?.registerSubPopup(pe,mt);}),[Re,fe]=f.useState(null),ve=f.useRef(null),Ne=Mt(mt=>{const Ht=Iu(mt);Mf(Ht)&&Re!==Ht&&(fe(Ht),ve.current=Ht);}),He={},Ge=Mt(mt=>{const Ht=Re;return Ht?.contains(mt)||ty(Ht)?.host===mt||mt===Ht||be?.contains(mt)||ty(be)?.host===mt||mt===be||Object.values(ce.current).some(sl=>sl?.contains(mt)||mt===sl)}),je=J?{...J!==true?J:{}}:null,[rt,ot]=fn(m||false,d),Ke=rt||false,De=f.useMemo(()=>{const mt=typeof i=="function"?i({open:Ke}):i;return f.Children.only(mt)},[i,Ke]),qe=De?.props||{},Je=Mt(()=>Ke),Be=Mt((mt=0)=>({popup:P,target:Re,delay:mt,prefixCls:o,popupClassName:O,uniqueContainerClassName:D,uniqueContainerStyle:L,popupStyle:F,popupPlacement:U,builtinPlacements:W,popupAlign:z,zIndex:k,mask:M,maskClosable:T,popupMotion:ee,maskMotion:te,arrow:je,getPopupContainer:A,getPopupClassNameFromAlign:j,id:pe,onEsc:Lt}));Rn(()=>{le&&Q&&Re&&!ne&&!se&&(Ke?le.show(Be(S),Je):le.hide(C));},[Ke,Re]);const Ie=f.useRef(Ke);Ie.current=Ke;const lt=Mt(mt=>{No.flushSync(()=>{Ke!==mt&&(ot(mt),p?.(mt),b?.(mt));});}),Dt=kz(),pt=(mt,Ht=0)=>{if(d!==void 0){Dt(()=>{lt(mt);},Ht);return}if(le&&Q&&ne&&!se){mt?le.show(Be(Ht),Je):le.hide(Ht);return}Dt(()=>{lt(mt);},Ht);};function Lt({top:mt}){mt&&pt(false);}const[xt,Pt]=f.useState(false);Rn(mt=>{(!mt||Ke)&&Pt(true);},[Ke]);const[ut,ct]=f.useState(null),[bt,Fe]=f.useState(null),Ue=mt=>{Fe([mt.clientX,mt.clientY]);},[ye,Me,Se,he,Oe,xe,ke,Xe,it,dt,Et]=Bz(Ke,be,_&&bt!==null?bt:Re,U,W,z,Y,ae),[Tt,At]=Zne(s,l,u),yn=Tt.has("click"),Un=At.has("click")||At.has("contextMenu"),et=Mt(()=>{xt||Et();});ere(Ke,Re,be,et,()=>{Ie.current&&_&&Un&&pt(false);}),Rn(()=>{et();},[bt,U]),Rn(()=>{Ke&&!W?.[U]&&et();},[JSON.stringify(z)]);const We=f.useMemo(()=>{const mt=Lz(W,o,dt,_);return X(mt,j?.(dt))},[dt,j,W,o,_]);f.useImperativeHandle(r,()=>({nativeElement:ve.current,popupElement:Ae.current,forceAlign:et}));const[ft,Rt]=f.useState(0),[Ut,en]=f.useState(0),nn=()=>{if(G&&Re){const mt=Re.getBoundingClientRect();Rt(mt.width),en(mt.height);}},Nn=()=>{nn(),et();},ir=mt=>{Pt(false),Et(),g?.(mt),y?.(mt);},Sn=()=>new Promise(mt=>{nn(),ct(()=>mt);});Rn(()=>{ut&&(Et(),ut(),ct(null));},[ut]);function vo(mt,Ht,sl,ev,rd){He[mt]=(ca,...tv)=>{(!rd||!rd())&&(ev?.(ca),pt(Ht,sl)),qe[mt]?.(ca,...tv);};}const la=Tt.has("touch"),Wn=At.has("touch"),ko=f.useRef(false);(la||Wn)&&(He.onTouchStart=(...mt)=>{ko.current=true,Ie.current&&Wn?pt(false):!Ie.current&&la&&pt(true),qe.onTouchStart?.(...mt);}),(yn||Un)&&(He.onClick=(mt,...Ht)=>{Ie.current&&Un?pt(false):!Ie.current&&yn&&(Ue(mt),pt(true)),qe.onClick?.(mt,...Ht),ko.current=false;});const ym=tre(Ke,Un||Wn,Re,be,M,T,Ge,pt),kt=Tt.has("hover"),zr=At.has("hover");let Fr,Os;const Pi=()=>ko.current;if(kt){const mt=Ht=>{Ue(Ht);};vo("onMouseEnter",true,S,mt,Pi),vo("onPointerEnter",true,S,mt,Pi),Fr=Ht=>{(Ke||xt)&&be?.contains(Ht.target)&&pt(true,S);},_&&(He.onMouseMove=Ht=>{qe.onMouseMove?.(Ht);});}zr&&(vo("onMouseLeave",false,C,void 0,Pi),vo("onPointerLeave",false,C,void 0,Pi),Os=()=>{pt(false,C);}),Tt.has("focus")&&vo("onFocus",true,w),At.has("focus")&&vo("onBlur",false,E),Tt.has("contextMenu")&&(He.onContextMenu=(mt,...Ht)=>{Ie.current&&At.has("contextMenu")?pt(false):(Ue(mt),pt(true)),mt.preventDefault(),qe.onContextMenu?.(mt,...Ht);});const zo=f.useRef(false);zo.current||=I||Ke||xt;const Zr={...qe,...He},$c={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(mt=>{ie[mt]&&($c[mt]=(...Ht)=>{Zr[mt]?.(...Ht),ie[mt](...Ht);});});const Mc={x:xe,y:ke};wk(Ke,Re,Nn);const td=Ya(Ne,hc(De)),nd=f.cloneElement(De,{...Zr,...$c,ref:td});return f.createElement(f.Fragment,null,nd,zo.current&&(!le||!Q)&&f.createElement(ny.Provider,{value:$e},f.createElement(Dz,{portal:e,ref:Ye,prefixCls:o,popup:P,className:X(O,!ae&&We),style:F,target:Re,onMouseEnter:Fr,onMouseLeave:Os,onPointerEnter:Fr,zIndex:k,open:Ke,keepDom:xt,fresh:K,onClick:B,onPointerDownCapture:ym,mask:M,motion:ee,maskMotion:te,onVisibleChanged:ir,onPrepare:Sn,forceRender:I,autoDestroy:de,getPopupContainer:A,onEsc:Lt,align:dt,arrow:je,arrowPos:Mc,ready:ye,offsetX:Me,offsetY:Se,offsetR:he,offsetB:Oe,onAlign:et,stretch:G,targetWidth:ft/Xe,targetHeight:Ut/it,mobile:re})))})}const $1=ire(E1);function zz(e){return e&&q.isValidElement(e)&&e.type===q.Fragment}const Fz=(e,t,n)=>q.isValidElement(e)?q.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function qr(e,t){return Fz(e,e,t)}const sre=({children:e})=>{const{getPrefixCls:t}=q.useContext(wt),n=t();return q.isValidElement(e)?q.createElement(To,{visible:true,motionName:`${n}-fade`,motionAppear:true,motionEnter:true,motionLeave:false,removeOnLeave:false},({style:r,className:o})=>qr(e,i=>({className:X(i.className,o),style:{...i.style,...r}}))):e},Cb=[null,null];function are(e){if(Cb[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:false};}),Cb[0]=e,Cb[1]=t;}return Cb[1]}const Hz=({children:e})=>{const t=n=>{const{id:r,builtinPlacements:o,popup:i}=n,s=typeof i=="function"?i():i,l=are(o);return {...n,getPopupContainer:null,arrow:false,popup:q.createElement(sre,{key:r},s),builtinPlacements:l}};return q.createElement(ore,{postTriggerProps:t},e)},fo=f.createContext(false),Vz=({children:e,disabled:t})=>{const n=f.useContext(fo);return f.createElement(fo.Provider,{value:t??n},e)},Rf=f.createContext(void 0),lre=({children:e,size:t})=>{const n=f.useContext(Rf);return f.createElement(Rf.Provider,{value:t||n},e)};function cre(){const e=f.useContext(fo),t=f.useContext(Rf);return {componentDisabled:e,componentSize:t}}function ure(e,t,n){const r=e||{},o=r.inherit===false||!t?{...Tp,hashed:t?.hashed??Tp.hashed,cssVar:t?.cssVar}:t,i=f.useId();return qf(()=>{if(!e)return t;const s={...o.components};Object.keys(e.components||{}).forEach(d=>{s[d]={...s[d],...e.components[d]};});const l=`css-var-${i.replace(/:/g,"")}`,u={prefix:n?.prefixCls,...o.cssVar,...r.cssVar,key:r.cssVar?.key||l};return {...o,...r,token:{...o.token,...r.token},components:s,cssVar:u}},[r,o],(s,l)=>s.some((u,d)=>{const m=l[d];return !ec(u,m,true)}))}const fO=f.createContext(true);function dre(e){const t=f.useContext(fO),{children:n}=e,[,r]=Xr(),{motion:o}=r,i=f.useRef(false);return i.current||(i.current=t!==o),i.current?f.createElement(fO.Provider,{value:o},f.createElement(Gte,{motion:o},n)):n}const fre=()=>null,mre=({iconPrefixCls:e,csp:t})=>(Tte(e,t),null),hre=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let ry,jz,Uz,Wz;function ew(){return ry||Sp}function pre(){return jz||p1}const gre=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(ry=t),n!==void 0&&(jz=n),"holderRender"in e&&(Wz=o),r&&(Uz=r);},MT=()=>({getPrefixCls:(e,t)=>t||(e?`${ew()}-${e}`:ew()),getIconPrefixCls:pre,getRootPrefixCls:()=>ry||ew(),getTheme:()=>Uz,holderRender:Wz}),vre=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,affix:i,anchor:s,app:l,form:u,locale:d,componentSize:m,direction:p,space:g,splitter:b,virtual:y,dropdownMatchSelectWidth:S,popupMatchSelectWidth:C,popupOverflow:w,legacyLocale:E,parentContext:M,iconPrefixCls:T,theme:A,componentDisabled:I,segmented:N,statistic:P,spin:O,calendar:D,carousel:L,cascader:F,collapse:U,typography:W,checkbox:z,descriptions:k,divider:G,drawer:j,skeleton:K,steps:Q,image:_,layout:B,list:Y,mentions:J,modal:ee,progress:te,result:re,slider:ie,breadcrumb:de,masonry:ne,menu:ae,pagination:ce,input:se,textArea:$e,otp:le,empty:pe,badge:be,radio:Ce,rate:Ae,ribbon:Ye,switch:Re,transfer:fe,avatar:ve,message:Ne,tag:He,table:Ge,card:je,cardMeta:rt,tabs:ot,timeline:Ke,timePicker:De,upload:qe,notification:Je,tree:Be,colorPicker:Ie,datePicker:lt,rangePicker:Dt,flex:pt,wave:Lt,dropdown:xt,warning:Pt,tour:ut,tooltip:ct,popover:bt,popconfirm:Fe,qrcode:Ue,floatButton:ye,floatButtonGroup:Me,variant:Se,inputNumber:he,treeSelect:Oe,watermark:xe}=e,ke=f.useCallback((ft,Rt)=>{const{prefixCls:Ut}=e;if(Rt)return Rt;const en=Ut||M.getPrefixCls("");return ft?`${en}-${ft}`:en},[M.getPrefixCls,e.prefixCls]),Xe=T||M.iconPrefixCls||p1,it=n||M.csp,dt=ure(A,M.theme,{prefixCls:ke("")}),Et={csp:it,autoInsertSpaceInButton:r,alert:o,affix:i,anchor:s,app:l,locale:d||E,direction:p,space:g,splitter:b,virtual:y,popupMatchSelectWidth:C??S,popupOverflow:w,getPrefixCls:ke,iconPrefixCls:Xe,theme:dt,segmented:N,statistic:P,spin:O,calendar:D,carousel:L,cascader:F,collapse:U,typography:W,checkbox:z,descriptions:k,divider:G,drawer:j,skeleton:K,steps:Q,image:_,input:se,textArea:$e,otp:le,layout:B,list:Y,mentions:J,modal:ee,progress:te,result:re,slider:ie,breadcrumb:de,masonry:ne,menu:ae,pagination:ce,empty:pe,badge:be,radio:Ce,rate:Ae,ribbon:Ye,switch:Re,transfer:fe,avatar:ve,message:Ne,tag:He,table:Ge,card:je,cardMeta:rt,tabs:ot,timeline:Ke,timePicker:De,upload:qe,notification:Je,tree:Be,colorPicker:Ie,datePicker:lt,rangePicker:Dt,flex:pt,wave:Lt,dropdown:xt,warning:Pt,tour:ut,tooltip:ct,popover:bt,popconfirm:Fe,qrcode:Ue,floatButton:ye,floatButtonGroup:Me,variant:Se,inputNumber:he,treeSelect:Oe,watermark:xe},Tt={...M};Object.keys(Et).forEach(ft=>{Et[ft]!==void 0&&(Tt[ft]=Et[ft]);}),hre.forEach(ft=>{const Rt=e[ft];Rt&&(Tt[ft]=Rt);}),typeof r<"u"&&(Tt.button={autoInsertSpace:r,...Tt.button});const At=qf(()=>Tt,Tt,(ft,Rt)=>{const Ut=Object.keys(ft),en=Object.keys(Rt);return Ut.length!==en.length||Ut.some(nn=>ft[nn]!==Rt[nn])}),{layer:yn}=f.useContext(Ou),Un=f.useMemo(()=>({prefixCls:Xe,csp:it,layer:yn?"antd":void 0}),[Xe,it,yn]);let et=f.createElement(f.Fragment,null,f.createElement(mre,{iconPrefixCls:Xe,csp:it}),f.createElement(fre,{dropdownMatchSelectWidth:S}),t);const Qe=f.useMemo(()=>nf(Ms.Form?.defaultValidateMessages||{},At.locale?.Form?.defaultValidateMessages||{},At.form?.validateMessages||{},u?.validateMessages||{}),[At,u?.validateMessages]);Object.keys(Qe).length>0&&(et=f.createElement(Dne.Provider,{value:Qe},et)),d&&(et=f.createElement(xne,{locale:d,_ANT_MARK__:Cne},et)),et=f.createElement(vT.Provider,{value:Un},et),m&&(et=f.createElement(lre,{size:m},et)),et=f.createElement(dre,null,et),ct?.unique&&(et=f.createElement(Hz,null,et));const We=f.useMemo(()=>{const{algorithm:ft,token:Rt,components:Ut,cssVar:en,...nn}=dt||{},Nn=ft&&(!Array.isArray(ft)||ft.length>0)?Z0(ft):pT,ir={};Object.entries(Ut||{}).forEach(([vo,la])=>{const Wn={...la};"algorithm"in Wn&&(Wn.algorithm===true?Wn.theme=Nn:(Array.isArray(Wn.algorithm)||typeof Wn.algorithm=="function")&&(Wn.theme=Z0(Wn.algorithm)),delete Wn.algorithm),ir[vo]=Wn;});const Sn={...Af,...Rt};return {...nn,theme:Nn,token:Sn,components:ir,override:{override:Sn,...ir},cssVar:en}},[dt]);return A&&(et=f.createElement(gT.Provider,{value:We},et)),At.warning&&(et=f.createElement(zJ.Provider,{value:At.warning},et)),I!==void 0&&(et=f.createElement(Vz,{disabled:I},et)),f.createElement(wt.Provider,{value:At},et)},Bo=e=>{const t=f.useContext(wt),n=f.useContext(CT);return f.createElement(vre,{parentContext:t,legacyLocale:n,...e})};Bo.ConfigContext=wt;Bo.SizeContext=Rf;Bo.config=gre;Bo.useConfig=cre;Object.defineProperty(Bo,"SizeContext",{get:()=>Rf});const st={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,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,DELETE:46,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224};function oy(){return oy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},oy.apply(this,arguments)}const TT=f.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,duration:i=4.5,showProgress:s,pauseOnHover:l=true,eventKey:u,content:d,closable:m,props:p,onClick:g,onNoticeClose:b,times:y,hovering:S}=e,[C,w]=f.useState(false),[E,M]=f.useState(0),[T,A]=f.useState(0),I=S||C,N=typeof i=="number"?i:0,P=N>0&&s,O=()=>{b(u);},D=z=>{(z.key==="Enter"||z.code==="Enter"||z.keyCode===st.ENTER)&&O();};f.useEffect(()=>{if(!I&&N>0){const z=Date.now()-T,k=setTimeout(()=>{O();},N*1e3-T);return ()=>{l&&clearTimeout(k),A(Date.now()-z);}}},[N,I,y]),f.useEffect(()=>{if(!I&&P&&(l||T===0)){const z=performance.now();let k;const G=()=>{cancelAnimationFrame(k),k=requestAnimationFrame(j=>{const K=j+T-z,Q=Math.min(K/(N*1e3),1);M(Q*100),Q<1&&G();});};return G(),()=>{l&&cancelAnimationFrame(k);}}},[N,T,I,P,y]);const L=f.useMemo(()=>typeof m=="object"&&m!==null?m:{},[m]),F=$o(L,true),U=100-(!E||E<0?0:E>100?100:E),W=`${n}-notice`;return f.createElement("div",oy({},p,{ref:t,className:X(W,o,{[`${W}-closable`]:m}),style:r,onMouseEnter:z=>{w(true),p?.onMouseEnter?.(z);},onMouseLeave:z=>{w(false),p?.onMouseLeave?.(z);},onClick:g}),f.createElement("div",{className:`${W}-content`},d),m&&f.createElement("button",oy({className:`${W}-close`,onKeyDown:D,"aria-label":"Close"},F,{onClick:z=>{z.preventDefault(),z.stopPropagation(),O();}}),L.closeIcon??"x"),P&&f.createElement("progress",{className:`${W}-progress`,max:"100",value:U},U+"%"))}),Gz=q.createContext({}),qz=({children:e,classNames:t})=>q.createElement(Gz.Provider,{value:{classNames:t}},e),mO=8,hO=3,pO=16,bre=e=>{const t={offset:mO,threshold:hO,gap:pO};return e&&typeof e=="object"&&(t.offset=e.offset??mO,t.threshold=e.threshold??hO,t.gap=e.gap??pO),[!!e,t]};function iy(){return iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},iy.apply(this,arguments)}const yre=e=>{const{configList:t,placement:n,prefixCls:r,className:o,style:i,motion:s,onAllNoticeRemoved:l,onNoticeClose:u,stack:d}=e,{classNames:m}=f.useContext(Gz),p=f.useRef({}),[g,b]=f.useState(null),[y,S]=f.useState([]),C=t.map(N=>({config:N,key:String(N.key)})),[w,{offset:E,threshold:M,gap:T}]=bre(d),A=w&&(y.length>0||C.length<=M),I=typeof s=="function"?s(n):s;return f.useEffect(()=>{w&&y.length>1&&S(N=>N.filter(P=>C.some(({key:O})=>P===O)));},[y,C,w]),f.useEffect(()=>{w&&p.current[C[C.length-1]?.key]&&b(p.current[C[C.length-1]?.key]);},[C,w]),q.createElement(cne,iy({key:n,className:X(r,`${r}-${n}`,m?.list,o,{[`${r}-stack`]:!!w,[`${r}-stack-expanded`]:A}),style:i,keys:C,motionAppear:true},I,{onAllRemoved:()=>{l(n);}}),({config:N,className:P,style:O,index:D},L)=>{const{key:F,times:U}=N,W=String(F),{className:z,style:k,classNames:G,styles:j,...K}=N,Q=C.findIndex(B=>B.key===W),_={};if(w){const B=C.length-1-(Q>-1?Q:D-1),Y=n==="top"||n==="bottom"?"-50%":"0";if(B>0){_.height=A?p.current[W]?.offsetHeight:g?.offsetHeight;let J=0;for(let re=0;re<B;re++)J+=p.current[C[C.length-1-re].key]?.offsetHeight+T;const ee=(A?J:B*E)*(n.startsWith("top")?1:-1),te=!A&&g?.offsetWidth&&p.current[W]?.offsetWidth?(g?.offsetWidth-E*2*(B<3?B:3))/p.current[W]?.offsetWidth:1;_.transform=`translate3d(${Y}, ${ee}px, 0) scaleX(${te})`;}else _.transform=`translate3d(${Y}, 0, 0)`;}return q.createElement("div",{ref:L,className:X(`${r}-notice-wrapper`,P,G?.wrapper),style:{...O,..._,...j?.wrapper},onMouseEnter:()=>S(B=>B.includes(W)?B:[...B,W]),onMouseLeave:()=>S(B=>B.filter(Y=>Y!==W))},q.createElement(TT,iy({},K,{ref:B=>{Q>-1?p.current[W]=B:delete p.current[W];},prefixCls:r,classNames:G,styles:j,className:X(z,m?.notice),style:k,times:U,key:F,eventKey:F,onNoticeClose:u,hovering:w&&y.length>0})))})},Sre=f.forwardRef((e,t)=>{const{prefixCls:n="rc-notification",container:r,motion:o,maxCount:i,className:s,style:l,onAllRemoved:u,stack:d,renderNotifications:m}=e,[p,g]=f.useState([]),b=M=>{const T=p.find(P=>P.key===M),A=T?.closable,I=A&&typeof A=="object"?A:{},{onClose:N}=I;N?.(),T?.onClose?.(),g(P=>P.filter(O=>O.key!==M));};f.useImperativeHandle(t,()=>({open:M=>{g(T=>{let A=[...T];const I=A.findIndex(P=>P.key===M.key),N={...M};return I>=0?(N.times=(T[I]?.times||0)+1,A[I]=N):(N.times=0,A.push(N)),i>0&&A.length>i&&(A=A.slice(-i)),A});},close:M=>{b(M);},destroy:()=>{g([]);}}));const[y,S]=f.useState({});f.useEffect(()=>{const M={};p.forEach(T=>{const{placement:A="topRight"}=T;A&&(M[A]=M[A]||[],M[A].push(T));}),Object.keys(y).forEach(T=>{M[T]=M[T]||[];}),S(M);},[p]);const C=M=>{S(T=>{const A={...T};return (A[M]||[]).length||delete A[M],A});},w=f.useRef(false);if(f.useEffect(()=>{Object.keys(y).length>0?w.current=true:w.current&&(u?.(),w.current=false);},[y]),!r)return null;const E=Object.keys(y);return No.createPortal(f.createElement(f.Fragment,null,E.map(M=>{const T=y[M],A=f.createElement(yre,{key:M,configList:T,placement:M,prefixCls:n,className:s?.(M),style:l?.(M),motion:o,onNoticeClose:b,onAllNoticeRemoved:C,stack:d});return m?m(A,{prefixCls:n,key:M}):A})),r)}),Cre=()=>document.body;let gO=0;function xre(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{const o=n[r];o!==void 0&&(t[r]=o);});}),t}function Kz(e={}){const{getContainer:t=Cre,motion:n,prefixCls:r,maxCount:o,className:i,style:s,onAllRemoved:l,stack:u,renderNotifications:d,...m}=e,[p,g]=f.useState(),b=f.useRef(),y=f.createElement(Sre,{container:p,ref:b,prefixCls:r,motion:n,maxCount:o,className:i,style:s,onAllRemoved:l,stack:u,renderNotifications:d}),[S,C]=f.useState([]),w=Mt(M=>{const T=xre(m,M);(T.key===null||T.key===void 0)&&(T.key=`rc-notification-${gO}`,gO+=1),C(A=>[...A,{type:"open",config:T}]);}),E=f.useMemo(()=>({open:w,close:M=>{C(T=>[...T,{type:"close",key:M}]);},destroy:()=>{C(M=>[...M,{type:"destroy"}]);}}),[]);return f.useEffect(()=>{g(t());}),f.useEffect(()=>{if(b.current&&S.length){S.forEach(A=>{switch(A.type){case "open":b.current.open(A.config);break;case "close":b.current.close(A.key);break;case "destroy":b.current.destroy();break}});let M,T;C(A=>((M!==A||!T)&&(M=A,T=A.filter(I=>!S.includes(I))),T));}},[S]),[E,y]}var wre={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"};function a2(){return a2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},a2.apply(this,arguments)}const Ere=(e,t)=>f.createElement(Xn,a2({},e,{ref:t,icon:wre})),M1=f.forwardRef(Ere),$re=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:s,colorWarning:l,colorInfo:u,fontSizeLG:d,motionEaseInOutCirc:m,motionDurationSlow:p,marginXS:g,paddingXS:b,borderRadiusLG:y,zIndexPopup:S,contentPadding:C,contentBg:w}=e,E=`${t}-notice`,M=new Bt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:b,transform:"translateY(0)",opacity:1}}),T=new Bt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:b,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),A={padding:b,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:g,fontSize:d},[`${E}-content`]:{display:"inline-block",padding:C,background:w,borderRadius:y,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:s},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},
      ${t}-loading > ${n}`]:{color:u}};return [{[t]:{...mn(e),color:o,position:"fixed",top:g,width:"100%",pointerEvents:"none",zIndex:S,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
        ${t}-move-up-appear,
        ${t}-move-up-enter
      `]:{animationName:M,animationDuration:p,animationPlayState:"paused",animationTimingFunction:m},[`
        ${t}-move-up-appear${t}-move-up-appear-active,
        ${t}-move-up-enter${t}-move-up-enter-active
      `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:T,animationDuration:p,animationPlayState:"paused",animationTimingFunction:m},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[t]:{[`${E}-wrapper`]:{...A}}},{[`${t}-notice-pure-panel`]:{...A,padding:0,textAlign:"start"}}]},Mre=e=>({zIndexPopup:e.zIndexPopupBase+ET+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Yz=Wt("Message",e=>{const t=zt(e,{height:150});return $re(t)},Mre),Tre={info:f.createElement(yT,null),success:f.createElement(bT,null),error:f.createElement(cg,null),warning:f.createElement(ug,null),loading:f.createElement(M1,null)},Xz=e=>{const{prefixCls:t,type:n,icon:r,children:o,classNames:i,styles:s}=e,l=r||n&&Tre[n],u=qr(l,d=>{const m={...d?.style,...s?.icon};return {className:X(d.className,i?.icon),style:m}});return f.createElement("div",{className:X(`${t}-custom-content`,`${t}-${n}`)},u,f.createElement("span",{className:i?.content,style:s?.content},o))},Are=e=>{const{prefixCls:t,className:n,style:r,type:o,icon:i,content:s,classNames:l,styles:u,...d}=e,{getPrefixCls:m,className:p,style:g,classNames:b,styles:y}=jt("message"),S=t||m("message"),C=Qn(S),[w,E]=Yz(S,C),[M,T]=qt([b,l],[y,u],{props:e});return f.createElement(TT,{...d,prefixCls:S,className:X(p,M.root,n,w,`${S}-notice-pure-panel`,E,C),style:{...T.root,...g,...r},eventKey:"pure",duration:null,content:f.createElement(Xz,{prefixCls:S,type:o,icon:i,classNames:M,styles:T},s)})};function Rre(e,t){return {motionName:t??`${e}-move-up`}}function AT(e){let t;const n=new Promise(o=>{t=e(()=>{o(true);});}),r=()=>{t?.();};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}const Nre=8,Pre=3,Ire=({children:e,prefixCls:t})=>{const n=Qn(t),[r,o]=Yz(t,n);return f.createElement(qz,{classNames:{list:X(r,o,n)}},e)},Ore=(e,{prefixCls:t,key:n})=>f.createElement(Ire,{prefixCls:t,key:n},e),Dre=f.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:s=Pre,rtl:l,transitionName:u,onAllRemoved:d,pauseOnHover:m=true}=e,{getPrefixCls:p,direction:g,getPopupContainer:b}=jt("message"),{message:y}=f.useContext(wt),S=r||p("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:n??Nre}),w=()=>X({[`${S}-rtl`]:l??g==="rtl"}),E=()=>Rre(S,u),[M,T]=qt([e?.classNames,y?.classNames],[e?.styles,y?.styles],{props:e}),[A,I]=Kz({prefixCls:S,style:C,className:w,motion:E,closable:false,duration:s,getContainer:()=>o?.()||b?.()||document.body,maxCount:i,onAllRemoved:d,renderNotifications:Ore,pauseOnHover:m});return f.useImperativeHandle(t,()=>({...A,prefixCls:S,message:y,classNames:M,styles:T})),I});let vO=0;function Qz(e){const t=f.useRef(null);return [f.useMemo(()=>{const r=u=>{t.current?.close(u);},o=u=>{if(!t.current){const _=()=>{};return _.then=()=>{},_}const{open:d,prefixCls:m,message:p,classNames:g,styles:b}=t.current,y=p?.className||{},S=p?.style||{},C=p?.classNames||{},w=p?.styles||{},E=`${m}-notice`,{content:M,icon:T,type:A,key:I,className:N,style:P,onClose:O,classNames:D={},styles:L={},...F}=u;let U=I;Lr(U)||(vO+=1,U=`antd-message-${vO}`);const W={...e,...u},z=Wl(C,{props:W}),k=Wl(D,{props:W}),G=Wl(w,{props:W}),j=Wl(L,{props:W}),K=x1(void 0,z,k,g),Q=wT(G,j,b);return AT(_=>(d({...F,key:U,content:f.createElement(Xz,{prefixCls:m,type:A,icon:T,classNames:K,styles:Q},M),placement:"top",className:X({[`${E}-${A}`]:A},N,y,K.root),style:{...Q.root,...S,...P},onClose:()=>{O?.(),_();}}),()=>{r(U);}))},s={open:o,destroy:u=>{u!==void 0?r(u):t.current?.destroy();}};return ["info","success","warning","error","loading"].forEach(u=>{const d=(m,p,g)=>{let b;m&&typeof m=="object"&&"content"in m?b=m:b={content:m};let y,S;typeof p=="function"?S=p:(y=p,S=g);const C={onClose:S,duration:y,...b,type:u};return o(C)};s[u]=d;}),s},[]),f.createElement(Dre,{key:"message-holder",...e,ref:t})]}function Zz(e){return Qz(e)}var tw={exports:{}},fh={},nw={exports:{}},rw={};var bO;function _re(){return bO||(bO=1,(function(e){function t(k,G){var j=k.length;k.push(G);e:for(;0<j;){var K=j-1>>>1,Q=k[K];if(0<o(Q,G))k[K]=G,k[j]=Q,j=K;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var G=k[0],j=k.pop();if(j!==G){k[0]=j;e:for(var K=0,Q=k.length,_=Q>>>1;K<_;){var B=2*(K+1)-1,Y=k[B],J=B+1,ee=k[J];if(0>o(Y,j))J<Q&&0>o(ee,Y)?(k[K]=ee,k[J]=j,K=J):(k[K]=Y,k[B]=j,K=B);else if(J<Q&&0>o(ee,j))k[K]=ee,k[J]=j,K=J;else break e}}return G}function o(k,G){var j=k.sortIndex-G.sortIndex;return j!==0?j:k.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()};}else {var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l};}var u=[],d=[],m=1,p=null,g=3,b=false,y=false,S=false,C=false,w=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function T(k){for(var G=n(d);G!==null;){if(G.callback===null)r(d);else if(G.startTime<=k)r(d),G.sortIndex=G.expirationTime,t(u,G);else break;G=n(d);}}function A(k){if(S=false,T(k),!y)if(n(u)!==null)y=true,I||(I=true,F());else {var G=n(d);G!==null&&z(A,G.startTime-k);}}var I=false,N=-1,P=5,O=-1;function D(){return C?true:!(e.unstable_now()-O<P)}function L(){if(C=false,I){var k=e.unstable_now();O=k;var G=true;try{e:{y=!1,S&&(S=!1,E(N),N=-1),b=!0;var j=g;try{t:{for(T(k),p=n(u);p!==null&&!(p.expirationTime>k&&D());){var K=p.callback;if(typeof K=="function"){p.callback=null,g=p.priorityLevel;var Q=K(p.expirationTime<=k);if(k=e.unstable_now(),typeof Q=="function"){p.callback=Q,T(k),G=!0;break t}p===n(u)&&r(u),T(k);}else r(u);p=n(u);}if(p!==null)G=!0;else {var _=n(d);_!==null&&z(A,_.startTime-k),G=!1;}}break e}finally{p=null,g=j,b=!1;}G=void 0;}}finally{G?F():I=false;}}}var F;if(typeof M=="function")F=function(){M(L);};else if(typeof MessageChannel<"u"){var U=new MessageChannel,W=U.port2;U.port1.onmessage=L,F=function(){W.postMessage(null);};}else F=function(){w(L,0);};function z(k,G){N=w(function(){k(e.unstable_now());},G);}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null;},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<k?Math.floor(1e3/k):5;},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(k){switch(g){case 1:case 2:case 3:var G=3;break;default:G=g;}var j=g;g=G;try{return k()}finally{g=j;}},e.unstable_requestPaint=function(){C=true;},e.unstable_runWithPriority=function(k,G){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3;}var j=g;g=k;try{return G()}finally{g=j;}},e.unstable_scheduleCallback=function(k,G,j){var K=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?K+j:K):j=K,k){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3;}return Q=j+Q,k={id:m++,callback:G,priorityLevel:k,startTime:j,expirationTime:Q,sortIndex:-1},j>K?(k.sortIndex=j,t(d,k),n(u)===null&&k===n(d)&&(S?(E(N),N=-1):S=true,z(A,j-K))):(k.sortIndex=Q,t(u,k),y||b||(y=true,I||(I=true,F()))),k},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(k){var G=g;return function(){var j=g;g=G;try{return k.apply(this,arguments)}finally{g=j;}}};})(rw)),rw}var yO;function Lre(){return yO||(yO=1,nw.exports=_re()),nw.exports}var SO;function Bre(){if(SO)return fh;SO=1;var e=Lre(),t=UM(),n=Az();function r(a){var c="https://react.dev/errors/"+a;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)c+="&args[]="+encodeURIComponent(arguments[h]);}return "Minified React error #"+a+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(a){return !(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function i(a){var c=a,h=a;if(a.alternate)for(;c.return;)c=c.return;else {a=c;do c=a,(c.flags&4098)!==0&&(h=c.return),a=c.return;while(a)}return c.tag===3?h:null}function s(a){if(a.tag===13){var c=a.memoizedState;if(c===null&&(a=a.alternate,a!==null&&(c=a.memoizedState)),c!==null)return c.dehydrated}return null}function l(a){if(a.tag===31){var c=a.memoizedState;if(c===null&&(a=a.alternate,a!==null&&(c=a.memoizedState)),c!==null)return c.dehydrated}return null}function u(a){if(i(a)!==a)throw Error(r(188))}function d(a){var c=a.alternate;if(!c){if(c=i(a),c===null)throw Error(r(188));return c!==a?null:a}for(var h=a,v=c;;){var $=h.return;if($===null)break;var R=$.alternate;if(R===null){if(v=$.return,v!==null){h=v;continue}break}if($.child===R.child){for(R=$.child;R;){if(R===h)return u($),a;if(R===v)return u($),c;R=R.sibling;}throw Error(r(188))}if(h.return!==v.return)h=$,v=R;else {for(var V=false,Z=$.child;Z;){if(Z===h){V=true,h=$,v=R;break}if(Z===v){V=true,v=$,h=R;break}Z=Z.sibling;}if(!V){for(Z=R.child;Z;){if(Z===h){V=true,h=R,v=$;break}if(Z===v){V=true,v=R,h=$;break}Z=Z.sibling;}if(!V)throw Error(r(189))}}if(h.alternate!==v)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?a:c}function m(a){var c=a.tag;if(c===5||c===26||c===27||c===6)return a;for(a=a.child;a!==null;){if(c=m(a),c!==null)return c;a=a.sibling;}return null}var p=Object.assign,g=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),M=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),D=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function F(a){return a===null||typeof a!="object"?null:(a=L&&a[L]||a["@@iterator"],typeof a=="function"?a:null)}var U=Symbol.for("react.client.reference");function W(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===U?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case S:return "Fragment";case w:return "Profiler";case C:return "StrictMode";case A:return "Suspense";case I:return "SuspenseList";case O:return "Activity"}if(typeof a=="object")switch(a.$$typeof){case y:return "Portal";case M:return a.displayName||"Context";case E:return (a._context.displayName||"Context")+".Consumer";case T:var c=a.render;return a=a.displayName,a||(a=c.displayName||c.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case N:return c=a.displayName||null,c!==null?c:W(a.type)||"Memo";case P:c=a._payload,a=a._init;try{return W(a(c))}catch{}}return null}var z=Array.isArray,k=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j={pending:false,data:null,method:null,action:null},K=[],Q=-1;function _(a){return {current:a}}function B(a){0>Q||(a.current=K[Q],K[Q]=null,Q--);}function Y(a,c){Q++,K[Q]=a.current,a.current=c;}var J=_(null),ee=_(null),te=_(null),re=_(null);function ie(a,c){switch(Y(te,c),Y(ee,a),Y(J,null),c.nodeType){case 9:case 11:a=(a=c.documentElement)&&(a=a.namespaceURI)?tI(a):0;break;default:if(a=c.tagName,c=c.namespaceURI)c=tI(c),a=nI(c,a);else switch(a){case "svg":a=1;break;case "math":a=2;break;default:a=0;}}B(J),Y(J,a);}function de(){B(J),B(ee),B(te);}function ne(a){a.memoizedState!==null&&Y(re,a);var c=J.current,h=nI(c,a.type);c!==h&&(Y(ee,a),Y(J,h));}function ae(a){ee.current===a&&(B(J),B(ee)),re.current===a&&(B(re),rh._currentValue=j);}var ce,se;function $e(a){if(ce===void 0)try{throw Error()}catch(h){var c=h.stack.trim().match(/\n( *(at )?)/);ce=c&&c[1]||"",se=-1<h.stack.indexOf(`
    at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":"";}return `
`+ce+a+se}var le=false;function pe(a,c){if(!a||le)return "";le=true;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(c){var Ve=function(){throw Error()};if(Object.defineProperty(Ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ve,[]);}catch(Pe){var Te=Pe;}Reflect.construct(a,[],Ve);}else {try{Ve.call();}catch(Pe){Te=Pe;}a.call(Ve.prototype);}}else {try{throw Error()}catch(Pe){Te=Pe;}(Ve=a())&&typeof Ve.catch=="function"&&Ve.catch(function(){});}}catch(Pe){if(Pe&&Te&&typeof Pe.stack=="string")return [Pe.stack,Te.stack]}return [null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var $=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");$&&$.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var R=v.DetermineComponentFrameRoot(),V=R[0],Z=R[1];if(V&&Z){var ue=V.split(`
`),Ee=Z.split(`
`);for($=v=0;v<ue.length&&!ue[v].includes("DetermineComponentFrameRoot");)v++;for(;$<Ee.length&&!Ee[$].includes("DetermineComponentFrameRoot");)$++;if(v===ue.length||$===Ee.length)for(v=ue.length-1,$=Ee.length-1;1<=v&&0<=$&&ue[v]!==Ee[$];)$--;for(;1<=v&&0<=$;v--,$--)if(ue[v]!==Ee[$]){if(v!==1||$!==1)do if(v--,$--,0>$||ue[v]!==Ee[$]){var Le=`
`+ue[v].replace(" at new "," at ");return a.displayName&&Le.includes("<anonymous>")&&(Le=Le.replace("<anonymous>",a.displayName)),Le}while(1<=v&&0<=$);break}}}finally{le=false,Error.prepareStackTrace=h;}return (h=a?a.displayName||a.name:"")?$e(h):""}function be(a,c){switch(a.tag){case 26:case 27:case 5:return $e(a.type);case 16:return $e("Lazy");case 13:return a.child!==c&&c!==null?$e("Suspense Fallback"):$e("Suspense");case 19:return $e("SuspenseList");case 0:case 15:return pe(a.type,false);case 11:return pe(a.type.render,false);case 1:return pe(a.type,true);case 31:return $e("Activity");default:return ""}}function Ce(a){try{var c="",h=null;do c+=be(a,h),h=a,a=a.return;while(a);return c}catch(v){return `
Error generating stack: `+v.message+`
`+v.stack}}var Ae=Object.prototype.hasOwnProperty,Ye=e.unstable_scheduleCallback,Re=e.unstable_cancelCallback,fe=e.unstable_shouldYield,ve=e.unstable_requestPaint,Ne=e.unstable_now,He=e.unstable_getCurrentPriorityLevel,Ge=e.unstable_ImmediatePriority,je=e.unstable_UserBlockingPriority,rt=e.unstable_NormalPriority,ot=e.unstable_LowPriority,Ke=e.unstable_IdlePriority,De=e.log,qe=e.unstable_setDisableYieldValue,Je=null,Be=null;function Ie(a){if(typeof De=="function"&&qe(a),Be&&typeof Be.setStrictMode=="function")try{Be.setStrictMode(Je,a);}catch{}}var lt=Math.clz32?Math.clz32:Lt,Dt=Math.log,pt=Math.LN2;function Lt(a){return a>>>=0,a===0?32:31-(Dt(a)/pt|0)|0}var xt=256,Pt=262144,ut=4194304;function ct(a){var c=a&42;if(c!==0)return c;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function bt(a,c,h){var v=a.pendingLanes;if(v===0)return 0;var $=0,R=a.suspendedLanes,V=a.pingedLanes;a=a.warmLanes;var Z=v&134217727;return Z!==0?(v=Z&~R,v!==0?$=ct(v):(V&=Z,V!==0?$=ct(V):h||(h=Z&~a,h!==0&&($=ct(h))))):(Z=v&~R,Z!==0?$=ct(Z):V!==0?$=ct(V):h||(h=v&~a,h!==0&&($=ct(h)))),$===0?0:c!==0&&c!==$&&(c&R)===0&&(R=$&-$,h=c&-c,R>=h||R===32&&(h&4194048)!==0)?c:$}function Fe(a,c){return (a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&c)===0}function Ue(a,c){switch(a){case 1:case 2:case 4:case 8:case 64:return c+250;case 16:case 32: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:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return  -1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return  -1;default:return  -1}}function ye(){var a=ut;return ut<<=1,(ut&62914560)===0&&(ut=4194304),a}function Me(a){for(var c=[],h=0;31>h;h++)c.push(a);return c}function Se(a,c){a.pendingLanes|=c,c!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0);}function he(a,c,h,v,$,R){var V=a.pendingLanes;a.pendingLanes=h,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=h,a.entangledLanes&=h,a.errorRecoveryDisabledLanes&=h,a.shellSuspendCounter=0;var Z=a.entanglements,ue=a.expirationTimes,Ee=a.hiddenUpdates;for(h=V&~h;0<h;){var Le=31-lt(h),Ve=1<<Le;Z[Le]=0,ue[Le]=-1;var Te=Ee[Le];if(Te!==null)for(Ee[Le]=null,Le=0;Le<Te.length;Le++){var Pe=Te[Le];Pe!==null&&(Pe.lane&=-536870913);}h&=~Ve;}v!==0&&Oe(a,v,0),R!==0&&$===0&&a.tag!==0&&(a.suspendedLanes|=R&~(V&~c));}function Oe(a,c,h){a.pendingLanes|=c,a.suspendedLanes&=~c;var v=31-lt(c);a.entangledLanes|=c,a.entanglements[v]=a.entanglements[v]|1073741824|h&261930;}function xe(a,c){var h=a.entangledLanes|=c;for(a=a.entanglements;h;){var v=31-lt(h),$=1<<v;$&c|a[v]&c&&(a[v]|=c),h&=~$;}}function ke(a,c){var h=c&-c;return h=(h&42)!==0?1:Xe(h),(h&(a.suspendedLanes|c))!==0?0:h}function Xe(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:a=128;break;case 268435456:a=134217728;break;default:a=0;}return a}function it(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function dt(){var a=G.p;return a!==0?a:(a=window.event,a===void 0?32:$I(a.type))}function Et(a,c){var h=G.p;try{return G.p=a,c()}finally{G.p=h;}}var Tt=Math.random().toString(36).slice(2),At="__reactFiber$"+Tt,yn="__reactProps$"+Tt,Un="__reactContainer$"+Tt,et="__reactEvents$"+Tt,Qe="__reactListeners$"+Tt,We="__reactHandles$"+Tt,ft="__reactResources$"+Tt,Rt="__reactMarker$"+Tt;function Ut(a){delete a[At],delete a[yn],delete a[et],delete a[Qe],delete a[We];}function en(a){var c=a[At];if(c)return c;for(var h=a.parentNode;h;){if(c=h[Un]||h[At]){if(h=c.alternate,c.child!==null||h!==null&&h.child!==null)for(a=cI(a);a!==null;){if(h=a[At])return h;a=cI(a);}return c}a=h,h=a.parentNode;}return null}function nn(a){if(a=a[At]||a[Un]){var c=a.tag;if(c===5||c===6||c===13||c===31||c===26||c===27||c===3)return a}return null}function Nn(a){var c=a.tag;if(c===5||c===26||c===27||c===6)return a.stateNode;throw Error(r(33))}function ir(a){var c=a[ft];return c||(c=a[ft]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Sn(a){a[Rt]=true;}var vo=new Set,la={};function Wn(a,c){ko(a,c),ko(a+"Capture",c);}function ko(a,c){for(la[a]=c,a=0;a<c.length;a++)vo.add(c[a]);}var ym=RegExp("^[: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]*$"),kt={},zr={};function Fr(a){return Ae.call(zr,a)?true:Ae.call(kt,a)?false:ym.test(a)?zr[a]=true:(kt[a]=true,false)}function Os(a,c,h){if(Fr(c))if(h===null)a.removeAttribute(c);else {switch(typeof h){case "undefined":case "function":case "symbol":a.removeAttribute(c);return;case "boolean":var v=c.toLowerCase().slice(0,5);if(v!=="data-"&&v!=="aria-"){a.removeAttribute(c);return}}a.setAttribute(c,""+h);}}function Pi(a,c,h){if(h===null)a.removeAttribute(c);else {switch(typeof h){case "undefined":case "function":case "symbol":case "boolean":a.removeAttribute(c);return}a.setAttribute(c,""+h);}}function zo(a,c,h,v){if(v===null)a.removeAttribute(h);else {switch(typeof v){case "undefined":case "function":case "symbol":case "boolean":a.removeAttribute(h);return}a.setAttributeNS(c,h,""+v);}}function Zr(a){switch(typeof a){case "bigint":case "boolean":case "number":case "string":case "undefined":return a;case "object":return a;default:return ""}}function $c(a){var c=a.type;return (a=a.nodeName)&&a.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Jg(a,c,h){var v=Object.getOwnPropertyDescriptor(a.constructor.prototype,c);if(!a.hasOwnProperty(c)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var $=v.get,R=v.set;return Object.defineProperty(a,c,{configurable:true,get:function(){return $.call(this)},set:function(V){h=""+V,R.call(this,V);}}),Object.defineProperty(a,c,{enumerable:v.enumerable}),{getValue:function(){return h},setValue:function(V){h=""+V;},stopTracking:function(){a._valueTracker=null,delete a[c];}}}}function Mc(a){if(!a._valueTracker){var c=$c(a)?"checked":"value";a._valueTracker=Jg(a,c,""+a[c]);}}function td(a){if(!a)return  false;var c=a._valueTracker;if(!c)return  true;var h=c.getValue(),v="";return a&&(v=$c(a)?a.checked?"true":"false":a.value),a=v,a!==h?(c.setValue(a),true):false}function nd(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var mt=/[\n"\\]/g;function Ht(a){return a.replace(mt,function(c){return "\\"+c.charCodeAt(0).toString(16)+" "})}function sl(a,c,h,v,$,R,V,Z){a.name="",V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"?a.type=V:a.removeAttribute("type"),c!=null?V==="number"?(c===0&&a.value===""||a.value!=c)&&(a.value=""+Zr(c)):a.value!==""+Zr(c)&&(a.value=""+Zr(c)):V!=="submit"&&V!=="reset"||a.removeAttribute("value"),c!=null?rd(a,V,Zr(c)):h!=null?rd(a,V,Zr(h)):v!=null&&a.removeAttribute("value"),$==null&&R!=null&&(a.defaultChecked=!!R),$!=null&&(a.checked=$&&typeof $!="function"&&typeof $!="symbol"),Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"?a.name=""+Zr(Z):a.removeAttribute("name");}function ev(a,c,h,v,$,R,V,Z){if(R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(a.type=R),c!=null||h!=null){if(!(R!=="submit"&&R!=="reset"||c!=null)){Mc(a);return}h=h!=null?""+Zr(h):"",c=c!=null?""+Zr(c):h,Z||c===a.value||(a.value=c),a.defaultValue=c;}v=v??$,v=typeof v!="function"&&typeof v!="symbol"&&!!v,a.checked=Z?a.checked:!!v,a.defaultChecked=!!v,V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"&&(a.name=V),Mc(a);}function rd(a,c,h){c==="number"&&nd(a.ownerDocument)===a||a.defaultValue===""+h||(a.defaultValue=""+h);}function ca(a,c,h,v){if(a=a.options,c){c={};for(var $=0;$<h.length;$++)c["$"+h[$]]=true;for(h=0;h<a.length;h++)$=c.hasOwnProperty("$"+a[h].value),a[h].selected!==$&&(a[h].selected=$),$&&v&&(a[h].defaultSelected=true);}else {for(h=""+Zr(h),c=null,$=0;$<a.length;$++){if(a[$].value===h){a[$].selected=true,v&&(a[$].defaultSelected=true);return}c!==null||a[$].disabled||(c=a[$]);}c!==null&&(c.selected=true);}}function tv(a,c,h){if(c!=null&&(c=""+Zr(c),c!==a.value&&(a.value=c),h==null)){a.defaultValue!==c&&(a.defaultValue=c);return}a.defaultValue=h!=null?""+Zr(h):"";}function QN(a,c,h,v){if(c==null){if(v!=null){if(h!=null)throw Error(r(92));if(z(v)){if(1<v.length)throw Error(r(93));v=v[0];}h=v;}h==null&&(h=""),c=h;}h=Zr(c),a.defaultValue=h,v=a.textContent,v===h&&v!==""&&v!==null&&(a.value=v),Mc(a);}function od(a,c){if(c){var h=a.firstChild;if(h&&h===a.lastChild&&h.nodeType===3){h.nodeValue=c;return}}a.textContent=c;}var nY=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ZN(a,c,h){var v=c.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?v?a.setProperty(c,""):c==="float"?a.cssFloat="":a[c]="":v?a.setProperty(c,h):typeof h!="number"||h===0||nY.has(c)?c==="float"?a.cssFloat=h:a[c]=(""+h).trim():a[c]=h+"px";}function JN(a,c,h){if(c!=null&&typeof c!="object")throw Error(r(62));if(a=a.style,h!=null){for(var v in h)!h.hasOwnProperty(v)||c!=null&&c.hasOwnProperty(v)||(v.indexOf("--")===0?a.setProperty(v,""):v==="float"?a.cssFloat="":a[v]="");for(var $ in c)v=c[$],c.hasOwnProperty($)&&h[$]!==v&&ZN(a,$,v);}else for(var R in c)c.hasOwnProperty(R)&&ZN(a,R,c[R]);}function TS(a){if(a.indexOf("-")===-1)return  false;switch(a){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":return  false;default:return  true}}var rY=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),oY=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function nv(a){return oY.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function ua(){}var AS=null;function RS(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var id=null,sd=null;function e6(a){var c=nn(a);if(c&&(a=c.stateNode)){var h=a[yn]||null;e:switch(a=c.stateNode,c.type){case "input":if(sl(a,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),c=h.name,h.type==="radio"&&c!=null){for(h=a;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+Ht(""+c)+'"][type="radio"]'),c=0;c<h.length;c++){var v=h[c];if(v!==a&&v.form===a.form){var $=v[yn]||null;if(!$)throw Error(r(90));sl(v,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name);}}for(c=0;c<h.length;c++)v=h[c],v.form===a.form&&td(v);}break e;case "textarea":tv(a,h.value,h.defaultValue);break e;case "select":c=h.value,c!=null&&ca(a,!!h.multiple,c,false);}}}var NS=false;function t6(a,c,h){if(NS)return a(c,h);NS=true;try{var v=a(c);return v}finally{if(NS=false,(id!==null||sd!==null)&&(jv(),id&&(c=id,a=sd,sd=id=null,e6(c),a)))for(c=0;c<a.length;c++)e6(a[c]);}}function Sm(a,c){var h=a.stateNode;if(h===null)return null;var v=h[yn]||null;if(v===null)return null;h=v[c];e:switch(c){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(v=!v.disabled)||(a=a.type,v=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!v;break e;default:a=false;}if(a)return null;if(h&&typeof h!="function")throw Error(r(231,c,typeof h));return h}var da=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),PS=false;if(da)try{var Cm={};Object.defineProperty(Cm,"passive",{get:function(){PS=!0;}}),window.addEventListener("test",Cm,Cm),window.removeEventListener("test",Cm,Cm);}catch{PS=false;}var al=null,IS=null,rv=null;function n6(){if(rv)return rv;var a,c=IS,h=c.length,v,$="value"in al?al.value:al.textContent,R=$.length;for(a=0;a<h&&c[a]===$[a];a++);var V=h-a;for(v=1;v<=V&&c[h-v]===$[R-v];v++);return rv=$.slice(a,1<v?1-v:void 0)}function ov(a){var c=a.keyCode;return "charCode"in a?(a=a.charCode,a===0&&c===13&&(a=13)):a=c,a===10&&(a=13),32<=a||a===13?a:0}function iv(){return  true}function r6(){return  false}function Fo(a){function c(h,v,$,R,V){this._reactName=h,this._targetInst=$,this.type=v,this.nativeEvent=R,this.target=V,this.currentTarget=null;for(var Z in a)a.hasOwnProperty(Z)&&(h=a[Z],this[Z]=h?h(R):R[Z]);return this.isDefaultPrevented=(R.defaultPrevented!=null?R.defaultPrevented:R.returnValue===false)?iv:r6,this.isPropagationStopped=r6,this}return p(c.prototype,{preventDefault:function(){this.defaultPrevented=true;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=false),this.isDefaultPrevented=iv);},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=true),this.isPropagationStopped=iv);},persist:function(){},isPersistent:iv}),c}var Tc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sv=Fo(Tc),xm=p({},Tc,{view:0,detail:0}),iY=Fo(xm),OS,DS,wm,av=p({},xm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:LS,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return "movementX"in a?a.movementX:(a!==wm&&(wm&&a.type==="mousemove"?(OS=a.screenX-wm.screenX,DS=a.screenY-wm.screenY):DS=OS=0,wm=a),OS)},movementY:function(a){return "movementY"in a?a.movementY:DS}}),o6=Fo(av),sY=p({},av,{dataTransfer:0}),aY=Fo(sY),lY=p({},xm,{relatedTarget:0}),_S=Fo(lY),cY=p({},Tc,{animationName:0,elapsedTime:0,pseudoElement:0}),uY=Fo(cY),dY=p({},Tc,{clipboardData:function(a){return "clipboardData"in a?a.clipboardData:window.clipboardData}}),fY=Fo(dY),mY=p({},Tc,{data:0}),i6=Fo(mY),hY={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pY={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"},gY={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vY(a){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(a):(a=gY[a])?!!c[a]:false}function LS(){return vY}var bY=p({},xm,{key:function(a){if(a.key){var c=hY[a.key]||a.key;if(c!=="Unidentified")return c}return a.type==="keypress"?(a=ov(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?pY[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:LS,charCode:function(a){return a.type==="keypress"?ov(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?ov(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),yY=Fo(bY),SY=p({},av,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),s6=Fo(SY),CY=p({},xm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:LS}),xY=Fo(CY),wY=p({},Tc,{propertyName:0,elapsedTime:0,pseudoElement:0}),EY=Fo(wY),$Y=p({},av,{deltaX:function(a){return "deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return "deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),MY=Fo($Y),TY=p({},Tc,{newState:0,oldState:0}),AY=Fo(TY),RY=[9,13,27,32],BS=da&&"CompositionEvent"in window,Em=null;da&&"documentMode"in document&&(Em=document.documentMode);var NY=da&&"TextEvent"in window&&!Em,a6=da&&(!BS||Em&&8<Em&&11>=Em),l6=" ",c6=false;function u6(a,c){switch(a){case "keyup":return RY.indexOf(c.keyCode)!==-1;case "keydown":return c.keyCode!==229;case "keypress":case "mousedown":case "focusout":return  true;default:return  false}}function d6(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ad=false;function PY(a,c){switch(a){case "compositionend":return d6(c);case "keypress":return c.which!==32?null:(c6=true,l6);case "textInput":return a=c.data,a===l6&&c6?null:a;default:return null}}function IY(a,c){if(ad)return a==="compositionend"||!BS&&u6(a,c)?(a=n6(),rv=IS=al=null,ad=false,a):null;switch(a){case "paste":return null;case "keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case "compositionend":return a6&&c.locale!=="ko"?null:c.data;default:return null}}var OY={color:true,date:true,datetime:true,"datetime-local":true,email:true,month:true,number:true,password:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true};function f6(a){var c=a&&a.nodeName&&a.nodeName.toLowerCase();return c==="input"?!!OY[a.type]:c==="textarea"}function m6(a,c,h,v){id?sd?sd.push(v):sd=[v]:id=v,c=Xv(c,"onChange"),0<c.length&&(h=new sv("onChange","change",null,h,v),a.push({event:h,listeners:c}));}var $m=null,Mm=null;function DY(a){Y4(a,0);}function lv(a){var c=Nn(a);if(td(c))return a}function h6(a,c){if(a==="change")return c}var p6=false;if(da){var kS;if(da){var zS="oninput"in document;if(!zS){var g6=document.createElement("div");g6.setAttribute("oninput","return;"),zS=typeof g6.oninput=="function";}kS=zS;}else kS=false;p6=kS&&(!document.documentMode||9<document.documentMode);}function v6(){$m&&($m.detachEvent("onpropertychange",b6),Mm=$m=null);}function b6(a){if(a.propertyName==="value"&&lv(Mm)){var c=[];m6(c,Mm,a,RS(a)),t6(DY,c);}}function _Y(a,c,h){a==="focusin"?(v6(),$m=c,Mm=h,$m.attachEvent("onpropertychange",b6)):a==="focusout"&&v6();}function LY(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return lv(Mm)}function BY(a,c){if(a==="click")return lv(c)}function kY(a,c){if(a==="input"||a==="change")return lv(c)}function zY(a,c){return a===c&&(a!==0||1/a===1/c)||a!==a&&c!==c}var si=typeof Object.is=="function"?Object.is:zY;function Tm(a,c){if(si(a,c))return  true;if(typeof a!="object"||a===null||typeof c!="object"||c===null)return  false;var h=Object.keys(a),v=Object.keys(c);if(h.length!==v.length)return  false;for(v=0;v<h.length;v++){var $=h[v];if(!Ae.call(c,$)||!si(a[$],c[$]))return  false}return  true}function y6(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function S6(a,c){var h=y6(a);a=0;for(var v;h;){if(h.nodeType===3){if(v=a+h.textContent.length,a<=c&&v>=c)return {node:h,offset:c-a};a=v;}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode;}h=void 0;}h=y6(h);}}function C6(a,c){return a&&c?a===c?true:a&&a.nodeType===3?false:c&&c.nodeType===3?C6(a,c.parentNode):"contains"in a?a.contains(c):a.compareDocumentPosition?!!(a.compareDocumentPosition(c)&16):false:false}function x6(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var c=nd(a.document);c instanceof a.HTMLIFrameElement;){try{var h=typeof c.contentWindow.location.href=="string";}catch{h=false;}if(h)a=c.contentWindow;else break;c=nd(a.document);}return c}function FS(a){var c=a&&a.nodeName&&a.nodeName.toLowerCase();return c&&(c==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||c==="textarea"||a.contentEditable==="true")}var FY=da&&"documentMode"in document&&11>=document.documentMode,ld=null,HS=null,Am=null,VS=false;function w6(a,c,h){var v=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;VS||ld==null||ld!==nd(v)||(v=ld,"selectionStart"in v&&FS(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Am&&Tm(Am,v)||(Am=v,v=Xv(HS,"onSelect"),0<v.length&&(c=new sv("onSelect","select",null,c,h),a.push({event:c,listeners:v}),c.target=ld)));}function Ac(a,c){var h={};return h[a.toLowerCase()]=c.toLowerCase(),h["Webkit"+a]="webkit"+c,h["Moz"+a]="moz"+c,h}var cd={animationend:Ac("Animation","AnimationEnd"),animationiteration:Ac("Animation","AnimationIteration"),animationstart:Ac("Animation","AnimationStart"),transitionrun:Ac("Transition","TransitionRun"),transitionstart:Ac("Transition","TransitionStart"),transitioncancel:Ac("Transition","TransitionCancel"),transitionend:Ac("Transition","TransitionEnd")},jS={},E6={};da&&(E6=document.createElement("div").style,"AnimationEvent"in window||(delete cd.animationend.animation,delete cd.animationiteration.animation,delete cd.animationstart.animation),"TransitionEvent"in window||delete cd.transitionend.transition);function Rc(a){if(jS[a])return jS[a];if(!cd[a])return a;var c=cd[a],h;for(h in c)if(c.hasOwnProperty(h)&&h in E6)return jS[a]=c[h];return a}var $6=Rc("animationend"),M6=Rc("animationiteration"),T6=Rc("animationstart"),HY=Rc("transitionrun"),VY=Rc("transitionstart"),jY=Rc("transitioncancel"),A6=Rc("transitionend"),R6=new Map,US="abort auxClick beforeToggle 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(" ");US.push("scrollEnd");function is(a,c){R6.set(a,c),Wn(c,[a]);}var cv=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:true,cancelable:true,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a);},Ii=[],ud=0,WS=0;function uv(){for(var a=ud,c=WS=ud=0;c<a;){var h=Ii[c];Ii[c++]=null;var v=Ii[c];Ii[c++]=null;var $=Ii[c];Ii[c++]=null;var R=Ii[c];if(Ii[c++]=null,v!==null&&$!==null){var V=v.pending;V===null?$.next=$:($.next=V.next,V.next=$),v.pending=$;}R!==0&&N6(h,$,R);}}function dv(a,c,h,v){Ii[ud++]=a,Ii[ud++]=c,Ii[ud++]=h,Ii[ud++]=v,WS|=v,a.lanes|=v,a=a.alternate,a!==null&&(a.lanes|=v);}function GS(a,c,h,v){return dv(a,c,h,v),fv(a)}function Nc(a,c){return dv(a,null,null,c),fv(a)}function N6(a,c,h){a.lanes|=h;var v=a.alternate;v!==null&&(v.lanes|=h);for(var $=false,R=a.return;R!==null;)R.childLanes|=h,v=R.alternate,v!==null&&(v.childLanes|=h),R.tag===22&&(a=R.stateNode,a===null||a._visibility&1||($=true)),a=R,R=R.return;return a.tag===3?(R=a.stateNode,$&&c!==null&&($=31-lt(h),a=R.hiddenUpdates,v=a[$],v===null?a[$]=[c]:v.push(c),c.lane=h|536870912),R):null}function fv(a){if(50<Xm)throw Xm=0,tx=null,Error(r(185));for(var c=a.return;c!==null;)a=c,c=a.return;return a.tag===3?a.stateNode:null}var dd={};function UY(a,c,h,v){this.tag=a,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null;}function ai(a,c,h,v){return new UY(a,c,h,v)}function qS(a){return a=a.prototype,!(!a||!a.isReactComponent)}function fa(a,c){var h=a.alternate;return h===null?(h=ai(a.tag,c,a.key,a.mode),h.elementType=a.elementType,h.type=a.type,h.stateNode=a.stateNode,h.alternate=a,a.alternate=h):(h.pendingProps=c,h.type=a.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=a.flags&65011712,h.childLanes=a.childLanes,h.lanes=a.lanes,h.child=a.child,h.memoizedProps=a.memoizedProps,h.memoizedState=a.memoizedState,h.updateQueue=a.updateQueue,c=a.dependencies,h.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},h.sibling=a.sibling,h.index=a.index,h.ref=a.ref,h.refCleanup=a.refCleanup,h}function P6(a,c){a.flags&=65011714;var h=a.alternate;return h===null?(a.childLanes=0,a.lanes=c,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=h.childLanes,a.lanes=h.lanes,a.child=h.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=h.memoizedProps,a.memoizedState=h.memoizedState,a.updateQueue=h.updateQueue,a.type=h.type,c=h.dependencies,a.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),a}function mv(a,c,h,v,$,R){var V=0;if(v=a,typeof a=="function")qS(a)&&(V=1);else if(typeof a=="string")V=YX(a,h,J.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case O:return a=ai(31,h,c,$),a.elementType=O,a.lanes=R,a;case S:return Pc(h.children,$,R,c);case C:V=8,$|=24;break;case w:return a=ai(12,h,c,$|2),a.elementType=w,a.lanes=R,a;case A:return a=ai(13,h,c,$),a.elementType=A,a.lanes=R,a;case I:return a=ai(19,h,c,$),a.elementType=I,a.lanes=R,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case M:V=10;break e;case E:V=9;break e;case T:V=11;break e;case N:V=14;break e;case P:V=16,v=null;break e}V=29,h=Error(r(130,a===null?"null":typeof a,"")),v=null;}return c=ai(V,h,c,$),c.elementType=a,c.type=v,c.lanes=R,c}function Pc(a,c,h,v){return a=ai(7,a,v,c),a.lanes=h,a}function KS(a,c,h){return a=ai(6,a,null,c),a.lanes=h,a}function I6(a){var c=ai(18,null,null,0);return c.stateNode=a,c}function YS(a,c,h){return c=ai(4,a.children!==null?a.children:[],a.key,c),c.lanes=h,c.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},c}var O6=new WeakMap;function Oi(a,c){if(typeof a=="object"&&a!==null){var h=O6.get(a);return h!==void 0?h:(c={value:a,source:c,stack:Ce(c)},O6.set(a,c),c)}return {value:a,source:c,stack:Ce(c)}}var fd=[],md=0,hv=null,Rm=0,Di=[],_i=0,ll=null,Ds=1,_s="";function ma(a,c){fd[md++]=Rm,fd[md++]=hv,hv=a,Rm=c;}function D6(a,c,h){Di[_i++]=Ds,Di[_i++]=_s,Di[_i++]=ll,ll=a;var v=Ds;a=_s;var $=32-lt(v)-1;v&=~(1<<$),h+=1;var R=32-lt(c)+$;if(30<R){var V=$-$%5;R=(v&(1<<V)-1).toString(32),v>>=V,$-=V,Ds=1<<32-lt(c)+$|h<<$|v,_s=R+a;}else Ds=1<<R|h<<$|v,_s=a;}function XS(a){a.return!==null&&(ma(a,1),D6(a,1,0));}function QS(a){for(;a===hv;)hv=fd[--md],fd[md]=null,Rm=fd[--md],fd[md]=null;for(;a===ll;)ll=Di[--_i],Di[_i]=null,_s=Di[--_i],Di[_i]=null,Ds=Di[--_i],Di[_i]=null;}function _6(a,c){Di[_i++]=Ds,Di[_i++]=_s,Di[_i++]=ll,Ds=c.id,_s=c.overflow,ll=a;}var Jr=null,Gn=null,hn=false,cl=null,Li=false,ZS=Error(r(519));function ul(a){var c=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nm(Oi(c,a)),ZS}function L6(a){var c=a.stateNode,h=a.type,v=a.memoizedProps;switch(c[At]=a,c[yn]=v,h){case "dialog":on("cancel",c),on("close",c);break;case "iframe":case "object":case "embed":on("load",c);break;case "video":case "audio":for(h=0;h<Zm.length;h++)on(Zm[h],c);break;case "source":on("error",c);break;case "img":case "image":case "link":on("error",c),on("load",c);break;case "details":on("toggle",c);break;case "input":on("invalid",c),ev(c,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,true);break;case "select":on("invalid",c);break;case "textarea":on("invalid",c),QN(c,v.value,v.defaultValue,v.children);}h=v.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||c.textContent===""+h||v.suppressHydrationWarning===true||J4(c.textContent,h)?(v.popover!=null&&(on("beforetoggle",c),on("toggle",c)),v.onScroll!=null&&on("scroll",c),v.onScrollEnd!=null&&on("scrollend",c),v.onClick!=null&&(c.onclick=ua),c=true):c=false,c||ul(a,true);}function B6(a){for(Jr=a.return;Jr;)switch(Jr.tag){case 5:case 31:case 13:Li=false;return;case 27:case 3:Li=true;return;default:Jr=Jr.return;}}function hd(a){if(a!==Jr)return  false;if(!hn)return B6(a),hn=true,false;var c=a.tag,h;if((h=c!==3&&c!==27)&&((h=c===5)&&(h=a.type,h=!(h!=="form"&&h!=="button")||gx(a.type,a.memoizedProps)),h=!h),h&&Gn&&ul(a),B6(a),c===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));Gn=lI(a);}else if(c===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));Gn=lI(a);}else c===27?(c=Gn,El(a.type)?(a=Cx,Cx=null,Gn=a):Gn=c):Gn=Jr?ki(a.stateNode.nextSibling):null;return  true}function Ic(){Gn=Jr=null,hn=false;}function JS(){var a=cl;return a!==null&&(Uo===null?Uo=a:Uo.push.apply(Uo,a),cl=null),a}function Nm(a){cl===null?cl=[a]:cl.push(a);}var eC=_(null),Oc=null,ha=null;function dl(a,c,h){Y(eC,c._currentValue),c._currentValue=h;}function pa(a){a._currentValue=eC.current,B(eC);}function tC(a,c,h){for(;a!==null;){var v=a.alternate;if((a.childLanes&c)!==c?(a.childLanes|=c,v!==null&&(v.childLanes|=c)):v!==null&&(v.childLanes&c)!==c&&(v.childLanes|=c),a===h)break;a=a.return;}}function nC(a,c,h,v){var $=a.child;for($!==null&&($.return=a);$!==null;){var R=$.dependencies;if(R!==null){var V=$.child;R=R.firstContext;e:for(;R!==null;){var Z=R;R=$;for(var ue=0;ue<c.length;ue++)if(Z.context===c[ue]){R.lanes|=h,Z=R.alternate,Z!==null&&(Z.lanes|=h),tC(R.return,h,a),v||(V=null);break e}R=Z.next;}}else if($.tag===18){if(V=$.return,V===null)throw Error(r(341));V.lanes|=h,R=V.alternate,R!==null&&(R.lanes|=h),tC(V,h,a),V=null;}else V=$.child;if(V!==null)V.return=$;else for(V=$;V!==null;){if(V===a){V=null;break}if($=V.sibling,$!==null){$.return=V.return,V=$;break}V=V.return;}$=V;}}function pd(a,c,h,v){a=null;for(var $=c,R=false;$!==null;){if(!R){if(($.flags&524288)!==0)R=true;else if(($.flags&262144)!==0)break}if($.tag===10){var V=$.alternate;if(V===null)throw Error(r(387));if(V=V.memoizedProps,V!==null){var Z=$.type;si($.pendingProps.value,V.value)||(a!==null?a.push(Z):a=[Z]);}}else if($===re.current){if(V=$.alternate,V===null)throw Error(r(387));V.memoizedState.memoizedState!==$.memoizedState.memoizedState&&(a!==null?a.push(rh):a=[rh]);}$=$.return;}a!==null&&nC(c,a,h,v),c.flags|=262144;}function pv(a){for(a=a.firstContext;a!==null;){if(!si(a.context._currentValue,a.memoizedValue))return  true;a=a.next;}return  false}function Dc(a){Oc=a,ha=null,a=a.dependencies,a!==null&&(a.firstContext=null);}function eo(a){return k6(Oc,a)}function gv(a,c){return Oc===null&&Dc(a),k6(a,c)}function k6(a,c){var h=c._currentValue;if(c={context:c,memoizedValue:h,next:null},ha===null){if(a===null)throw Error(r(308));ha=c,a.dependencies={lanes:0,firstContext:c},a.flags|=524288;}else ha=ha.next=c;return h}var WY=typeof AbortController<"u"?AbortController:function(){var a=[],c=this.signal={aborted:false,addEventListener:function(h,v){a.push(v);}};this.abort=function(){c.aborted=true,a.forEach(function(h){return h()});};},GY=e.unstable_scheduleCallback,qY=e.unstable_NormalPriority,yr={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rC(){return {controller:new WY,data:new Map,refCount:0}}function Pm(a){a.refCount--,a.refCount===0&&GY(qY,function(){a.controller.abort();});}var Im=null,oC=0,gd=0,vd=null;function KY(a,c){if(Im===null){var h=Im=[];oC=0,gd=ax(),vd={status:"pending",value:void 0,then:function(v){h.push(v);}};}return oC++,c.then(z6,z6),c}function z6(){if(--oC===0&&Im!==null){vd!==null&&(vd.status="fulfilled");var a=Im;Im=null,gd=0,vd=null;for(var c=0;c<a.length;c++)(0, a[c])();}}function YY(a,c){var h=[],v={status:"pending",value:null,reason:null,then:function($){h.push($);}};return a.then(function(){v.status="fulfilled",v.value=c;for(var $=0;$<h.length;$++)(0, h[$])(c);},function($){for(v.status="rejected",v.reason=$,$=0;$<h.length;$++)(0, h[$])(void 0);}),v}var F6=k.S;k.S=function(a,c){w4=Ne(),typeof c=="object"&&c!==null&&typeof c.then=="function"&&KY(a,c),F6!==null&&F6(a,c);};var _c=_(null);function iC(){var a=_c.current;return a!==null?a:Fn.pooledCache}function vv(a,c){c===null?Y(_c,_c.current):Y(_c,c.pool);}function H6(){var a=iC();return a===null?null:{parent:yr._currentValue,pool:a}}var bd=Error(r(460)),sC=Error(r(474)),bv=Error(r(542)),yv={then:function(){}};function V6(a){return a=a.status,a==="fulfilled"||a==="rejected"}function j6(a,c,h){switch(h=a[h],h===void 0?a.push(c):h!==c&&(c.then(ua,ua),c=h),c.status){case "fulfilled":return c.value;case "rejected":throw a=c.reason,W6(a),a;default:if(typeof c.status=="string")c.then(ua,ua);else {if(a=Fn,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=c,a.status="pending",a.then(function(v){if(c.status==="pending"){var $=c;$.status="fulfilled",$.value=v;}},function(v){if(c.status==="pending"){var $=c;$.status="rejected",$.reason=v;}});}switch(c.status){case "fulfilled":return c.value;case "rejected":throw a=c.reason,W6(a),a}throw Bc=c,bd}}function Lc(a){try{var c=a._init;return c(a._payload)}catch(h){throw h!==null&&typeof h=="object"&&typeof h.then=="function"?(Bc=h,bd):h}}var Bc=null;function U6(){if(Bc===null)throw Error(r(459));var a=Bc;return Bc=null,a}function W6(a){if(a===bd||a===bv)throw Error(r(483))}var yd=null,Om=0;function Sv(a){var c=Om;return Om+=1,yd===null&&(yd=[]),j6(yd,a,c)}function Dm(a,c){c=c.props.ref,a.ref=c!==void 0?c:null;}function Cv(a,c){throw c.$$typeof===g?Error(r(525)):(a=Object.prototype.toString.call(c),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":a)))}function G6(a){function c(ge,me){if(a){var we=ge.deletions;we===null?(ge.deletions=[me],ge.flags|=16):we.push(me);}}function h(ge,me){if(!a)return null;for(;me!==null;)c(ge,me),me=me.sibling;return null}function v(ge){for(var me=new Map;ge!==null;)ge.key!==null?me.set(ge.key,ge):me.set(ge.index,ge),ge=ge.sibling;return me}function $(ge,me){return ge=fa(ge,me),ge.index=0,ge.sibling=null,ge}function R(ge,me,we){return ge.index=we,a?(we=ge.alternate,we!==null?(we=we.index,we<me?(ge.flags|=67108866,me):we):(ge.flags|=67108866,me)):(ge.flags|=1048576,me)}function V(ge){return a&&ge.alternate===null&&(ge.flags|=67108866),ge}function Z(ge,me,we,ze){return me===null||me.tag!==6?(me=KS(we,ge.mode,ze),me.return=ge,me):(me=$(me,we),me.return=ge,me)}function ue(ge,me,we,ze){var $t=we.type;return $t===S?Le(ge,me,we.props.children,ze,we.key):me!==null&&(me.elementType===$t||typeof $t=="object"&&$t!==null&&$t.$$typeof===P&&Lc($t)===me.type)?(me=$(me,we.props),Dm(me,we),me.return=ge,me):(me=mv(we.type,we.key,we.props,null,ge.mode,ze),Dm(me,we),me.return=ge,me)}function Ee(ge,me,we,ze){return me===null||me.tag!==4||me.stateNode.containerInfo!==we.containerInfo||me.stateNode.implementation!==we.implementation?(me=YS(we,ge.mode,ze),me.return=ge,me):(me=$(me,we.children||[]),me.return=ge,me)}function Le(ge,me,we,ze,$t){return me===null||me.tag!==7?(me=Pc(we,ge.mode,ze,$t),me.return=ge,me):(me=$(me,we),me.return=ge,me)}function Ve(ge,me,we){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return me=KS(""+me,ge.mode,we),me.return=ge,me;if(typeof me=="object"&&me!==null){switch(me.$$typeof){case b:return we=mv(me.type,me.key,me.props,null,ge.mode,we),Dm(we,me),we.return=ge,we;case y:return me=YS(me,ge.mode,we),me.return=ge,me;case P:return me=Lc(me),Ve(ge,me,we)}if(z(me)||F(me))return me=Pc(me,ge.mode,we,null),me.return=ge,me;if(typeof me.then=="function")return Ve(ge,Sv(me),we);if(me.$$typeof===M)return Ve(ge,gv(ge,me),we);Cv(ge,me);}return null}function Te(ge,me,we,ze){var $t=me!==null?me.key:null;if(typeof we=="string"&&we!==""||typeof we=="number"||typeof we=="bigint")return $t!==null?null:Z(ge,me,""+we,ze);if(typeof we=="object"&&we!==null){switch(we.$$typeof){case b:return we.key===$t?ue(ge,me,we,ze):null;case y:return we.key===$t?Ee(ge,me,we,ze):null;case P:return we=Lc(we),Te(ge,me,we,ze)}if(z(we)||F(we))return $t!==null?null:Le(ge,me,we,ze,null);if(typeof we.then=="function")return Te(ge,me,Sv(we),ze);if(we.$$typeof===M)return Te(ge,me,gv(ge,we),ze);Cv(ge,we);}return null}function Pe(ge,me,we,ze,$t){if(typeof ze=="string"&&ze!==""||typeof ze=="number"||typeof ze=="bigint")return ge=ge.get(we)||null,Z(me,ge,""+ze,$t);if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case b:return ge=ge.get(ze.key===null?we:ze.key)||null,ue(me,ge,ze,$t);case y:return ge=ge.get(ze.key===null?we:ze.key)||null,Ee(me,ge,ze,$t);case P:return ze=Lc(ze),Pe(ge,me,we,ze,$t)}if(z(ze)||F(ze))return ge=ge.get(we)||null,Le(me,ge,ze,$t,null);if(typeof ze.then=="function")return Pe(ge,me,we,Sv(ze),$t);if(ze.$$typeof===M)return Pe(ge,me,we,gv(me,ze),$t);Cv(me,ze);}return null}function vt(ge,me,we,ze){for(var $t=null,vn=null,St=me,Kt=me=0,ln=null;St!==null&&Kt<we.length;Kt++){St.index>Kt?(ln=St,St=null):ln=St.sibling;var bn=Te(ge,St,we[Kt],ze);if(bn===null){St===null&&(St=ln);break}a&&St&&bn.alternate===null&&c(ge,St),me=R(bn,me,Kt),vn===null?$t=bn:vn.sibling=bn,vn=bn,St=ln;}if(Kt===we.length)return h(ge,St),hn&&ma(ge,Kt),$t;if(St===null){for(;Kt<we.length;Kt++)St=Ve(ge,we[Kt],ze),St!==null&&(me=R(St,me,Kt),vn===null?$t=St:vn.sibling=St,vn=St);return hn&&ma(ge,Kt),$t}for(St=v(St);Kt<we.length;Kt++)ln=Pe(St,ge,Kt,we[Kt],ze),ln!==null&&(a&&ln.alternate!==null&&St.delete(ln.key===null?Kt:ln.key),me=R(ln,me,Kt),vn===null?$t=ln:vn.sibling=ln,vn=ln);return a&&St.forEach(function(Rl){return c(ge,Rl)}),hn&&ma(ge,Kt),$t}function Nt(ge,me,we,ze){if(we==null)throw Error(r(151));for(var $t=null,vn=null,St=me,Kt=me=0,ln=null,bn=we.next();St!==null&&!bn.done;Kt++,bn=we.next()){St.index>Kt?(ln=St,St=null):ln=St.sibling;var Rl=Te(ge,St,bn.value,ze);if(Rl===null){St===null&&(St=ln);break}a&&St&&Rl.alternate===null&&c(ge,St),me=R(Rl,me,Kt),vn===null?$t=Rl:vn.sibling=Rl,vn=Rl,St=ln;}if(bn.done)return h(ge,St),hn&&ma(ge,Kt),$t;if(St===null){for(;!bn.done;Kt++,bn=we.next())bn=Ve(ge,bn.value,ze),bn!==null&&(me=R(bn,me,Kt),vn===null?$t=bn:vn.sibling=bn,vn=bn);return hn&&ma(ge,Kt),$t}for(St=v(St);!bn.done;Kt++,bn=we.next())bn=Pe(St,ge,Kt,bn.value,ze),bn!==null&&(a&&bn.alternate!==null&&St.delete(bn.key===null?Kt:bn.key),me=R(bn,me,Kt),vn===null?$t=bn:vn.sibling=bn,vn=bn);return a&&St.forEach(function(sQ){return c(ge,sQ)}),hn&&ma(ge,Kt),$t}function Ln(ge,me,we,ze){if(typeof we=="object"&&we!==null&&we.type===S&&we.key===null&&(we=we.props.children),typeof we=="object"&&we!==null){switch(we.$$typeof){case b:e:{for(var $t=we.key;me!==null;){if(me.key===$t){if($t=we.type,$t===S){if(me.tag===7){h(ge,me.sibling),ze=$(me,we.props.children),ze.return=ge,ge=ze;break e}}else if(me.elementType===$t||typeof $t=="object"&&$t!==null&&$t.$$typeof===P&&Lc($t)===me.type){h(ge,me.sibling),ze=$(me,we.props),Dm(ze,we),ze.return=ge,ge=ze;break e}h(ge,me);break}else c(ge,me);me=me.sibling;}we.type===S?(ze=Pc(we.props.children,ge.mode,ze,we.key),ze.return=ge,ge=ze):(ze=mv(we.type,we.key,we.props,null,ge.mode,ze),Dm(ze,we),ze.return=ge,ge=ze);}return V(ge);case y:e:{for($t=we.key;me!==null;){if(me.key===$t)if(me.tag===4&&me.stateNode.containerInfo===we.containerInfo&&me.stateNode.implementation===we.implementation){h(ge,me.sibling),ze=$(me,we.children||[]),ze.return=ge,ge=ze;break e}else {h(ge,me);break}else c(ge,me);me=me.sibling;}ze=YS(we,ge.mode,ze),ze.return=ge,ge=ze;}return V(ge);case P:return we=Lc(we),Ln(ge,me,we,ze)}if(z(we))return vt(ge,me,we,ze);if(F(we)){if($t=F(we),typeof $t!="function")throw Error(r(150));return we=$t.call(we),Nt(ge,me,we,ze)}if(typeof we.then=="function")return Ln(ge,me,Sv(we),ze);if(we.$$typeof===M)return Ln(ge,me,gv(ge,we),ze);Cv(ge,we);}return typeof we=="string"&&we!==""||typeof we=="number"||typeof we=="bigint"?(we=""+we,me!==null&&me.tag===6?(h(ge,me.sibling),ze=$(me,we),ze.return=ge,ge=ze):(h(ge,me),ze=KS(we,ge.mode,ze),ze.return=ge,ge=ze),V(ge)):h(ge,me)}return function(ge,me,we,ze){try{Om=0;var $t=Ln(ge,me,we,ze);return yd=null,$t}catch(St){if(St===bd||St===bv)throw St;var vn=ai(29,St,null,ge.mode);return vn.lanes=ze,vn.return=ge,vn}}}var kc=G6(true),q6=G6(false),fl=false;function aC(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null};}function lC(a,c){a=a.updateQueue,c.updateQueue===a&&(c.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null});}function ml(a){return {lane:a,tag:0,payload:null,callback:null,next:null}}function hl(a,c,h){var v=a.updateQueue;if(v===null)return null;if(v=v.shared,(Cn&2)!==0){var $=v.pending;return $===null?c.next=c:(c.next=$.next,$.next=c),v.pending=c,c=fv(a),N6(a,null,h),c}return dv(a,v,c,h),fv(a)}function _m(a,c,h){if(c=c.updateQueue,c!==null&&(c=c.shared,(h&4194048)!==0)){var v=c.lanes;v&=a.pendingLanes,h|=v,c.lanes=h,xe(a,h);}}function cC(a,c){var h=a.updateQueue,v=a.alternate;if(v!==null&&(v=v.updateQueue,h===v)){var $=null,R=null;if(h=h.firstBaseUpdate,h!==null){do{var V={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};R===null?$=R=V:R=R.next=V,h=h.next;}while(h!==null);R===null?$=R=c:R=R.next=c;}else $=R=c;h={baseState:v.baseState,firstBaseUpdate:$,lastBaseUpdate:R,shared:v.shared,callbacks:v.callbacks},a.updateQueue=h;return}a=h.lastBaseUpdate,a===null?h.firstBaseUpdate=c:a.next=c,h.lastBaseUpdate=c;}var uC=false;function Lm(){if(uC){var a=vd;if(a!==null)throw a}}function Bm(a,c,h,v){uC=false;var $=a.updateQueue;fl=false;var R=$.firstBaseUpdate,V=$.lastBaseUpdate,Z=$.shared.pending;if(Z!==null){$.shared.pending=null;var ue=Z,Ee=ue.next;ue.next=null,V===null?R=Ee:V.next=Ee,V=ue;var Le=a.alternate;Le!==null&&(Le=Le.updateQueue,Z=Le.lastBaseUpdate,Z!==V&&(Z===null?Le.firstBaseUpdate=Ee:Z.next=Ee,Le.lastBaseUpdate=ue));}if(R!==null){var Ve=$.baseState;V=0,Le=Ee=ue=null,Z=R;do{var Te=Z.lane&-536870913,Pe=Te!==Z.lane;if(Pe?(an&Te)===Te:(v&Te)===Te){Te!==0&&Te===gd&&(uC=true),Le!==null&&(Le=Le.next={lane:0,tag:Z.tag,payload:Z.payload,callback:null,next:null});e:{var vt=a,Nt=Z;Te=c;var Ln=h;switch(Nt.tag){case 1:if(vt=Nt.payload,typeof vt=="function"){Ve=vt.call(Ln,Ve,Te);break e}Ve=vt;break e;case 3:vt.flags=vt.flags&-65537|128;case 0:if(vt=Nt.payload,Te=typeof vt=="function"?vt.call(Ln,Ve,Te):vt,Te==null)break e;Ve=p({},Ve,Te);break e;case 2:fl=true;}}Te=Z.callback,Te!==null&&(a.flags|=64,Pe&&(a.flags|=8192),Pe=$.callbacks,Pe===null?$.callbacks=[Te]:Pe.push(Te));}else Pe={lane:Te,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},Le===null?(Ee=Le=Pe,ue=Ve):Le=Le.next=Pe,V|=Te;if(Z=Z.next,Z===null){if(Z=$.shared.pending,Z===null)break;Pe=Z,Z=Pe.next,Pe.next=null,$.lastBaseUpdate=Pe,$.shared.pending=null;}}while(true);Le===null&&(ue=Ve),$.baseState=ue,$.firstBaseUpdate=Ee,$.lastBaseUpdate=Le,R===null&&($.shared.lanes=0),yl|=V,a.lanes=V,a.memoizedState=Ve;}}function K6(a,c){if(typeof a!="function")throw Error(r(191,a));a.call(c);}function Y6(a,c){var h=a.callbacks;if(h!==null)for(a.callbacks=null,a=0;a<h.length;a++)K6(h[a],c);}var Sd=_(null),xv=_(0);function X6(a,c){a=Ea,Y(xv,a),Y(Sd,c),Ea=a|c.baseLanes;}function dC(){Y(xv,Ea),Y(Sd,Sd.current);}function fC(){Ea=xv.current,B(Sd),B(xv);}var li=_(null),Bi=null;function pl(a){var c=a.alternate;Y(fr,fr.current&1),Y(li,a),Bi===null&&(c===null||Sd.current!==null||c.memoizedState!==null)&&(Bi=a);}function mC(a){Y(fr,fr.current),Y(li,a),Bi===null&&(Bi=a);}function Q6(a){a.tag===22?(Y(fr,fr.current),Y(li,a),Bi===null&&(Bi=a)):gl();}function gl(){Y(fr,fr.current),Y(li,li.current);}function ci(a){B(li),Bi===a&&(Bi=null),B(fr);}var fr=_(0);function wv(a){for(var c=a;c!==null;){if(c.tag===13){var h=c.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||yx(h)||Sx(h)))return c}else if(c.tag===19&&(c.memoizedProps.revealOrder==="forwards"||c.memoizedProps.revealOrder==="backwards"||c.memoizedProps.revealOrder==="unstable_legacy-backwards"||c.memoizedProps.revealOrder==="together")){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===a)break;for(;c.sibling===null;){if(c.return===null||c.return===a)return null;c=c.return;}c.sibling.return=c.return,c=c.sibling;}return null}var ga=0,Gt=null,Dn=null,Sr=null,Ev=false,Cd=false,zc=false,$v=0,km=0,xd=null,XY=0;function sr(){throw Error(r(321))}function hC(a,c){if(c===null)return  false;for(var h=0;h<c.length&&h<a.length;h++)if(!si(a[h],c[h]))return  false;return  true}function pC(a,c,h,v,$,R){return ga=R,Gt=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,k.H=a===null||a.memoizedState===null?DP:NC,zc=false,R=h(v,$),zc=false,Cd&&(R=J6(c,h,v,$)),Z6(a),R}function Z6(a){k.H=Hm;var c=Dn!==null&&Dn.next!==null;if(ga=0,Sr=Dn=Gt=null,Ev=false,km=0,xd=null,c)throw Error(r(300));a===null||Cr||(a=a.dependencies,a!==null&&pv(a)&&(Cr=true));}function J6(a,c,h,v){Gt=a;var $=0;do{if(Cd&&(xd=null),km=0,Cd=false,25<=$)throw Error(r(301));if($+=1,Sr=Dn=null,a.updateQueue!=null){var R=a.updateQueue;R.lastEffect=null,R.events=null,R.stores=null,R.memoCache!=null&&(R.memoCache.index=0);}k.H=_P,R=c(h,v);}while(Cd);return R}function QY(){var a=k.H,c=a.useState()[0];return c=typeof c.then=="function"?zm(c):c,a=a.useState()[0],(Dn!==null?Dn.memoizedState:null)!==a&&(Gt.flags|=1024),c}function gC(){var a=$v!==0;return $v=0,a}function vC(a,c,h){c.updateQueue=a.updateQueue,c.flags&=-2053,a.lanes&=~h;}function bC(a){if(Ev){for(a=a.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next;}Ev=false;}ga=0,Sr=Dn=Gt=null,Cd=false,km=$v=0,xd=null;}function Ao(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sr===null?Gt.memoizedState=Sr=a:Sr=Sr.next=a,Sr}function mr(){if(Dn===null){var a=Gt.alternate;a=a!==null?a.memoizedState:null;}else a=Dn.next;var c=Sr===null?Gt.memoizedState:Sr.next;if(c!==null)Sr=c,Dn=a;else {if(a===null)throw Gt.alternate===null?Error(r(467)):Error(r(310));Dn=a,a={memoizedState:Dn.memoizedState,baseState:Dn.baseState,baseQueue:Dn.baseQueue,queue:Dn.queue,next:null},Sr===null?Gt.memoizedState=Sr=a:Sr=Sr.next=a;}return Sr}function Mv(){return {lastEffect:null,events:null,stores:null,memoCache:null}}function zm(a){var c=km;return km+=1,xd===null&&(xd=[]),a=j6(xd,a,c),c=Gt,(Sr===null?c.memoizedState:Sr.next)===null&&(c=c.alternate,k.H=c===null||c.memoizedState===null?DP:NC),a}function Tv(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return zm(a);if(a.$$typeof===M)return eo(a)}throw Error(r(438,String(a)))}function yC(a){var c=null,h=Gt.updateQueue;if(h!==null&&(c=h.memoCache),c==null){var v=Gt.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(c={data:v.data.map(function($){return $.slice()}),index:0})));}if(c==null&&(c={data:[],index:0}),h===null&&(h=Mv(),Gt.updateQueue=h),h.memoCache=c,h=c.data[c.index],h===void 0)for(h=c.data[c.index]=Array(a),v=0;v<a;v++)h[v]=D;return c.index++,h}function va(a,c){return typeof c=="function"?c(a):c}function Av(a){var c=mr();return SC(c,Dn,a)}function SC(a,c,h){var v=a.queue;if(v===null)throw Error(r(311));v.lastRenderedReducer=h;var $=a.baseQueue,R=v.pending;if(R!==null){if($!==null){var V=$.next;$.next=R.next,R.next=V;}c.baseQueue=$=R,v.pending=null;}if(R=a.baseState,$===null)a.memoizedState=R;else {c=$.next;var Z=V=null,ue=null,Ee=c,Le=false;do{var Ve=Ee.lane&-536870913;if(Ve!==Ee.lane?(an&Ve)===Ve:(ga&Ve)===Ve){var Te=Ee.revertLane;if(Te===0)ue!==null&&(ue=ue.next={lane:0,revertLane:0,gesture:null,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null}),Ve===gd&&(Le=true);else if((ga&Te)===Te){Ee=Ee.next,Te===gd&&(Le=true);continue}else Ve={lane:0,revertLane:Ee.revertLane,gesture:null,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null},ue===null?(Z=ue=Ve,V=R):ue=ue.next=Ve,Gt.lanes|=Te,yl|=Te;Ve=Ee.action,zc&&h(R,Ve),R=Ee.hasEagerState?Ee.eagerState:h(R,Ve);}else Te={lane:Ve,revertLane:Ee.revertLane,gesture:Ee.gesture,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null},ue===null?(Z=ue=Te,V=R):ue=ue.next=Te,Gt.lanes|=Ve,yl|=Ve;Ee=Ee.next;}while(Ee!==null&&Ee!==c);if(ue===null?V=R:ue.next=Z,!si(R,a.memoizedState)&&(Cr=true,Le&&(h=vd,h!==null)))throw h;a.memoizedState=R,a.baseState=V,a.baseQueue=ue,v.lastRenderedState=R;}return $===null&&(v.lanes=0),[a.memoizedState,v.dispatch]}function CC(a){var c=mr(),h=c.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=a;var v=h.dispatch,$=h.pending,R=c.memoizedState;if($!==null){h.pending=null;var V=$=$.next;do R=a(R,V.action),V=V.next;while(V!==$);si(R,c.memoizedState)||(Cr=true),c.memoizedState=R,c.baseQueue===null&&(c.baseState=R),h.lastRenderedState=R;}return [R,v]}function eP(a,c,h){var v=Gt,$=mr(),R=hn;if(R){if(h===void 0)throw Error(r(407));h=h();}else h=c();var V=!si((Dn||$).memoizedState,h);if(V&&($.memoizedState=h,Cr=true),$=$.queue,EC(rP.bind(null,v,$,a),[a]),$.getSnapshot!==c||V||Sr!==null&&Sr.memoizedState.tag&1){if(v.flags|=2048,wd(9,{destroy:void 0},nP.bind(null,v,$,h,c),null),Fn===null)throw Error(r(349));R||(ga&127)!==0||tP(v,c,h);}return h}function tP(a,c,h){a.flags|=16384,a={getSnapshot:c,value:h},c=Gt.updateQueue,c===null?(c=Mv(),Gt.updateQueue=c,c.stores=[a]):(h=c.stores,h===null?c.stores=[a]:h.push(a));}function nP(a,c,h,v){c.value=h,c.getSnapshot=v,oP(c)&&iP(a);}function rP(a,c,h){return h(function(){oP(c)&&iP(a);})}function oP(a){var c=a.getSnapshot;a=a.value;try{var h=c();return !si(a,h)}catch{return  true}}function iP(a){var c=Nc(a,2);c!==null&&Wo(c,a,2);}function xC(a){var c=Ao();if(typeof a=="function"){var h=a;if(a=h(),zc){Ie(true);try{h();}finally{Ie(false);}}}return c.memoizedState=c.baseState=a,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:a},c}function sP(a,c,h,v){return a.baseState=h,SC(a,Dn,typeof v=="function"?v:va)}function ZY(a,c,h,v,$){if(Pv(a))throw Error(r(485));if(a=c.action,a!==null){var R={payload:$,action:a,next:null,isTransition:true,status:"pending",value:null,reason:null,listeners:[],then:function(V){R.listeners.push(V);}};k.T!==null?h(true):R.isTransition=false,v(R),h=c.pending,h===null?(R.next=c.pending=R,aP(c,R)):(R.next=h.next,c.pending=h.next=R);}}function aP(a,c){var h=c.action,v=c.payload,$=a.state;if(c.isTransition){var R=k.T,V={};k.T=V;try{var Z=h($,v),ue=k.S;ue!==null&&ue(V,Z),lP(a,c,Z);}catch(Ee){wC(a,c,Ee);}finally{R!==null&&V.types!==null&&(R.types=V.types),k.T=R;}}else try{R=h($,v),lP(a,c,R);}catch(Ee){wC(a,c,Ee);}}function lP(a,c,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(v){cP(a,c,v);},function(v){return wC(a,c,v)}):cP(a,c,h);}function cP(a,c,h){c.status="fulfilled",c.value=h,uP(c),a.state=h,c=a.pending,c!==null&&(h=c.next,h===c?a.pending=null:(h=h.next,c.next=h,aP(a,h)));}function wC(a,c,h){var v=a.pending;if(a.pending=null,v!==null){v=v.next;do c.status="rejected",c.reason=h,uP(c),c=c.next;while(c!==v)}a.action=null;}function uP(a){a=a.listeners;for(var c=0;c<a.length;c++)(0, a[c])();}function dP(a,c){return c}function fP(a,c){if(hn){var h=Fn.formState;if(h!==null){e:{var v=Gt;if(hn){if(Gn){t:{for(var $=Gn,R=Li;$.nodeType!==8;){if(!R){$=null;break t}if($=ki($.nextSibling),$===null){$=null;break t}}R=$.data,$=R==="F!"||R==="F"?$:null;}if($){Gn=ki($.nextSibling),v=$.data==="F!";break e}}ul(v);}v=false;}v&&(c=h[0]);}}return h=Ao(),h.memoizedState=h.baseState=c,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dP,lastRenderedState:c},h.queue=v,h=PP.bind(null,Gt,v),v.dispatch=h,v=xC(false),R=RC.bind(null,Gt,false,v.queue),v=Ao(),$={state:c,dispatch:null,action:a,pending:null},v.queue=$,h=ZY.bind(null,Gt,$,R,h),$.dispatch=h,v.memoizedState=a,[c,h,false]}function mP(a){var c=mr();return hP(c,Dn,a)}function hP(a,c,h){if(c=SC(a,c,dP)[0],a=Av(va)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var v=zm(c);}catch(V){throw V===bd?bv:V}else v=c;c=mr();var $=c.queue,R=$.dispatch;return h!==c.memoizedState&&(Gt.flags|=2048,wd(9,{destroy:void 0},JY.bind(null,$,h),null)),[v,R,a]}function JY(a,c){a.action=c;}function pP(a){var c=mr(),h=Dn;if(h!==null)return hP(c,h,a);mr(),c=c.memoizedState,h=mr();var v=h.queue.dispatch;return h.memoizedState=a,[c,v,false]}function wd(a,c,h,v){return a={tag:a,create:h,deps:v,inst:c,next:null},c=Gt.updateQueue,c===null&&(c=Mv(),Gt.updateQueue=c),h=c.lastEffect,h===null?c.lastEffect=a.next=a:(v=h.next,h.next=a,a.next=v,c.lastEffect=a),a}function gP(){return mr().memoizedState}function Rv(a,c,h,v){var $=Ao();Gt.flags|=a,$.memoizedState=wd(1|c,{destroy:void 0},h,v===void 0?null:v);}function Nv(a,c,h,v){var $=mr();v=v===void 0?null:v;var R=$.memoizedState.inst;Dn!==null&&v!==null&&hC(v,Dn.memoizedState.deps)?$.memoizedState=wd(c,R,h,v):(Gt.flags|=a,$.memoizedState=wd(1|c,R,h,v));}function vP(a,c){Rv(8390656,8,a,c);}function EC(a,c){Nv(2048,8,a,c);}function eX(a){Gt.flags|=4;var c=Gt.updateQueue;if(c===null)c=Mv(),Gt.updateQueue=c,c.events=[a];else {var h=c.events;h===null?c.events=[a]:h.push(a);}}function bP(a){var c=mr().memoizedState;return eX({ref:c,nextImpl:a}),function(){if((Cn&2)!==0)throw Error(r(440));return c.impl.apply(void 0,arguments)}}function yP(a,c){return Nv(4,2,a,c)}function SP(a,c){return Nv(4,4,a,c)}function CP(a,c){if(typeof c=="function"){a=a();var h=c(a);return function(){typeof h=="function"?h():c(null);}}if(c!=null)return a=a(),c.current=a,function(){c.current=null;}}function xP(a,c,h){h=h!=null?h.concat([a]):null,Nv(4,4,CP.bind(null,c,a),h);}function $C(){}function wP(a,c){var h=mr();c=c===void 0?null:c;var v=h.memoizedState;return c!==null&&hC(c,v[1])?v[0]:(h.memoizedState=[a,c],a)}function EP(a,c){var h=mr();c=c===void 0?null:c;var v=h.memoizedState;if(c!==null&&hC(c,v[1]))return v[0];if(v=a(),zc){Ie(true);try{a();}finally{Ie(false);}}return h.memoizedState=[v,c],v}function MC(a,c,h){return h===void 0||(ga&1073741824)!==0&&(an&261930)===0?a.memoizedState=c:(a.memoizedState=h,a=$4(),Gt.lanes|=a,yl|=a,h)}function $P(a,c,h,v){return si(h,c)?h:Sd.current!==null?(a=MC(a,h,v),si(a,c)||(Cr=true),a):(ga&42)===0||(ga&1073741824)!==0&&(an&261930)===0?(Cr=true,a.memoizedState=h):(a=$4(),Gt.lanes|=a,yl|=a,c)}function MP(a,c,h,v,$){var R=G.p;G.p=R!==0&&8>R?R:8;var V=k.T,Z={};k.T=Z,RC(a,false,c,h);try{var ue=$(),Ee=k.S;if(Ee!==null&&Ee(Z,ue),ue!==null&&typeof ue=="object"&&typeof ue.then=="function"){var Le=YY(ue,v);Fm(a,c,Le,fi(a));}else Fm(a,c,v,fi(a));}catch(Ve){Fm(a,c,{then:function(){},status:"rejected",reason:Ve},fi());}finally{G.p=R,V!==null&&Z.types!==null&&(V.types=Z.types),k.T=V;}}function tX(){}function TC(a,c,h,v){if(a.tag!==5)throw Error(r(476));var $=TP(a).queue;MP(a,$,c,j,h===null?tX:function(){return AP(a),h(v)});}function TP(a){var c=a.memoizedState;if(c!==null)return c;c={memoizedState:j,baseState:j,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:j},next:null};var h={};return c.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:h},next:null},a.memoizedState=c,a=a.alternate,a!==null&&(a.memoizedState=c),c}function AP(a){var c=TP(a);c.next===null&&(c=a.alternate.memoizedState),Fm(a,c.next.queue,{},fi());}function AC(){return eo(rh)}function RP(){return mr().memoizedState}function NP(){return mr().memoizedState}function nX(a){for(var c=a.return;c!==null;){switch(c.tag){case 24:case 3:var h=fi();a=ml(h);var v=hl(c,a,h);v!==null&&(Wo(v,c,h),_m(v,c,h)),c={cache:rC()},a.payload=c;return}c=c.return;}}function rX(a,c,h){var v=fi();h={lane:v,revertLane:0,gesture:null,action:h,hasEagerState:false,eagerState:null,next:null},Pv(a)?IP(c,h):(h=GS(a,c,h,v),h!==null&&(Wo(h,a,v),OP(h,c,v)));}function PP(a,c,h){var v=fi();Fm(a,c,h,v);}function Fm(a,c,h,v){var $={lane:v,revertLane:0,gesture:null,action:h,hasEagerState:false,eagerState:null,next:null};if(Pv(a))IP(c,$);else {var R=a.alternate;if(a.lanes===0&&(R===null||R.lanes===0)&&(R=c.lastRenderedReducer,R!==null))try{var V=c.lastRenderedState,Z=R(V,h);if($.hasEagerState=!0,$.eagerState=Z,si(Z,V))return dv(a,c,$,0),Fn===null&&uv(),!1}catch{}if(h=GS(a,c,$,v),h!==null)return Wo(h,a,v),OP(h,c,v),true}return  false}function RC(a,c,h,v){if(v={lane:2,revertLane:ax(),gesture:null,action:v,hasEagerState:false,eagerState:null,next:null},Pv(a)){if(c)throw Error(r(479))}else c=GS(a,h,v,2),c!==null&&Wo(c,a,2);}function Pv(a){var c=a.alternate;return a===Gt||c!==null&&c===Gt}function IP(a,c){Cd=Ev=true;var h=a.pending;h===null?c.next=c:(c.next=h.next,h.next=c),a.pending=c;}function OP(a,c,h){if((h&4194048)!==0){var v=c.lanes;v&=a.pendingLanes,h|=v,c.lanes=h,xe(a,h);}}var Hm={readContext:eo,use:Tv,useCallback:sr,useContext:sr,useEffect:sr,useImperativeHandle:sr,useLayoutEffect:sr,useInsertionEffect:sr,useMemo:sr,useReducer:sr,useRef:sr,useState:sr,useDebugValue:sr,useDeferredValue:sr,useTransition:sr,useSyncExternalStore:sr,useId:sr,useHostTransitionStatus:sr,useFormState:sr,useActionState:sr,useOptimistic:sr,useMemoCache:sr,useCacheRefresh:sr};Hm.useEffectEvent=sr;var DP={readContext:eo,use:Tv,useCallback:function(a,c){return Ao().memoizedState=[a,c===void 0?null:c],a},useContext:eo,useEffect:vP,useImperativeHandle:function(a,c,h){h=h!=null?h.concat([a]):null,Rv(4194308,4,CP.bind(null,c,a),h);},useLayoutEffect:function(a,c){return Rv(4194308,4,a,c)},useInsertionEffect:function(a,c){Rv(4,2,a,c);},useMemo:function(a,c){var h=Ao();c=c===void 0?null:c;var v=a();if(zc){Ie(true);try{a();}finally{Ie(false);}}return h.memoizedState=[v,c],v},useReducer:function(a,c,h){var v=Ao();if(h!==void 0){var $=h(c);if(zc){Ie(true);try{h(c);}finally{Ie(false);}}}else $=c;return v.memoizedState=v.baseState=$,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:$},v.queue=a,a=a.dispatch=rX.bind(null,Gt,a),[v.memoizedState,a]},useRef:function(a){var c=Ao();return a={current:a},c.memoizedState=a},useState:function(a){a=xC(a);var c=a.queue,h=PP.bind(null,Gt,c);return c.dispatch=h,[a.memoizedState,h]},useDebugValue:$C,useDeferredValue:function(a,c){var h=Ao();return MC(h,a,c)},useTransition:function(){var a=xC(false);return a=MP.bind(null,Gt,a.queue,true,false),Ao().memoizedState=a,[false,a]},useSyncExternalStore:function(a,c,h){var v=Gt,$=Ao();if(hn){if(h===void 0)throw Error(r(407));h=h();}else {if(h=c(),Fn===null)throw Error(r(349));(an&127)!==0||tP(v,c,h);}$.memoizedState=h;var R={value:h,getSnapshot:c};return $.queue=R,vP(rP.bind(null,v,R,a),[a]),v.flags|=2048,wd(9,{destroy:void 0},nP.bind(null,v,R,h,c),null),h},useId:function(){var a=Ao(),c=Fn.identifierPrefix;if(hn){var h=_s,v=Ds;h=(v&~(1<<32-lt(v)-1)).toString(32)+h,c="_"+c+"R_"+h,h=$v++,0<h&&(c+="H"+h.toString(32)),c+="_";}else h=XY++,c="_"+c+"r_"+h.toString(32)+"_";return a.memoizedState=c},useHostTransitionStatus:AC,useFormState:fP,useActionState:fP,useOptimistic:function(a){var c=Ao();c.memoizedState=c.baseState=a;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=h,c=RC.bind(null,Gt,true,h),h.dispatch=c,[a,c]},useMemoCache:yC,useCacheRefresh:function(){return Ao().memoizedState=nX.bind(null,Gt)},useEffectEvent:function(a){var c=Ao(),h={impl:a};return c.memoizedState=h,function(){if((Cn&2)!==0)throw Error(r(440));return h.impl.apply(void 0,arguments)}}},NC={readContext:eo,use:Tv,useCallback:wP,useContext:eo,useEffect:EC,useImperativeHandle:xP,useInsertionEffect:yP,useLayoutEffect:SP,useMemo:EP,useReducer:Av,useRef:gP,useState:function(){return Av(va)},useDebugValue:$C,useDeferredValue:function(a,c){var h=mr();return $P(h,Dn.memoizedState,a,c)},useTransition:function(){var a=Av(va)[0],c=mr().memoizedState;return [typeof a=="boolean"?a:zm(a),c]},useSyncExternalStore:eP,useId:RP,useHostTransitionStatus:AC,useFormState:mP,useActionState:mP,useOptimistic:function(a,c){var h=mr();return sP(h,Dn,a,c)},useMemoCache:yC,useCacheRefresh:NP};NC.useEffectEvent=bP;var _P={readContext:eo,use:Tv,useCallback:wP,useContext:eo,useEffect:EC,useImperativeHandle:xP,useInsertionEffect:yP,useLayoutEffect:SP,useMemo:EP,useReducer:CC,useRef:gP,useState:function(){return CC(va)},useDebugValue:$C,useDeferredValue:function(a,c){var h=mr();return Dn===null?MC(h,a,c):$P(h,Dn.memoizedState,a,c)},useTransition:function(){var a=CC(va)[0],c=mr().memoizedState;return [typeof a=="boolean"?a:zm(a),c]},useSyncExternalStore:eP,useId:RP,useHostTransitionStatus:AC,useFormState:pP,useActionState:pP,useOptimistic:function(a,c){var h=mr();return Dn!==null?sP(h,Dn,a,c):(h.baseState=a,[a,h.queue.dispatch])},useMemoCache:yC,useCacheRefresh:NP};_P.useEffectEvent=bP;function PC(a,c,h,v){c=a.memoizedState,h=h(v,c),h=h==null?c:p({},c,h),a.memoizedState=h,a.lanes===0&&(a.updateQueue.baseState=h);}var IC={enqueueSetState:function(a,c,h){a=a._reactInternals;var v=fi(),$=ml(v);$.payload=c,h!=null&&($.callback=h),c=hl(a,$,v),c!==null&&(Wo(c,a,v),_m(c,a,v));},enqueueReplaceState:function(a,c,h){a=a._reactInternals;var v=fi(),$=ml(v);$.tag=1,$.payload=c,h!=null&&($.callback=h),c=hl(a,$,v),c!==null&&(Wo(c,a,v),_m(c,a,v));},enqueueForceUpdate:function(a,c){a=a._reactInternals;var h=fi(),v=ml(h);v.tag=2,c!=null&&(v.callback=c),c=hl(a,v,h),c!==null&&(Wo(c,a,h),_m(c,a,h));}};function LP(a,c,h,v,$,R,V){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(v,R,V):c.prototype&&c.prototype.isPureReactComponent?!Tm(h,v)||!Tm($,R):true}function BP(a,c,h,v){a=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(h,v),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(h,v),c.state!==a&&IC.enqueueReplaceState(c,c.state,null);}function Fc(a,c){var h=c;if("ref"in c){h={};for(var v in c)v!=="ref"&&(h[v]=c[v]);}if(a=a.defaultProps){h===c&&(h=p({},h));for(var $ in a)h[$]===void 0&&(h[$]=a[$]);}return h}function kP(a){cv(a);}function zP(a){console.error(a);}function FP(a){cv(a);}function Iv(a,c){try{var h=a.onUncaughtError;h(c.value,{componentStack:c.stack});}catch(v){setTimeout(function(){throw v});}}function HP(a,c,h){try{var v=a.onCaughtError;v(h.value,{componentStack:h.stack,errorBoundary:c.tag===1?c.stateNode:null});}catch($){setTimeout(function(){throw $});}}function OC(a,c,h){return h=ml(h),h.tag=3,h.payload={element:null},h.callback=function(){Iv(a,c);},h}function VP(a){return a=ml(a),a.tag=3,a}function jP(a,c,h,v){var $=h.type.getDerivedStateFromError;if(typeof $=="function"){var R=v.value;a.payload=function(){return $(R)},a.callback=function(){HP(c,h,v);};}var V=h.stateNode;V!==null&&typeof V.componentDidCatch=="function"&&(a.callback=function(){HP(c,h,v),typeof $!="function"&&(Sl===null?Sl=new Set([this]):Sl.add(this));var Z=v.stack;this.componentDidCatch(v.value,{componentStack:Z!==null?Z:""});});}function oX(a,c,h,v,$){if(h.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(c=h.alternate,c!==null&&pd(c,h,$,true),h=li.current,h!==null){switch(h.tag){case 31:case 13:return Bi===null?Uv():h.alternate===null&&ar===0&&(ar=3),h.flags&=-257,h.flags|=65536,h.lanes=$,v===yv?h.flags|=16384:(c=h.updateQueue,c===null?h.updateQueue=new Set([v]):c.add(v),ox(a,v,$)),false;case 22:return h.flags|=65536,v===yv?h.flags|=16384:(c=h.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([v])},h.updateQueue=c):(h=c.retryQueue,h===null?c.retryQueue=new Set([v]):h.add(v)),ox(a,v,$)),false}throw Error(r(435,h.tag))}return ox(a,v,$),Uv(),false}if(hn)return c=li.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=$,v!==ZS&&(a=Error(r(422),{cause:v}),Nm(Oi(a,h)))):(v!==ZS&&(c=Error(r(423),{cause:v}),Nm(Oi(c,h))),a=a.current.alternate,a.flags|=65536,$&=-$,a.lanes|=$,v=Oi(v,h),$=OC(a.stateNode,v,$),cC(a,$),ar!==4&&(ar=2)),false;var R=Error(r(520),{cause:v});if(R=Oi(R,h),Ym===null?Ym=[R]:Ym.push(R),ar!==4&&(ar=2),c===null)return  true;v=Oi(v,h),h=c;do{switch(h.tag){case 3:return h.flags|=65536,a=$&-$,h.lanes|=a,a=OC(h.stateNode,v,a),cC(h,a),false;case 1:if(c=h.type,R=h.stateNode,(h.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(Sl===null||!Sl.has(R))))return h.flags|=65536,$&=-$,h.lanes|=$,$=VP($),jP($,a,h,v),cC(h,$),false}h=h.return;}while(h!==null);return  false}var DC=Error(r(461)),Cr=false;function to(a,c,h,v){c.child=a===null?q6(c,null,h,v):kc(c,a.child,h,v);}function UP(a,c,h,v,$){h=h.render;var R=c.ref;if("ref"in v){var V={};for(var Z in v)Z!=="ref"&&(V[Z]=v[Z]);}else V=v;return Dc(c),v=pC(a,c,h,V,R,$),Z=gC(),a!==null&&!Cr?(vC(a,c,$),ba(a,c,$)):(hn&&Z&&XS(c),c.flags|=1,to(a,c,v,$),c.child)}function WP(a,c,h,v,$){if(a===null){var R=h.type;return typeof R=="function"&&!qS(R)&&R.defaultProps===void 0&&h.compare===null?(c.tag=15,c.type=R,GP(a,c,R,v,$)):(a=mv(h.type,null,v,c,c.mode,$),a.ref=c.ref,a.return=c,c.child=a)}if(R=a.child,!VC(a,$)){var V=R.memoizedProps;if(h=h.compare,h=h!==null?h:Tm,h(V,v)&&a.ref===c.ref)return ba(a,c,$)}return c.flags|=1,a=fa(R,v),a.ref=c.ref,a.return=c,c.child=a}function GP(a,c,h,v,$){if(a!==null){var R=a.memoizedProps;if(Tm(R,v)&&a.ref===c.ref)if(Cr=false,c.pendingProps=v=R,VC(a,$))(a.flags&131072)!==0&&(Cr=true);else return c.lanes=a.lanes,ba(a,c,$)}return _C(a,c,h,v,$)}function qP(a,c,h,v){var $=v.children,R=a!==null?a.memoizedState:null;if(a===null&&c.stateNode===null&&(c.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),v.mode==="hidden"){if((c.flags&128)!==0){if(R=R!==null?R.baseLanes|h:h,a!==null){for(v=c.child=a.child,$=0;v!==null;)$=$|v.lanes|v.childLanes,v=v.sibling;v=$&~R;}else v=0,c.child=null;return KP(a,c,R,h,v)}if((h&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},a!==null&&vv(c,R!==null?R.cachePool:null),R!==null?X6(c,R):dC(),Q6(c);else return v=c.lanes=536870912,KP(a,c,R!==null?R.baseLanes|h:h,h,v)}else R!==null?(vv(c,R.cachePool),X6(c,R),gl(),c.memoizedState=null):(a!==null&&vv(c,null),dC(),gl());return to(a,c,$,h),c.child}function Vm(a,c){return a!==null&&a.tag===22||c.stateNode!==null||(c.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.sibling}function KP(a,c,h,v,$){var R=iC();return R=R===null?null:{parent:yr._currentValue,pool:R},c.memoizedState={baseLanes:h,cachePool:R},a!==null&&vv(c,null),dC(),Q6(c),a!==null&&pd(a,c,v,true),c.childLanes=$,null}function Ov(a,c){return c=_v({mode:c.mode,children:c.children},a.mode),c.ref=a.ref,a.child=c,c.return=a,c}function YP(a,c,h){return kc(c,a.child,null,h),a=Ov(c,c.pendingProps),a.flags|=2,ci(c),c.memoizedState=null,a}function iX(a,c,h){var v=c.pendingProps,$=(c.flags&128)!==0;if(c.flags&=-129,a===null){if(hn){if(v.mode==="hidden")return a=Ov(c,v),c.lanes=536870912,Vm(null,a);if(mC(c),(a=Gn)?(a=aI(a,Li),a=a!==null&&a.data==="&"?a:null,a!==null&&(c.memoizedState={dehydrated:a,treeContext:ll!==null?{id:Ds,overflow:_s}:null,retryLane:536870912,hydrationErrors:null},h=I6(a),h.return=c,c.child=h,Jr=c,Gn=null)):a=null,a===null)throw ul(c);return c.lanes=536870912,null}return Ov(c,v)}var R=a.memoizedState;if(R!==null){var V=R.dehydrated;if(mC(c),$)if(c.flags&256)c.flags&=-257,c=YP(a,c,h);else if(c.memoizedState!==null)c.child=a.child,c.flags|=128,c=null;else throw Error(r(558));else if(Cr||pd(a,c,h,false),$=(h&a.childLanes)!==0,Cr||$){if(v=Fn,v!==null&&(V=ke(v,h),V!==0&&V!==R.retryLane))throw R.retryLane=V,Nc(a,V),Wo(v,a,V),DC;Uv(),c=YP(a,c,h);}else a=R.treeContext,Gn=ki(V.nextSibling),Jr=c,hn=true,cl=null,Li=false,a!==null&&_6(c,a),c=Ov(c,v),c.flags|=4096;return c}return a=fa(a.child,{mode:v.mode,children:v.children}),a.ref=c.ref,c.child=a,a.return=c,a}function Dv(a,c){var h=c.ref;if(h===null)a!==null&&a.ref!==null&&(c.flags|=4194816);else {if(typeof h!="function"&&typeof h!="object")throw Error(r(284));(a===null||a.ref!==h)&&(c.flags|=4194816);}}function _C(a,c,h,v,$){return Dc(c),h=pC(a,c,h,v,void 0,$),v=gC(),a!==null&&!Cr?(vC(a,c,$),ba(a,c,$)):(hn&&v&&XS(c),c.flags|=1,to(a,c,h,$),c.child)}function XP(a,c,h,v,$,R){return Dc(c),c.updateQueue=null,h=J6(c,v,h,$),Z6(a),v=gC(),a!==null&&!Cr?(vC(a,c,R),ba(a,c,R)):(hn&&v&&XS(c),c.flags|=1,to(a,c,h,R),c.child)}function QP(a,c,h,v,$){if(Dc(c),c.stateNode===null){var R=dd,V=h.contextType;typeof V=="object"&&V!==null&&(R=eo(V)),R=new h(v,R),c.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,R.updater=IC,c.stateNode=R,R._reactInternals=c,R=c.stateNode,R.props=v,R.state=c.memoizedState,R.refs={},aC(c),V=h.contextType,R.context=typeof V=="object"&&V!==null?eo(V):dd,R.state=c.memoizedState,V=h.getDerivedStateFromProps,typeof V=="function"&&(PC(c,h,V,v),R.state=c.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof R.getSnapshotBeforeUpdate=="function"||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(V=R.state,typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount(),V!==R.state&&IC.enqueueReplaceState(R,R.state,null),Bm(c,v,R,$),Lm(),R.state=c.memoizedState),typeof R.componentDidMount=="function"&&(c.flags|=4194308),v=true;}else if(a===null){R=c.stateNode;var Z=c.memoizedProps,ue=Fc(h,Z);R.props=ue;var Ee=R.context,Le=h.contextType;V=dd,typeof Le=="object"&&Le!==null&&(V=eo(Le));var Ve=h.getDerivedStateFromProps;Le=typeof Ve=="function"||typeof R.getSnapshotBeforeUpdate=="function",Z=c.pendingProps!==Z,Le||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(Z||Ee!==V)&&BP(c,R,v,V),fl=false;var Te=c.memoizedState;R.state=Te,Bm(c,v,R,$),Lm(),Ee=c.memoizedState,Z||Te!==Ee||fl?(typeof Ve=="function"&&(PC(c,h,Ve,v),Ee=c.memoizedState),(ue=fl||LP(c,h,ue,v,Te,Ee,V))?(Le||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount()),typeof R.componentDidMount=="function"&&(c.flags|=4194308)):(typeof R.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=v,c.memoizedState=Ee),R.props=v,R.state=Ee,R.context=V,v=ue):(typeof R.componentDidMount=="function"&&(c.flags|=4194308),v=false);}else {R=c.stateNode,lC(a,c),V=c.memoizedProps,Le=Fc(h,V),R.props=Le,Ve=c.pendingProps,Te=R.context,Ee=h.contextType,ue=dd,typeof Ee=="object"&&Ee!==null&&(ue=eo(Ee)),Z=h.getDerivedStateFromProps,(Ee=typeof Z=="function"||typeof R.getSnapshotBeforeUpdate=="function")||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(V!==Ve||Te!==ue)&&BP(c,R,v,ue),fl=false,Te=c.memoizedState,R.state=Te,Bm(c,v,R,$),Lm();var Pe=c.memoizedState;V!==Ve||Te!==Pe||fl||a!==null&&a.dependencies!==null&&pv(a.dependencies)?(typeof Z=="function"&&(PC(c,h,Z,v),Pe=c.memoizedState),(Le=fl||LP(c,h,Le,v,Te,Pe,ue)||a!==null&&a.dependencies!==null&&pv(a.dependencies))?(Ee||typeof R.UNSAFE_componentWillUpdate!="function"&&typeof R.componentWillUpdate!="function"||(typeof R.componentWillUpdate=="function"&&R.componentWillUpdate(v,Pe,ue),typeof R.UNSAFE_componentWillUpdate=="function"&&R.UNSAFE_componentWillUpdate(v,Pe,ue)),typeof R.componentDidUpdate=="function"&&(c.flags|=4),typeof R.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof R.componentDidUpdate!="function"||V===a.memoizedProps&&Te===a.memoizedState||(c.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||V===a.memoizedProps&&Te===a.memoizedState||(c.flags|=1024),c.memoizedProps=v,c.memoizedState=Pe),R.props=v,R.state=Pe,R.context=ue,v=Le):(typeof R.componentDidUpdate!="function"||V===a.memoizedProps&&Te===a.memoizedState||(c.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||V===a.memoizedProps&&Te===a.memoizedState||(c.flags|=1024),v=false);}return R=v,Dv(a,c),v=(c.flags&128)!==0,R||v?(R=c.stateNode,h=v&&typeof h.getDerivedStateFromError!="function"?null:R.render(),c.flags|=1,a!==null&&v?(c.child=kc(c,a.child,null,$),c.child=kc(c,null,h,$)):to(a,c,h,$),c.memoizedState=R.state,a=c.child):a=ba(a,c,$),a}function ZP(a,c,h,v){return Ic(),c.flags|=256,to(a,c,h,v),c.child}var LC={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function BC(a){return {baseLanes:a,cachePool:H6()}}function kC(a,c,h){return a=a!==null?a.childLanes&~h:0,c&&(a|=di),a}function JP(a,c,h){var v=c.pendingProps,$=false,R=(c.flags&128)!==0,V;if((V=R)||(V=a!==null&&a.memoizedState===null?false:(fr.current&2)!==0),V&&($=true,c.flags&=-129),V=(c.flags&32)!==0,c.flags&=-33,a===null){if(hn){if($?pl(c):gl(),(a=Gn)?(a=aI(a,Li),a=a!==null&&a.data!=="&"?a:null,a!==null&&(c.memoizedState={dehydrated:a,treeContext:ll!==null?{id:Ds,overflow:_s}:null,retryLane:536870912,hydrationErrors:null},h=I6(a),h.return=c,c.child=h,Jr=c,Gn=null)):a=null,a===null)throw ul(c);return Sx(a)?c.lanes=32:c.lanes=536870912,null}var Z=v.children;return v=v.fallback,$?(gl(),$=c.mode,Z=_v({mode:"hidden",children:Z},$),v=Pc(v,$,h,null),Z.return=c,v.return=c,Z.sibling=v,c.child=Z,v=c.child,v.memoizedState=BC(h),v.childLanes=kC(a,V,h),c.memoizedState=LC,Vm(null,v)):(pl(c),zC(c,Z))}var ue=a.memoizedState;if(ue!==null&&(Z=ue.dehydrated,Z!==null)){if(R)c.flags&256?(pl(c),c.flags&=-257,c=FC(a,c,h)):c.memoizedState!==null?(gl(),c.child=a.child,c.flags|=128,c=null):(gl(),Z=v.fallback,$=c.mode,v=_v({mode:"visible",children:v.children},$),Z=Pc(Z,$,h,null),Z.flags|=2,v.return=c,Z.return=c,v.sibling=Z,c.child=v,kc(c,a.child,null,h),v=c.child,v.memoizedState=BC(h),v.childLanes=kC(a,V,h),c.memoizedState=LC,c=Vm(null,v));else if(pl(c),Sx(Z)){if(V=Z.nextSibling&&Z.nextSibling.dataset,V)var Ee=V.dgst;V=Ee,v=Error(r(419)),v.stack="",v.digest=V,Nm({value:v,source:null,stack:null}),c=FC(a,c,h);}else if(Cr||pd(a,c,h,false),V=(h&a.childLanes)!==0,Cr||V){if(V=Fn,V!==null&&(v=ke(V,h),v!==0&&v!==ue.retryLane))throw ue.retryLane=v,Nc(a,v),Wo(V,a,v),DC;yx(Z)||Uv(),c=FC(a,c,h);}else yx(Z)?(c.flags|=192,c.child=a.child,c=null):(a=ue.treeContext,Gn=ki(Z.nextSibling),Jr=c,hn=true,cl=null,Li=false,a!==null&&_6(c,a),c=zC(c,v.children),c.flags|=4096);return c}return $?(gl(),Z=v.fallback,$=c.mode,ue=a.child,Ee=ue.sibling,v=fa(ue,{mode:"hidden",children:v.children}),v.subtreeFlags=ue.subtreeFlags&65011712,Ee!==null?Z=fa(Ee,Z):(Z=Pc(Z,$,h,null),Z.flags|=2),Z.return=c,v.return=c,v.sibling=Z,c.child=v,Vm(null,v),v=c.child,Z=a.child.memoizedState,Z===null?Z=BC(h):($=Z.cachePool,$!==null?(ue=yr._currentValue,$=$.parent!==ue?{parent:ue,pool:ue}:$):$=H6(),Z={baseLanes:Z.baseLanes|h,cachePool:$}),v.memoizedState=Z,v.childLanes=kC(a,V,h),c.memoizedState=LC,Vm(a.child,v)):(pl(c),h=a.child,a=h.sibling,h=fa(h,{mode:"visible",children:v.children}),h.return=c,h.sibling=null,a!==null&&(V=c.deletions,V===null?(c.deletions=[a],c.flags|=16):V.push(a)),c.child=h,c.memoizedState=null,h)}function zC(a,c){return c=_v({mode:"visible",children:c},a.mode),c.return=a,a.child=c}function _v(a,c){return a=ai(22,a,null,c),a.lanes=0,a}function FC(a,c,h){return kc(c,a.child,null,h),a=zC(c,c.pendingProps.children),a.flags|=2,c.memoizedState=null,a}function e4(a,c,h){a.lanes|=c;var v=a.alternate;v!==null&&(v.lanes|=c),tC(a.return,c,h);}function HC(a,c,h,v,$,R){var V=a.memoizedState;V===null?a.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:v,tail:h,tailMode:$,treeForkCount:R}:(V.isBackwards=c,V.rendering=null,V.renderingStartTime=0,V.last=v,V.tail=h,V.tailMode=$,V.treeForkCount=R);}function t4(a,c,h){var v=c.pendingProps,$=v.revealOrder,R=v.tail;v=v.children;var V=fr.current,Z=(V&2)!==0;if(Z?(V=V&1|2,c.flags|=128):V&=1,Y(fr,V),to(a,c,v,h),v=hn?Rm:0,!Z&&a!==null&&(a.flags&128)!==0)e:for(a=c.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&e4(a,h,c);else if(a.tag===19)e4(a,h,c);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===c)break e;for(;a.sibling===null;){if(a.return===null||a.return===c)break e;a=a.return;}a.sibling.return=a.return,a=a.sibling;}switch($){case "forwards":for(h=c.child,$=null;h!==null;)a=h.alternate,a!==null&&wv(a)===null&&($=h),h=h.sibling;h=$,h===null?($=c.child,c.child=null):($=h.sibling,h.sibling=null),HC(c,false,$,h,R,v);break;case "backwards":case "unstable_legacy-backwards":for(h=null,$=c.child,c.child=null;$!==null;){if(a=$.alternate,a!==null&&wv(a)===null){c.child=$;break}a=$.sibling,$.sibling=h,h=$,$=a;}HC(c,true,h,null,R,v);break;case "together":HC(c,false,null,null,void 0,v);break;default:c.memoizedState=null;}return c.child}function ba(a,c,h){if(a!==null&&(c.dependencies=a.dependencies),yl|=c.lanes,(h&c.childLanes)===0)if(a!==null){if(pd(a,c,h,false),(h&c.childLanes)===0)return null}else return null;if(a!==null&&c.child!==a.child)throw Error(r(153));if(c.child!==null){for(a=c.child,h=fa(a,a.pendingProps),c.child=h,h.return=c;a.sibling!==null;)a=a.sibling,h=h.sibling=fa(a,a.pendingProps),h.return=c;h.sibling=null;}return c.child}function VC(a,c){return (a.lanes&c)!==0?true:(a=a.dependencies,!!(a!==null&&pv(a)))}function sX(a,c,h){switch(c.tag){case 3:ie(c,c.stateNode.containerInfo),dl(c,yr,a.memoizedState.cache),Ic();break;case 27:case 5:ne(c);break;case 4:ie(c,c.stateNode.containerInfo);break;case 10:dl(c,c.type,c.memoizedProps.value);break;case 31:if(c.memoizedState!==null)return c.flags|=128,mC(c),null;break;case 13:var v=c.memoizedState;if(v!==null)return v.dehydrated!==null?(pl(c),c.flags|=128,null):(h&c.child.childLanes)!==0?JP(a,c,h):(pl(c),a=ba(a,c,h),a!==null?a.sibling:null);pl(c);break;case 19:var $=(a.flags&128)!==0;if(v=(h&c.childLanes)!==0,v||(pd(a,c,h,false),v=(h&c.childLanes)!==0),$){if(v)return t4(a,c,h);c.flags|=128;}if($=c.memoizedState,$!==null&&($.rendering=null,$.tail=null,$.lastEffect=null),Y(fr,fr.current),v)break;return null;case 22:return c.lanes=0,qP(a,c,h,c.pendingProps);case 24:dl(c,yr,a.memoizedState.cache);}return ba(a,c,h)}function n4(a,c,h){if(a!==null)if(a.memoizedProps!==c.pendingProps)Cr=true;else {if(!VC(a,h)&&(c.flags&128)===0)return Cr=false,sX(a,c,h);Cr=(a.flags&131072)!==0;}else Cr=false,hn&&(c.flags&1048576)!==0&&D6(c,Rm,c.index);switch(c.lanes=0,c.tag){case 16:e:{var v=c.pendingProps;if(a=Lc(c.elementType),c.type=a,typeof a=="function")qS(a)?(v=Fc(a,v),c.tag=1,c=QP(null,c,a,v,h)):(c.tag=0,c=_C(null,c,a,v,h));else {if(a!=null){var $=a.$$typeof;if($===T){c.tag=11,c=UP(null,c,a,v,h);break e}else if($===N){c.tag=14,c=WP(null,c,a,v,h);break e}}throw c=W(a)||a,Error(r(306,c,""))}}return c;case 0:return _C(a,c,c.type,c.pendingProps,h);case 1:return v=c.type,$=Fc(v,c.pendingProps),QP(a,c,v,$,h);case 3:e:{if(ie(c,c.stateNode.containerInfo),a===null)throw Error(r(387));v=c.pendingProps;var R=c.memoizedState;$=R.element,lC(a,c),Bm(c,v,null,h);var V=c.memoizedState;if(v=V.cache,dl(c,yr,v),v!==R.cache&&nC(c,[yr],h,true),Lm(),v=V.element,R.isDehydrated)if(R={element:v,isDehydrated:false,cache:V.cache},c.updateQueue.baseState=R,c.memoizedState=R,c.flags&256){c=ZP(a,c,v,h);break e}else if(v!==$){$=Oi(Error(r(424)),c),Nm($),c=ZP(a,c,v,h);break e}else for(a=c.stateNode.containerInfo,a.nodeType===9?a=a.body:a=a.nodeName==="HTML"?a.ownerDocument.body:a,Gn=ki(a.firstChild),Jr=c,hn=true,cl=null,Li=true,h=q6(c,null,v,h),c.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else {if(Ic(),v===$){c=ba(a,c,h);break e}to(a,c,v,h);}c=c.child;}return c;case 26:return Dv(a,c),a===null?(h=mI(c.type,null,c.pendingProps,null))?c.memoizedState=h:hn||(h=c.type,a=c.pendingProps,v=Qv(te.current).createElement(h),v[At]=c,v[yn]=a,no(v,h,a),Sn(v),c.stateNode=v):c.memoizedState=mI(c.type,a.memoizedProps,c.pendingProps,a.memoizedState),null;case 27:return ne(c),a===null&&hn&&(v=c.stateNode=uI(c.type,c.pendingProps,te.current),Jr=c,Li=true,$=Gn,El(c.type)?(Cx=$,Gn=ki(v.firstChild)):Gn=$),to(a,c,c.pendingProps.children,h),Dv(a,c),a===null&&(c.flags|=4194304),c.child;case 5:return a===null&&hn&&(($=v=Gn)&&(v=LX(v,c.type,c.pendingProps,Li),v!==null?(c.stateNode=v,Jr=c,Gn=ki(v.firstChild),Li=false,$=true):$=false),$||ul(c)),ne(c),$=c.type,R=c.pendingProps,V=a!==null?a.memoizedProps:null,v=R.children,gx($,R)?v=null:V!==null&&gx($,V)&&(c.flags|=32),c.memoizedState!==null&&($=pC(a,c,QY,null,null,h),rh._currentValue=$),Dv(a,c),to(a,c,v,h),c.child;case 6:return a===null&&hn&&((a=h=Gn)&&(h=BX(h,c.pendingProps,Li),h!==null?(c.stateNode=h,Jr=c,Gn=null,a=true):a=false),a||ul(c)),null;case 13:return JP(a,c,h);case 4:return ie(c,c.stateNode.containerInfo),v=c.pendingProps,a===null?c.child=kc(c,null,v,h):to(a,c,v,h),c.child;case 11:return UP(a,c,c.type,c.pendingProps,h);case 7:return to(a,c,c.pendingProps,h),c.child;case 8:return to(a,c,c.pendingProps.children,h),c.child;case 12:return to(a,c,c.pendingProps.children,h),c.child;case 10:return v=c.pendingProps,dl(c,c.type,v.value),to(a,c,v.children,h),c.child;case 9:return $=c.type._context,v=c.pendingProps.children,Dc(c),$=eo($),v=v($),c.flags|=1,to(a,c,v,h),c.child;case 14:return WP(a,c,c.type,c.pendingProps,h);case 15:return GP(a,c,c.type,c.pendingProps,h);case 19:return t4(a,c,h);case 31:return iX(a,c,h);case 22:return qP(a,c,h,c.pendingProps);case 24:return Dc(c),v=eo(yr),a===null?($=iC(),$===null&&($=Fn,R=rC(),$.pooledCache=R,R.refCount++,R!==null&&($.pooledCacheLanes|=h),$=R),c.memoizedState={parent:v,cache:$},aC(c),dl(c,yr,$)):((a.lanes&h)!==0&&(lC(a,c),Bm(c,null,null,h),Lm()),$=a.memoizedState,R=c.memoizedState,$.parent!==v?($={parent:v,cache:v},c.memoizedState=$,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=$),dl(c,yr,v)):(v=R.cache,dl(c,yr,v),v!==$.cache&&nC(c,[yr],h,true))),to(a,c,c.pendingProps.children,h),c.child;case 29:throw c.pendingProps}throw Error(r(156,c.tag))}function ya(a){a.flags|=4;}function jC(a,c,h,v,$){if((c=(a.mode&32)!==0)&&(c=false),c){if(a.flags|=16777216,($&335544128)===$)if(a.stateNode.complete)a.flags|=8192;else if(R4())a.flags|=8192;else throw Bc=yv,sC}else a.flags&=-16777217;}function r4(a,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!bI(c))if(R4())a.flags|=8192;else throw Bc=yv,sC}function Lv(a,c){c!==null&&(a.flags|=4),a.flags&16384&&(c=a.tag!==22?ye():536870912,a.lanes|=c,Td|=c);}function jm(a,c){if(!hn)switch(a.tailMode){case "hidden":c=a.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?a.tail=null:h.sibling=null;break;case "collapsed":h=a.tail;for(var v=null;h!==null;)h.alternate!==null&&(v=h),h=h.sibling;v===null?c||a.tail===null?a.tail=null:a.tail.sibling=null:v.sibling=null;}}function qn(a){var c=a.alternate!==null&&a.alternate.child===a.child,h=0,v=0;if(c)for(var $=a.child;$!==null;)h|=$.lanes|$.childLanes,v|=$.subtreeFlags&65011712,v|=$.flags&65011712,$.return=a,$=$.sibling;else for($=a.child;$!==null;)h|=$.lanes|$.childLanes,v|=$.subtreeFlags,v|=$.flags,$.return=a,$=$.sibling;return a.subtreeFlags|=v,a.childLanes=h,c}function aX(a,c,h){var v=c.pendingProps;switch(QS(c),c.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qn(c),null;case 1:return qn(c),null;case 3:return h=c.stateNode,v=null,a!==null&&(v=a.memoizedState.cache),c.memoizedState.cache!==v&&(c.flags|=2048),pa(yr),de(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(a===null||a.child===null)&&(hd(c)?ya(c):a===null||a.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,JS())),qn(c),null;case 26:var $=c.type,R=c.memoizedState;return a===null?(ya(c),R!==null?(qn(c),r4(c,R)):(qn(c),jC(c,$,null,v,h))):R?R!==a.memoizedState?(ya(c),qn(c),r4(c,R)):(qn(c),c.flags&=-16777217):(a=a.memoizedProps,a!==v&&ya(c),qn(c),jC(c,$,a,v,h)),null;case 27:if(ae(c),h=te.current,$=c.type,a!==null&&c.stateNode!=null)a.memoizedProps!==v&&ya(c);else {if(!v){if(c.stateNode===null)throw Error(r(166));return qn(c),null}a=J.current,hd(c)?L6(c):(a=uI($,v,h),c.stateNode=a,ya(c));}return qn(c),null;case 5:if(ae(c),$=c.type,a!==null&&c.stateNode!=null)a.memoizedProps!==v&&ya(c);else {if(!v){if(c.stateNode===null)throw Error(r(166));return qn(c),null}if(R=J.current,hd(c))L6(c);else {var V=Qv(te.current);switch(R){case 1:R=V.createElementNS("http://www.w3.org/2000/svg",$);break;case 2:R=V.createElementNS("http://www.w3.org/1998/Math/MathML",$);break;default:switch($){case "svg":R=V.createElementNS("http://www.w3.org/2000/svg",$);break;case "math":R=V.createElementNS("http://www.w3.org/1998/Math/MathML",$);break;case "script":R=V.createElement("div"),R.innerHTML="<script><\/script>",R=R.removeChild(R.firstChild);break;case "select":R=typeof v.is=="string"?V.createElement("select",{is:v.is}):V.createElement("select"),v.multiple?R.multiple=true:v.size&&(R.size=v.size);break;default:R=typeof v.is=="string"?V.createElement($,{is:v.is}):V.createElement($);}}R[At]=c,R[yn]=v;e:for(V=c.child;V!==null;){if(V.tag===5||V.tag===6)R.appendChild(V.stateNode);else if(V.tag!==4&&V.tag!==27&&V.child!==null){V.child.return=V,V=V.child;continue}if(V===c)break e;for(;V.sibling===null;){if(V.return===null||V.return===c)break e;V=V.return;}V.sibling.return=V.return,V=V.sibling;}c.stateNode=R;e:switch(no(R,$,v),$){case "button":case "input":case "select":case "textarea":v=!!v.autoFocus;break e;case "img":v=true;break e;default:v=false;}v&&ya(c);}}return qn(c),jC(c,c.type,a===null?null:a.memoizedProps,c.pendingProps,h),null;case 6:if(a&&c.stateNode!=null)a.memoizedProps!==v&&ya(c);else {if(typeof v!="string"&&c.stateNode===null)throw Error(r(166));if(a=te.current,hd(c)){if(a=c.stateNode,h=c.memoizedProps,v=null,$=Jr,$!==null)switch($.tag){case 27:case 5:v=$.memoizedProps;}a[At]=c,a=!!(a.nodeValue===h||v!==null&&v.suppressHydrationWarning===true||J4(a.nodeValue,h)),a||ul(c,true);}else a=Qv(a).createTextNode(v),a[At]=c,c.stateNode=a;}return qn(c),null;case 31:if(h=c.memoizedState,a===null||a.memoizedState!==null){if(v=hd(c),h!==null){if(a===null){if(!v)throw Error(r(318));if(a=c.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[At]=c;}else Ic(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;qn(c),a=false;}else h=JS(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=h),a=true;if(!a)return c.flags&256?(ci(c),c):(ci(c),null);if((c.flags&128)!==0)throw Error(r(558))}return qn(c),null;case 13:if(v=c.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if($=hd(c),v!==null&&v.dehydrated!==null){if(a===null){if(!$)throw Error(r(318));if($=c.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error(r(317));$[At]=c;}else Ic(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;qn(c),$=false;}else $=JS(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=$),$=true;if(!$)return c.flags&256?(ci(c),c):(ci(c),null)}return ci(c),(c.flags&128)!==0?(c.lanes=h,c):(h=v!==null,a=a!==null&&a.memoizedState!==null,h&&(v=c.child,$=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&($=v.alternate.memoizedState.cachePool.pool),R=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(R=v.memoizedState.cachePool.pool),R!==$&&(v.flags|=2048)),h!==a&&h&&(c.child.flags|=8192),Lv(c,c.updateQueue),qn(c),null);case 4:return de(),a===null&&dx(c.stateNode.containerInfo),qn(c),null;case 10:return pa(c.type),qn(c),null;case 19:if(B(fr),v=c.memoizedState,v===null)return qn(c),null;if($=(c.flags&128)!==0,R=v.rendering,R===null)if($)jm(v,false);else {if(ar!==0||a!==null&&(a.flags&128)!==0)for(a=c.child;a!==null;){if(R=wv(a),R!==null){for(c.flags|=128,jm(v,false),a=R.updateQueue,c.updateQueue=a,Lv(c,a),c.subtreeFlags=0,a=h,h=c.child;h!==null;)P6(h,a),h=h.sibling;return Y(fr,fr.current&1|2),hn&&ma(c,v.treeForkCount),c.child}a=a.sibling;}v.tail!==null&&Ne()>Hv&&(c.flags|=128,$=true,jm(v,false),c.lanes=4194304);}else {if(!$)if(a=wv(R),a!==null){if(c.flags|=128,$=true,a=a.updateQueue,c.updateQueue=a,Lv(c,a),jm(v,true),v.tail===null&&v.tailMode==="hidden"&&!R.alternate&&!hn)return qn(c),null}else 2*Ne()-v.renderingStartTime>Hv&&h!==536870912&&(c.flags|=128,$=true,jm(v,false),c.lanes=4194304);v.isBackwards?(R.sibling=c.child,c.child=R):(a=v.last,a!==null?a.sibling=R:c.child=R,v.last=R);}return v.tail!==null?(a=v.tail,v.rendering=a,v.tail=a.sibling,v.renderingStartTime=Ne(),a.sibling=null,h=fr.current,Y(fr,$?h&1|2:h&1),hn&&ma(c,v.treeForkCount),a):(qn(c),null);case 22:case 23:return ci(c),fC(),v=c.memoizedState!==null,a!==null?a.memoizedState!==null!==v&&(c.flags|=8192):v&&(c.flags|=8192),v?(h&536870912)!==0&&(c.flags&128)===0&&(qn(c),c.subtreeFlags&6&&(c.flags|=8192)):qn(c),h=c.updateQueue,h!==null&&Lv(c,h.retryQueue),h=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),v=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(v=c.memoizedState.cachePool.pool),v!==h&&(c.flags|=2048),a!==null&&B(_c),null;case 24:return h=null,a!==null&&(h=a.memoizedState.cache),c.memoizedState.cache!==h&&(c.flags|=2048),pa(yr),qn(c),null;case 25:return null;case 30:return null}throw Error(r(156,c.tag))}function lX(a,c){switch(QS(c),c.tag){case 1:return a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 3:return pa(yr),de(),a=c.flags,(a&65536)!==0&&(a&128)===0?(c.flags=a&-65537|128,c):null;case 26:case 27:case 5:return ae(c),null;case 31:if(c.memoizedState!==null){if(ci(c),c.alternate===null)throw Error(r(340));Ic();}return a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 13:if(ci(c),a=c.memoizedState,a!==null&&a.dehydrated!==null){if(c.alternate===null)throw Error(r(340));Ic();}return a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 19:return B(fr),null;case 4:return de(),null;case 10:return pa(c.type),null;case 22:case 23:return ci(c),fC(),a!==null&&B(_c),a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 24:return pa(yr),null;case 25:return null;default:return null}}function o4(a,c){switch(QS(c),c.tag){case 3:pa(yr),de();break;case 26:case 27:case 5:ae(c);break;case 4:de();break;case 31:c.memoizedState!==null&&ci(c);break;case 13:ci(c);break;case 19:B(fr);break;case 10:pa(c.type);break;case 22:case 23:ci(c),fC(),a!==null&&B(_c);break;case 24:pa(yr);}}function Um(a,c){try{var h=c.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var $=v.next;h=$;do{if((h.tag&a)===a){v=void 0;var R=h.create,V=h.inst;v=R(),V.destroy=v;}h=h.next;}while(h!==$)}}catch(Z){In(c,c.return,Z);}}function vl(a,c,h){try{var v=c.updateQueue,$=v!==null?v.lastEffect:null;if($!==null){var R=$.next;v=R;do{if((v.tag&a)===a){var V=v.inst,Z=V.destroy;if(Z!==void 0){V.destroy=void 0,$=c;var ue=h,Ee=Z;try{Ee();}catch(Le){In($,ue,Le);}}}v=v.next;}while(v!==R)}}catch(Le){In(c,c.return,Le);}}function i4(a){var c=a.updateQueue;if(c!==null){var h=a.stateNode;try{Y6(c,h);}catch(v){In(a,a.return,v);}}}function s4(a,c,h){h.props=Fc(a.type,a.memoizedProps),h.state=a.memoizedState;try{h.componentWillUnmount();}catch(v){In(a,c,v);}}function Wm(a,c){try{var h=a.ref;if(h!==null){switch(a.tag){case 26:case 27:case 5:var v=a.stateNode;break;case 30:v=a.stateNode;break;default:v=a.stateNode;}typeof h=="function"?a.refCleanup=h(v):h.current=v;}}catch($){In(a,c,$);}}function Ls(a,c){var h=a.ref,v=a.refCleanup;if(h!==null)if(typeof v=="function")try{v();}catch($){In(a,c,$);}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null);}else if(typeof h=="function")try{h(null);}catch($){In(a,c,$);}else h.current=null;}function a4(a){var c=a.type,h=a.memoizedProps,v=a.stateNode;try{e:switch(c){case "button":case "input":case "select":case "textarea":h.autoFocus&&v.focus();break e;case "img":h.src?v.src=h.src:h.srcSet&&(v.srcset=h.srcSet);}}catch($){In(a,a.return,$);}}function UC(a,c,h){try{var v=a.stateNode;NX(v,a.type,h,c),v[yn]=c;}catch($){In(a,a.return,$);}}function l4(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&El(a.type)||a.tag===4}function WC(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||l4(a.return))return null;a=a.return;}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&El(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child;}if(!(a.flags&2))return a.stateNode}}function GC(a,c,h){var v=a.tag;if(v===5||v===6)a=a.stateNode,c?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(a,c):(c=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,c.appendChild(a),h=h._reactRootContainer,h!=null||c.onclick!==null||(c.onclick=ua));else if(v!==4&&(v===27&&El(a.type)&&(h=a.stateNode,c=null),a=a.child,a!==null))for(GC(a,c,h),a=a.sibling;a!==null;)GC(a,c,h),a=a.sibling;}function Bv(a,c,h){var v=a.tag;if(v===5||v===6)a=a.stateNode,c?h.insertBefore(a,c):h.appendChild(a);else if(v!==4&&(v===27&&El(a.type)&&(h=a.stateNode),a=a.child,a!==null))for(Bv(a,c,h),a=a.sibling;a!==null;)Bv(a,c,h),a=a.sibling;}function c4(a){var c=a.stateNode,h=a.memoizedProps;try{for(var v=a.type,$=c.attributes;$.length;)c.removeAttributeNode($[0]);no(c,v,h),c[At]=a,c[yn]=h;}catch(R){In(a,a.return,R);}}var Sa=false,xr=false,qC=false,u4=typeof WeakSet=="function"?WeakSet:Set,Hr=null;function cX(a,c){if(a=a.containerInfo,hx=ob,a=x6(a),FS(a)){if("selectionStart"in a)var h={start:a.selectionStart,end:a.selectionEnd};else e:{h=(h=a.ownerDocument)&&h.defaultView||window;var v=h.getSelection&&h.getSelection();if(v&&v.rangeCount!==0){h=v.anchorNode;var $=v.anchorOffset,R=v.focusNode;v=v.focusOffset;try{h.nodeType,R.nodeType;}catch{h=null;break e}var V=0,Z=-1,ue=-1,Ee=0,Le=0,Ve=a,Te=null;t:for(;;){for(var Pe;Ve!==h||$!==0&&Ve.nodeType!==3||(Z=V+$),Ve!==R||v!==0&&Ve.nodeType!==3||(ue=V+v),Ve.nodeType===3&&(V+=Ve.nodeValue.length),(Pe=Ve.firstChild)!==null;)Te=Ve,Ve=Pe;for(;;){if(Ve===a)break t;if(Te===h&&++Ee===$&&(Z=V),Te===R&&++Le===v&&(ue=V),(Pe=Ve.nextSibling)!==null)break;Ve=Te,Te=Ve.parentNode;}Ve=Pe;}h=Z===-1||ue===-1?null:{start:Z,end:ue};}else h=null;}h=h||{start:0,end:0};}else h=null;for(px={focusedElem:a,selectionRange:h},ob=false,Hr=c;Hr!==null;)if(c=Hr,a=c.child,(c.subtreeFlags&1028)!==0&&a!==null)a.return=c,Hr=a;else for(;Hr!==null;){switch(c=Hr,R=c.alternate,a=c.flags,c.tag){case 0:if((a&4)!==0&&(a=c.updateQueue,a=a!==null?a.events:null,a!==null))for(h=0;h<a.length;h++)$=a[h],$.ref.impl=$.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&R!==null){a=void 0,h=c,$=R.memoizedProps,R=R.memoizedState,v=h.stateNode;try{var vt=Fc(h.type,$);a=v.getSnapshotBeforeUpdate(vt,R),v.__reactInternalSnapshotBeforeUpdate=a;}catch(Nt){In(h,h.return,Nt);}}break;case 3:if((a&1024)!==0){if(a=c.stateNode.containerInfo,h=a.nodeType,h===9)bx(a);else if(h===1)switch(a.nodeName){case "HEAD":case "HTML":case "BODY":bx(a);break;default:a.textContent="";}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=c.sibling,a!==null){a.return=c.return,Hr=a;break}Hr=c.return;}}function d4(a,c,h){var v=h.flags;switch(h.tag){case 0:case 11:case 15:xa(a,h),v&4&&Um(5,h);break;case 1:if(xa(a,h),v&4)if(a=h.stateNode,c===null)try{a.componentDidMount();}catch(V){In(h,h.return,V);}else {var $=Fc(h.type,c.memoizedProps);c=c.memoizedState;try{a.componentDidUpdate($,c,a.__reactInternalSnapshotBeforeUpdate);}catch(V){In(h,h.return,V);}}v&64&&i4(h),v&512&&Wm(h,h.return);break;case 3:if(xa(a,h),v&64&&(a=h.updateQueue,a!==null)){if(c=null,h.child!==null)switch(h.child.tag){case 27:case 5:c=h.child.stateNode;break;case 1:c=h.child.stateNode;}try{Y6(a,c);}catch(V){In(h,h.return,V);}}break;case 27:c===null&&v&4&&c4(h);case 26:case 5:xa(a,h),c===null&&v&4&&a4(h),v&512&&Wm(h,h.return);break;case 12:xa(a,h);break;case 31:xa(a,h),v&4&&h4(a,h);break;case 13:xa(a,h),v&4&&p4(a,h),v&64&&(a=h.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(h=bX.bind(null,h),kX(a,h))));break;case 22:if(v=h.memoizedState!==null||Sa,!v){c=c!==null&&c.memoizedState!==null||xr,$=Sa;var R=xr;Sa=v,(xr=c)&&!R?wa(a,h,(h.subtreeFlags&8772)!==0):xa(a,h),Sa=$,xr=R;}break;case 30:break;default:xa(a,h);}}function f4(a){var c=a.alternate;c!==null&&(a.alternate=null,f4(c)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(c=a.stateNode,c!==null&&Ut(c)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null;}var Zn=null,Ho=false;function Ca(a,c,h){for(h=h.child;h!==null;)m4(a,c,h),h=h.sibling;}function m4(a,c,h){if(Be&&typeof Be.onCommitFiberUnmount=="function")try{Be.onCommitFiberUnmount(Je,h);}catch{}switch(h.tag){case 26:xr||Ls(h,c),Ca(a,c,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:xr||Ls(h,c);var v=Zn,$=Ho;El(h.type)&&(Zn=h.stateNode,Ho=false),Ca(a,c,h),eh(h.stateNode),Zn=v,Ho=$;break;case 5:xr||Ls(h,c);case 6:if(v=Zn,$=Ho,Zn=null,Ca(a,c,h),Zn=v,Ho=$,Zn!==null)if(Ho)try{(Zn.nodeType===9?Zn.body:Zn.nodeName==="HTML"?Zn.ownerDocument.body:Zn).removeChild(h.stateNode);}catch(R){In(h,c,R);}else try{Zn.removeChild(h.stateNode);}catch(R){In(h,c,R);}break;case 18:Zn!==null&&(Ho?(a=Zn,iI(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,h.stateNode),_d(a)):iI(Zn,h.stateNode));break;case 4:v=Zn,$=Ho,Zn=h.stateNode.containerInfo,Ho=true,Ca(a,c,h),Zn=v,Ho=$;break;case 0:case 11:case 14:case 15:vl(2,h,c),xr||vl(4,h,c),Ca(a,c,h);break;case 1:xr||(Ls(h,c),v=h.stateNode,typeof v.componentWillUnmount=="function"&&s4(h,c,v)),Ca(a,c,h);break;case 21:Ca(a,c,h);break;case 22:xr=(v=xr)||h.memoizedState!==null,Ca(a,c,h),xr=v;break;default:Ca(a,c,h);}}function h4(a,c){if(c.memoizedState===null&&(a=c.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{_d(a);}catch(h){In(c,c.return,h);}}}function p4(a,c){if(c.memoizedState===null&&(a=c.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{_d(a);}catch(h){In(c,c.return,h);}}function uX(a){switch(a.tag){case 31:case 13:case 19:var c=a.stateNode;return c===null&&(c=a.stateNode=new u4),c;case 22:return a=a.stateNode,c=a._retryCache,c===null&&(c=a._retryCache=new u4),c;default:throw Error(r(435,a.tag))}}function kv(a,c){var h=uX(a);c.forEach(function(v){if(!h.has(v)){h.add(v);var $=yX.bind(null,a,v);v.then($,$);}});}function Vo(a,c){var h=c.deletions;if(h!==null)for(var v=0;v<h.length;v++){var $=h[v],R=a,V=c,Z=V;e:for(;Z!==null;){switch(Z.tag){case 27:if(El(Z.type)){Zn=Z.stateNode,Ho=false;break e}break;case 5:Zn=Z.stateNode,Ho=false;break e;case 3:case 4:Zn=Z.stateNode.containerInfo,Ho=true;break e}Z=Z.return;}if(Zn===null)throw Error(r(160));m4(R,V,$),Zn=null,Ho=false,R=$.alternate,R!==null&&(R.return=null),$.return=null;}if(c.subtreeFlags&13886)for(c=c.child;c!==null;)g4(c,a),c=c.sibling;}var ss=null;function g4(a,c){var h=a.alternate,v=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Vo(c,a),jo(a),v&4&&(vl(3,a,a.return),Um(3,a),vl(5,a,a.return));break;case 1:Vo(c,a),jo(a),v&512&&(xr||h===null||Ls(h,h.return)),v&64&&Sa&&(a=a.updateQueue,a!==null&&(v=a.callbacks,v!==null&&(h=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=h===null?v:h.concat(v))));break;case 26:var $=ss;if(Vo(c,a),jo(a),v&512&&(xr||h===null||Ls(h,h.return)),v&4){var R=h!==null?h.memoizedState:null;if(v=a.memoizedState,h===null)if(v===null)if(a.stateNode===null){e:{v=a.type,h=a.memoizedProps,$=$.ownerDocument||$;t:switch(v){case "title":R=$.getElementsByTagName("title")[0],(!R||R[Rt]||R[At]||R.namespaceURI==="http://www.w3.org/2000/svg"||R.hasAttribute("itemprop"))&&(R=$.createElement(v),$.head.insertBefore(R,$.querySelector("head > title"))),no(R,v,h),R[At]=a,Sn(R),v=R;break e;case "link":var V=gI("link","href",$).get(v+(h.href||""));if(V){for(var Z=0;Z<V.length;Z++)if(R=V[Z],R.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&R.getAttribute("rel")===(h.rel==null?null:h.rel)&&R.getAttribute("title")===(h.title==null?null:h.title)&&R.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){V.splice(Z,1);break t}}R=$.createElement(v),no(R,v,h),$.head.appendChild(R);break;case "meta":if(V=gI("meta","content",$).get(v+(h.content||""))){for(Z=0;Z<V.length;Z++)if(R=V[Z],R.getAttribute("content")===(h.content==null?null:""+h.content)&&R.getAttribute("name")===(h.name==null?null:h.name)&&R.getAttribute("property")===(h.property==null?null:h.property)&&R.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&R.getAttribute("charset")===(h.charSet==null?null:h.charSet)){V.splice(Z,1);break t}}R=$.createElement(v),no(R,v,h),$.head.appendChild(R);break;default:throw Error(r(468,v))}R[At]=a,Sn(R),v=R;}a.stateNode=v;}else vI($,a.type,a.stateNode);else a.stateNode=pI($,v,a.memoizedProps);else R!==v?(R===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):R.count--,v===null?vI($,a.type,a.stateNode):pI($,v,a.memoizedProps)):v===null&&a.stateNode!==null&&UC(a,a.memoizedProps,h.memoizedProps);}break;case 27:Vo(c,a),jo(a),v&512&&(xr||h===null||Ls(h,h.return)),h!==null&&v&4&&UC(a,a.memoizedProps,h.memoizedProps);break;case 5:if(Vo(c,a),jo(a),v&512&&(xr||h===null||Ls(h,h.return)),a.flags&32){$=a.stateNode;try{od($,"");}catch(vt){In(a,a.return,vt);}}v&4&&a.stateNode!=null&&($=a.memoizedProps,UC(a,$,h!==null?h.memoizedProps:$)),v&1024&&(qC=true);break;case 6:if(Vo(c,a),jo(a),v&4){if(a.stateNode===null)throw Error(r(162));v=a.memoizedProps,h=a.stateNode;try{h.nodeValue=v;}catch(vt){In(a,a.return,vt);}}break;case 3:if(eb=null,$=ss,ss=Zv(c.containerInfo),Vo(c,a),ss=$,jo(a),v&4&&h!==null&&h.memoizedState.isDehydrated)try{_d(c.containerInfo);}catch(vt){In(a,a.return,vt);}qC&&(qC=false,v4(a));break;case 4:v=ss,ss=Zv(a.stateNode.containerInfo),Vo(c,a),jo(a),ss=v;break;case 12:Vo(c,a),jo(a);break;case 31:Vo(c,a),jo(a),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,kv(a,v)));break;case 13:Vo(c,a),jo(a),a.child.flags&8192&&a.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(Fv=Ne()),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,kv(a,v)));break;case 22:$=a.memoizedState!==null;var ue=h!==null&&h.memoizedState!==null,Ee=Sa,Le=xr;if(Sa=Ee||$,xr=Le||ue,Vo(c,a),xr=Le,Sa=Ee,jo(a),v&8192)e:for(c=a.stateNode,c._visibility=$?c._visibility&-2:c._visibility|1,$&&(h===null||ue||Sa||xr||Hc(a)),h=null,c=a;;){if(c.tag===5||c.tag===26){if(h===null){ue=h=c;try{if(R=ue.stateNode,$)V=R.style,typeof V.setProperty=="function"?V.setProperty("display","none","important"):V.display="none";else {Z=ue.stateNode;var Ve=ue.memoizedProps.style,Te=Ve!=null&&Ve.hasOwnProperty("display")?Ve.display:null;Z.style.display=Te==null||typeof Te=="boolean"?"":(""+Te).trim();}}catch(vt){In(ue,ue.return,vt);}}}else if(c.tag===6){if(h===null){ue=c;try{ue.stateNode.nodeValue=$?"":ue.memoizedProps;}catch(vt){In(ue,ue.return,vt);}}}else if(c.tag===18){if(h===null){ue=c;try{var Pe=ue.stateNode;$?sI(Pe,!0):sI(ue.stateNode,!1);}catch(vt){In(ue,ue.return,vt);}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===a)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===a)break e;for(;c.sibling===null;){if(c.return===null||c.return===a)break e;h===c&&(h=null),c=c.return;}h===c&&(h=null),c.sibling.return=c.return,c=c.sibling;}v&4&&(v=a.updateQueue,v!==null&&(h=v.retryQueue,h!==null&&(v.retryQueue=null,kv(a,h))));break;case 19:Vo(c,a),jo(a),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,kv(a,v)));break;case 30:break;case 21:break;default:Vo(c,a),jo(a);}}function jo(a){var c=a.flags;if(c&2){try{for(var h,v=a.return;v!==null;){if(l4(v)){h=v;break}v=v.return;}if(h==null)throw Error(r(160));switch(h.tag){case 27:var $=h.stateNode,R=WC(a);Bv(a,R,$);break;case 5:var V=h.stateNode;h.flags&32&&(od(V,""),h.flags&=-33);var Z=WC(a);Bv(a,Z,V);break;case 3:case 4:var ue=h.stateNode.containerInfo,Ee=WC(a);GC(a,Ee,ue);break;default:throw Error(r(161))}}catch(Le){In(a,a.return,Le);}a.flags&=-3;}c&4096&&(a.flags&=-4097);}function v4(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var c=a;v4(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),a=a.sibling;}}function xa(a,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)d4(a,c.alternate,c),c=c.sibling;}function Hc(a){for(a=a.child;a!==null;){var c=a;switch(c.tag){case 0:case 11:case 14:case 15:vl(4,c,c.return),Hc(c);break;case 1:Ls(c,c.return);var h=c.stateNode;typeof h.componentWillUnmount=="function"&&s4(c,c.return,h),Hc(c);break;case 27:eh(c.stateNode);case 26:case 5:Ls(c,c.return),Hc(c);break;case 22:c.memoizedState===null&&Hc(c);break;case 30:Hc(c);break;default:Hc(c);}a=a.sibling;}}function wa(a,c,h){for(h=h&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var v=c.alternate,$=a,R=c,V=R.flags;switch(R.tag){case 0:case 11:case 15:wa($,R,h),Um(4,R);break;case 1:if(wa($,R,h),v=R,$=v.stateNode,typeof $.componentDidMount=="function")try{$.componentDidMount();}catch(Ee){In(v,v.return,Ee);}if(v=R,$=v.updateQueue,$!==null){var Z=v.stateNode;try{var ue=$.shared.hiddenCallbacks;if(ue!==null)for($.shared.hiddenCallbacks=null,$=0;$<ue.length;$++)K6(ue[$],Z);}catch(Ee){In(v,v.return,Ee);}}h&&V&64&&i4(R),Wm(R,R.return);break;case 27:c4(R);case 26:case 5:wa($,R,h),h&&v===null&&V&4&&a4(R),Wm(R,R.return);break;case 12:wa($,R,h);break;case 31:wa($,R,h),h&&V&4&&h4($,R);break;case 13:wa($,R,h),h&&V&4&&p4($,R);break;case 22:R.memoizedState===null&&wa($,R,h),Wm(R,R.return);break;case 30:break;default:wa($,R,h);}c=c.sibling;}}function KC(a,c){var h=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),a=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(a=c.memoizedState.cachePool.pool),a!==h&&(a!=null&&a.refCount++,h!=null&&Pm(h));}function YC(a,c){a=null,c.alternate!==null&&(a=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==a&&(c.refCount++,a!=null&&Pm(a));}function as(a,c,h,v){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)b4(a,c,h,v),c=c.sibling;}function b4(a,c,h,v){var $=c.flags;switch(c.tag){case 0:case 11:case 15:as(a,c,h,v),$&2048&&Um(9,c);break;case 1:as(a,c,h,v);break;case 3:as(a,c,h,v),$&2048&&(a=null,c.alternate!==null&&(a=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==a&&(c.refCount++,a!=null&&Pm(a)));break;case 12:if($&2048){as(a,c,h,v),a=c.stateNode;try{var R=c.memoizedProps,V=R.id,Z=R.onPostCommit;typeof Z=="function"&&Z(V,c.alternate===null?"mount":"update",a.passiveEffectDuration,-0);}catch(ue){In(c,c.return,ue);}}else as(a,c,h,v);break;case 31:as(a,c,h,v);break;case 13:as(a,c,h,v);break;case 23:break;case 22:R=c.stateNode,V=c.alternate,c.memoizedState!==null?R._visibility&2?as(a,c,h,v):Gm(a,c):R._visibility&2?as(a,c,h,v):(R._visibility|=2,Ed(a,c,h,v,(c.subtreeFlags&10256)!==0||false)),$&2048&&KC(V,c);break;case 24:as(a,c,h,v),$&2048&&YC(c.alternate,c);break;default:as(a,c,h,v);}}function Ed(a,c,h,v,$){for($=$&&((c.subtreeFlags&10256)!==0||false),c=c.child;c!==null;){var R=a,V=c,Z=h,ue=v,Ee=V.flags;switch(V.tag){case 0:case 11:case 15:Ed(R,V,Z,ue,$),Um(8,V);break;case 23:break;case 22:var Le=V.stateNode;V.memoizedState!==null?Le._visibility&2?Ed(R,V,Z,ue,$):Gm(R,V):(Le._visibility|=2,Ed(R,V,Z,ue,$)),$&&Ee&2048&&KC(V.alternate,V);break;case 24:Ed(R,V,Z,ue,$),$&&Ee&2048&&YC(V.alternate,V);break;default:Ed(R,V,Z,ue,$);}c=c.sibling;}}function Gm(a,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var h=a,v=c,$=v.flags;switch(v.tag){case 22:Gm(h,v),$&2048&&KC(v.alternate,v);break;case 24:Gm(h,v),$&2048&&YC(v.alternate,v);break;default:Gm(h,v);}c=c.sibling;}}var qm=8192;function $d(a,c,h){if(a.subtreeFlags&qm)for(a=a.child;a!==null;)y4(a,c,h),a=a.sibling;}function y4(a,c,h){switch(a.tag){case 26:$d(a,c,h),a.flags&qm&&a.memoizedState!==null&&XX(h,ss,a.memoizedState,a.memoizedProps);break;case 5:$d(a,c,h);break;case 3:case 4:var v=ss;ss=Zv(a.stateNode.containerInfo),$d(a,c,h),ss=v;break;case 22:a.memoizedState===null&&(v=a.alternate,v!==null&&v.memoizedState!==null?(v=qm,qm=16777216,$d(a,c,h),qm=v):$d(a,c,h));break;default:$d(a,c,h);}}function S4(a){var c=a.alternate;if(c!==null&&(a=c.child,a!==null)){c.child=null;do c=a.sibling,a.sibling=null,a=c;while(a!==null)}}function Km(a){var c=a.deletions;if((a.flags&16)!==0){if(c!==null)for(var h=0;h<c.length;h++){var v=c[h];Hr=v,x4(v,a);}S4(a);}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)C4(a),a=a.sibling;}function C4(a){switch(a.tag){case 0:case 11:case 15:Km(a),a.flags&2048&&vl(9,a,a.return);break;case 3:Km(a);break;case 12:Km(a);break;case 22:var c=a.stateNode;a.memoizedState!==null&&c._visibility&2&&(a.return===null||a.return.tag!==13)?(c._visibility&=-3,zv(a)):Km(a);break;default:Km(a);}}function zv(a){var c=a.deletions;if((a.flags&16)!==0){if(c!==null)for(var h=0;h<c.length;h++){var v=c[h];Hr=v,x4(v,a);}S4(a);}for(a=a.child;a!==null;){switch(c=a,c.tag){case 0:case 11:case 15:vl(8,c,c.return),zv(c);break;case 22:h=c.stateNode,h._visibility&2&&(h._visibility&=-3,zv(c));break;default:zv(c);}a=a.sibling;}}function x4(a,c){for(;Hr!==null;){var h=Hr;switch(h.tag){case 0:case 11:case 15:vl(8,h,c);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var v=h.memoizedState.cachePool.pool;v!=null&&v.refCount++;}break;case 24:Pm(h.memoizedState.cache);}if(v=h.child,v!==null)v.return=h,Hr=v;else e:for(h=a;Hr!==null;){v=Hr;var $=v.sibling,R=v.return;if(f4(v),v===h){Hr=null;break e}if($!==null){$.return=R,Hr=$;break e}Hr=R;}}}var dX={getCacheForType:function(a){var c=eo(yr),h=c.data.get(a);return h===void 0&&(h=a(),c.data.set(a,h)),h},cacheSignal:function(){return eo(yr).controller.signal}},fX=typeof WeakMap=="function"?WeakMap:Map,Cn=0,Fn=null,rn=null,an=0,Pn=0,ui=null,bl=false,Md=false,XC=false,Ea=0,ar=0,yl=0,Vc=0,QC=0,di=0,Td=0,Ym=null,Uo=null,ZC=false,Fv=0,w4=0,Hv=1/0,Vv=null,Sl=null,Ir=0,Cl=null,Ad=null,$a=0,JC=0,ex=null,E4=null,Xm=0,tx=null;function fi(){return (Cn&2)!==0&&an!==0?an&-an:k.T!==null?ax():dt()}function $4(){if(di===0)if((an&536870912)===0||hn){var a=Pt;Pt<<=1,(Pt&3932160)===0&&(Pt=262144),di=a;}else di=536870912;return a=li.current,a!==null&&(a.flags|=32),di}function Wo(a,c,h){(a===Fn&&(Pn===2||Pn===9)||a.cancelPendingCommit!==null)&&(Rd(a,0),xl(a,an,di,false)),Se(a,h),((Cn&2)===0||a!==Fn)&&(a===Fn&&((Cn&2)===0&&(Vc|=h),ar===4&&xl(a,an,di,false)),Bs(a));}function M4(a,c,h){if((Cn&6)!==0)throw Error(r(327));var v=!h&&(c&127)===0&&(c&a.expiredLanes)===0||Fe(a,c),$=v?pX(a,c):rx(a,c,true),R=v;do{if($===0){Md&&!v&&xl(a,c,0,false);break}else {if(h=a.current.alternate,R&&!mX(h)){$=rx(a,c,false),R=false;continue}if($===2){if(R=c,a.errorRecoveryDisabledLanes&R)var V=0;else V=a.pendingLanes&-536870913,V=V!==0?V:V&536870912?536870912:0;if(V!==0){c=V;e:{var Z=a;$=Ym;var ue=Z.current.memoizedState.isDehydrated;if(ue&&(Rd(Z,V).flags|=256),V=rx(Z,V,false),V!==2){if(XC&&!ue){Z.errorRecoveryDisabledLanes|=R,Vc|=R,$=4;break e}R=Uo,Uo=$,R!==null&&(Uo===null?Uo=R:Uo.push.apply(Uo,R));}$=V;}if(R=false,$!==2)continue}}if($===1){Rd(a,0),xl(a,c,0,true);break}e:{switch(v=a,R=$,R){case 0:case 1:throw Error(r(345));case 4:if((c&4194048)!==c)break;case 6:xl(v,c,di,!bl);break e;case 2:Uo=null;break;case 3:case 5:break;default:throw Error(r(329))}if((c&62914560)===c&&($=Fv+300-Ne(),10<$)){if(xl(v,c,di,!bl),bt(v,0,true)!==0)break e;$a=c,v.timeoutHandle=rI(T4.bind(null,v,h,Uo,Vv,ZC,c,di,Vc,Td,bl,R,"Throttled",-0,0),$);break e}T4(v,h,Uo,Vv,ZC,c,di,Vc,Td,bl,R,null,-0,0);}}break}while(true);Bs(a);}function T4(a,c,h,v,$,R,V,Z,ue,Ee,Le,Ve,Te,Pe){if(a.timeoutHandle=-1,Ve=c.subtreeFlags,Ve&8192||(Ve&16785408)===16785408){Ve={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:true,waitingForViewTransition:false,unsuspend:ua},y4(c,R,Ve);var vt=(R&62914560)===R?Fv-Ne():(R&4194048)===R?w4-Ne():0;if(vt=QX(Ve,vt),vt!==null){$a=R,a.cancelPendingCommit=vt(_4.bind(null,a,c,R,h,v,$,V,Z,ue,Le,Ve,null,Te,Pe)),xl(a,R,V,!Ee);return}}_4(a,c,R,h,v,$,V,Z,ue);}function mX(a){for(var c=a;;){var h=c.tag;if((h===0||h===11||h===15)&&c.flags&16384&&(h=c.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var v=0;v<h.length;v++){var $=h[v],R=$.getSnapshot;$=$.value;try{if(!si(R(),$))return !1}catch{return  false}}if(h=c.child,c.subtreeFlags&16384&&h!==null)h.return=c,c=h;else {if(c===a)break;for(;c.sibling===null;){if(c.return===null||c.return===a)return  true;c=c.return;}c.sibling.return=c.return,c=c.sibling;}}return  true}function xl(a,c,h,v){c&=~QC,c&=~Vc,a.suspendedLanes|=c,a.pingedLanes&=~c,v&&(a.warmLanes|=c),v=a.expirationTimes;for(var $=c;0<$;){var R=31-lt($),V=1<<R;v[R]=-1,$&=~V;}h!==0&&Oe(a,h,c);}function jv(){return (Cn&6)===0?(Qm(0),false):true}function nx(){if(rn!==null){if(Pn===0)var a=rn.return;else a=rn,ha=Oc=null,bC(a),yd=null,Om=0,a=rn;for(;a!==null;)o4(a.alternate,a),a=a.return;rn=null;}}function Rd(a,c){var h=a.timeoutHandle;h!==-1&&(a.timeoutHandle=-1,OX(h)),h=a.cancelPendingCommit,h!==null&&(a.cancelPendingCommit=null,h()),$a=0,nx(),Fn=a,rn=h=fa(a.current,null),an=c,Pn=0,ui=null,bl=false,Md=Fe(a,c),XC=false,Td=di=QC=Vc=yl=ar=0,Uo=Ym=null,ZC=false,(c&8)!==0&&(c|=c&32);var v=a.entangledLanes;if(v!==0)for(a=a.entanglements,v&=c;0<v;){var $=31-lt(v),R=1<<$;c|=a[$],v&=~R;}return Ea=c,uv(),h}function A4(a,c){Gt=null,k.H=Hm,c===bd||c===bv?(c=U6(),Pn=3):c===sC?(c=U6(),Pn=4):Pn=c===DC?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,ui=c,rn===null&&(ar=1,Iv(a,Oi(c,a.current)));}function R4(){var a=li.current;return a===null?true:(an&4194048)===an?Bi===null:(an&62914560)===an||(an&536870912)!==0?a===Bi:false}function N4(){var a=k.H;return k.H=Hm,a===null?Hm:a}function P4(){var a=k.A;return k.A=dX,a}function Uv(){ar=4,bl||(an&4194048)!==an&&li.current!==null||(Md=true),(yl&134217727)===0&&(Vc&134217727)===0||Fn===null||xl(Fn,an,di,false);}function rx(a,c,h){var v=Cn;Cn|=2;var $=N4(),R=P4();(Fn!==a||an!==c)&&(Vv=null,Rd(a,c)),c=false;var V=ar;e:do try{if(Pn!==0&&rn!==null){var Z=rn,ue=ui;switch(Pn){case 8:nx(),V=6;break e;case 3:case 2:case 9:case 6:li.current===null&&(c=!0);var Ee=Pn;if(Pn=0,ui=null,Nd(a,Z,ue,Ee),h&&Md){V=0;break e}break;default:Ee=Pn,Pn=0,ui=null,Nd(a,Z,ue,Ee);}}hX(),V=ar;break}catch(Le){A4(a,Le);}while(true);return c&&a.shellSuspendCounter++,ha=Oc=null,Cn=v,k.H=$,k.A=R,rn===null&&(Fn=null,an=0,uv()),V}function hX(){for(;rn!==null;)I4(rn);}function pX(a,c){var h=Cn;Cn|=2;var v=N4(),$=P4();Fn!==a||an!==c?(Vv=null,Hv=Ne()+500,Rd(a,c)):Md=Fe(a,c);e:do try{if(Pn!==0&&rn!==null){c=rn;var R=ui;t:switch(Pn){case 1:Pn=0,ui=null,Nd(a,c,R,1);break;case 2:case 9:if(V6(R)){Pn=0,ui=null,O4(c);break}c=function(){Pn!==2&&Pn!==9||Fn!==a||(Pn=7),Bs(a);},R.then(c,c);break e;case 3:Pn=7;break e;case 4:Pn=5;break e;case 7:V6(R)?(Pn=0,ui=null,O4(c)):(Pn=0,ui=null,Nd(a,c,R,7));break;case 5:var V=null;switch(rn.tag){case 26:V=rn.memoizedState;case 5:case 27:var Z=rn;if(V?bI(V):Z.stateNode.complete){Pn=0,ui=null;var ue=Z.sibling;if(ue!==null)rn=ue;else {var Ee=Z.return;Ee!==null?(rn=Ee,Wv(Ee)):rn=null;}break t}}Pn=0,ui=null,Nd(a,c,R,5);break;case 6:Pn=0,ui=null,Nd(a,c,R,6);break;case 8:nx(),ar=6;break e;default:throw Error(r(462))}}gX();break}catch(Le){A4(a,Le);}while(true);return ha=Oc=null,k.H=v,k.A=$,Cn=h,rn!==null?0:(Fn=null,an=0,uv(),ar)}function gX(){for(;rn!==null&&!fe();)I4(rn);}function I4(a){var c=n4(a.alternate,a,Ea);a.memoizedProps=a.pendingProps,c===null?Wv(a):rn=c;}function O4(a){var c=a,h=c.alternate;switch(c.tag){case 15:case 0:c=XP(h,c,c.pendingProps,c.type,void 0,an);break;case 11:c=XP(h,c,c.pendingProps,c.type.render,c.ref,an);break;case 5:bC(c);default:o4(h,c),c=rn=P6(c,Ea),c=n4(h,c,Ea);}a.memoizedProps=a.pendingProps,c===null?Wv(a):rn=c;}function Nd(a,c,h,v){ha=Oc=null,bC(c),yd=null,Om=0;var $=c.return;try{if(oX(a,$,c,h,an)){ar=1,Iv(a,Oi(h,a.current)),rn=null;return}}catch(R){if($!==null)throw rn=$,R;ar=1,Iv(a,Oi(h,a.current)),rn=null;return}c.flags&32768?(hn||v===1?a=true:Md||(an&536870912)!==0?a=false:(bl=a=true,(v===2||v===9||v===3||v===6)&&(v=li.current,v!==null&&v.tag===13&&(v.flags|=16384))),D4(c,a)):Wv(c);}function Wv(a){var c=a;do{if((c.flags&32768)!==0){D4(c,bl);return}a=c.return;var h=aX(c.alternate,c,Ea);if(h!==null){rn=h;return}if(c=c.sibling,c!==null){rn=c;return}rn=c=a;}while(c!==null);ar===0&&(ar=5);}function D4(a,c){do{var h=lX(a.alternate,a);if(h!==null){h.flags&=32767,rn=h;return}if(h=a.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!c&&(a=a.sibling,a!==null)){rn=a;return}rn=a=h;}while(a!==null);ar=6,rn=null;}function _4(a,c,h,v,$,R,V,Z,ue){a.cancelPendingCommit=null;do Gv();while(Ir!==0);if((Cn&6)!==0)throw Error(r(327));if(c!==null){if(c===a.current)throw Error(r(177));if(R=c.lanes|c.childLanes,R|=WS,he(a,h,R,V,Z,ue),a===Fn&&(rn=Fn=null,an=0),Ad=c,Cl=a,$a=h,JC=R,ex=$,E4=v,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,SX(rt,function(){return F4(),null})):(a.callbackNode=null,a.callbackPriority=0),v=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||v){v=k.T,k.T=null,$=G.p,G.p=2,V=Cn,Cn|=4;try{cX(a,c,h);}finally{Cn=V,G.p=$,k.T=v;}}Ir=1,L4(),B4(),k4();}}function L4(){if(Ir===1){Ir=0;var a=Cl,c=Ad,h=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||h){h=k.T,k.T=null;var v=G.p;G.p=2;var $=Cn;Cn|=4;try{g4(c,a);var R=px,V=x6(a.containerInfo),Z=R.focusedElem,ue=R.selectionRange;if(V!==Z&&Z&&Z.ownerDocument&&C6(Z.ownerDocument.documentElement,Z)){if(ue!==null&&FS(Z)){var Ee=ue.start,Le=ue.end;if(Le===void 0&&(Le=Ee),"selectionStart"in Z)Z.selectionStart=Ee,Z.selectionEnd=Math.min(Le,Z.value.length);else {var Ve=Z.ownerDocument||document,Te=Ve&&Ve.defaultView||window;if(Te.getSelection){var Pe=Te.getSelection(),vt=Z.textContent.length,Nt=Math.min(ue.start,vt),Ln=ue.end===void 0?Nt:Math.min(ue.end,vt);!Pe.extend&&Nt>Ln&&(V=Ln,Ln=Nt,Nt=V);var ge=S6(Z,Nt),me=S6(Z,Ln);if(ge&&me&&(Pe.rangeCount!==1||Pe.anchorNode!==ge.node||Pe.anchorOffset!==ge.offset||Pe.focusNode!==me.node||Pe.focusOffset!==me.offset)){var we=Ve.createRange();we.setStart(ge.node,ge.offset),Pe.removeAllRanges(),Nt>Ln?(Pe.addRange(we),Pe.extend(me.node,me.offset)):(we.setEnd(me.node,me.offset),Pe.addRange(we));}}}}for(Ve=[],Pe=Z;Pe=Pe.parentNode;)Pe.nodeType===1&&Ve.push({element:Pe,left:Pe.scrollLeft,top:Pe.scrollTop});for(typeof Z.focus=="function"&&Z.focus(),Z=0;Z<Ve.length;Z++){var ze=Ve[Z];ze.element.scrollLeft=ze.left,ze.element.scrollTop=ze.top;}}ob=!!hx,px=hx=null;}finally{Cn=$,G.p=v,k.T=h;}}a.current=c,Ir=2;}}function B4(){if(Ir===2){Ir=0;var a=Cl,c=Ad,h=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||h){h=k.T,k.T=null;var v=G.p;G.p=2;var $=Cn;Cn|=4;try{d4(a,c.alternate,c);}finally{Cn=$,G.p=v,k.T=h;}}Ir=3;}}function k4(){if(Ir===4||Ir===3){Ir=0,ve();var a=Cl,c=Ad,h=$a,v=E4;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?Ir=5:(Ir=0,Ad=Cl=null,z4(a,a.pendingLanes));var $=a.pendingLanes;if($===0&&(Sl=null),it(h),c=c.stateNode,Be&&typeof Be.onCommitFiberRoot=="function")try{Be.onCommitFiberRoot(Je,c,void 0,(c.current.flags&128)===128);}catch{}if(v!==null){c=k.T,$=G.p,G.p=2,k.T=null;try{for(var R=a.onRecoverableError,V=0;V<v.length;V++){var Z=v[V];R(Z.value,{componentStack:Z.stack});}}finally{k.T=c,G.p=$;}}($a&3)!==0&&Gv(),Bs(a),$=a.pendingLanes,(h&261930)!==0&&($&42)!==0?a===tx?Xm++:(Xm=0,tx=a):Xm=0,Qm(0);}}function z4(a,c){(a.pooledCacheLanes&=c)===0&&(c=a.pooledCache,c!=null&&(a.pooledCache=null,Pm(c)));}function Gv(){return L4(),B4(),k4(),F4()}function F4(){if(Ir!==5)return  false;var a=Cl,c=JC;JC=0;var h=it($a),v=k.T,$=G.p;try{G.p=32>h?32:h,k.T=null,h=ex,ex=null;var R=Cl,V=$a;if(Ir=0,Ad=Cl=null,$a=0,(Cn&6)!==0)throw Error(r(331));var Z=Cn;if(Cn|=4,C4(R.current),b4(R,R.current,V,h),Cn=Z,Qm(0,!1),Be&&typeof Be.onPostCommitFiberRoot=="function")try{Be.onPostCommitFiberRoot(Je,R);}catch{}return !0}finally{G.p=$,k.T=v,z4(a,c);}}function H4(a,c,h){c=Oi(h,c),c=OC(a.stateNode,c,2),a=hl(a,c,2),a!==null&&(Se(a,2),Bs(a));}function In(a,c,h){if(a.tag===3)H4(a,a,h);else for(;c!==null;){if(c.tag===3){H4(c,a,h);break}else if(c.tag===1){var v=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(Sl===null||!Sl.has(v))){a=Oi(h,a),h=VP(2),v=hl(c,h,2),v!==null&&(jP(h,v,c,a),Se(v,2),Bs(v));break}}c=c.return;}}function ox(a,c,h){var v=a.pingCache;if(v===null){v=a.pingCache=new fX;var $=new Set;v.set(c,$);}else $=v.get(c),$===void 0&&($=new Set,v.set(c,$));$.has(h)||(XC=true,$.add(h),a=vX.bind(null,a,c,h),c.then(a,a));}function vX(a,c,h){var v=a.pingCache;v!==null&&v.delete(c),a.pingedLanes|=a.suspendedLanes&h,a.warmLanes&=~h,Fn===a&&(an&h)===h&&(ar===4||ar===3&&(an&62914560)===an&&300>Ne()-Fv?(Cn&2)===0&&Rd(a,0):QC|=h,Td===an&&(Td=0)),Bs(a);}function V4(a,c){c===0&&(c=ye()),a=Nc(a,c),a!==null&&(Se(a,c),Bs(a));}function bX(a){var c=a.memoizedState,h=0;c!==null&&(h=c.retryLane),V4(a,h);}function yX(a,c){var h=0;switch(a.tag){case 31:case 13:var v=a.stateNode,$=a.memoizedState;$!==null&&(h=$.retryLane);break;case 19:v=a.stateNode;break;case 22:v=a.stateNode._retryCache;break;default:throw Error(r(314))}v!==null&&v.delete(c),V4(a,h);}function SX(a,c){return Ye(a,c)}var qv=null,Pd=null,ix=false,Kv=false,sx=false,wl=0;function Bs(a){a!==Pd&&a.next===null&&(Pd===null?qv=Pd=a:Pd=Pd.next=a),Kv=true,ix||(ix=true,xX());}function Qm(a,c){if(!sx&&Kv){sx=true;do for(var h=false,v=qv;v!==null;){if(a!==0){var $=v.pendingLanes;if($===0)var R=0;else {var V=v.suspendedLanes,Z=v.pingedLanes;R=(1<<31-lt(42|a)+1)-1,R&=$&~(V&~Z),R=R&201326741?R&201326741|1:R?R|2:0;}R!==0&&(h=true,G4(v,R));}else R=an,R=bt(v,v===Fn?R:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(R&3)===0||Fe(v,R)||(h=true,G4(v,R));v=v.next;}while(h);sx=false;}}function CX(){j4();}function j4(){Kv=ix=false;var a=0;wl!==0&&IX()&&(a=wl);for(var c=Ne(),h=null,v=qv;v!==null;){var $=v.next,R=U4(v,c);R===0?(v.next=null,h===null?qv=$:h.next=$,$===null&&(Pd=h)):(h=v,(a!==0||(R&3)!==0)&&(Kv=true)),v=$;}Ir!==0&&Ir!==5||Qm(a),wl!==0&&(wl=0);}function U4(a,c){for(var h=a.suspendedLanes,v=a.pingedLanes,$=a.expirationTimes,R=a.pendingLanes&-62914561;0<R;){var V=31-lt(R),Z=1<<V,ue=$[V];ue===-1?((Z&h)===0||(Z&v)!==0)&&($[V]=Ue(Z,c)):ue<=c&&(a.expiredLanes|=Z),R&=~Z;}if(c=Fn,h=an,h=bt(a,a===c?h:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),v=a.callbackNode,h===0||a===c&&(Pn===2||Pn===9)||a.cancelPendingCommit!==null)return v!==null&&v!==null&&Re(v),a.callbackNode=null,a.callbackPriority=0;if((h&3)===0||Fe(a,h)){if(c=h&-h,c===a.callbackPriority)return c;switch(v!==null&&Re(v),it(h)){case 2:case 8:h=je;break;case 32:h=rt;break;case 268435456:h=Ke;break;default:h=rt;}return v=W4.bind(null,a),h=Ye(h,v),a.callbackPriority=c,a.callbackNode=h,c}return v!==null&&v!==null&&Re(v),a.callbackPriority=2,a.callbackNode=null,2}function W4(a,c){if(Ir!==0&&Ir!==5)return a.callbackNode=null,a.callbackPriority=0,null;var h=a.callbackNode;if(Gv()&&a.callbackNode!==h)return null;var v=an;return v=bt(a,a===Fn?v:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),v===0?null:(M4(a,v,c),U4(a,Ne()),a.callbackNode!=null&&a.callbackNode===h?W4.bind(null,a):null)}function G4(a,c){if(Gv())return null;M4(a,c,true);}function xX(){DX(function(){(Cn&6)!==0?Ye(Ge,CX):j4();});}function ax(){if(wl===0){var a=gd;a===0&&(a=xt,xt<<=1,(xt&261888)===0&&(xt=256)),wl=a;}return wl}function q4(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:nv(""+a)}function K4(a,c){var h=c.ownerDocument.createElement("input");return h.name=c.name,h.value=c.value,a.id&&h.setAttribute("form",a.id),c.parentNode.insertBefore(h,c),a=new FormData(a),h.parentNode.removeChild(h),a}function wX(a,c,h,v,$){if(c==="submit"&&h&&h.stateNode===$){var R=q4(($[yn]||null).action),V=v.submitter;V&&(c=(c=V[yn]||null)?q4(c.formAction):V.getAttribute("formAction"),c!==null&&(R=c,V=null));var Z=new sv("action","action",null,v,$);a.push({event:Z,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(wl!==0){var ue=V?K4($,V):new FormData($);TC(h,{pending:true,data:ue,method:$.method,action:R},null,ue);}}else typeof R=="function"&&(Z.preventDefault(),ue=V?K4($,V):new FormData($),TC(h,{pending:true,data:ue,method:$.method,action:R},R,ue));},currentTarget:$}]});}}for(var lx=0;lx<US.length;lx++){var cx=US[lx],EX=cx.toLowerCase(),$X=cx[0].toUpperCase()+cx.slice(1);is(EX,"on"+$X);}is($6,"onAnimationEnd"),is(M6,"onAnimationIteration"),is(T6,"onAnimationStart"),is("dblclick","onDoubleClick"),is("focusin","onFocus"),is("focusout","onBlur"),is(HY,"onTransitionRun"),is(VY,"onTransitionStart"),is(jY,"onTransitionCancel"),is(A6,"onTransitionEnd"),ko("onMouseEnter",["mouseout","mouseover"]),ko("onMouseLeave",["mouseout","mouseover"]),ko("onPointerEnter",["pointerout","pointerover"]),ko("onPointerLeave",["pointerout","pointerover"]),Wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zm="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),MX=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zm));function Y4(a,c){c=(c&4)!==0;for(var h=0;h<a.length;h++){var v=a[h],$=v.event;v=v.listeners;e:{var R=void 0;if(c)for(var V=v.length-1;0<=V;V--){var Z=v[V],ue=Z.instance,Ee=Z.currentTarget;if(Z=Z.listener,ue!==R&&$.isPropagationStopped())break e;R=Z,$.currentTarget=Ee;try{R($);}catch(Le){cv(Le);}$.currentTarget=null,R=ue;}else for(V=0;V<v.length;V++){if(Z=v[V],ue=Z.instance,Ee=Z.currentTarget,Z=Z.listener,ue!==R&&$.isPropagationStopped())break e;R=Z,$.currentTarget=Ee;try{R($);}catch(Le){cv(Le);}$.currentTarget=null,R=ue;}}}}function on(a,c){var h=c[et];h===void 0&&(h=c[et]=new Set);var v=a+"__bubble";h.has(v)||(X4(c,a,2,false),h.add(v));}function ux(a,c,h){var v=0;c&&(v|=4),X4(h,a,v,c);}var Yv="_reactListening"+Math.random().toString(36).slice(2);function dx(a){if(!a[Yv]){a[Yv]=true,vo.forEach(function(h){h!=="selectionchange"&&(MX.has(h)||ux(h,false,a),ux(h,true,a));});var c=a.nodeType===9?a:a.ownerDocument;c===null||c[Yv]||(c[Yv]=true,ux("selectionchange",false,c));}}function X4(a,c,h,v){switch($I(c)){case 2:var $=eQ;break;case 8:$=tQ;break;default:$=Mx;}h=$.bind(null,c,h,a),$=void 0,!PS||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||($=true),v?$!==void 0?a.addEventListener(c,h,{capture:true,passive:$}):a.addEventListener(c,h,true):$!==void 0?a.addEventListener(c,h,{passive:$}):a.addEventListener(c,h,false);}function fx(a,c,h,v,$){var R=v;if((c&1)===0&&(c&2)===0&&v!==null)e:for(;;){if(v===null)return;var V=v.tag;if(V===3||V===4){var Z=v.stateNode.containerInfo;if(Z===$)break;if(V===4)for(V=v.return;V!==null;){var ue=V.tag;if((ue===3||ue===4)&&V.stateNode.containerInfo===$)return;V=V.return;}for(;Z!==null;){if(V=en(Z),V===null)return;if(ue=V.tag,ue===5||ue===6||ue===26||ue===27){v=R=V;continue e}Z=Z.parentNode;}}v=v.return;}t6(function(){var Ee=R,Le=RS(h),Ve=[];e:{var Te=R6.get(a);if(Te!==void 0){var Pe=sv,vt=a;switch(a){case "keypress":if(ov(h)===0)break e;case "keydown":case "keyup":Pe=yY;break;case "focusin":vt="focus",Pe=_S;break;case "focusout":vt="blur",Pe=_S;break;case "beforeblur":case "afterblur":Pe=_S;break;case "click":if(h.button===2)break e;case "auxclick":case "dblclick":case "mousedown":case "mousemove":case "mouseup":case "mouseout":case "mouseover":case "contextmenu":Pe=o6;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":Pe=aY;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":Pe=xY;break;case $6:case M6:case T6:Pe=uY;break;case A6:Pe=EY;break;case "scroll":case "scrollend":Pe=iY;break;case "wheel":Pe=MY;break;case "copy":case "cut":case "paste":Pe=fY;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":Pe=s6;break;case "toggle":case "beforetoggle":Pe=AY;}var Nt=(c&4)!==0,Ln=!Nt&&(a==="scroll"||a==="scrollend"),ge=Nt?Te!==null?Te+"Capture":null:Te;Nt=[];for(var me=Ee,we;me!==null;){var ze=me;if(we=ze.stateNode,ze=ze.tag,ze!==5&&ze!==26&&ze!==27||we===null||ge===null||(ze=Sm(me,ge),ze!=null&&Nt.push(Jm(me,ze,we))),Ln)break;me=me.return;}0<Nt.length&&(Te=new Pe(Te,vt,null,h,Le),Ve.push({event:Te,listeners:Nt}));}}if((c&7)===0){e:{if(Te=a==="mouseover"||a==="pointerover",Pe=a==="mouseout"||a==="pointerout",Te&&h!==AS&&(vt=h.relatedTarget||h.fromElement)&&(en(vt)||vt[Un]))break e;if((Pe||Te)&&(Te=Le.window===Le?Le:(Te=Le.ownerDocument)?Te.defaultView||Te.parentWindow:window,Pe?(vt=h.relatedTarget||h.toElement,Pe=Ee,vt=vt?en(vt):null,vt!==null&&(Ln=i(vt),Nt=vt.tag,vt!==Ln||Nt!==5&&Nt!==27&&Nt!==6)&&(vt=null)):(Pe=null,vt=Ee),Pe!==vt)){if(Nt=o6,ze="onMouseLeave",ge="onMouseEnter",me="mouse",(a==="pointerout"||a==="pointerover")&&(Nt=s6,ze="onPointerLeave",ge="onPointerEnter",me="pointer"),Ln=Pe==null?Te:Nn(Pe),we=vt==null?Te:Nn(vt),Te=new Nt(ze,me+"leave",Pe,h,Le),Te.target=Ln,Te.relatedTarget=we,ze=null,en(Le)===Ee&&(Nt=new Nt(ge,me+"enter",vt,h,Le),Nt.target=we,Nt.relatedTarget=Ln,ze=Nt),Ln=ze,Pe&&vt)t:{for(Nt=TX,ge=Pe,me=vt,we=0,ze=ge;ze;ze=Nt(ze))we++;ze=0;for(var $t=me;$t;$t=Nt($t))ze++;for(;0<we-ze;)ge=Nt(ge),we--;for(;0<ze-we;)me=Nt(me),ze--;for(;we--;){if(ge===me||me!==null&&ge===me.alternate){Nt=ge;break t}ge=Nt(ge),me=Nt(me);}Nt=null;}else Nt=null;Pe!==null&&Q4(Ve,Te,Pe,Nt,!1),vt!==null&&Ln!==null&&Q4(Ve,Ln,vt,Nt,!0);}}e:{if(Te=Ee?Nn(Ee):window,Pe=Te.nodeName&&Te.nodeName.toLowerCase(),Pe==="select"||Pe==="input"&&Te.type==="file")var vn=h6;else if(f6(Te))if(p6)vn=kY;else {vn=LY;var St=_Y;}else Pe=Te.nodeName,!Pe||Pe.toLowerCase()!=="input"||Te.type!=="checkbox"&&Te.type!=="radio"?Ee&&TS(Ee.elementType)&&(vn=h6):vn=BY;if(vn&&(vn=vn(a,Ee))){m6(Ve,vn,h,Le);break e}St&&St(a,Te,Ee),a==="focusout"&&Ee&&Te.type==="number"&&Ee.memoizedProps.value!=null&&rd(Te,"number",Te.value);}switch(St=Ee?Nn(Ee):window,a){case "focusin":(f6(St)||St.contentEditable==="true")&&(ld=St,HS=Ee,Am=null);break;case "focusout":Am=HS=ld=null;break;case "mousedown":VS=!0;break;case "contextmenu":case "mouseup":case "dragend":VS=!1,w6(Ve,h,Le);break;case "selectionchange":if(FY)break;case "keydown":case "keyup":w6(Ve,h,Le);}var Kt;if(BS)e:{switch(a){case "compositionstart":var ln="onCompositionStart";break e;case "compositionend":ln="onCompositionEnd";break e;case "compositionupdate":ln="onCompositionUpdate";break e}ln=void 0;}else ad?u6(a,h)&&(ln="onCompositionEnd"):a==="keydown"&&h.keyCode===229&&(ln="onCompositionStart");ln&&(a6&&h.locale!=="ko"&&(ad||ln!=="onCompositionStart"?ln==="onCompositionEnd"&&ad&&(Kt=n6()):(al=Le,IS="value"in al?al.value:al.textContent,ad=!0)),St=Xv(Ee,ln),0<St.length&&(ln=new i6(ln,a,null,h,Le),Ve.push({event:ln,listeners:St}),Kt?ln.data=Kt:(Kt=d6(h),Kt!==null&&(ln.data=Kt)))),(Kt=NY?PY(a,h):IY(a,h))&&(ln=Xv(Ee,"onBeforeInput"),0<ln.length&&(St=new i6("onBeforeInput","beforeinput",null,h,Le),Ve.push({event:St,listeners:ln}),St.data=Kt)),wX(Ve,a,Ee,h,Le);}Y4(Ve,c);});}function Jm(a,c,h){return {instance:a,listener:c,currentTarget:h}}function Xv(a,c){for(var h=c+"Capture",v=[];a!==null;){var $=a,R=$.stateNode;if($=$.tag,$!==5&&$!==26&&$!==27||R===null||($=Sm(a,h),$!=null&&v.unshift(Jm(a,$,R)),$=Sm(a,c),$!=null&&v.push(Jm(a,$,R))),a.tag===3)return v;a=a.return;}return []}function TX(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function Q4(a,c,h,v,$){for(var R=c._reactName,V=[];h!==null&&h!==v;){var Z=h,ue=Z.alternate,Ee=Z.stateNode;if(Z=Z.tag,ue!==null&&ue===v)break;Z!==5&&Z!==26&&Z!==27||Ee===null||(ue=Ee,$?(Ee=Sm(h,R),Ee!=null&&V.unshift(Jm(h,Ee,ue))):$||(Ee=Sm(h,R),Ee!=null&&V.push(Jm(h,Ee,ue)))),h=h.return;}V.length!==0&&a.push({event:c,listeners:V});}var AX=/\r\n?/g,RX=/\u0000|\uFFFD/g;function Z4(a){return (typeof a=="string"?a:""+a).replace(AX,`
`).replace(RX,"")}function J4(a,c){return c=Z4(c),Z4(a)===c}function _n(a,c,h,v,$,R){switch(h){case "children":typeof v=="string"?c==="body"||c==="textarea"&&v===""||od(a,v):(typeof v=="number"||typeof v=="bigint")&&c!=="body"&&od(a,""+v);break;case "className":Pi(a,"class",v);break;case "tabIndex":Pi(a,"tabindex",v);break;case "dir":case "role":case "viewBox":case "width":case "height":Pi(a,h,v);break;case "style":JN(a,v,R);break;case "data":if(c!=="object"){Pi(a,"data",v);break}case "src":case "href":if(v===""&&(c!=="a"||h!=="href")){a.removeAttribute(h);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){a.removeAttribute(h);break}v=nv(""+v),a.setAttribute(h,v);break;case "action":case "formAction":if(typeof v=="function"){a.setAttribute(h,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof R=="function"&&(h==="formAction"?(c!=="input"&&_n(a,c,"name",$.name,$,null),_n(a,c,"formEncType",$.formEncType,$,null),_n(a,c,"formMethod",$.formMethod,$,null),_n(a,c,"formTarget",$.formTarget,$,null)):(_n(a,c,"encType",$.encType,$,null),_n(a,c,"method",$.method,$,null),_n(a,c,"target",$.target,$,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){a.removeAttribute(h);break}v=nv(""+v),a.setAttribute(h,v);break;case "onClick":v!=null&&(a.onclick=ua);break;case "onScroll":v!=null&&on("scroll",a);break;case "onScrollEnd":v!=null&&on("scrollend",a);break;case "dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(h=v.__html,h!=null){if($.children!=null)throw Error(r(60));a.innerHTML=h;}}break;case "multiple":a.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case "muted":a.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "defaultValue":case "defaultChecked":case "innerHTML":case "ref":break;case "autoFocus":break;case "xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){a.removeAttribute("xlink:href");break}h=nv(""+v),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case "contentEditable":case "spellCheck":case "draggable":case "value":case "autoReverse":case "externalResourcesRequired":case "focusable":case "preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?a.setAttribute(h,""+v):a.removeAttribute(h);break;case "inert":case "allowFullScreen":case "async":case "autoPlay":case "controls":case "default":case "defer":case "disabled":case "disablePictureInPicture":case "disableRemotePlayback":case "formNoValidate":case "hidden":case "loop":case "noModule":case "noValidate":case "open":case "playsInline":case "readOnly":case "required":case "reversed":case "scoped":case "seamless":case "itemScope":v&&typeof v!="function"&&typeof v!="symbol"?a.setAttribute(h,""):a.removeAttribute(h);break;case "capture":case "download":v===true?a.setAttribute(h,""):v!==false&&v!=null&&typeof v!="function"&&typeof v!="symbol"?a.setAttribute(h,v):a.removeAttribute(h);break;case "cols":case "rows":case "size":case "span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?a.setAttribute(h,v):a.removeAttribute(h);break;case "rowSpan":case "start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?a.removeAttribute(h):a.setAttribute(h,v);break;case "popover":on("beforetoggle",a),on("toggle",a),Os(a,"popover",v);break;case "xlinkActuate":zo(a,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case "xlinkArcrole":zo(a,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case "xlinkRole":zo(a,"http://www.w3.org/1999/xlink","xlink:role",v);break;case "xlinkShow":zo(a,"http://www.w3.org/1999/xlink","xlink:show",v);break;case "xlinkTitle":zo(a,"http://www.w3.org/1999/xlink","xlink:title",v);break;case "xlinkType":zo(a,"http://www.w3.org/1999/xlink","xlink:type",v);break;case "xmlBase":zo(a,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case "xmlLang":zo(a,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case "xmlSpace":zo(a,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case "is":Os(a,"is",v);break;case "innerText":case "textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=rY.get(h)||h,Os(a,h,v));}}function mx(a,c,h,v,$,R){switch(h){case "style":JN(a,v,R);break;case "dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(h=v.__html,h!=null){if($.children!=null)throw Error(r(60));a.innerHTML=h;}}break;case "children":typeof v=="string"?od(a,v):(typeof v=="number"||typeof v=="bigint")&&od(a,""+v);break;case "onScroll":v!=null&&on("scroll",a);break;case "onScrollEnd":v!=null&&on("scrollend",a);break;case "onClick":v!=null&&(a.onclick=ua);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "innerHTML":case "ref":break;case "innerText":case "textContent":break;default:if(!la.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&($=h.endsWith("Capture"),c=h.slice(2,$?h.length-7:void 0),R=a[yn]||null,R=R!=null?R[h]:null,typeof R=="function"&&a.removeEventListener(c,R,$),typeof v=="function")){typeof R!="function"&&R!==null&&(h in a?a[h]=null:a.hasAttribute(h)&&a.removeAttribute(h)),a.addEventListener(c,v,$);break e}h in a?a[h]=v:v===true?a.setAttribute(h,""):Os(a,h,v);}}}function no(a,c,h){switch(c){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "img":on("error",a),on("load",a);var v=false,$=false,R;for(R in h)if(h.hasOwnProperty(R)){var V=h[R];if(V!=null)switch(R){case "src":v=true;break;case "srcSet":$=true;break;case "children":case "dangerouslySetInnerHTML":throw Error(r(137,c));default:_n(a,c,R,V,h,null);}}$&&_n(a,c,"srcSet",h.srcSet,h,null),v&&_n(a,c,"src",h.src,h,null);return;case "input":on("invalid",a);var Z=R=V=$=null,ue=null,Ee=null;for(v in h)if(h.hasOwnProperty(v)){var Le=h[v];if(Le!=null)switch(v){case "name":$=Le;break;case "type":V=Le;break;case "checked":ue=Le;break;case "defaultChecked":Ee=Le;break;case "value":R=Le;break;case "defaultValue":Z=Le;break;case "children":case "dangerouslySetInnerHTML":if(Le!=null)throw Error(r(137,c));break;default:_n(a,c,v,Le,h,null);}}ev(a,R,Z,ue,Ee,V,$,false);return;case "select":on("invalid",a),v=V=R=null;for($ in h)if(h.hasOwnProperty($)&&(Z=h[$],Z!=null))switch($){case "value":R=Z;break;case "defaultValue":V=Z;break;case "multiple":v=Z;default:_n(a,c,$,Z,h,null);}c=R,h=V,a.multiple=!!v,c!=null?ca(a,!!v,c,false):h!=null&&ca(a,!!v,h,true);return;case "textarea":on("invalid",a),R=$=v=null;for(V in h)if(h.hasOwnProperty(V)&&(Z=h[V],Z!=null))switch(V){case "value":v=Z;break;case "defaultValue":$=Z;break;case "children":R=Z;break;case "dangerouslySetInnerHTML":if(Z!=null)throw Error(r(91));break;default:_n(a,c,V,Z,h,null);}QN(a,v,$,R);return;case "option":for(ue in h)h.hasOwnProperty(ue)&&(v=h[ue],v!=null)&&(ue==="selected"?a.selected=v&&typeof v!="function"&&typeof v!="symbol":_n(a,c,ue,v,h,null));return;case "dialog":on("beforetoggle",a),on("toggle",a),on("cancel",a),on("close",a);break;case "iframe":case "object":on("load",a);break;case "video":case "audio":for(v=0;v<Zm.length;v++)on(Zm[v],a);break;case "image":on("error",a),on("load",a);break;case "details":on("toggle",a);break;case "embed":case "source":case "link":on("error",a),on("load",a);case "area":case "base":case "br":case "col":case "hr":case "keygen":case "meta":case "param":case "track":case "wbr":case "menuitem":for(Ee in h)if(h.hasOwnProperty(Ee)&&(v=h[Ee],v!=null))switch(Ee){case "children":case "dangerouslySetInnerHTML":throw Error(r(137,c));default:_n(a,c,Ee,v,h,null);}return;default:if(TS(c)){for(Le in h)h.hasOwnProperty(Le)&&(v=h[Le],v!==void 0&&mx(a,c,Le,v,h,void 0));return}}for(Z in h)h.hasOwnProperty(Z)&&(v=h[Z],v!=null&&_n(a,c,Z,v,h,null));}function NX(a,c,h,v){switch(c){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "input":var $=null,R=null,V=null,Z=null,ue=null,Ee=null,Le=null;for(Pe in h){var Ve=h[Pe];if(h.hasOwnProperty(Pe)&&Ve!=null)switch(Pe){case "checked":break;case "value":break;case "defaultValue":ue=Ve;default:v.hasOwnProperty(Pe)||_n(a,c,Pe,null,v,Ve);}}for(var Te in v){var Pe=v[Te];if(Ve=h[Te],v.hasOwnProperty(Te)&&(Pe!=null||Ve!=null))switch(Te){case "type":R=Pe;break;case "name":$=Pe;break;case "checked":Ee=Pe;break;case "defaultChecked":Le=Pe;break;case "value":V=Pe;break;case "defaultValue":Z=Pe;break;case "children":case "dangerouslySetInnerHTML":if(Pe!=null)throw Error(r(137,c));break;default:Pe!==Ve&&_n(a,c,Te,Pe,v,Ve);}}sl(a,V,Z,ue,Ee,Le,R,$);return;case "select":Pe=V=Z=Te=null;for(R in h)if(ue=h[R],h.hasOwnProperty(R)&&ue!=null)switch(R){case "value":break;case "multiple":Pe=ue;default:v.hasOwnProperty(R)||_n(a,c,R,null,v,ue);}for($ in v)if(R=v[$],ue=h[$],v.hasOwnProperty($)&&(R!=null||ue!=null))switch($){case "value":Te=R;break;case "defaultValue":Z=R;break;case "multiple":V=R;default:R!==ue&&_n(a,c,$,R,v,ue);}c=Z,h=V,v=Pe,Te!=null?ca(a,!!h,Te,false):!!v!=!!h&&(c!=null?ca(a,!!h,c,true):ca(a,!!h,h?[]:"",false));return;case "textarea":Pe=Te=null;for(Z in h)if($=h[Z],h.hasOwnProperty(Z)&&$!=null&&!v.hasOwnProperty(Z))switch(Z){case "value":break;case "children":break;default:_n(a,c,Z,null,v,$);}for(V in v)if($=v[V],R=h[V],v.hasOwnProperty(V)&&($!=null||R!=null))switch(V){case "value":Te=$;break;case "defaultValue":Pe=$;break;case "children":break;case "dangerouslySetInnerHTML":if($!=null)throw Error(r(91));break;default:$!==R&&_n(a,c,V,$,v,R);}tv(a,Te,Pe);return;case "option":for(var vt in h)Te=h[vt],h.hasOwnProperty(vt)&&Te!=null&&!v.hasOwnProperty(vt)&&(vt==="selected"?a.selected=false:_n(a,c,vt,null,v,Te));for(ue in v)Te=v[ue],Pe=h[ue],v.hasOwnProperty(ue)&&Te!==Pe&&(Te!=null||Pe!=null)&&(ue==="selected"?a.selected=Te&&typeof Te!="function"&&typeof Te!="symbol":_n(a,c,ue,Te,v,Pe));return;case "img":case "link":case "area":case "base":case "br":case "col":case "embed":case "hr":case "keygen":case "meta":case "param":case "source":case "track":case "wbr":case "menuitem":for(var Nt in h)Te=h[Nt],h.hasOwnProperty(Nt)&&Te!=null&&!v.hasOwnProperty(Nt)&&_n(a,c,Nt,null,v,Te);for(Ee in v)if(Te=v[Ee],Pe=h[Ee],v.hasOwnProperty(Ee)&&Te!==Pe&&(Te!=null||Pe!=null))switch(Ee){case "children":case "dangerouslySetInnerHTML":if(Te!=null)throw Error(r(137,c));break;default:_n(a,c,Ee,Te,v,Pe);}return;default:if(TS(c)){for(var Ln in h)Te=h[Ln],h.hasOwnProperty(Ln)&&Te!==void 0&&!v.hasOwnProperty(Ln)&&mx(a,c,Ln,void 0,v,Te);for(Le in v)Te=v[Le],Pe=h[Le],!v.hasOwnProperty(Le)||Te===Pe||Te===void 0&&Pe===void 0||mx(a,c,Le,Te,v,Pe);return}}for(var ge in h)Te=h[ge],h.hasOwnProperty(ge)&&Te!=null&&!v.hasOwnProperty(ge)&&_n(a,c,ge,null,v,Te);for(Ve in v)Te=v[Ve],Pe=h[Ve],!v.hasOwnProperty(Ve)||Te===Pe||Te==null&&Pe==null||_n(a,c,Ve,Te,v,Pe);}function eI(a){switch(a){case "css":case "script":case "font":case "img":case "image":case "input":case "link":return  true;default:return  false}}function PX(){if(typeof performance.getEntriesByType=="function"){for(var a=0,c=0,h=performance.getEntriesByType("resource"),v=0;v<h.length;v++){var $=h[v],R=$.transferSize,V=$.initiatorType,Z=$.duration;if(R&&Z&&eI(V)){for(V=0,Z=$.responseEnd,v+=1;v<h.length;v++){var ue=h[v],Ee=ue.startTime;if(Ee>Z)break;var Le=ue.transferSize,Ve=ue.initiatorType;Le&&eI(Ve)&&(ue=ue.responseEnd,V+=Le*(ue<Z?1:(Z-Ee)/(ue-Ee)));}if(--v,c+=8*(R+V)/($.duration/1e3),a++,10<a)break}}if(0<a)return c/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var hx=null,px=null;function Qv(a){return a.nodeType===9?a:a.ownerDocument}function tI(a){switch(a){case "http://www.w3.org/2000/svg":return 1;case "http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function nI(a,c){if(a===0)switch(c){case "svg":return 1;case "math":return 2;default:return 0}return a===1&&c==="foreignObject"?0:a}function gx(a,c){return a==="textarea"||a==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var vx=null;function IX(){var a=window.event;return a&&a.type==="popstate"?a===vx?false:(vx=a,true):(vx=null,false)}var rI=typeof setTimeout=="function"?setTimeout:void 0,OX=typeof clearTimeout=="function"?clearTimeout:void 0,oI=typeof Promise=="function"?Promise:void 0,DX=typeof queueMicrotask=="function"?queueMicrotask:typeof oI<"u"?function(a){return oI.resolve(null).then(a).catch(_X)}:rI;function _X(a){setTimeout(function(){throw a});}function El(a){return a==="head"}function iI(a,c){var h=c,v=0;do{var $=h.nextSibling;if(a.removeChild(h),$&&$.nodeType===8)if(h=$.data,h==="/$"||h==="/&"){if(v===0){a.removeChild($),_d(c);return}v--;}else if(h==="$"||h==="$?"||h==="$~"||h==="$!"||h==="&")v++;else if(h==="html")eh(a.ownerDocument.documentElement);else if(h==="head"){h=a.ownerDocument.head,eh(h);for(var R=h.firstChild;R;){var V=R.nextSibling,Z=R.nodeName;R[Rt]||Z==="SCRIPT"||Z==="STYLE"||Z==="LINK"&&R.rel.toLowerCase()==="stylesheet"||h.removeChild(R),R=V;}}else h==="body"&&eh(a.ownerDocument.body);h=$;}while(h);_d(c);}function sI(a,c){var h=a;a=0;do{var v=h.nextSibling;if(h.nodeType===1?c?(h._stashedDisplay=h.style.display,h.style.display="none"):(h.style.display=h._stashedDisplay||"",h.getAttribute("style")===""&&h.removeAttribute("style")):h.nodeType===3&&(c?(h._stashedText=h.nodeValue,h.nodeValue=""):h.nodeValue=h._stashedText||""),v&&v.nodeType===8)if(h=v.data,h==="/$"){if(a===0)break;a--;}else h!=="$"&&h!=="$?"&&h!=="$~"&&h!=="$!"||a++;h=v;}while(h)}function bx(a){var c=a.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var h=c;switch(c=c.nextSibling,h.nodeName){case "HTML":case "HEAD":case "BODY":bx(h),Ut(h);continue;case "SCRIPT":case "STYLE":continue;case "LINK":if(h.rel.toLowerCase()==="stylesheet")continue}a.removeChild(h);}}function LX(a,c,h,v){for(;a.nodeType===1;){var $=h;if(a.nodeName.toLowerCase()!==c.toLowerCase()){if(!v&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(v){if(!a[Rt])switch(c){case "meta":if(!a.hasAttribute("itemprop"))break;return a;case "link":if(R=a.getAttribute("rel"),R==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(R!==$.rel||a.getAttribute("href")!==($.href==null||$.href===""?null:$.href)||a.getAttribute("crossorigin")!==($.crossOrigin==null?null:$.crossOrigin)||a.getAttribute("title")!==($.title==null?null:$.title))break;return a;case "style":if(a.hasAttribute("data-precedence"))break;return a;case "script":if(R=a.getAttribute("src"),(R!==($.src==null?null:$.src)||a.getAttribute("type")!==($.type==null?null:$.type)||a.getAttribute("crossorigin")!==($.crossOrigin==null?null:$.crossOrigin))&&R&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(c==="input"&&a.type==="hidden"){var R=$.name==null?null:""+$.name;if($.type==="hidden"&&a.getAttribute("name")===R)return a}else return a;if(a=ki(a.nextSibling),a===null)break}return null}function BX(a,c,h){if(c==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!h||(a=ki(a.nextSibling),a===null))return null;return a}function aI(a,c){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!c||(a=ki(a.nextSibling),a===null))return null;return a}function yx(a){return a.data==="$?"||a.data==="$~"}function Sx(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function kX(a,c){var h=a.ownerDocument;if(a.data==="$~")a._reactRetry=c;else if(a.data!=="$?"||h.readyState!=="loading")c();else {var v=function(){c(),h.removeEventListener("DOMContentLoaded",v);};h.addEventListener("DOMContentLoaded",v),a._reactRetry=v;}}function ki(a){for(;a!=null;a=a.nextSibling){var c=a.nodeType;if(c===1||c===3)break;if(c===8){if(c=a.data,c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"||c==="F!"||c==="F")break;if(c==="/$"||c==="/&")return null}}return a}var Cx=null;function lI(a){a=a.nextSibling;for(var c=0;a;){if(a.nodeType===8){var h=a.data;if(h==="/$"||h==="/&"){if(c===0)return ki(a.nextSibling);c--;}else h!=="$"&&h!=="$!"&&h!=="$?"&&h!=="$~"&&h!=="&"||c++;}a=a.nextSibling;}return null}function cI(a){a=a.previousSibling;for(var c=0;a;){if(a.nodeType===8){var h=a.data;if(h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"){if(c===0)return a;c--;}else h!=="/$"&&h!=="/&"||c++;}a=a.previousSibling;}return null}function uI(a,c,h){switch(c=Qv(h),a){case "html":if(a=c.documentElement,!a)throw Error(r(452));return a;case "head":if(a=c.head,!a)throw Error(r(453));return a;case "body":if(a=c.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function eh(a){for(var c=a.attributes;c.length;)a.removeAttributeNode(c[0]);Ut(a);}var zi=new Map,dI=new Set;function Zv(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Ma=G.d;G.d={f:zX,r:FX,D:HX,C:VX,L:jX,m:UX,X:GX,S:WX,M:qX};function zX(){var a=Ma.f(),c=jv();return a||c}function FX(a){var c=nn(a);c!==null&&c.tag===5&&c.type==="form"?AP(c):Ma.r(a);}var Id=typeof document>"u"?null:document;function fI(a,c,h){var v=Id;if(v&&typeof c=="string"&&c){var $=Ht(c);$='link[rel="'+a+'"][href="'+$+'"]',typeof h=="string"&&($+='[crossorigin="'+h+'"]'),dI.has($)||(dI.add($),a={rel:a,crossOrigin:h,href:c},v.querySelector($)===null&&(c=v.createElement("link"),no(c,"link",a),Sn(c),v.head.appendChild(c)));}}function HX(a){Ma.D(a),fI("dns-prefetch",a,null);}function VX(a,c){Ma.C(a,c),fI("preconnect",a,c);}function jX(a,c,h){Ma.L(a,c,h);var v=Id;if(v&&a&&c){var $='link[rel="preload"][as="'+Ht(c)+'"]';c==="image"&&h&&h.imageSrcSet?($+='[imagesrcset="'+Ht(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&($+='[imagesizes="'+Ht(h.imageSizes)+'"]')):$+='[href="'+Ht(a)+'"]';var R=$;switch(c){case "style":R=Od(a);break;case "script":R=Dd(a);}zi.has(R)||(a=p({rel:"preload",href:c==="image"&&h&&h.imageSrcSet?void 0:a,as:c},h),zi.set(R,a),v.querySelector($)!==null||c==="style"&&v.querySelector(th(R))||c==="script"&&v.querySelector(nh(R))||(c=v.createElement("link"),no(c,"link",a),Sn(c),v.head.appendChild(c)));}}function UX(a,c){Ma.m(a,c);var h=Id;if(h&&a){var v=c&&typeof c.as=="string"?c.as:"script",$='link[rel="modulepreload"][as="'+Ht(v)+'"][href="'+Ht(a)+'"]',R=$;switch(v){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":R=Dd(a);}if(!zi.has(R)&&(a=p({rel:"modulepreload",href:a},c),zi.set(R,a),h.querySelector($)===null)){switch(v){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":if(h.querySelector(nh(R)))return}v=h.createElement("link"),no(v,"link",a),Sn(v),h.head.appendChild(v);}}}function WX(a,c,h){Ma.S(a,c,h);var v=Id;if(v&&a){var $=ir(v).hoistableStyles,R=Od(a);c=c||"default";var V=$.get(R);if(!V){var Z={loading:0,preload:null};if(V=v.querySelector(th(R)))Z.loading=5;else {a=p({rel:"stylesheet",href:a,"data-precedence":c},h),(h=zi.get(R))&&xx(a,h);var ue=V=v.createElement("link");Sn(ue),no(ue,"link",a),ue._p=new Promise(function(Ee,Le){ue.onload=Ee,ue.onerror=Le;}),ue.addEventListener("load",function(){Z.loading|=1;}),ue.addEventListener("error",function(){Z.loading|=2;}),Z.loading|=4,Jv(V,c,v);}V={type:"stylesheet",instance:V,count:1,state:Z},$.set(R,V);}}}function GX(a,c){Ma.X(a,c);var h=Id;if(h&&a){var v=ir(h).hoistableScripts,$=Dd(a),R=v.get($);R||(R=h.querySelector(nh($)),R||(a=p({src:a,async:true},c),(c=zi.get($))&&wx(a,c),R=h.createElement("script"),Sn(R),no(R,"link",a),h.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},v.set($,R));}}function qX(a,c){Ma.M(a,c);var h=Id;if(h&&a){var v=ir(h).hoistableScripts,$=Dd(a),R=v.get($);R||(R=h.querySelector(nh($)),R||(a=p({src:a,async:true,type:"module"},c),(c=zi.get($))&&wx(a,c),R=h.createElement("script"),Sn(R),no(R,"link",a),h.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},v.set($,R));}}function mI(a,c,h,v){var $=($=te.current)?Zv($):null;if(!$)throw Error(r(446));switch(a){case "meta":case "title":return null;case "style":return typeof h.precedence=="string"&&typeof h.href=="string"?(c=Od(h.href),h=ir($).hoistableStyles,v=h.get(c),v||(v={type:"style",instance:null,count:0,state:null},h.set(c,v)),v):{type:"void",instance:null,count:0,state:null};case "link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){a=Od(h.href);var R=ir($).hoistableStyles,V=R.get(a);if(V||($=$.ownerDocument||$,V={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},R.set(a,V),(R=$.querySelector(th(a)))&&!R._p&&(V.instance=R,V.state.loading=5),zi.has(a)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},zi.set(a,h),R||KX($,a,h,V.state))),c&&v===null)throw Error(r(528,""));return V}if(c&&v!==null)throw Error(r(529,""));return null;case "script":return c=h.async,h=h.src,typeof h=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=Dd(h),h=ir($).hoistableScripts,v=h.get(c),v||(v={type:"script",instance:null,count:0,state:null},h.set(c,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Od(a){return 'href="'+Ht(a)+'"'}function th(a){return 'link[rel="stylesheet"]['+a+"]"}function hI(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function KX(a,c,h,v){a.querySelector('link[rel="preload"][as="style"]['+c+"]")?v.loading=1:(c=a.createElement("link"),v.preload=c,c.addEventListener("load",function(){return v.loading|=1}),c.addEventListener("error",function(){return v.loading|=2}),no(c,"link",h),Sn(c),a.head.appendChild(c));}function Dd(a){return '[src="'+Ht(a)+'"]'}function nh(a){return "script[async]"+a}function pI(a,c,h){if(c.count++,c.instance===null)switch(c.type){case "style":var v=a.querySelector('style[data-href~="'+Ht(h.href)+'"]');if(v)return c.instance=v,Sn(v),v;var $=p({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return v=(a.ownerDocument||a).createElement("style"),Sn(v),no(v,"style",$),Jv(v,h.precedence,a),c.instance=v;case "stylesheet":$=Od(h.href);var R=a.querySelector(th($));if(R)return c.state.loading|=4,c.instance=R,Sn(R),R;v=hI(h),($=zi.get($))&&xx(v,$),R=(a.ownerDocument||a).createElement("link"),Sn(R);var V=R;return V._p=new Promise(function(Z,ue){V.onload=Z,V.onerror=ue;}),no(R,"link",v),c.state.loading|=4,Jv(R,h.precedence,a),c.instance=R;case "script":return R=Dd(h.src),($=a.querySelector(nh(R)))?(c.instance=$,Sn($),$):(v=h,($=zi.get(R))&&(v=p({},h),wx(v,$)),a=a.ownerDocument||a,$=a.createElement("script"),Sn($),no($,"link",v),a.head.appendChild($),c.instance=$);case "void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(v=c.instance,c.state.loading|=4,Jv(v,h.precedence,a));return c.instance}function Jv(a,c,h){for(var v=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),$=v.length?v[v.length-1]:null,R=$,V=0;V<v.length;V++){var Z=v[V];if(Z.dataset.precedence===c)R=Z;else if(R!==$)break}R?R.parentNode.insertBefore(a,R.nextSibling):(c=h.nodeType===9?h.head:h,c.insertBefore(a,c.firstChild));}function xx(a,c){a.crossOrigin==null&&(a.crossOrigin=c.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=c.referrerPolicy),a.title==null&&(a.title=c.title);}function wx(a,c){a.crossOrigin==null&&(a.crossOrigin=c.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=c.referrerPolicy),a.integrity==null&&(a.integrity=c.integrity);}var eb=null;function gI(a,c,h){if(eb===null){var v=new Map,$=eb=new Map;$.set(h,v);}else $=eb,v=$.get(h),v||(v=new Map,$.set(h,v));if(v.has(a))return v;for(v.set(a,null),h=h.getElementsByTagName(a),$=0;$<h.length;$++){var R=h[$];if(!(R[Rt]||R[At]||a==="link"&&R.getAttribute("rel")==="stylesheet")&&R.namespaceURI!=="http://www.w3.org/2000/svg"){var V=R.getAttribute(c)||"";V=a+V;var Z=v.get(V);Z?Z.push(R):v.set(V,[R]);}}return v}function vI(a,c,h){a=a.ownerDocument||a,a.head.insertBefore(h,c==="title"?a.querySelector("head > title"):null);}function YX(a,c,h){if(h===1||c.itemProp!=null)return  false;switch(a){case "meta":case "title":return  true;case "style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return  true;case "link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;return c.rel==="stylesheet"?(a=c.disabled,typeof c.precedence=="string"&&a==null):true;case "script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return  true}return  false}function bI(a){return !(a.type==="stylesheet"&&(a.state.loading&3)===0)}function XX(a,c,h,v){if(h.type==="stylesheet"&&(typeof v.media!="string"||matchMedia(v.media).matches!==false)&&(h.state.loading&4)===0){if(h.instance===null){var $=Od(v.href),R=c.querySelector(th($));if(R){c=R._p,c!==null&&typeof c=="object"&&typeof c.then=="function"&&(a.count++,a=tb.bind(a),c.then(a,a)),h.state.loading|=4,h.instance=R,Sn(R);return}R=c.ownerDocument||c,v=hI(v),($=zi.get($))&&xx(v,$),R=R.createElement("link"),Sn(R);var V=R;V._p=new Promise(function(Z,ue){V.onload=Z,V.onerror=ue;}),no(R,"link",v),h.instance=R;}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(h,c),(c=h.state.preload)&&(h.state.loading&3)===0&&(a.count++,h=tb.bind(a),c.addEventListener("load",h),c.addEventListener("error",h));}}var Ex=0;function QX(a,c){return a.stylesheets&&a.count===0&&rb(a,a.stylesheets),0<a.count||0<a.imgCount?function(h){var v=setTimeout(function(){if(a.stylesheets&&rb(a,a.stylesheets),a.unsuspend){var R=a.unsuspend;a.unsuspend=null,R();}},6e4+c);0<a.imgBytes&&Ex===0&&(Ex=62500*PX());var $=setTimeout(function(){if(a.waitingForImages=false,a.count===0&&(a.stylesheets&&rb(a,a.stylesheets),a.unsuspend)){var R=a.unsuspend;a.unsuspend=null,R();}},(a.imgBytes>Ex?50:800)+c);return a.unsuspend=h,function(){a.unsuspend=null,clearTimeout(v),clearTimeout($);}}:null}function tb(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rb(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a();}}}var nb=null;function rb(a,c){a.stylesheets=null,a.unsuspend!==null&&(a.count++,nb=new Map,c.forEach(ZX,a),nb=null,tb.call(a));}function ZX(a,c){if(!(c.state.loading&4)){var h=nb.get(a);if(h)var v=h.get(null);else {h=new Map,nb.set(a,h);for(var $=a.querySelectorAll("link[data-precedence],style[data-precedence]"),R=0;R<$.length;R++){var V=$[R];(V.nodeName==="LINK"||V.getAttribute("media")!=="not all")&&(h.set(V.dataset.precedence,V),v=V);}v&&h.set(null,v);}$=c.instance,V=$.getAttribute("data-precedence"),R=h.get(V)||v,R===v&&h.set(null,$),h.set(V,$),this.count++,v=tb.bind(this),$.addEventListener("load",v),$.addEventListener("error",v),R?R.parentNode.insertBefore($,R.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore($,a.firstChild)),c.state.loading|=4;}}var rh={$$typeof:M,Provider:null,Consumer:null,_currentValue:j,_currentValue2:j,_threadCount:0};function JX(a,c,h,v,$,R,V,Z,ue){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Me(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Me(0),this.hiddenUpdates=Me(null),this.identifierPrefix=v,this.onUncaughtError=$,this.onCaughtError=R,this.onRecoverableError=V,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ue,this.incompleteTransitions=new Map;}function yI(a,c,h,v,$,R,V,Z,ue,Ee,Le,Ve){return a=new JX(a,c,h,V,ue,Ee,Le,Ve,Z),c=1,R===true&&(c|=24),R=ai(3,null,null,c),a.current=R,R.stateNode=a,c=rC(),c.refCount++,a.pooledCache=c,c.refCount++,R.memoizedState={element:v,isDehydrated:h,cache:c},aC(R),a}function SI(a){return a?(a=dd,a):dd}function CI(a,c,h,v,$,R){$=SI($),v.context===null?v.context=$:v.pendingContext=$,v=ml(c),v.payload={element:h},R=R===void 0?null:R,R!==null&&(v.callback=R),h=hl(a,v,c),h!==null&&(Wo(h,a,c),_m(h,a,c));}function xI(a,c){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var h=a.retryLane;a.retryLane=h!==0&&h<c?h:c;}}function $x(a,c){xI(a,c),(a=a.alternate)&&xI(a,c);}function wI(a){if(a.tag===13||a.tag===31){var c=Nc(a,67108864);c!==null&&Wo(c,a,67108864),$x(a,67108864);}}function EI(a){if(a.tag===13||a.tag===31){var c=fi();c=Xe(c);var h=Nc(a,c);h!==null&&Wo(h,a,c),$x(a,c);}}var ob=true;function eQ(a,c,h,v){var $=k.T;k.T=null;var R=G.p;try{G.p=2,Mx(a,c,h,v);}finally{G.p=R,k.T=$;}}function tQ(a,c,h,v){var $=k.T;k.T=null;var R=G.p;try{G.p=8,Mx(a,c,h,v);}finally{G.p=R,k.T=$;}}function Mx(a,c,h,v){if(ob){var $=Tx(v);if($===null)fx(a,c,v,ib,h),MI(a,v);else if(rQ($,a,c,h,v))v.stopPropagation();else if(MI(a,v),c&4&&-1<nQ.indexOf(a)){for(;$!==null;){var R=nn($);if(R!==null)switch(R.tag){case 3:if(R=R.stateNode,R.current.memoizedState.isDehydrated){var V=ct(R.pendingLanes);if(V!==0){var Z=R;for(Z.pendingLanes|=2,Z.entangledLanes|=2;V;){var ue=1<<31-lt(V);Z.entanglements[1]|=ue,V&=~ue;}Bs(R),(Cn&6)===0&&(Hv=Ne()+500,Qm(0));}}break;case 31:case 13:Z=Nc(R,2),Z!==null&&Wo(Z,R,2),jv(),$x(R,2);}if(R=Tx(v),R===null&&fx(a,c,v,ib,h),R===$)break;$=R;}$!==null&&v.stopPropagation();}else fx(a,c,v,null,h);}}function Tx(a){return a=RS(a),Ax(a)}var ib=null;function Ax(a){if(ib=null,a=en(a),a!==null){var c=i(a);if(c===null)a=null;else {var h=c.tag;if(h===13){if(a=s(c),a!==null)return a;a=null;}else if(h===31){if(a=l(c),a!==null)return a;a=null;}else if(h===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;a=null;}else c!==a&&(a=null);}}return ib=a,null}function $I(a){switch(a){case "beforetoggle":case "cancel":case "click":case "close":case "contextmenu":case "copy":case "cut":case "auxclick":case "dblclick":case "dragend":case "dragstart":case "drop":case "focusin":case "focusout":case "input":case "invalid":case "keydown":case "keypress":case "keyup":case "mousedown":case "mouseup":case "paste":case "pause":case "play":case "pointercancel":case "pointerdown":case "pointerup":case "ratechange":case "reset":case "resize":case "seeked":case "submit":case "toggle":case "touchcancel":case "touchend":case "touchstart":case "volumechange":case "change":case "selectionchange":case "textInput":case "compositionstart":case "compositionend":case "compositionupdate":case "beforeblur":case "afterblur":case "beforeinput":case "blur":case "fullscreenchange":case "focus":case "hashchange":case "popstate":case "select":case "selectstart":return 2;case "drag":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "mousemove":case "mouseout":case "mouseover":case "pointermove":case "pointerout":case "pointerover":case "scroll":case "touchmove":case "wheel":case "mouseenter":case "mouseleave":case "pointerenter":case "pointerleave":return 8;case "message":switch(He()){case Ge:return 2;case je:return 8;case rt:case ot:return 32;case Ke:return 268435456;default:return 32}default:return 32}}var Rx=false,$l=null,Ml=null,Tl=null,oh=new Map,ih=new Map,Al=[],nQ="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".split(" ");function MI(a,c){switch(a){case "focusin":case "focusout":$l=null;break;case "dragenter":case "dragleave":Ml=null;break;case "mouseover":case "mouseout":Tl=null;break;case "pointerover":case "pointerout":oh.delete(c.pointerId);break;case "gotpointercapture":case "lostpointercapture":ih.delete(c.pointerId);}}function sh(a,c,h,v,$,R){return a===null||a.nativeEvent!==R?(a={blockedOn:c,domEventName:h,eventSystemFlags:v,nativeEvent:R,targetContainers:[$]},c!==null&&(c=nn(c),c!==null&&wI(c)),a):(a.eventSystemFlags|=v,c=a.targetContainers,$!==null&&c.indexOf($)===-1&&c.push($),a)}function rQ(a,c,h,v,$){switch(c){case "focusin":return $l=sh($l,a,c,h,v,$),true;case "dragenter":return Ml=sh(Ml,a,c,h,v,$),true;case "mouseover":return Tl=sh(Tl,a,c,h,v,$),true;case "pointerover":var R=$.pointerId;return oh.set(R,sh(oh.get(R)||null,a,c,h,v,$)),true;case "gotpointercapture":return R=$.pointerId,ih.set(R,sh(ih.get(R)||null,a,c,h,v,$)),true}return  false}function TI(a){var c=en(a.target);if(c!==null){var h=i(c);if(h!==null){if(c=h.tag,c===13){if(c=s(h),c!==null){a.blockedOn=c,Et(a.priority,function(){EI(h);});return}}else if(c===31){if(c=l(h),c!==null){a.blockedOn=c,Et(a.priority,function(){EI(h);});return}}else if(c===3&&h.stateNode.current.memoizedState.isDehydrated){a.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}a.blockedOn=null;}function sb(a){if(a.blockedOn!==null)return  false;for(var c=a.targetContainers;0<c.length;){var h=Tx(a.nativeEvent);if(h===null){h=a.nativeEvent;var v=new h.constructor(h.type,h);AS=v,h.target.dispatchEvent(v),AS=null;}else return c=nn(h),c!==null&&wI(c),a.blockedOn=h,false;c.shift();}return  true}function AI(a,c,h){sb(a)&&h.delete(c);}function oQ(){Rx=false,$l!==null&&sb($l)&&($l=null),Ml!==null&&sb(Ml)&&(Ml=null),Tl!==null&&sb(Tl)&&(Tl=null),oh.forEach(AI),ih.forEach(AI);}function ab(a,c){a.blockedOn===c&&(a.blockedOn=null,Rx||(Rx=true,e.unstable_scheduleCallback(e.unstable_NormalPriority,oQ)));}var lb=null;function RI(a){lb!==a&&(lb=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){lb===a&&(lb=null);for(var c=0;c<a.length;c+=3){var h=a[c],v=a[c+1],$=a[c+2];if(typeof v!="function"){if(Ax(v||h)===null)continue;break}var R=nn(h);R!==null&&(a.splice(c,3),c-=3,TC(R,{pending:true,data:$,method:h.method,action:v},v,$));}}));}function _d(a){function c(ue){return ab(ue,a)}$l!==null&&ab($l,a),Ml!==null&&ab(Ml,a),Tl!==null&&ab(Tl,a),oh.forEach(c),ih.forEach(c);for(var h=0;h<Al.length;h++){var v=Al[h];v.blockedOn===a&&(v.blockedOn=null);}for(;0<Al.length&&(h=Al[0],h.blockedOn===null);)TI(h),h.blockedOn===null&&Al.shift();if(h=(a.ownerDocument||a).$$reactFormReplay,h!=null)for(v=0;v<h.length;v+=3){var $=h[v],R=h[v+1],V=$[yn]||null;if(typeof R=="function")V||RI(h);else if(V){var Z=null;if(R&&R.hasAttribute("formAction")){if($=R,V=R[yn]||null)Z=V.formAction;else if(Ax($)!==null)continue}else Z=V.action;typeof Z=="function"?h[v+1]=Z:(h.splice(v,3),v-=3),RI(h);}}}function NI(){function a(R){R.canIntercept&&R.info==="react-transition"&&R.intercept({handler:function(){return new Promise(function(V){return $=V})},focusReset:"manual",scroll:"manual"});}function c(){$!==null&&($(),$=null),v||setTimeout(h,20);}function h(){if(!v&&!navigation.transition){var R=navigation.currentEntry;R&&R.url!=null&&navigation.navigate(R.url,{state:R.getState(),info:"react-transition",history:"replace"});}}if(typeof navigation=="object"){var v=false,$=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",c),navigation.addEventListener("navigateerror",c),setTimeout(h,100),function(){v=true,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",c),navigation.removeEventListener("navigateerror",c),$!==null&&($(),$=null);}}}function Nx(a){this._internalRoot=a;}cb.prototype.render=Nx.prototype.render=function(a){var c=this._internalRoot;if(c===null)throw Error(r(409));var h=c.current,v=fi();CI(h,v,a,c,null,null);},cb.prototype.unmount=Nx.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var c=a.containerInfo;CI(a.current,2,null,a,null,null),jv(),c[Un]=null;}};function cb(a){this._internalRoot=a;}cb.prototype.unstable_scheduleHydration=function(a){if(a){var c=dt();a={blockedOn:null,target:a,priority:c};for(var h=0;h<Al.length&&c!==0&&c<Al[h].priority;h++);Al.splice(h,0,a),h===0&&TI(a);}};var PI=t.version;if(PI!=="19.2.4")throw Error(r(527,PI,"19.2.4"));G.findDOMNode=function(a){var c=a._reactInternals;if(c===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=d(c),a=a!==null?m(a):null,a=a===null?null:a.stateNode,a};var iQ={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ub=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ub.isDisabled&&ub.supportsFiber)try{Je=ub.inject(iQ),Be=ub;}catch{}}return fh.createRoot=function(a,c){if(!o(a))throw Error(r(299));var h=false,v="",$=kP,R=zP,V=FP;return c!=null&&(c.unstable_strictMode===true&&(h=true),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onUncaughtError!==void 0&&($=c.onUncaughtError),c.onCaughtError!==void 0&&(R=c.onCaughtError),c.onRecoverableError!==void 0&&(V=c.onRecoverableError)),c=yI(a,1,false,null,null,h,v,null,$,R,V,NI),a[Un]=c.current,dx(a),new Nx(c)},fh.hydrateRoot=function(a,c,h){if(!o(a))throw Error(r(299));var v=false,$="",R=kP,V=zP,Z=FP,ue=null;return h!=null&&(h.unstable_strictMode===true&&(v=true),h.identifierPrefix!==void 0&&($=h.identifierPrefix),h.onUncaughtError!==void 0&&(R=h.onUncaughtError),h.onCaughtError!==void 0&&(V=h.onCaughtError),h.onRecoverableError!==void 0&&(Z=h.onRecoverableError),h.formState!==void 0&&(ue=h.formState)),c=yI(a,1,true,c,h??null,v,$,ue,R,V,Z,NI),c.context=SI(null),h=c.current,v=fi(),v=Xe(v),$=ml(v),$.callback=null,hl(h,$,v),h=v,c.current.lanes=h,Se(c,h),Bs(c),a[Un]=c.current,dx(a),new cb(c)},fh.version="19.2.4",fh}var CO;function kre(){if(CO)return tw.exports;CO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e);}catch(t){console.error(t);}}return e(),tw.exports=Bre(),tw.exports}var aa=kre();const sy="__rc_react_root__";function T1(e,t){const n=t[sy]||aa.createRoot(t);n.render(e),t[sy]=n;}async function Jz(e){return Promise.resolve().then(()=>{e[sy]?.unmount(),delete e[sy];})}const ow=()=>({height:0,opacity:0}),xO=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},zre=e=>({height:e?e.offsetHeight:0}),iw=(e,t)=>t?.deadline===true||t.propertyName==="height",eF=(e=Sp)=>({motionName:`${e}-motion-collapse`,onAppearStart:ow,onEnterStart:ow,onAppearActive:xO,onEnterActive:xO,onLeaveStart:zre,onLeaveActive:ow,onAppearEnd:iw,onEnterEnd:iw,onLeaveEnd:iw,motionDeadline:500}),nc=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Fre=e=>{const{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:o,motionEaseOutCirc:i,antCls:s}=e,[,l]=nr(s,"wave");return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:l("color",n),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(u=>`${u} ${i}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(u=>`${u} ${r} ${o}`).join(",")}}}}},Hre=Mte("Wave",Fre),A1=`${Sp}-wave-target`;function wO(e){return e&&typeof e=="string"&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function Vre(e,t=null){const n=getComputedStyle(e),{borderTopColor:r,borderColor:o,backgroundColor:i}=n;return t&&wO(n[t])?n[t]:[r,o,i].find(wO)??null}function sw(e){return Number.isNaN(e)?0:e}const jre=e=>{const{className:t,target:n,component:r,colorSource:o}=e,i=f.useRef(null),{getPrefixCls:s}=f.useContext(wt),l=s(),[u]=nr(l,"wave"),[d,m]=f.useState(null),[p,g]=f.useState([]),[b,y]=f.useState(0),[S,C]=f.useState(0),[w,E]=f.useState(0),[M,T]=f.useState(0),[A,I]=f.useState(false),N={left:b,top:S,width:w,height:M,borderRadius:p.map(D=>`${D}px`).join(" ")};d&&(N[u("color")]=d);function P(){const D=getComputedStyle(n);m(Vre(n,o));const L=D.position==="static",{borderLeftWidth:F,borderTopWidth:U}=D;y(L?n.offsetLeft:sw(-Number.parseFloat(F))),C(L?n.offsetTop:sw(-Number.parseFloat(U))),E(n.offsetWidth),T(n.offsetHeight);const{borderTopLeftRadius:W,borderTopRightRadius:z,borderBottomLeftRadius:k,borderBottomRightRadius:G}=D;g([W,z,G,k].map(j=>sw(Number.parseFloat(j))));}if(f.useEffect(()=>{if(n){const D=_t(()=>{P(),I(true);});let L;return typeof ResizeObserver<"u"&&(L=new ResizeObserver(P),L.observe(n)),()=>{_t.cancel(D),L?.disconnect();}}},[n]),!A)return null;const O=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(A1);return f.createElement(To,{visible:true,motionAppear:true,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(D,L)=>{if(L.deadline||L.propertyName==="opacity"){const F=i.current?.parentElement;Jz(F).then(()=>{F?.remove();});}return  false}},({className:D},L)=>f.createElement("div",{ref:Yr(i,L),className:X(t,D,{"wave-quick":O}),style:N}))},Ure=(e,t)=>{const{component:n}=t;if(n==="Checkbox"&&!e.querySelector("input")?.checked)return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild),T1(f.createElement(jre,{...t,target:e}),r);},Wre=(e,t,n,r)=>{const{wave:o}=f.useContext(wt),[,i,s]=Xr(),l=Mt(m=>{const p=e.current;if(o?.disabled||!p)return;const g=p.querySelector(`.${A1}`)||p,{showEffect:b}=o||{};(b||Ure)(g,{className:t,token:i,component:n,event:m,hashId:s,colorSource:r});}),u=f.useRef(null);return f.useEffect(()=>()=>{_t.cancel(u.current);},[]),m=>{_t.cancel(u.current),u.current=_t(()=>{l(m);});}},fg=e=>{const{children:t,disabled:n,component:r,colorSource:o}=e,{getPrefixCls:i}=f.useContext(wt),s=f.useRef(null),l=i("wave"),u=Hre(l),d=Wre(s,X(l,u),r,o);if(q.useEffect(()=>{const p=s.current;if(!p||p.nodeType!==window.Node.ELEMENT_NODE||n)return;const g=b=>{!$T(b.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")&&!p.className.includes("disabled:")||p.getAttribute("aria-disabled")==="true"||p.className.includes("-leave")||d(b);};return p.addEventListener("click",g,true),()=>{p.removeEventListener("click",g,true);}},[n]),!q.isValidElement(t))return t??null;const m=Vu(t)?Yr(hc(t),s):s;return qr(t,{ref:m})},br=e=>{const t=q.useContext(Rf);return q.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},Gre=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},qre=Wt(["Space","Compact"],Gre,()=>({}),{resetStyle:false}),R1=f.createContext(null),Za=(e,t)=>{const n=f.useContext(R1),r=f.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:i,isLastItem:s}=n,l=o==="vertical"?"-vertical-":"-";return X(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:s,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return {compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},Kre=e=>{const{children:t}=e;return f.createElement(R1.Provider,{value:null},t)},Yre=e=>{const{children:t,...n}=e;return f.createElement(R1.Provider,{value:f.useMemo(()=>n,[n])},t)},RT=e=>{const{getPrefixCls:t,direction:n}=f.useContext(wt),{size:r,direction:o,orientation:i,block:s,prefixCls:l,className:u,rootClassName:d,children:m,vertical:p,...g}=e,[b,y]=Uu(i,p,o),S=br(I=>r??I),C=t("space-compact",l),[w]=qre(C),E=X(C,w,{[`${C}-rtl`]:n==="rtl",[`${C}-block`]:s,[`${C}-vertical`]:y},u,d),M=f.useContext(R1),T=ri(m),A=f.useMemo(()=>T.map((I,N)=>{const P=I?.key||`${C}-item-${N}`;return f.createElement(Yre,{key:P,compactSize:S,compactDirection:b,isFirstItem:N===0&&(!M||M?.isFirstItem),isLastItem:N===T.length-1&&(!M||M?.isLastItem)},I)}),[T,M,b,S,C]);return T.length===0?null:f.createElement("div",{className:E,...g},A)},tF=f.createContext(void 0),Xre=e=>{const{getPrefixCls:t,direction:n}=f.useContext(wt),{prefixCls:r,size:o,className:i,...s}=e,l=t("btn-group",r),[,,u]=Xr(),d=f.useMemo(()=>{switch(o){case "large":return "lg";case "small":return "sm";default:return ""}},[o]),m=X(l,{[`${l}-${d}`]:d,[`${l}-rtl`]:n==="rtl"},i,u);return f.createElement(tF.Provider,{value:o},f.createElement("div",{...s,className:m}))},EO=/^[\u4E00-\u9FA5]{2}$/,l2=EO.test.bind(EO);function NT(e){return e==="danger"?{danger:true}:{type:e}}function $O(e){return typeof e=="string"}function aw(e){return e==="text"||e==="link"}function Qre(e,t,n,r){if(!Lr(e)||e==="")return;const o=t?" ":"";return typeof e!="string"&&typeof e!="number"&&$O(e.type)&&l2(e.props.children)?qr(e,i=>{const s=X(i.className,r)||void 0,l={...n,...i.style};return {...i,children:i.children.split("").join(o),className:s,style:l}}):$O(e)?q.createElement("span",{className:r,style:n},l2(e)?e.split("").join(o):e):zz(e)?q.createElement("span",{className:r,style:n},e):qr(e,i=>({...i,className:X(i.className,r)||void 0,style:{...i.style,...n}}))}function Zre(e,t,n,r){let o=false;const i=[];return q.Children.forEach(e,s=>{const l=typeof s,u=l==="string"||l==="number";if(o&&u){const d=i.length-1,m=i[d];i[d]=`${m}${s}`;}else i.push(s);o=u;}),q.Children.map(i,s=>Qre(s,t,n,r))}["default","primary","danger"].concat(Zt(na));const nF=f.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,s=X(`${i}-icon`,n);return q.createElement("span",{ref:t,className:s,style:r},o)}),MO=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,s=X(`${n}-loading-icon`,r);return q.createElement(nF,{prefixCls:n,className:s,style:o,ref:t},q.createElement(M1,{className:i}))}),lw=()=>({width:0,opacity:0,transform:"scale(0)"}),cw=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Jre=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:s}=e,l=!!n;return r?q.createElement(MO,{prefixCls:t,className:o,style:i}):q.createElement(To,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:true,onAppearStart:lw,onAppearActive:cw,onEnterStart:lw,onEnterActive:cw,onLeaveStart:cw,onLeaveActive:lw},({className:u,style:d},m)=>{const p={...i,...d};return q.createElement(MO,{prefixCls:t,className:X(o,u),style:p,ref:m})})},rF=e=>{const{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:o}=e;return {[t]:{[`${n}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(i=>`${i} ${r} ${o}`).join(", ")} !important`}},[`${n}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(i=>`${i} ${r} ${o}`).join(", ")} !important`}}}},TO=e=>({animationDuration:e,animationFillMode:"both"}),N1=(e,t,n,r,o=false)=>{const i=o?"&":"";return {[`
      ${i}${e}-enter,
      ${i}${e}-appear
    `]:{...TO(r),animationPlayState:"paused"},[`${i}${e}-leave`]:{...TO(r),animationPlayState:"paused"},[`
      ${i}${e}-enter${e}-enter-active,
      ${i}${e}-appear${e}-appear-active
    `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},eoe=new Bt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),toe=new Bt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),PT=(e,t=false)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return [N1(r,eoe,toe,e.motionDurationMid,t),{[`
        ${o}${r}-enter,
        ${o}${r}-appear
      `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},noe=new Bt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),roe=new Bt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ooe=new Bt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ioe=new Bt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),soe=new Bt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),aoe=new Bt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),loe=new Bt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),coe=new Bt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),uoe={"move-up":{inKeyframes:loe,outKeyframes:coe},"move-down":{inKeyframes:noe,outKeyframes:roe},"move-left":{inKeyframes:ooe,outKeyframes:ioe},"move-right":{inKeyframes:soe,outKeyframes:aoe}},ay=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=uoe[t];return [N1(r,o,i,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},IT=new Bt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),OT=new Bt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),DT=new Bt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),_T=new Bt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),doe=new Bt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),foe=new Bt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),moe=new Bt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),hoe=new Bt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),poe={"slide-up":{inKeyframes:IT,outKeyframes:OT},"slide-down":{inKeyframes:DT,outKeyframes:_T},"slide-left":{inKeyframes:doe,outKeyframes:foe},"slide-right":{inKeyframes:moe,outKeyframes:hoe}},rc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=poe[t];return [N1(r,o,i,e.motionDurationMid),{[`
      ${r}-enter,
      ${r}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},za=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}),goe=new Bt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),voe=new Bt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),AO=new Bt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),RO=new Bt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),boe=new Bt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),yoe=new Bt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Soe=new Bt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Coe=new Bt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),xoe=new Bt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),woe=new Bt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Eoe=new Bt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),$oe=new Bt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Moe={zoom:{inKeyframes:goe,outKeyframes:voe},"zoom-big":{inKeyframes:AO,outKeyframes:RO},"zoom-big-fast":{inKeyframes:AO,outKeyframes:RO},"zoom-left":{inKeyframes:Soe,outKeyframes:Coe},"zoom-right":{inKeyframes:xoe,outKeyframes:woe},"zoom-up":{inKeyframes:boe,outKeyframes:yoe},"zoom-down":{inKeyframes:Eoe,outKeyframes:$oe}},mg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Moe[t];return [N1(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},NO=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Toe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor: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:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},NO(`${t}-primary`,o),NO(`${t}-danger`,i)]}},uw=e=>Math.round(Number(e||0)),Aoe=e=>{if(e instanceof dn)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:t,...n}=e;return {...n,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class Ts extends dn{constructor(t){super(Aoe(t));}toHsbString(){const t=this.toHsb(),n=uw(t.s*100),r=uw(t.b*100),o=uw(t.h),i=t.a,s=`hsb(${o}, ${n}%, ${r}%)`,l=`hsba(${o}, ${n}%, ${r}%, ${i.toFixed(i===0?0:2)})`;return i===1?s:l}toHsb(){const{v:t,...n}=this.toHsv();return {...n,b:t,a:this.a}}}const Roe="rc-color-picker",gf=e=>e instanceof Ts?e:new Ts(e),Noe=gf("#1677ff"),oF=e=>{const{offset:t,targetRef:n,containerRef:r,color:o,type:i}=e,{width:s,height:l}=r.current.getBoundingClientRect(),{width:u,height:d}=n.current.getBoundingClientRect(),m=u/2,p=d/2,g=(t.x+m)/s,b=1-(t.y+p)/l,y=o.toHsb(),S=g,C=(t.x+m)/s*360;if(i)switch(i){case "hue":return gf({...y,h:C<=0?0:C});case "alpha":return gf({...y,a:S<=0?0:S})}return gf({h:y.h,s:g<=0?0:g,b:b>=1?1:b,a:y.a})},iF=(e,t)=>{const n=e.toHsb();switch(t){case "hue":return {x:n.h/360*100,y:50};case "alpha":return {x:e.a*100,y:50};default:return {x:n.s*100,y:(1-n.b)*100}}},LT=({color:e,prefixCls:t,className:n,style:r,innerClassName:o,innerStyle:i,onClick:s})=>{const l=`${t}-color-block`;return q.createElement("div",{className:X(l,n),style:r,onClick:s},q.createElement("div",{className:X(`${l}-inner`,o),style:{background:e,...i}}))};function Poe(e){const t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return {pageX:t.pageX-n,pageY:t.pageY-r}}function sF(e){const{targetRef:t,containerRef:n,direction:r,onDragChange:o,onDragChangeComplete:i,calculate:s,color:l,disabledDrag:u}=e,[d,m]=f.useState({x:0,y:0}),p=f.useRef(null),g=f.useRef(null);f.useEffect(()=>{m(s());},[l]),f.useEffect(()=>()=>{document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",g.current),p.current=null,g.current=null;},[]);const b=w=>{const{pageX:E,pageY:M}=Poe(w),{x:T,y:A,width:I,height:N}=n.current.getBoundingClientRect(),{width:P,height:O}=t.current.getBoundingClientRect(),D=P/2,L=O/2,F=Math.max(0,Math.min(E-T,I))-D,U=Math.max(0,Math.min(M-A,N))-L,W={x:F,y:r==="x"?d.y:U};if(P===0&&O===0||P!==O)return  false;o?.(W);},y=w=>{w.preventDefault(),b(w);},S=w=>{w.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",g.current),p.current=null,g.current=null,i?.();};return [d,w=>{document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",g.current),!u&&(b(w),document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),document.addEventListener("touchmove",y),document.addEventListener("touchend",S),p.current=y,g.current=S);}]}const aF=({size:e="default",color:t,prefixCls:n})=>q.createElement("div",{className:X(`${n}-handler`,{[`${n}-handler-sm`]:e==="small"}),style:{backgroundColor:t}}),lF=({children:e,style:t,prefixCls:n})=>q.createElement("div",{className:`${n}-palette`,style:{position:"relative",...t}},e),cF=f.forwardRef((e,t)=>{const{children:n,x:r,y:o}=e;return q.createElement("div",{ref:t,style:{position:"absolute",left:`${r}%`,top:`${o}%`,zIndex:1,transform:"translate(-50%, -50%)"}},n)}),Ioe=({color:e,onChange:t,prefixCls:n,onChangeComplete:r,disabled:o})=>{const i=f.useRef(),s=f.useRef(),l=f.useRef(e),u=Mt(p=>{const g=oF({offset:p,targetRef:s,containerRef:i,color:e});l.current=g,t(g);}),[d,m]=sF({color:e,containerRef:i,targetRef:s,calculate:()=>iF(e),onDragChange:u,onDragChangeComplete:()=>r?.(l.current),disabledDrag:o});return q.createElement("div",{ref:i,className:`${n}-select`,onMouseDown:m,onTouchStart:m},q.createElement(lF,{prefixCls:n},q.createElement(cF,{x:d.x,y:d.y,ref:s},q.createElement(aF,{color:e.toRgbString(),prefixCls:n})),q.createElement("div",{className:`${n}-saturation`,style:{backgroundColor:`hsl(${e.toHsb().h},100%, 50%)`,backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Ooe=(e,t)=>{const[n,r]=fn(e,t);return [f.useMemo(()=>gf(n),[n]),r]},Doe=({colors:e,children:t,direction:n="to right",type:r,prefixCls:o})=>{const i=f.useMemo(()=>e.map((s,l)=>{let u=gf(s);return r==="alpha"&&l===e.length-1&&(u=new Ts(u.setA(1))),u.toRgbString()}).join(","),[e,r]);return q.createElement("div",{className:`${o}-gradient`,style:{position:"absolute",inset:0,background:`linear-gradient(${n}, ${i})`}},t)},_oe=e=>{const{prefixCls:t,colors:n,disabled:r,onChange:o,onChangeComplete:i,color:s,type:l}=e,u=f.useRef(null),d=f.useRef(null),m=f.useRef(s),p=w=>l==="hue"?w.getHue():w.a*100,g=Mt(w=>{const E=oF({offset:w,targetRef:d,containerRef:u,color:s,type:l});m.current=E,o(p(E));}),[b,y]=sF({color:s,targetRef:d,containerRef:u,calculate:()=>iF(s,l),onDragChange:g,onDragChangeComplete(){i(p(m.current));},direction:"x",disabledDrag:r}),S=q.useMemo(()=>{if(l==="hue"){const w=s.toHsb();return w.s=1,w.b=1,w.a=1,new Ts(w)}return s},[s,l]),C=q.useMemo(()=>n.map(w=>`${w.color} ${w.percent}%`),[n]);return q.createElement("div",{ref:u,className:X(`${t}-slider`,`${t}-slider-${l}`),onMouseDown:y,onTouchStart:y},q.createElement(lF,{prefixCls:t},q.createElement(cF,{x:b.x,y:b.y,ref:d},q.createElement(aF,{size:"small",color:S.toHexString(),prefixCls:t})),q.createElement(Doe,{colors:C,type:l,prefixCls:t})))};function Loe(e){return f.useMemo(()=>{const{slider:t}=e||{};return [t||_oe]},[e])}function Kh(){return Kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Kh.apply(this,arguments)}const Boe=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],koe=f.forwardRef((e,t)=>{const{value:n,defaultValue:r,prefixCls:o=Roe,onChange:i,onChangeComplete:s,className:l,style:u,panelRender:d,disabledAlpha:m=false,disabled:p=false,components:g}=e,[b]=Loe(g),[y,S]=Ooe(r||Noe,n),C=f.useMemo(()=>y.setA(1).toRgbString(),[y]),w=(L,F)=>{n||S(L),i?.(L,F);},E=L=>new Ts(y.setHue(L)),M=L=>new Ts(y.setA(L/100)),T=L=>{w(E(L),{type:"hue",value:L});},A=L=>{w(M(L),{type:"alpha",value:L});},I=L=>{s&&s(E(L));},N=L=>{s&&s(M(L));},P=X(`${o}-panel`,l,{[`${o}-panel-disabled`]:p}),O={prefixCls:o,disabled:p,color:y},D=q.createElement(q.Fragment,null,q.createElement(Ioe,Kh({onChange:w},O,{onChangeComplete:s})),q.createElement("div",{className:`${o}-slider-container`},q.createElement("div",{className:X(`${o}-slider-group`,{[`${o}-slider-group-disabled-alpha`]:m})},q.createElement(b,Kh({},O,{type:"hue",colors:Boe,min:0,max:359,value:y.getHue(),onChange:T,onChangeComplete:I})),!m&&q.createElement(b,Kh({},O,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:C}],min:0,max:100,value:y.a*100,onChange:A,onChangeComplete:N}))),q.createElement(LT,{color:y.toRgbString(),prefixCls:o})));return q.createElement("div",{className:P,style:u,ref:t},typeof d=="function"?d(D):D)}),_h=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"",zoe=(e,t)=>e?_h(e,t):"";let Qo=(function(){function e(t){if(rs(this,e),this.cleared=false,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:r,percent:o})=>({color:new e(r),percent:o})),this.metaColor=new Ts(this.colors[0].color.metaColor)):this.metaColor=new Ts(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=true);}return os(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return zoe(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return !!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return !n||this.isGradient()!==n.isGradient()?false:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const i=n.colors[o];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])})();var Foe={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"};function c2(){return c2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},c2.apply(this,arguments)}const Hoe=(e,t)=>f.createElement(Xn,c2({},e,{ref:t,icon:Foe})),Nf=f.forwardRef(Hoe),Voe=q.forwardRef((e,t)=>{const{prefixCls:n,forceRender:r,className:o,style:i,children:s,isActive:l,role:u,classNames:d,styles:m}=e,[p,g]=q.useState(l||r);return q.useEffect(()=>{(r||l)&&g(true);},[r,l]),p?q.createElement("div",{ref:t,className:X(`${n}-panel`,{[`${n}-panel-active`]:l,[`${n}-panel-inactive`]:!l},o),style:i,role:u},q.createElement("div",{className:X(`${n}-body`,d?.body),style:m?.body},s)):null}),uF=q.forwardRef((e,t)=>{const{showArrow:n=true,headerClass:r,isActive:o,onItemClick:i,forceRender:s,className:l,classNames:u={},styles:d={},prefixCls:m,collapsible:p,accordion:g,panelKey:b,extra:y,header:S,expandIcon:C,openMotion:w,destroyOnHidden:E,children:M,...T}=e,A=p==="disabled",I=y!=null&&typeof y!="boolean",N={onClick:()=>{i?.(b);},onKeyDown:U=>{(U.key==="Enter"||U.keyCode===st.ENTER||U.which===st.ENTER)&&i?.(b);},role:g?"tab":"button","aria-expanded":o,"aria-disabled":A,tabIndex:A?-1:0},P=typeof C=="function"?C(e):q.createElement("i",{className:"arrow"}),O=P&&q.createElement("div",dr({className:X(`${m}-expand-icon`,u?.icon),style:d?.icon},["header","icon"].includes(p)?N:{}),P),D=X(`${m}-item`,{[`${m}-item-active`]:o,[`${m}-item-disabled`]:A},l),F={className:X(r,`${m}-header`,{[`${m}-collapsible-${p}`]:!!p},u?.header),style:d?.header,...["header","icon"].includes(p)?{}:N};return q.createElement("div",dr({},T,{ref:t,className:D}),q.createElement("div",F,n&&O,q.createElement("span",dr({className:X(`${m}-title`,u?.title),style:d?.title},p==="header"?N:{}),S),I&&q.createElement("div",{className:`${m}-extra`},y)),q.createElement(To,dr({visible:o,leavedClassName:`${m}-panel-hidden`},w,{forceRender:s,removeOnLeave:E}),({className:U,style:W},z)=>q.createElement(Voe,{ref:z,prefixCls:m,className:U,classNames:u,style:W,styles:d,isActive:o,forceRender:s,role:g?"tabpanel":void 0},M)))});function dF(e,t,n){if(!e||!t)return e||t;const r=Array.from(new Set([...Object.keys(e),...Object.keys(t)])),o={};return r.forEach(i=>{o[i]=n(e[i],t[i]);}),o}function joe(e,t){return dF(e,t,(n,r)=>X(n,r))}function Uoe(e,t){return dF(e,t,(n,r)=>({...n,...r}))}const Woe=(e,t)=>{const{prefixCls:n,accordion:r,collapsible:o,destroyOnHidden:i,onItemClick:s,activeKey:l,openMotion:u,expandIcon:d,classNames:m,styles:p}=t;return e.map((g,b)=>{const{children:y,label:S,key:C,collapsible:w,onItemClick:E,destroyOnHidden:M,classNames:T,styles:A,...I}=g,N=String(C??b),P=w??o,O=M??i,D=F=>{P!=="disabled"&&(s(F),E?.(F));};let L=false;return r?L=l[0]===N:L=l.indexOf(N)>-1,q.createElement(uF,dr({},I,{classNames:joe(m,T),styles:Uoe(p,A),prefixCls:n,key:N,panelKey:N,isActive:L,accordion:r,openMotion:u,expandIcon:d,header:S,collapsible:P,onItemClick:D,destroyOnHidden:O}),y)})},Goe=(e,t,n)=>{if(!e)return null;const{prefixCls:r,accordion:o,collapsible:i,destroyOnHidden:s,onItemClick:l,activeKey:u,openMotion:d,expandIcon:m,classNames:p,styles:g}=n,b=e.key||String(t),{header:y,headerClass:S,destroyOnHidden:C,collapsible:w,onItemClick:E}=e.props;let M=false;o?M=u[0]===b:M=u.indexOf(b)>-1;const T=w??i,A=N=>{T!=="disabled"&&(l(N),E?.(N));},I={key:b,panelKey:b,header:y,headerClass:S,classNames:p,styles:g,isActive:M,prefixCls:r,destroyOnHidden:C??s,openMotion:d,accordion:o,children:e.props.children,onItemClick:A,expandIcon:m,collapsible:T};return typeof e.type=="string"?e:(Object.keys(I).forEach(N=>{typeof I[N]>"u"&&delete I[N];}),q.cloneElement(e,I))};function qoe(e,t,n){return Array.isArray(e)?Woe(e,n):ri(t).map((r,o)=>Goe(r,o,n))}function PO(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[];}return t.map(n=>String(n))}const Koe=q.forwardRef((e,t)=>{const{prefixCls:n="rc-collapse",destroyOnHidden:r=false,style:o,accordion:i,className:s,children:l,collapsible:u,openMotion:d,expandIcon:m,activeKey:p,defaultActiveKey:g,onChange:b,items:y,classNames:S,styles:C}=e,w=X(n,s),[E,M]=fn(g,p),T=PO(E),A=Mt(P=>{const O=PO(P);M(O),b?.(O);}),I=P=>{A(i?T[0]===P?[]:[P]:T.includes(P)?T.filter(O=>O!==P):[...T,P]);};Pr(!l,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");const N=qoe(y,l,{prefixCls:n,accordion:i,openMotion:d,expandIcon:m,collapsible:u,destroyOnHidden:r,onItemClick:I,activeKey:T,classNames:S,styles:C});return q.createElement("div",dr({ref:t,className:w,style:o,role:i?"tablist":void 0},$o(e,{aria:true,data:true})),N)}),BT=Object.assign(Koe,{Panel:uF}),{Panel:HIe}=BT,Yoe=f.forwardRef((e,t)=>{const{getPrefixCls:n}=f.useContext(wt),{prefixCls:r,className:o,showArrow:i=true}=e,s=n("collapse",r),l=X({[`${s}-no-arrow`]:!i},o);return f.createElement(BT.Panel,{ref:t,...e,prefixCls:s,className:l})}),Xoe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:u,lineWidth:d,lineType:m,colorBorder:p,colorText:g,colorTextHeading:b,colorTextDisabled:y,fontSizeLG:S,lineHeight:C,lineHeightLG:w,marginSM:E,paddingSM:M,paddingLG:T,paddingXS:A,motionDurationSlow:I,fontSizeIcon:N,contentPadding:P,fontHeight:O,fontHeightLG:D}=e,L=`${oe(d)} ${m} ${p}`;return {[t]:{...mn(e),backgroundColor:o,border:L,borderRadius:u,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:L,"&:first-child":{[`
            &,
            & > ${t}-header`]:{borderRadius:`${oe(u)} ${oe(u)} 0 0`}},"&:last-child":{[`
            &,
            & > ${t}-header`]:{borderRadius:`0 0 ${oe(u)} ${oe(u)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:b,lineHeight:C,cursor:"pointer",transition:`all ${I}, visibility 0s`,...Ai(e),[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:O,display:"flex",alignItems:"center",marginInlineEnd:E},[`${t}-arrow`]:{...ju(),fontSize:N,transition:`transform ${I}`,svg:{transition:`transform ${I}`}},[`${t}-title`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-title`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-panel`]:{color:g,backgroundColor:n,borderTop:L,[`& > ${t}-body`]:{padding:P},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:A,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(M).sub(A).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:M}}},"&-large":{[`> ${t}-item`]:{fontSize:S,lineHeight:w,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:D,marginInlineStart:e.calc(T).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:T}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${oe(u)} ${oe(u)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n          &,\n          & > .arrow\n        ":{color:y,cursor:"not-allowed"}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:E}}}}}}},Qoe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Zoe=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,colorBorder:i}=e;return {[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`
        > ${t}-item:last-child,
        > ${t}-item:last-child ${t}-header
      `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:r}}}},Joe=e=>{const{componentCls:t,paddingSM:n}=e;return {[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-panel`]:{backgroundColor:"transparent",border:0,[`> ${t}-body`]:{paddingBlock:n}}}}}},eie=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}),tie=Wt("Collapse",e=>{const t=zt(e,{collapseHeaderPaddingSM:`${oe(e.paddingXS)} ${oe(e.paddingSM)}`,collapseHeaderPaddingLG:`${oe(e.padding)} ${oe(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return [Xoe(t),Zoe(t),Joe(t),Qoe(t),rF(t)]},eie),nie=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:o,className:i,style:s,classNames:l,styles:u}=jt("collapse"),{prefixCls:d,className:m,rootClassName:p,style:g,bordered:b=true,ghost:y,size:S,expandIconPlacement:C,expandIconPosition:w,children:E,destroyInactivePanel:M,destroyOnHidden:T,expandIcon:A,classNames:I,styles:N}=e,P=br(B=>S??B??"middle"),O=n("collapse",d),D=n(),[L,F]=tie(O),U=C??w??"start",W={...e,size:P,bordered:b,expandIconPlacement:U},[z,k]=qt([l,I],[u,N],{props:W}),G=A??o,j=f.useCallback((B={})=>{const Y=typeof G=="function"?G(B):f.createElement(Nf,{rotate:B.isActive?r==="rtl"?-90:90:void 0,"aria-label":B.isActive?"expanded":"collapsed"});return qr(Y,J=>({className:X(J.className,`${O}-arrow`)}))},[G,O,r]),K=X(`${O}-icon-placement-${U}`,{[`${O}-borderless`]:!b,[`${O}-rtl`]:r==="rtl",[`${O}-ghost`]:!!y,[`${O}-large`]:P==="large",[`${O}-small`]:P==="small"},i,m,p,L,F,z.root),Q=f.useMemo(()=>({...eF(D),motionAppear:false,leavedClassName:`${O}-panel-hidden`}),[D,O]),_=f.useMemo(()=>E?ri(E).map(B=>B):null,[E]);return f.createElement(BT,{ref:t,openMotion:Q,...kn(e,["rootClassName"]),expandIcon:j,prefixCls:O,className:K,style:{...k.root,...s,...g},classNames:z,styles:k,destroyOnHidden:T??M},_)}),fF=Object.assign(nie,{Panel:Yoe}),mo=e=>e instanceof Qo?e:new Qo(e),f0=e=>Math.round(Number(e||0)),kT=e=>f0(e.toHsb().a*100),m0=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,mo(r)}return n.a=1,mo(n)},mF=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(Zt(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;r<n.length-1;r+=1){const o=n[r].percent,i=n[r+1].percent,s=n[r].color,l=n[r+1].color;if(o<=t&&t<=i){const u=i-o;if(u===0)return s;const d=(t-o)/u*100,m=new Ts(s),p=new Ts(l);return m.mix(p,d).toRgbString()}}return ""},rie=e=>e.map(t=>(t.colors=t.colors.map(mo),t)),zT=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),s=new Ts(e.toRgbString()).onBackground(t).toHsv();return i<=.5?s.v>.5:n*.299+r*.587+o*.114>192},IO=(e,t)=>`panel-${e.key??t}`,oie=({prefixCls:e,presets:t,value:n,onChange:r})=>{const[o]=Lo("ColorPicker"),[,i]=Xr(),s=f.useMemo(()=>rie(t),[t]),l=`${e}-presets`,u=f.useMemo(()=>s.reduce((p,g,b)=>{const{defaultOpen:y=true}=g;return y&&p.push(IO(g,b)),p},[]),[s]),d=p=>{r?.(p);},m=s.map((p,g)=>({key:IO(p,g),label:q.createElement("div",{className:`${l}-label`},p?.label),children:q.createElement("div",{className:`${l}-items`},Array.isArray(p?.colors)&&p.colors?.length>0?p.colors.map((b,y)=>{const S=mo(b);return q.createElement(LT,{key:`preset-${y}-${b.toHexString()}`,color:S.toCssString(),prefixCls:e,className:X(`${l}-color`,{[`${l}-color-checked`]:b.toCssString()===n?.toCssString(),[`${l}-color-bright`]:zT(b,i.colorBgElevated)}),onClick:()=>d(b)})}):q.createElement("span",{className:`${l}-empty`},o.presetEmpty))}));return q.createElement("div",{className:l},q.createElement(fF,{defaultActiveKey:u,ghost:true,items:m}))},hF=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return zt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},pF=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,o=e.contentLineHeight??c0(t),i=e.contentLineHeightSM??c0(n),s=e.contentLineHeightLG??c0(r),l=zT(new Qo(e.colorBgSolid),"#fff")?"#000":"#fff",u=na.reduce((p,g)=>({...p,[`${g}ShadowColor`]:`0 ${oe(e.controlOutlineWidth)} 0 ${Dh(e[`${g}1`],e.colorBgContainer)}`}),{}),d=e.colorBgContainerDisabled,m=e.colorBgContainerDisabled;return {...u,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:l,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:o,contentLineHeightSM:i,contentLineHeightLG:s,paddingBlock:Math.max((e.controlHeight-t*o)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*i)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*s)/2-e.lineWidth,0),defaultBgDisabled:d,dashedBgDisabled:m}},iie=e=>{const{componentCls:t,antCls:n,lineWidth:r}=e,[o,i]=nr(n,"btn");return {[t]:[{[o("border-width")]:r,[o("border-color")]:"#000",[o("border-color-hover")]:i("border-color"),[o("border-color-active")]:i("border-color"),[o("border-color-disabled")]:i("border-color"),[o("border-style")]:"solid",[o("text-color")]:"#000",[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color"),[o("text-color-disabled")]:i("text-color"),[o("bg-color")]:"#ddd",[o("bg-color-hover")]:i("bg-color"),[o("bg-color-active")]:i("bg-color"),[o("bg-color-disabled")]:e.colorBgContainerDisabled,[o("bg-color-container")]:e.colorBgContainer,[o("shadow")]:"none"},{border:[i("border-width"),i("border-style"),i("border-color")].join(" "),color:i("text-color"),backgroundColor:i("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[i("border-width"),i("border-style"),i("border-color-hover")].join(" "),color:i("text-color-hover"),backgroundColor:i("bg-color-hover")},"&:active":{border:[i("border-width"),i("border-style"),i("border-color-active")].join(" "),color:i("text-color-active"),backgroundColor:i("bg-color-active")}}},{[`&${t}-variant-solid`]:{[o("solid-bg-color")]:i("color-base"),[o("solid-bg-color-hover")]:i("color-hover"),[o("solid-bg-color-active")]:i("color-active"),[o("border-color")]:"transparent",[o("text-color")]:e.colorTextLightSolid,[o("bg-color")]:i("solid-bg-color"),[o("bg-color-hover")]:i("solid-bg-color-hover"),[o("bg-color-active")]:i("solid-bg-color-active"),boxShadow:i("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("border-color")]:i("color-base"),[o("border-color-hover")]:i("color-hover"),[o("border-color-active")]:i("color-active"),[o("bg-color")]:i("bg-color-container"),[o("text-color")]:i("color-base"),[o("text-color-hover")]:i("color-hover"),[o("text-color-active")]:i("color-active"),boxShadow:i("shadow")},[`&${t}-variant-dashed`]:{[o("border-style")]:"dashed",[o("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[o("border-color")]:"transparent",[o("text-color")]:i("color-base"),[o("bg-color")]:i("color-light"),[o("bg-color-hover")]:i("color-light-hover"),[o("bg-color-active")]:i("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[o("border-color")]:"transparent",[o("text-color")]:i("color-base"),[o("text-color-hover")]:i("color-hover"),[o("text-color-active")]:i("color-active"),[o("bg-color")]:"transparent",[o("bg-color-hover")]:"transparent",[o("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[o("bg-color-hover")]:i("color-light"),[o("bg-color-active")]:i("color-light-active")}},{[`&${t}-variant-link`]:{[o("color-base")]:e.colorLink,[o("color-hover")]:e.colorLinkHover,[o("color-active")]:e.colorLinkActive,[o("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[o("color-base")]:e.colorPrimary,[o("color-hover")]:e.colorPrimaryHover,[o("color-active")]:e.colorPrimaryActive,[o("color-light")]:e.colorPrimaryBg,[o("color-light-hover")]:e.colorPrimaryBgHover,[o("color-light-active")]:e.colorPrimaryBorder,[o("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.primaryColor,[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color")}},[`&${t}-color-dangerous`]:{[o("color-base")]:e.colorError,[o("color-hover")]:e.colorErrorHover,[o("color-active")]:e.colorErrorActive,[o("color-light")]:e.colorErrorBg,[o("color-light-hover")]:e.colorErrorBgFilledHover,[o("color-light-active")]:e.colorErrorBgActive,[o("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.dangerColor,[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color")}},[`&${t}-color-default`]:{[o("solid-bg-color")]:e.colorBgSolid,[o("solid-bg-color-hover")]:e.colorBgSolidHover,[o("solid-bg-color-active")]:e.colorBgSolidActive,[o("color-base")]:e.defaultBorderColor,[o("color-hover")]:e.defaultHoverBorderColor,[o("color-active")]:e.defaultActiveBorderColor,[o("color-light")]:e.colorFillTertiary,[o("color-light-hover")]:e.colorFillSecondary,[o("color-light-active")]:e.colorFill,[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[o("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[o("text-color")]:e.solidTextColor,[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("bg-color-container")]:e.defaultBg,[o("bg-color-hover")]:e.defaultHoverBg,[o("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[o("text-color")]:e.textTextColor,[o("text-color-hover")]:e.textTextHoverColor,[o("text-color-active")]:e.textTextActiveColor,[o("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultGhostColor,[o("border-color")]:e.defaultGhostBorderColor}}}},na.map(s=>{const l=e[`${s}6`],u=e[`${s}1`],d=e[`${s}Hover`],m=e[`${s}2`],p=e[`${s}3`],g=e[`${s}Active`],b=e[`${s}ShadowColor`];return {[`&${t}-color-${s}`]:{[o("color-base")]:l,[o("color-hover")]:d,[o("color-active")]:g,[o("color-light")]:u,[o("color-light-hover")]:m,[o("color-light-active")]:p,[o("shadow")]:b}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:i("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[o("bg-color")]:e.ghostBg,[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg,[o("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg}}}]}},sie=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:s,iconGap:l,calc:u}=e;return {[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...za(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:ju(),"> a":{color:"currentColor"},"&:not(:disabled)":Ai(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(d=>`${d} ${i} ${s}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:u(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:u(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:u(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:u(l).mul(-1).equal()}}}}}},aie=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),FT=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:u,buttonIconOnlyFontSize:d}=e;return [{[t]:{fontSize:o,height:r,padding:`${oe(u)} ${oe(s)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:d}}}},{[`${n}${n}-circle${t}`]:aie(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},lie=e=>{const t=zt(e,{fontSize:e.contentFontSize});return FT(t,e.componentCls)},cie=e=>{const t=zt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return FT(t,`${e.componentCls}-sm`)},uie=e=>{const t=zt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return FT(t,`${e.componentCls}-lg`)},die=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},fie=Wt("Button",e=>{const t=hF(e);return [sie(t),lie(t),cie(t),uie(t),die(t),iie(t),Toe(t)]},pF,{unitless:{fontWeight:true,contentLineHeight:true,contentLineHeightSM:true,contentLineHeightLG:true}});function mie(e,t,n,r){const{focusElCls:o,focus:i,borderElCls:s}=n,l=s?"> *":"",u=["hover",i?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${l}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[u]:{zIndex:3},...o?{[`&${o}`]:{zIndex:3}}:{},[`&[disabled] ${l}`]:{zIndex:0}}}}function hie(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 Qf(e,t={focus:true}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,i=`${o}-compact`;return {[i]:{...mie(e,i,t,o),...hie(o,i,t)}}}function pie(e,t,n){return {[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function gie(e,t){return {[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function vie(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:{...pie(e,t,e.componentCls),...gie(e.componentCls,t)}}}const bie=e=>{const{antCls:t,componentCls:n,lineWidth:r,calc:o,colorBgContainer:i}=e,s=`${n}-variant-solid:not([disabled])`,l=o(r).mul(-1).equal(),[u,d]=nr(t,"btn"),m=p=>({[`${n}-compact${p?"-vertical":""}-item`]:{[u("compact-connect-border-color")]:d("bg-color-hover"),[`&${s}`]:{transition:"none",[`& + ${s}:before`]:[{position:"absolute",backgroundColor:d("compact-connect-border-color"),content:'""'},p?{top:l,insetInline:l,height:r}:{insetBlock:l,insetInlineStart:l,width:r}],"&:hover:before":{display:"none"}}}});return [m(),m(true),{[`${s}${n}-color-default`]:{[u("compact-connect-border-color")]:`color-mix(in srgb, ${d("bg-color-hover")} 75%, ${i})`}}]},yie=Yf(["Button","compact"],e=>{const t=hF(e);return [Qf(t),vie(t),bie(t)]},pF);function Sie(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return {loading:!!e,delay:0}}const Cie={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},xie=q.forwardRef((e,t)=>{const{_skipSemantic:n,loading:r=false,prefixCls:o,color:i,variant:s,type:l,danger:u=false,shape:d,size:m,disabled:p,className:g,rootClassName:b,children:y,icon:S,iconPosition:C,iconPlacement:w,ghost:E=false,block:M=false,htmlType:T="button",classNames:A,styles:I,style:N,autoInsertSpace:P,autoFocus:O,...D}=e,L=ri(y),F=l||"default",{getPrefixCls:U,direction:W,autoInsertSpace:z,className:k,style:G,classNames:j,styles:K,loadingIcon:Q,shape:_,color:B,variant:Y}=jt("button"),J=d||_||"default",[ee,te]=f.useMemo(()=>{if(i&&s)return [i,s];if(l||u){const Ue=Cie[F]||[];return u?["danger",Ue[1]]:Ue}return B&&Y?[B,Y]:["default","outlined"]},[i,s,l,u,B,Y,F]),[re,ie]=f.useMemo(()=>E&&te==="solid"?[ee,"outlined"]:[ee,te],[ee,te,E]),de=re==="danger",ne=de?"dangerous":re,ae=P??z??true,ce=U("btn",o),[se,$e]=fie(ce),le=f.useContext(fo),pe=p??le,be=f.useContext(tF),Ce=f.useMemo(()=>Sie(r),[r]),[Ae,Ye]=f.useState(Ce.loading),[Re,fe]=f.useState(false),ve=f.useRef(null),Ne=Ya(t,ve),He=L.length===1&&!S&&!aw(ie),Ge=f.useRef(true);q.useEffect(()=>(Ge.current=false,()=>{Ge.current=true;}),[]),Rn(()=>{let Ue=null;Ce.delay>0?Ue=setTimeout(()=>{Ue=null,Ye(true);},Ce.delay):Ye(Ce.loading);function ye(){Ue&&(clearTimeout(Ue),Ue=null);}return ye},[Ce.delay,Ce.loading]),f.useEffect(()=>{if(!ve.current||!ae)return;const Ue=ve.current.textContent||"";He&&l2(Ue)?Re||fe(true):Re&&fe(false);}),f.useEffect(()=>{O&&ve.current&&ve.current.focus();},[]);const je=q.useCallback(Ue=>{if(Ae||pe){Ue.preventDefault();return}e.onClick?.((Ue));},[e.onClick,Ae,pe]),{compactSize:rt,compactItemClassnames:ot}=Za(ce,W),Ke=br(Ue=>m??rt??be??Ue),De=Ae?"loading":S,qe=w??C??"start",Je=kn(D,["navigate"]),Be={...e,type:F,color:re,variant:ie,danger:de,shape:J,size:Ke,disabled:pe,loading:Ae,iconPlacement:qe},[Ie,lt]=qt([n?void 0:j,A],[n?void 0:K,I],{props:Be}),Dt=X(ce,se,$e,{[`${ce}-${J}`]:J!=="default"&&J!=="square"&&J,[`${ce}-${F}`]:F,[`${ce}-dangerous`]:u,[`${ce}-color-${ne}`]:ne,[`${ce}-variant-${ie}`]:ie,[`${ce}-lg`]:Ke==="large",[`${ce}-sm`]:Ke==="small",[`${ce}-icon-only`]:!y&&y!==0&&!!De,[`${ce}-background-ghost`]:E&&!aw(ie),[`${ce}-loading`]:Ae,[`${ce}-two-chinese-chars`]:Re&&ae&&!Ae,[`${ce}-block`]:M,[`${ce}-rtl`]:W==="rtl",[`${ce}-icon-end`]:qe==="end"},ot,g,b,k,Ie.root),pt={...lt.root,...G,...N},Lt={className:Ie.icon,style:lt.icon},xt=Ue=>q.createElement(nF,{prefixCls:ce,...Lt},Ue),Pt=q.createElement(Jre,{existIcon:!!S,prefixCls:ce,loading:Ae,mount:Ge.current,...Lt}),ut=r&&typeof r=="object"&&r.icon||Q;let ct;S&&!Ae?ct=xt(S):r&&ut?ct=xt(ut):ct=Pt;const bt=Lr(y)?Zre(y,He&&ae,lt.content,Ie.content):null;if(Je.href!==void 0)return q.createElement("a",{...Je,className:X(Dt,{[`${ce}-disabled`]:pe}),href:pe?void 0:Je.href,style:pt,onClick:je,ref:Ne,tabIndex:pe?-1:0,"aria-disabled":pe},ct,bt);let Fe=q.createElement("button",{...D,type:T,className:Dt,style:pt,onClick:je,disabled:pe,ref:Ne},ct,bt,ot&&q.createElement(yie,{prefixCls:ce}));return aw(ie)||(Fe=q.createElement(fg,{component:"Button",disabled:Ae},Fe)),Fe}),ht=xie;ht.Group=Xre;ht.__ANT_BUTTON=true;const dw=e=>typeof e?.then=="function",HT=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:s,emitEvent:l,isSilent:u,quitOnNullishReturnValue:d,actionFn:m}=e,p=f.useRef(false),g=f.useRef(null),[b,y]=vk(false),S=(...E)=>{i?.(...E);};f.useEffect(()=>{let E=null;return s&&(E=setTimeout(()=>{g.current?.focus({preventScroll:true});})),()=>{E&&clearTimeout(E);}},[s]);const C=E=>{dw(E)&&(y(true),E.then((...M)=>{y(false,true),S.apply(void 0,M),p.current=false;},M=>{if(y(false,true),p.current=false,!u?.())return Promise.reject(M)}));},w=E=>{if(p.current)return;if(p.current=true,!m){S();return}let M;if(l){if(M=m(E),d&&!dw(M)){p.current=false,S(E);return}}else if(m.length)M=m(i),p.current=false;else if(M=m(),!dw(M)){S();return}C(M);};return f.createElement(ht,{...NT(t),onClick:w,loading:b,prefixCls:r,...o,ref:g},n)},hg=q.createContext({}),{Provider:gF}=hg,OO=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:s,onCancel:l,onConfirm:u,onClose:d}=f.useContext(hg);return o?q.createElement(HT,{isSilent:r,actionFn:l,close:(...m)=>{s?.(...m),u?.(false),d?.();},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},DO=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:s,onConfirm:l,onOk:u,onClose:d}=f.useContext(hg);return q.createElement(HT,{isSilent:n,type:s||"primary",actionFn:u,close:(...m)=>{t?.(...m),l?.(true),d?.();},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)},vF=f.createContext({});function _O(e,t,n){let r=t;return !r&&n&&(r=`${e}-${n}`),r}function LO(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r]);}return n}function wie(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=LO(o),n.top+=LO(o,true),n}function BO(e,t=false){if($T(e)){const n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o);let s=null;return o&&!Number.isNaN(i)?s=i:r&&s===null&&(s=0),r&&e.disabled&&(s=null),s!==null&&(s>=0||t&&s<0)}return  false}function VT(e,t=false){const n=[...e.querySelectorAll("*")].filter(r=>BO(r,t));return BO(e,t)&&n.unshift(e),n}function jT(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(n){case "start":e.setSelectionRange(0,0);break;case "end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r);}}}let vf=null,kl=[];const u2=new Map,UT=new Map;function WT(){return kl[kl.length-1]}function Eie(e){const t=WT();if(e&&t){let n;for(const[o,i]of u2.entries())if(i===t){n=o;break}const r=UT.get(n);return !!r&&(r===e||r.contains(e))}return  false}function $ie(e){const{activeElement:t}=document;return e===t||e.contains(t)}function fw(){const e=WT(),{activeElement:t}=document;if(!Eie(t))if(e&&!$ie(e)){const n=VT(e);(n.includes(vf)?vf:n[0])?.focus({preventScroll:true});}else vf=t;}function kO(e){if(e.key==="Tab"){const{activeElement:t}=document,n=WT(),r=VT(n),o=r[r.length-1];e.shiftKey&&t===r[0]?vf=o:!e.shiftKey&&t===o&&(vf=r[0]);}}function Mie(e,t){return e&&(u2.set(t,e),kl=kl.filter(n=>n!==e),kl.push(e),window.addEventListener("focusin",fw),window.addEventListener("keydown",kO,true),fw()),()=>{vf=null,kl=kl.filter(n=>n!==e),u2.delete(t),UT.delete(t),kl.length===0&&(window.removeEventListener("focusin",fw),window.removeEventListener("keydown",kO,true));}}function Tie(e,t){const n=Qa();return f.useEffect(()=>{if(e){const o=t();if(o)return Mie(o,n)}},[e,n]),[o=>{o&&UT.set(n,o);}]}const Aie=f.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function ly(){return ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},ly.apply(this,arguments)}const bF=q.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,title:i,ariaId:s,footer:l,closable:u,closeIcon:d,onClose:m,children:p,bodyStyle:g,bodyProps:b,modalRender:y,onMouseDown:S,onMouseUp:C,holderRef:w,visible:E,forceRender:M,width:T,height:A,classNames:I,styles:N,isFixedPos:P,focusTrap:O}=e,{panel:D}=q.useContext(vF),L=f.useRef(null),F=Ya(w,D,L),[U]=Tie(E&&P&&O!==false,()=>L.current);q.useImperativeHandle(t,()=>({focus:()=>{L.current?.focus({preventScroll:true});}}));const W={};T!==void 0&&(W.width=T),A!==void 0&&(W.height=A);const z=l?q.createElement("div",{className:X(`${n}-footer`,I?.footer),style:{...N?.footer}},l):null,k=i?q.createElement("div",{className:X(`${n}-header`,I?.header),style:{...N?.header}},q.createElement("div",{className:X(`${n}-title`,I?.title),id:s,style:{...N?.title}},i)):null,G=f.useMemo(()=>typeof u=="object"&&u!==null?u:u?{closeIcon:d??q.createElement("span",{className:`${n}-close-x`})}:{},[u,d,n]),j=$o(G,true),K=typeof u=="object"&&u.disabled,Q=u?q.createElement("button",ly({type:"button",onClick:m,"aria-label":"Close"},j,{className:`${n}-close`,disabled:K}),G.closeIcon):null,_=q.createElement("div",{className:X(`${n}-container`,I?.container),style:N?.container},Q,k,q.createElement("div",ly({className:X(`${n}-body`,I?.body),style:{...g,...N?.body}},b),p),z);return q.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?s:null,"aria-modal":"true",ref:F,style:{...o,...W},className:X(n,r),onMouseDown:S,onMouseUp:C,tabIndex:-1,onFocus:B=>{U(B.target);}},q.createElement(Aie,{shouldUpdate:E||M},y?y(_):_))});function d2(){return d2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},d2.apply(this,arguments)}const Rie=f.forwardRef((e,t)=>{const{prefixCls:n,title:r,style:o,className:i,visible:s,forceRender:l,destroyOnHidden:u,motionName:d,ariaId:m,onVisibleChanged:p,mousePosition:g}=e,b=f.useRef(null),y=f.useRef(null);f.useImperativeHandle(t,()=>({...y.current,inMotion:b.current.inMotion,enableMotion:b.current.enableMotion}));const[S,C]=f.useState(),w={};S&&(w.transformOrigin=S);function E(){if(!b.current?.nativeElement)return;const M=wie(b.current.nativeElement);C(g&&(g.x||g.y)?`${g.x-M.left}px ${g.y-M.top}px`:"");}return f.createElement(To,{visible:s,onVisibleChanged:p,onAppearPrepare:E,onEnterPrepare:E,forceRender:l,motionName:d,removeOnLeave:u,ref:b},({className:M,style:T},A)=>f.createElement(bF,d2({},e,{ref:y,title:r,ariaId:m,prefixCls:n,holderRef:A,style:{...T,...o,...w},className:X(i,M)})))});function f2(){return f2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},f2.apply(this,arguments)}const Nie=e=>{const{prefixCls:t,style:n,visible:r,maskProps:o,motionName:i,className:s}=e;return f.createElement(To,{key:"mask",visible:r,motionName:i,leavedClassName:`${t}-mask-hidden`},({className:l,style:u},d)=>f.createElement("div",f2({ref:d,style:{...u,...n},className:X(`${t}-mask`,l,s)},o)))};function Yh(){return Yh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Yh.apply(this,arguments)}const Pie=e=>{const{prefixCls:t="rc-dialog",zIndex:n,visible:r=false,focusTriggerAfterClose:o=true,wrapStyle:i,wrapClassName:s,wrapProps:l,onClose:u,afterOpenChange:d,afterClose:m,transitionName:p,animation:g,closable:b=true,mask:y=true,maskTransitionName:S,maskAnimation:C,maskClosable:w=true,maskStyle:E,maskProps:M,rootClassName:T,rootStyle:A,classNames:I,styles:N}=e,P=f.useRef(null),O=f.useRef(null),D=f.useRef(null),[L,F]=f.useState(r),[U,W]=f.useState(false),z=Qa();function k(){C$(O.current,document.activeElement)||(P.current=document.activeElement);}function G(){C$(O.current,document.activeElement)||D.current?.focus();}function j(){if(F(false),y&&P.current&&o){try{P.current.focus({preventScroll:!0});}catch{}P.current=null;}L&&m?.();}function K(ee){ee?G():j(),d?.(ee);}function Q(ee){u?.(ee);}const _=f.useRef(false);let B=null;w&&(B=ee=>{O.current===ee.target&&_.current&&Q(ee);});function Y(ee){_.current=ee.target===O.current;}f.useEffect(()=>{if(r){if(_.current=false,F(true),k(),O.current){const ee=getComputedStyle(O.current);W(ee.position==="fixed");}}else L&&D.current.enableMotion()&&!D.current.inMotion()&&j();},[r]);const J={zIndex:n,...i,...N?.wrapper,display:L?null:"none"};return f.createElement("div",Yh({className:X(`${t}-root`,T),style:A},$o(e,{data:true})),f.createElement(Nie,{prefixCls:t,visible:y&&r,motionName:_O(t,S,C),style:{zIndex:n,...E,...N?.mask},maskProps:M,className:I?.mask}),f.createElement("div",Yh({className:X(`${t}-wrap`,s,I?.wrapper),ref:O,onClick:B,onMouseDown:Y,style:J},l),f.createElement(Rie,Yh({},e,{isFixedPos:U,ref:D,closable:b,ariaId:z,prefixCls:t,visible:r&&L,onClose:Q,onVisibleChanged:K,motionName:_O(t,p,g)}))))};function m2(){return m2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},m2.apply(this,arguments)}const Iie=e=>{const{visible:t,getContainer:n,forceRender:r,destroyOnHidden:o=false,afterClose:i,closable:s,panelRef:l,keyboard:u=true,onClose:d}=e,[m,p]=f.useState(t),g=f.useMemo(()=>({panel:l}),[l]),b=({top:y,event:S})=>{if(y&&u){S.stopPropagation(),d?.(S);return}};return f.useEffect(()=>{t&&p(true);},[t]),!r&&o&&!m?null:f.createElement(vF.Provider,{value:g},f.createElement(E1,{open:t||r||m,onEsc:b,autoDestroy:false,getContainer:n,autoLock:t||m},f.createElement(Pie,m2({},e,{destroyOnHidden:o,afterClose:()=>{const y=s&&typeof s=="object"?s:{},{afterClose:S}=y||{};S?.(),i?.(),p(false);}}))))},au="RC_FORM_INTERNAL_HOOKS",Bn=()=>{Pr(false,"Can not find FormContext. Please make sure you wrap Field under Form.");},Pf=f.createContext({getFieldValue:Bn,getFieldsValue:Bn,getFieldError:Bn,getFieldWarning:Bn,getFieldsError:Bn,isFieldsTouched:Bn,isFieldTouched:Bn,isFieldValidating:Bn,isFieldsValidating:Bn,resetFields:Bn,setFields:Bn,setFieldValue:Bn,setFieldsValue:Bn,validateFields:Bn,submit:Bn,getInternalHooks:()=>(Bn(),{dispatch:Bn,initEntityValue:Bn,registerField:Bn,useSubscribe:Bn,setInitialValues:Bn,destroyForm:Bn,setCallbacks:Bn,registerWatch:Bn,getFields:Bn,setValidateMessages:Bn,setPreserve:Bn,getInitialValue:Bn})}),cy=f.createContext(null);function h2(e){return e==null?[]:Array.isArray(e)?e:[e]}function Oie(e){return e&&!!e._init}function p2(){return {default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var g2=p2();function Die(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function _ie(e,t,n){if(mT())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&$p(o,n.prototype),o}function v2(e){var t=typeof Map=="function"?new Map:void 0;return v2=function(r){if(r===null||!Die(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o);}function o(){return _ie(r,arguments,Mp(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:false,writable:true,configurable:true}}),$p(o,r)},v2(e)}var Lie=/%[sdj%]/g,Bie=function(){};function b2(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n);}),t}function Ci(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var s=e.replace(Lie,function(l){if(l==="%%")return "%";if(o>=i)return l;switch(l){case "%s":return String(n[o++]);case "%d":return Number(n[o++]);case "%j":try{return JSON.stringify(n[o++])}catch{return "[Circular]"}break;default:return l}});return s}return e}function kie(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function kr(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||kie(t)&&typeof e=="string"&&!e)}function zie(e,t,n){var r=[],o=0,i=e.length;function s(l){r.push.apply(r,Zt(l||[])),o++,o===i&&n(r);}e.forEach(function(l){t(l,s);});}function zO(e,t,n){var r=0,o=e.length;function i(s){if(s&&s.length){n(s);return}var l=r;r=r+1,l<o?t(e[l],i):n([]);}i([]);}function Fie(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Zt(e[n]||[]));}),t}var FO=(function(e){Kk(n,e);var t=Yk(n);function n(r,o){var i;return rs(this,n),i=t.call(this,"Async Validation Error"),Ct(pf(i),"errors",void 0),Ct(pf(i),"fields",void 0),i.errors=r,i.fields=o,i}return os(n)})(v2(Error));function Hie(e,t,n,r,o){if(t.first){var i=new Promise(function(g,b){var y=function(w){return r(w),w.length?b(new FO(w,b2(w))):g(o)},S=Fie(e);zO(S,n,y);});return i.catch(function(g){return g}),i}var s=t.firstFields===true?Object.keys(e):t.firstFields||[],l=Object.keys(e),u=l.length,d=0,m=[],p=new Promise(function(g,b){var y=function(C){if(m.push.apply(m,C),d++,d===u)return r(m),m.length?b(new FO(m,b2(m))):g(o)};l.length||(r(m),g(o)),l.forEach(function(S){var C=e[S];s.indexOf(S)!==-1?zO(C,n,y):zie(C,n,y);});});return p.catch(function(g){return g}),p}function Vie(e){return !!(e&&e.message!==void 0)}function jie(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]];}return n}function HO(e,t){return function(n){var r;return e.fullFields?r=jie(t,e.fullFields):r=t[n.field||e.fullField],Vie(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function VO(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Ar(r)==="object"&&Ar(e[n])==="object"?e[n]=rr(rr({},e[n]),r):e[n]=r;}}return e}var Fd="enum",Uie=function(t,n,r,o,i){t[Fd]=Array.isArray(t[Fd])?t[Fd]:[],t[Fd].indexOf(n)===-1&&o.push(Ci(i.messages[Fd],t.fullField,t[Fd].join(", ")));},Wie=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Ci(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||o.push(Ci(i.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},Gie=function(t,n,r,o,i){var s=typeof t.len=="number",l=typeof t.min=="number",u=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=n,p=null,g=typeof n=="number",b=typeof n=="string",y=Array.isArray(n);if(g?p="number":b?p="string":y&&(p="array"),!p)return  false;y&&(m=n.length),b&&(m=n.replace(d,"_").length),s?m!==t.len&&o.push(Ci(i.messages[p].len,t.fullField,t.len)):l&&!u&&m<t.min?o.push(Ci(i.messages[p].min,t.fullField,t.min)):u&&!l&&m>t.max?o.push(Ci(i.messages[p].max,t.fullField,t.max)):l&&u&&(m<t.min||m>t.max)&&o.push(Ci(i.messages[p].range,t.fullField,t.min,t.max));},yF=function(t,n,r,o,i,s){t.required&&(!r.hasOwnProperty(t.field)||kr(n,s||t.type))&&o.push(Ci(i.messages.required,t.fullField));},xb;const qie=(function(){if(xb)return xb;var e="[a-fA-F\\d:]",t=function(I){return I&&I.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(o.join("|"),")").concat(i),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(s,"$)")),u=new RegExp("^".concat(n,"$")),d=new RegExp("^".concat(s,"$")),m=function(I){return I&&I.exact?l:new RegExp("(?:".concat(t(I)).concat(n).concat(t(I),")|(?:").concat(t(I)).concat(s).concat(t(I),")"),"g")};m.v4=function(A){return A&&A.exact?u:new RegExp("".concat(t(A)).concat(n).concat(t(A)),"g")},m.v6=function(A){return A&&A.exact?d:new RegExp("".concat(t(A)).concat(s).concat(t(A)),"g")};var p="(?:(?:[a-z]+:)?//)",g="(?:\\S+(?::\\S*)?@)?",b=m.v4().source,y=m.v6().source,S="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",C="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",w="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",E="(?::\\d{2,5})?",M='(?:[/?#][^\\s"]*)?',T="(?:".concat(p,"|www\\.)").concat(g,"(?:localhost|").concat(b,"|").concat(y,"|").concat(S).concat(C).concat(w,")").concat(E).concat(M);return xb=new RegExp("(?:^".concat(T,"$)"),"i"),xb});var mw={email:/^(([^<>()\[\]\\.,;:\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,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Lh={integer:function(t){return Lh.number(t)&&parseInt(t,10)===t},float:function(t){return Lh.number(t)&&!Lh.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return  true;try{return !!new RegExp(t)}catch{return  false}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?false:typeof t=="number"},object:function(t){return Ar(t)==="object"&&!Lh.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(mw.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(mw.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(qie())},hex:function(t){return typeof t=="string"&&!!t.match(mw.hex)}},Kie=function(t,n,r,o,i){if(t.required&&n===void 0){yF(t,n,r,o,i);return}var s=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],l=t.type;s.indexOf(l)>-1?Lh[l](n)||o.push(Ci(i.messages.types[l],t.fullField,t.type)):l&&Ar(n)!==t.type&&o.push(Ci(i.messages.types[l],t.fullField,t.type));},Yie=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Ci(i.messages.whitespace,t.fullField));};const cn={required:yF,whitespace:Yie,type:Kie,range:Gie,enum:Uie,pattern:Wie};var Xie=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kr(n)&&!t.required)return r();cn.required(t,n,o,s,i);}r(s);},Qie=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();cn.required(t,n,o,s,i,"array"),n!=null&&(cn.type(t,n,o,s,i),cn.range(t,n,o,s,i));}r(s);},Zie=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kr(n)&&!t.required)return r();cn.required(t,n,o,s,i),n!==void 0&&cn.type(t,n,o,s,i);}r(s);},Jie=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kr(n,"date")&&!t.required)return r();if(cn.required(t,n,o,s,i),!kr(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),cn.type(t,u,o,s,i),u&&cn.range(t,u.getTime(),o,s,i);}}r(s);},ese="enum",tse=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kr(n)&&!t.required)return r();cn.required(t,n,o,s,i),n!==void 0&&cn[ese](t,n,o,s,i);}r(s);},nse=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kr(n)&&!t.required)return r();cn.required(t,n,o,s,i),n!==void 0&&(cn.type(t,n,o,s,i),cn.range(t,n,o,s,i));}r(s);},rse=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kr(n)&&!t.required)return r();cn.required(t,n,o,s,i),n!==void 0&&(cn.type(t,n,o,s,i),cn.range(t,n,o,s,i));}r(s);},ose=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kr(n)&&!t.required)return r();cn.required(t,n,o,s,i),n!==void 0&&cn.type(t,n,o,s,i);}r(s);},ise=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),kr(n)&&!t.required)return r();cn.required(t,n,o,s,i),n!==void 0&&(cn.type(t,n,o,s,i),cn.range(t,n,o,s,i));}r(s);},sse=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kr(n)&&!t.required)return r();cn.required(t,n,o,s,i),n!==void 0&&cn.type(t,n,o,s,i);}r(s);},ase=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kr(n,"string")&&!t.required)return r();cn.required(t,n,o,s,i),kr(n,"string")||cn.pattern(t,n,o,s,i);}r(s);},lse=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kr(n)&&!t.required)return r();cn.required(t,n,o,s,i),kr(n)||cn.type(t,n,o,s,i);}r(s);},cse=function(t,n,r,o,i){var s=[],l=Array.isArray(n)?"array":Ar(n);cn.required(t,n,o,s,i,l),r(s);},use=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kr(n,"string")&&!t.required)return r();cn.required(t,n,o,s,i,"string"),kr(n,"string")||(cn.type(t,n,o,s,i),cn.range(t,n,o,s,i),cn.pattern(t,n,o,s,i),t.whitespace===true&&cn.whitespace(t,n,o,s,i));}r(s);},wb=function(t,n,r,o,i){var s=t.type,l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(kr(n,s)&&!t.required)return r();cn.required(t,n,o,l,i,s),kr(n,s)||cn.type(t,n,o,l,i);}r(l);};const Xh={string:use,method:ose,number:ise,boolean:Zie,regexp:lse,integer:rse,float:nse,array:Qie,object:sse,enum:tse,pattern:ase,date:Jie,url:wb,hex:wb,email:wb,tel:wb,required:cse,any:Xie};var pg=(function(){function e(t){rs(this,e),Ct(this,"rules",null),Ct(this,"_messages",g2),this.define(t);}return os(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Ar(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i];});}},{key:"messages",value:function(n){return n&&(this._messages=VO(p2(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=n,l=o,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function d(y){var S=[],C={};function w(M){if(Array.isArray(M)){var T;S=(T=S).concat.apply(T,Zt(M));}else S.push(M);}for(var E=0;E<y.length;E++)w(y[E]);S.length?(C=b2(S),u(S,C)):u(null,s);}if(l.messages){var m=this.messages();m===g2&&(m=p2()),VO(m,l.messages),l.messages=m;}else l.messages=this.messages();var p={},g=l.keys||Object.keys(this.rules);g.forEach(function(y){var S=r.rules[y],C=s[y];S.forEach(function(w){var E=w;typeof E.transform=="function"&&(s===n&&(s=rr({},s)),C=s[y]=E.transform(C),C!=null&&(E.type=E.type||(Array.isArray(C)?"array":Ar(C)))),typeof E=="function"?E={validator:E}:E=rr({},E),E.validator=r.getValidationMethod(E),E.validator&&(E.field=y,E.fullField=E.fullField||y,E.type=r.getType(E),p[y]=p[y]||[],p[y].push({rule:E,value:C,source:s,field:y}));});});var b={};return Hie(p,l,function(y,S){var C=y.rule,w=(C.type==="object"||C.type==="array")&&(Ar(C.fields)==="object"||Ar(C.defaultField)==="object");w=w&&(C.required||!C.required&&y.value),C.field=y.field;function E(N,P){return rr(rr({},P),{},{fullField:"".concat(C.fullField,".").concat(N),fullFields:C.fullFields?[].concat(Zt(C.fullFields),[N]):[N]})}function M(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=Array.isArray(N)?N:[N];!l.suppressWarning&&P.length&&e.warning("async-validator:",P),P.length&&C.message!==void 0&&C.message!==null&&(P=[].concat(C.message));var O=P.map(HO(C,s));if(l.first&&O.length)return b[C.field]=1,S(O);if(!w)S(O);else {if(C.required&&!y.value)return C.message!==void 0?O=[].concat(C.message).map(HO(C,s)):l.error&&(O=[l.error(C,Ci(l.messages.required,C.field))]),S(O);var D={};C.defaultField&&Object.keys(y.value).map(function(U){D[U]=C.defaultField;}),D=rr(rr({},D),y.rule.fields);var L={};Object.keys(D).forEach(function(U){var W=D[U],z=Array.isArray(W)?W:[W];L[U]=z.map(E.bind(null,U));});var F=new e(L);F.messages(l.messages),y.rule.options&&(y.rule.options.messages=l.messages,y.rule.options.error=l.error),F.validate(y.value,y.rule.options||l,function(U){var W=[];O&&O.length&&W.push.apply(W,Zt(O)),U&&U.length&&W.push.apply(W,Zt(U)),S(W.length?W:null);});}}var T;if(C.asyncValidator)T=C.asyncValidator(C,y.value,M,y.source,l);else if(C.validator){try{T=C.validator(C,y.value,M,y.source,l);}catch(N){var A,I;(A=(I=console).error)===null||A===void 0||A.call(I,N),l.suppressValidatorError||setTimeout(function(){throw N},0),M(N.message);}T===true?M():T===false?M(typeof C.message=="function"?C.message(C.fullField||C.field):C.message||"".concat(C.fullField||C.field," fails")):T instanceof Array?M(T):T instanceof Error&&M(T.message);}T&&T.then&&T.then(function(){return M()},function(N){return M(N)});},function(y){d(y);},s)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Xh.hasOwnProperty(n.type))throw new Error(Ci("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?Xh.required:Xh[this.getType(n)]||void 0}}]),e})();Ct(pg,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Xh[t]=n;});Ct(pg,"warning",Bie);Ct(pg,"messages",g2);Ct(pg,"validators",Xh);const Go="'${name}' is not a valid ${type}",SF={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Go,method:Go,array:Go,object:Go,number:Go,date:Go,boolean:Go,integer:Go,float:Go,regexp:Go,email:Go,tel:Go,url:Go,hex:Go},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},jO=pg;function dse(e,t){return e.replace(/\\?\$\{\w+\}/g,n=>{if(n.startsWith("\\"))return n.slice(1);const r=n.slice(2,-1);return t[r]})}const UO="CODE_LOGIC_ERROR";async function y2(e,t,n,r,o){const i={...n};if(delete i.ruleIndex,jO.warning=()=>{},i.validator){const g=i.validator;i.validator=(...b)=>{try{return g(...b)}catch(y){return console.error(y),Promise.reject(UO)}};}let s=null;i&&i.type==="array"&&i.defaultField&&(s=i.defaultField,delete i.defaultField);const l=new jO({[e]:[i]}),u=nf(SF,r.validateMessages);l.messages(u);let d=[];try{await Promise.resolve(l.validate({[e]:t},{...r}));}catch(g){g.errors&&(d=g.errors.map(({message:b},y)=>{const S=b===UO?u.default:b;return f.isValidElement(S)?f.cloneElement(S,{key:`error_${y}`}):S}));}if(!d.length&&s&&Array.isArray(t)&&t.length>0)return (await Promise.all(t.map((b,y)=>y2(`${e}.${y}`,b,s,r,o)))).reduce((b,y)=>[...b,...y],[]);const m={...n,name:e,enum:(n.enum||[]).join(", "),...o};return d.map(g=>typeof g=="string"?dse(g,m):g)}function fse(e,t,n,r,o,i){const s=e.join("."),l=n.map((d,m)=>{const p=d.validator,g={...d,ruleIndex:m};return p&&(g.validator=(b,y,S)=>{let C=false;const E=p(b,y,(...M)=>{Promise.resolve().then(()=>{Pr(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||S(...M);});});C=E&&typeof E.then=="function"&&typeof E.catch=="function",Pr(C,"`callback` is deprecated. Please return a promise instead."),C&&E.then(()=>{S();}).catch(M=>{S(M||" ");});}),g}).sort(({warningOnly:d,ruleIndex:m},{warningOnly:p,ruleIndex:g})=>!!d==!!p?m-g:d?1:-1);let u;if(o===true)u=new Promise(async(d,m)=>{for(let p=0;p<l.length;p+=1){const g=l[p],b=await y2(s,t,g,r,i);if(b.length){m([{errors:b,rule:g}]);return}}d([]);});else {const d=l.map(m=>y2(s,t,m,r,i).then(p=>({errors:p,rule:m})));u=(o?hse(d):mse(d)).then(m=>Promise.reject(m));}return u.catch(d=>d),u}async function mse(e){return Promise.all(e).then(t=>[].concat(...t))}async function hse(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(o=>{o.errors.length&&n([o]),t+=1,t===e.length&&n([]);});});})}function lr(e){return h2(e)}function WO(e,t){let n={};return t.forEach(r=>{const o=gs(e,r);n=ji(n,r,o);}),n}function bf(e,t,n=false){return e&&e.some(r=>uy(t,r,n))}function uy(e,t,n=false){return !e||!t||!n&&e.length!==t.length?false:t.every((r,o)=>e[o]===r)}function pse(e,t){if(e===t)return  true;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return  false;const n=Object.keys(e),r=Object.keys(t);return [...new Set([...n,...r])].every(i=>{const s=e[i],l=t[i];return typeof s=="function"&&typeof l=="function"?true:s===l})}function gse(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function GO(e,t,n){const{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;const o=e[t],i=t-n;return i>0?[...e.slice(0,n),o,...e.slice(n,t),...e.slice(t+1,r)]:i<0?[...e.slice(0,t),...e.slice(t+1,n+1),o,...e.slice(n+1,r)]:e}async function vse(){return new Promise(e=>{_t(()=>{e();});})}function S2(){return S2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},S2.apply(this,arguments)}const Uc=[],mh=[];function hw(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}class bse extends f.Component{static contextType=Pf;state={resetCount:0};cancelRegisterFunc=null;mounted=false;touched=false;dirty=false;validatePromise;prevValidating;errors=Uc;warnings=mh;constructor(t){if(super(t),t.fieldContext){const{getInternalHooks:n}=t.fieldContext,{initEntityValue:r}=n(au);r(this);}}componentDidMount(){const{shouldUpdate:t,fieldContext:n}=this.props;if(this.mounted=true,n){const{getInternalHooks:r}=n,{registerField:o}=r(au);this.cancelRegisterFunc=o(this);}t===true&&this.reRender();}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(true),this.mounted=false;}cancelRegister=()=>{const{preserve:t,isListField:n,name:r}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(n,t,lr(r)),this.cancelRegisterFunc=null;};getNamePath=()=>{const{name:t,fieldContext:n}=this.props,{prefixName:r=[]}=n;return t!==void 0?[...r,...t]:[]};getRules=()=>{const{rules:t=[],fieldContext:n}=this.props;return t.map(r=>typeof r=="function"?r(n):r)};reRender(){this.mounted&&this.forceUpdate();}refresh=()=>{this.mounted&&this.setState(({resetCount:t})=>({resetCount:t+1}));};metaCache=null;triggerMetaEvent=t=>{const{onMetaChange:n}=this.props;if(n){const r={...this.getMeta(),destroy:t};ec(this.metaCache,r)||n(r),this.metaCache=r;}else this.metaCache=null;};onStoreChange=(t,n,r)=>{const{shouldUpdate:o,dependencies:i=[],onReset:s}=this.props,{store:l}=r,u=this.getNamePath(),d=this.getValue(t),m=this.getValue(l),p=n&&bf(n,u);switch(r.type==="valueUpdate"&&r.source==="external"&&!ec(d,m)&&(this.touched=true,this.dirty=true,this.validatePromise=null,this.errors=Uc,this.warnings=mh,this.triggerMetaEvent()),r.type){case "reset":if(!n||p){this.touched=false,this.dirty=false,this.validatePromise=void 0,this.errors=Uc,this.warnings=mh,this.triggerMetaEvent(),s?.(),this.refresh();return}break;case "remove":{if(o&&hw(o,t,l,d,m,r)){this.reRender();return}break}case "setField":{const{data:g}=r;if(p){"touched"in g&&(this.touched=g.touched),"validating"in g&&!("originRCField"in g)&&(this.validatePromise=g.validating?Promise.resolve([]):null),"errors"in g&&(this.errors=g.errors||Uc),"warnings"in g&&(this.warnings=g.warnings||mh),this.dirty=true,this.triggerMetaEvent(),this.reRender();return}else if("value"in g&&bf(n,u,true)){this.reRender();return}if(o&&!u.length&&hw(o,t,l,d,m,r)){this.reRender();return}break}case "dependenciesUpdate":{if(i.map(lr).some(b=>bf(r.relatedFields,b))){this.reRender();return}break}default:if(p||(!i.length||u.length||o)&&hw(o,t,l,d,m,r)){this.reRender();return}break}o===true&&this.reRender();};validateRules=t=>{const n=this.getNamePath(),r=this.getValue(),{triggerName:o,validateOnly:i=false,delayFrame:s}=t||{},l=Promise.resolve().then(async()=>{if(!this.mounted)return [];const{validateFirst:u=false,messageVariables:d,validateDebounce:m}=this.props;s&&await vse();let p=this.getRules();if(o&&(p=p.filter(b=>b).filter(b=>{const{validateTrigger:y}=b;return y?h2(y).includes(o):true})),m&&o&&(await new Promise(b=>{setTimeout(b,m);}),this.validatePromise!==l))return [];const g=fse(n,r,p,t,u,d);return g.catch(b=>b).then((b=Uc)=>{if(this.validatePromise===l){this.validatePromise=null;const y=[],S=[];b.forEach?.(({rule:{warningOnly:C},errors:w=Uc})=>{C?S.push(...w):y.push(...w);}),this.errors=y,this.warnings=S,this.triggerMetaEvent(),this.reRender();}}),g});return i||(this.validatePromise=l,this.dirty=true,this.errors=Uc,this.warnings=mh,this.triggerMetaEvent(),this.reRender()),l};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return  true;const{fieldContext:t}=this.props,{getInitialValue:n}=t.getInternalHooks(au);return n(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=t=>{if(typeof t=="function"){const r=this.getMeta();return {...this.getOnlyChild(t(this.getControlled(),r,this.props.fieldContext)),isFunction:true}}const n=ri(t);return n.length!==1||!f.isValidElement(n[0])?{child:n,isFunction:false}:{child:n[0],isFunction:false}};getValue=t=>{const{getFieldsValue:n}=this.props.fieldContext,r=this.getNamePath();return gs(t||n(true),r)};getControlled=(t={})=>{const{name:n,trigger:r="onChange",validateTrigger:o,getValueFromEvent:i,normalize:s,valuePropName:l="value",getValueProps:u,fieldContext:d}=this.props,m=o!==void 0?o:d.validateTrigger,p=this.getNamePath(),{getInternalHooks:g,getFieldsValue:b}=d,{dispatch:y}=g(au),S=this.getValue(),C=u||(A=>({[l]:A})),w=t[r],E=n!==void 0?C(S):{},M={...t,...E};return M[r]=(...A)=>{this.touched=true,this.dirty=true,this.triggerMetaEvent();let I;i?I=i(...A):I=gse(l,...A),s&&(I=s(I,S,b(true))),I!==S&&y({type:"updateValue",namePath:p,value:I}),w&&w(...A);},h2(m||[]).forEach(A=>{const I=M[A];M[A]=(...N)=>{I&&I(...N);const{rules:P}=this.props;P&&P.length&&y({type:"validateField",namePath:p,triggerName:A});};}),M};render(){const{resetCount:t}=this.state,{children:n}=this.props,{child:r,isFunction:o}=this.getOnlyChild(n);let i;return o?i=r:f.isValidElement(r)?i=f.cloneElement(r,this.getControlled(r.props)):(Pr(!r,"`children` of Field is not validate ReactElement."),i=r),f.createElement(f.Fragment,{key:t},i)}}function CF({name:e,...t}){const n=f.useContext(Pf),r=f.useContext(cy),o=e!==void 0?lr(e):void 0,i=t.isListField??!!r;let s="keep";return i||(s=`_${(o||[]).join("_")}`),f.createElement(bse,S2({key:s,name:o,isListField:i},t,{fieldContext:n}))}function yse({name:e,initialValue:t,children:n,rules:r,validateTrigger:o,isListField:i}){const s=f.useContext(Pf),l=f.useContext(cy),d=f.useRef({keys:[],id:0}).current,m=f.useMemo(()=>[...lr(s.prefixName)||[],...lr(e)],[s.prefixName,e]),p=f.useMemo(()=>({...s,prefixName:m}),[s,m]),g=f.useMemo(()=>({getKey:y=>{const S=m.length,C=y[S];return [d.keys[C],y.slice(S+1)]}}),[d,m]);if(typeof n!="function")return Pr(false,"Form.List only accepts function as children."),null;const b=(y,S,{source:C})=>C==="internal"?false:y!==S;return f.createElement(cy.Provider,{value:g},f.createElement(Pf.Provider,{value:p},f.createElement(CF,{name:[],shouldUpdate:b,rules:r,validateTrigger:o,initialValue:t,isList:true,isListField:i??!!l},({value:y=[],onChange:S},C)=>{const{getFieldValue:w}=s,E=()=>w(m||[])||[],M={add:(A,I)=>{const N=E();I>=0&&I<=N.length?(d.keys=[...d.keys.slice(0,I),d.id,...d.keys.slice(I)],S([...N.slice(0,I),A,...N.slice(I)])):(d.keys=[...d.keys,d.id],S([...N,A])),d.id+=1;},remove:A=>{const I=E(),N=new Set(Array.isArray(A)?A:[A]);N.size<=0||(d.keys=d.keys.filter((P,O)=>!N.has(O)),S(I.filter((P,O)=>!N.has(O))));},move(A,I){if(A===I)return;const N=E();A<0||A>=N.length||I<0||I>=N.length||(d.keys=GO(d.keys,A,I),S(GO(N,A,I)));}};let T=y||[];return Array.isArray(T)||(T=[]),n(T.map((A,I)=>{let N=d.keys[I];return N===void 0&&(d.keys[I]=d.id,N=d.keys[I],d.id+=1),{name:I,key:N,isListField:true}}),M,C)})))}function Sse(e){let t=false,n=e.length;const r=[];return e.length?new Promise((o,i)=>{e.forEach((s,l)=>{s.catch(u=>(t=true,u)).then(u=>{n-=1,r[l]=u,!(n>0)&&(t&&i(r),o(r));});});}):Promise.resolve([])}const C2="__@field_split__";function Eb(e){return e.map(t=>`${typeof t}:${t}`).join(C2)}class Hd{kvs=new Map;set(t,n){this.kvs.set(Eb(t),n);}get(t){return this.kvs.get(Eb(t))}getAsPrefix(t){const n=Eb(t),r=n+C2,o=[],i=this.kvs.get(n);return i!==void 0&&o.push(i),this.kvs.forEach((s,l)=>{l.startsWith(r)&&o.push(s);}),o}update(t,n){const r=this.get(t),o=n(r);o?this.set(t,o):this.delete(t);}delete(t){this.kvs.delete(Eb(t));}map(t){return [...this.kvs.entries()].map(([n,r])=>{const o=n.split(C2);return t({key:o.map(i=>{const[,s,l]=i.match(/^([^:]*):(.*)$/);return s==="number"?Number(l):l}),value:r})})}toJSON(){const t={};return this.map(({key:n,value:r})=>(t[n.join(".")]=r,null)),t}}const Cse=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null);};class xse{namePathList=[];taskId=0;watcherList=new Set;form;constructor(t){this.form=t;}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t);}}notify(t){t.forEach(n=>{this.namePathList.every(r=>!uy(r,n))&&this.namePathList.push(n);}),this.doBatch();}doBatch(){this.taskId+=1;const t=this.taskId;Cse(()=>{if(t===this.taskId&&this.watcherList.size){const n=this.form.getForm(),r=n.getFieldsValue(),o=n.getFieldsValue(true);this.watcherList.forEach(i=>{i(r,o,this.namePathList);}),this.namePathList=[];}});}}class wse{formHooked=false;forceRootUpdate;subscribable=true;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new xse(this);constructor(t){this.forceRootUpdate=t;}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:true,getInternalHooks:this.getInternalHooks});getInternalHooks=t=>t===au?(this.formHooked=true,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(Pr(false,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=t=>{this.subscribable=t;};prevWithoutPreserves=null;setInitialValues=(t,n)=>{if(this.initialValues=t||{},n){let r=nf(t,this.store);this.prevWithoutPreserves?.map(({key:o})=>{r=ji(r,o,gs(t,o));}),this.prevWithoutPreserves=null,this.updateStore(r);}};destroyForm=t=>{if(t)this.updateStore({});else {const n=new Hd;this.getFieldEntities(true).forEach(r=>{this.isMergedPreserve(r.isPreserve())||n.set(r.getNamePath(),true);}),this.prevWithoutPreserves=n;}};getInitialValue=t=>{const n=gs(this.initialValues,t);return t.length?nf(n):n};setCallbacks=t=>{this.callbacks=t;};setValidateMessages=t=>{this.validateMessages=t;};setPreserve=t=>{this.preserve=t;};registerWatch=t=>this.watcherCenter.register(t);notifyWatch=(t=[])=>{this.watcherCenter.notify(t);};timeoutId=null;warningUnhooked=()=>{};updateStore=t=>{this.store=t;};getFieldEntities=(t=false)=>t?this.fieldEntities.filter(n=>n.getNamePath().length):this.fieldEntities;getFieldsMap=(t=false)=>{const n=new Hd;return this.getFieldEntities(t).forEach(r=>{const o=r.getNamePath();n.set(o,r);}),n};getFieldEntitiesForNamePathList=(t,n=false)=>{if(!t)return this.getFieldEntities(true);const r=this.getFieldsMap(true);return n?t.flatMap(o=>{const i=lr(o),s=r.getAsPrefix(i);return s.length?s:[{INVALIDATE_NAME_PATH:i}]}):t.map(o=>{const i=lr(o);return r.get(i)||{INVALIDATE_NAME_PATH:lr(o)}})};getFieldsValue=(t,n)=>{this.warningUnhooked();let r,o;if(t===true||Array.isArray(t)?(r=t,o=n):t&&typeof t=="object"&&(o=t.filter),r===true&&!o)return this.store;const i=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,true),s=[],l=[];i.forEach(d=>{const m=d.INVALIDATE_NAME_PATH||d.getNamePath();if(d.isList?.()){l.push(m);return}if(!o)s.push(m);else {const p="getMeta"in d?d.getMeta():null;o(p)&&s.push(m);}});let u=WO(this.store,s.map(lr));return l.forEach(d=>{gs(u,d)||(u=ji(u,d,[]));}),u};getFieldValue=t=>{this.warningUnhooked();const n=lr(t);return gs(this.store,n)};getFieldsError=t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((r,o)=>r&&!r.INVALIDATE_NAME_PATH?{name:r.getNamePath(),errors:r.getErrors(),warnings:r.getWarnings()}:{name:lr(t[o]),errors:[],warnings:[]}));getFieldError=t=>{this.warningUnhooked();const n=lr(t);return this.getFieldsError([n])[0].errors};getFieldWarning=t=>{this.warningUnhooked();const n=lr(t);return this.getFieldsError([n])[0].warnings};isFieldsTouched=(...t)=>{this.warningUnhooked();const[n,r]=t;let o,i=false;t.length===0?o=null:t.length===1?Array.isArray(n)?(o=n.map(lr),i=false):(o=null,i=n):(o=n.map(lr),i=r);const s=this.getFieldEntities(true),l=p=>p.isFieldTouched();if(!o)return i?s.every(p=>l(p)||p.isList()):s.some(l);const u=new Hd;o.forEach(p=>{u.set(p,[]);}),s.forEach(p=>{const g=p.getNamePath();o.forEach(b=>{b.every((y,S)=>g[S]===y)&&u.update(b,y=>[...y,p]);});});const d=p=>p.some(l),m=u.map(({value:p})=>p);return i?m.every(d):m.some(d)};isFieldTouched=t=>(this.warningUnhooked(),this.isFieldsTouched([t]));isFieldsValidating=t=>{this.warningUnhooked();const n=this.getFieldEntities();if(!t)return n.some(o=>o.isFieldValidating());const r=t.map(lr);return n.some(o=>{const i=o.getNamePath();return bf(r,i)&&o.isFieldValidating()})};isFieldValidating=t=>(this.warningUnhooked(),this.isFieldsValidating([t]));resetWithFieldInitialValue=(t={})=>{const n=new Hd,r=this.getFieldEntities(true);r.forEach(s=>{const{initialValue:l}=s.props,u=s.getNamePath();if(l!==void 0){const d=n.get(u)||new Set;d.add({entity:s,value:l}),n.set(u,d);}});const o=s=>{s.forEach(l=>{const{initialValue:u}=l.props;if(u!==void 0){const d=l.getNamePath();if(this.getInitialValue(d)!==void 0)Pr(false,`Form already set 'initialValues' with path '${d.join(".")}'. Field can not overwrite it.`);else {const p=n.get(d);if(p&&p.size>1)Pr(false,`Multiple Field with path '${d.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(p){const g=this.getFieldValue(d);!l.isListField()&&(!t.skipExist||g===void 0)&&this.updateStore(ji(this.store,d,[...p][0].value));}}}});};let i;t.entities?i=t.entities:t.namePathList?(i=[],t.namePathList.forEach(s=>{const l=n.get(s);l&&i.push(...[...l].map(u=>u.entity));})):i=r,o(i);};resetFields=t=>{this.warningUnhooked();const n=this.store;if(!t){this.updateStore(nf(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(n,null,{type:"reset"}),this.notifyWatch();return}const r=t.map(lr);r.forEach(o=>{const i=this.getInitialValue(o);this.updateStore(ji(this.store,o,i));}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(n,r,{type:"reset"}),this.notifyWatch(r);};setFields=t=>{this.warningUnhooked();const n=this.store,r=[];t.forEach(o=>{const{name:i,...s}=o,l=lr(i);r.push(l),"value"in s&&this.updateStore(ji(this.store,l,s.value)),this.notifyObservers(n,[l],{type:"setField",data:o});}),this.notifyWatch(r);};getFields=()=>this.getFieldEntities(true).map(r=>{const o=r.getNamePath(),s={...r.getMeta(),name:o,value:this.getFieldValue(o)};return Object.defineProperty(s,"originRCField",{value:true}),s});initEntityValue=t=>{const{initialValue:n}=t.props;if(n!==void 0){const r=t.getNamePath();gs(this.store,r)===void 0&&this.updateStore(ji(this.store,r,n));}};isMergedPreserve=t=>(t!==void 0?t:this.preserve)??true;registerField=t=>{this.fieldEntities.push(t);const n=t.getNamePath();if(this.notifyWatch([n]),t.props.initialValue!==void 0){const r=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:true}),this.notifyObservers(r,[t.getNamePath()],{type:"valueUpdate",source:"internal"});}return (r,o,i=[])=>{if(this.fieldEntities=this.fieldEntities.filter(s=>s!==t),!this.isMergedPreserve(o)&&(!r||i.length>1)){const s=r?void 0:this.getInitialValue(n);if(n.length&&this.getFieldValue(n)!==s&&this.fieldEntities.every(l=>!uy(l.getNamePath(),n))){const l=this.store;this.updateStore(ji(l,n,s,true)),this.notifyObservers(l,[n],{type:"remove"}),this.triggerDependenciesUpdate(l,n);}}this.notifyWatch([n]);}};dispatch=t=>{switch(t.type){case "updateValue":{const{namePath:n,value:r}=t;this.updateValue(n,r);break}case "validateField":{const{namePath:n,triggerName:r}=t;this.validateFields([n],{triggerName:r});break}}};notifyObservers=(t,n,r)=>{if(this.subscribable){const o={...r,store:this.getFieldsValue(true)};this.getFieldEntities().forEach(({onStoreChange:i})=>{i(t,n,o);});}else this.forceRootUpdate();};triggerDependenciesUpdate=(t,n)=>{const r=this.getDependencyChildrenFields(n);return r.length&&this.validateFields(r,{delayFrame:true}),this.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[n,...r]}),r};updateValue=(t,n)=>{const r=lr(t),o=this.store;this.updateStore(ji(this.store,r,n)),this.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const i=this.triggerDependenciesUpdate(o,r),{onValuesChange:s}=this.callbacks;if(s){const l=this.getFieldsMap(true).get(r),u=WO(this.store,[r]),d=this.getFieldsValue(),m=Sk([d,u],{prepareArray:p=>l?.isList()?[]:[...p||[]]});s(u,m);}this.triggerOnFieldsChange([r,...i]);};setFieldsValue=t=>{this.warningUnhooked();const n=this.store;if(t){const r=nf(this.store,t);this.updateStore(r);}this.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),this.notifyWatch();};setFieldValue=(t,n)=>{this.setFields([{name:t,value:n,errors:[],warnings:[],touched:true}]);};getDependencyChildrenFields=t=>{const n=new Set,r=[],o=new Hd;this.getFieldEntities().forEach(s=>{const{dependencies:l}=s.props;(l||[]).forEach(u=>{const d=lr(u);o.update(d,(m=new Set)=>(m.add(s),m));});});const i=s=>{(o.get(s)||new Set).forEach(u=>{if(!n.has(u)){n.add(u);const d=u.getNamePath();u.isFieldDirty()&&d.length&&(r.push(d),i(d));}});};return i(t),r};triggerOnFieldsChange=(t,n)=>{const{onFieldsChange:r}=this.callbacks;if(r){const o=this.getFields();if(n){const s=new Hd;n.forEach(({name:l,errors:u})=>{s.set(l,u);}),o.forEach(l=>{l.errors=s.get(l.name)||l.errors;});}const i=o.filter(({name:s})=>bf(t,s));i.length&&r(i,o);}};validateFields=(t,n)=>{this.warningUnhooked();let r,o;Array.isArray(t)||typeof t=="string"||typeof n=="string"?(r=t,o=n):o=t;const i=!!r,s=i?r.map(lr):[],l=[...s],u=[],d=String(Date.now()),m=new Set,{recursive:p,dirty:g}=o||{};this.getFieldEntities(true).forEach(C=>{const w=C.getNamePath();if(i||((!C.isList()||!s.some(E=>uy(E,w,true)))&&l.push(w),s.push(w)),!(!C.props.rules||!C.props.rules.length)&&!(g&&!C.isFieldDirty())&&(m.add(w.join(d)),!i||bf(s,w,p))){const E=C.validateRules({validateMessages:{...SF,...this.validateMessages},...o});u.push(E.then(()=>({name:w,errors:[],warnings:[]})).catch(M=>{const T=[],A=[];return M.forEach?.(({rule:{warningOnly:I},errors:N})=>{I?A.push(...N):T.push(...N);}),T.length?Promise.reject({name:w,errors:T,warnings:A}):{name:w,errors:T,warnings:A}}));}});const b=Sse(u);this.lastValidatePromise=b,b.catch(C=>C).then(C=>{const w=C.map(({name:E})=>E);this.notifyObservers(this.store,w,{type:"validateFinish"}),this.triggerOnFieldsChange(w,C);});const y=b.then(()=>this.lastValidatePromise===b?Promise.resolve(this.getFieldsValue(l)):Promise.reject([])).catch(C=>{const w=C.filter(M=>M&&M.errors.length),E=w[0]?.errors?.[0];return Promise.reject({message:E,values:this.getFieldsValue(s),errorFields:w,outOfDate:this.lastValidatePromise!==b})});y.catch(C=>C);const S=s.filter(C=>m.has(C.join(d)));return this.triggerOnFieldsChange(S),y};submit=()=>{this.warningUnhooked(),this.validateFields().then(t=>{const{onFinish:n}=this.callbacks;if(n)try{n(t);}catch(r){console.error(r);}}).catch(t=>{const{onFinishFailed:n}=this.callbacks;n&&n(t);});}}function xF(e){const t=f.useRef(null),[,n]=f.useState({});if(!t.current)if(e)t.current=e;else {const r=()=>{n({});},o=new wse(r);t.current=o.getForm();}return [t.current]}const x2=f.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),Ese=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const o=f.useContext(x2),i=f.useRef({});return f.createElement(x2.Provider,{value:{...o,validateMessages:{...o.validateMessages,...e},triggerFormChange:(s,l)=>{t&&t(s,{changedFields:l,forms:i.current}),o.triggerFormChange(s,l);},triggerFormFinish:(s,l)=>{n&&n(s,{values:l,forms:i.current}),o.triggerFormFinish(s,l);},registerForm:(s,l)=>{s&&(i.current={...i.current,[s]:l}),o.registerForm(s,l);},unregisterForm:s=>{const l={...i.current};delete l[s],i.current=l,o.unregisterForm(s);}}},r)};function w2(){return w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},w2.apply(this,arguments)}const $se=({name:e,initialValues:t,fields:n,form:r,preserve:o,children:i,component:s="form",validateMessages:l,validateTrigger:u="onChange",onValuesChange:d,onFieldsChange:m,onFinish:p,onFinishFailed:g,clearOnDestroy:b,...y},S)=>{const C=f.useRef(null),w=f.useContext(x2),[E]=xF(r),{useSubscribe:M,setInitialValues:T,setCallbacks:A,setValidateMessages:I,setPreserve:N,destroyForm:P}=E.getInternalHooks(au);f.useImperativeHandle(S,()=>({...E,nativeElement:C.current})),f.useEffect(()=>(w.registerForm(e,E),()=>{w.unregisterForm(e);}),[w,E,e]),I({...w.validateMessages,...l}),A({onValuesChange:d,onFieldsChange:(z,...k)=>{w.triggerFormChange(e,z),m&&m(z,...k);},onFinish:z=>{w.triggerFormFinish(e,z),p&&p(z);},onFinishFailed:g}),N(o);const O=f.useRef(null);T(t,!O.current),O.current||(O.current=true),f.useEffect(()=>()=>P(b),[]);let D;const L=typeof i=="function";if(L){const z=E.getFieldsValue(true);D=i(z,E);}else D=i;M(!L);const F=f.useRef(null);f.useEffect(()=>{pse(F.current||[],n||[])||E.setFields(n||[]),F.current=n;},[n,E]);const U=f.useMemo(()=>({...E,validateTrigger:u}),[E,u]),W=f.createElement(cy.Provider,{value:null},f.createElement(Pf.Provider,{value:U},D));return s===false?W:f.createElement(s,w2({},y,{ref:C,onSubmit:z=>{z.preventDefault(),z.stopPropagation(),E.submit();},onReset:z=>{z.preventDefault(),E.resetFields(),y.onReset?.(z);}}),W)};function pw(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Mse(...e){const[t,n={}]=e,r=Oie(n)?{form:n}:n,o=r.form,[i,s]=f.useState(()=>typeof t=="function"?t({}):void 0),l=f.useMemo(()=>pw(i),[i]),u=f.useRef(l);u.current=l;const d=f.useContext(Pf),m=o||d,p=m&&m._init,{getFieldsValue:g,getInternalHooks:b}=m,{registerWatch:y}=b(au),S=Mt((w,E)=>{const M=r.preserve?E??g(true):w??g(),T=typeof t=="function"?t(M):gs(M,lr(t));pw(i)!==pw(T)&&s(T);}),C=typeof t=="function"?t:JSON.stringify(t);return f.useEffect(()=>{p&&S();},[p,C]),f.useEffect(()=>p?y((E,M)=>{S(E,M);}):void 0,[p]),i}const Tse=f.forwardRef($se),gg=Tse;gg.FormProvider=Ese;gg.Field=CF;gg.List=yse;gg.useForm=xF;gg.useWatch=Mse;const Mo=f.createContext({}),Ase=({children:e,status:t,override:n})=>{const r=f.useContext(Mo),o=f.useMemo(()=>{const i={...r};return n&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,n,r]);return f.createElement(Mo.Provider,{value:o},e)},Rse=f.createContext(void 0),oc=e=>{const{space:t,form:n,children:r}=e;if(!Lr(r))return null;let o=r;return n&&(o=q.createElement(Ase,{override:true,status:true},o)),t&&(o=q.createElement(Kre,null,o)),o},Nse=()=>Ti()&&window.document.documentElement;function Pse(e,t,n){return f.useMemo(()=>({...{trap:t??true,focusTriggerAfterClose:n??true},...e}),[e,t,n])}const P1=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,s=X({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=X({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),u=f.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return f.createElement("span",{className:X(t,s,l,n),style:{...u,...r}})},Ise=new Bt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),GT=e=>({height:e,lineHeight:oe(e)}),Ql=e=>({width:e,...GT(e)}),Ose=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Ise,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),gw=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...GT(e)}),Dse=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return {[t]:{display:"inline-block",verticalAlign:"top",background:n,...Ql(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...Ql(o)},[`${t}${t}-sm`]:{...Ql(i)}}},_se=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:s,calc:l}=e;return {[r]:{display:"inline-block",verticalAlign:"top",background:s,borderRadius:n,...gw(t,l)},[`${r}-lg`]:{...gw(o,l)},[`${r}-sm`]:{...gw(i,l)}}},wF=e=>{const{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:o}=e;return {display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:n,...Ql(o(r).mul(2).equal())}},Lse=e=>({[e.skeletonNodeCls]:{...wF(e)}}),Bse=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return {[t]:{...wF(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...Ql(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},vw=(e,t,n)=>{const{skeletonButtonCls:r}=e;return {[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},bw=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...GT(e)}),kse=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:s,calc:l}=e;return {[n]:{display:"inline-block",verticalAlign:"top",background:s,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal(),...bw(r,l)},...vw(e,r,n),[`${n}-lg`]:{...bw(o,l)},...vw(e,o,`${n}-lg`),[`${n}-sm`]:{...bw(i,l)},...vw(e,i,`${n}-sm`)}},zse=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:s,skeletonNodeCls:l,skeletonImageCls:u,controlHeight:d,controlHeightLG:m,controlHeightSM:p,gradientFromColor:g,padding:b,marginSM:y,borderRadius:S,titleHeight:C,blockRadius:w,paragraphLiHeight:E,controlHeightXS:M,paragraphMarginTop:T}=e;return {[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:b,verticalAlign:"top",[n]:{display:"inline-block",verticalAlign:"top",background:g,...Ql(d)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...Ql(m)},[`${n}-sm`]:{...Ql(p)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:C,background:g,borderRadius:w,[`+ ${o}`]:{marginBlockStart:p}},[o]:{padding:0,"> li":{width:"100%",height:E,listStyle:"none",background:g,borderRadius:w,"+ li":{marginBlockStart:M}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${o} > li`]:{borderRadius:S}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:y,[`+ ${o}`]:{marginBlockStart:T}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...kse(e),...Dse(e),..._se(e),...Lse(e),...Bse(e)},[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[s]:{width:"100%"}},[`${t}${t}-active`]:{[`
        ${r},
        ${o} > li,
        ${n},
        ${i},
        ${s},
        ${l},
        ${u}
      `]:{...Ose(e)}}}},Fse=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return {color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},vg=Wt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=zt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return zse(r)},Fse,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Hse=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,active:i,style:s,styles:l,shape:u="circle",size:d,...m}=e,{getPrefixCls:p}=f.useContext(wt),g=p("skeleton",t),[b,y]=vg(g),S=br(w=>d??w),C=X(g,`${g}-element`,{[`${g}-active`]:i},r?.root,n,o,b,y);return f.createElement("div",{className:C,style:l?.root},f.createElement(P1,{prefixCls:`${g}-avatar`,className:r?.content,style:{...l?.content,...s},shape:u,size:S,...m}))},Vse=e=>{const{prefixCls:t,className:n,rootClassName:r,classNames:o,active:i,style:s,styles:l,block:u=false,size:d,...m}=e,{getPrefixCls:p}=f.useContext(wt),g=p("skeleton",t),[b,y]=vg(g),S=br(w=>d??w),C=X(g,`${g}-element`,{[`${g}-active`]:i,[`${g}-block`]:u},o?.root,n,r,b,y);return f.createElement("div",{className:C,style:l?.root},f.createElement(P1,{prefixCls:`${g}-button`,className:o?.content,style:{...l?.content,...s},size:S,...m}))},EF=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,internalClassName:i,style:s,styles:l,active:u,children:d}=e,{getPrefixCls:m}=f.useContext(wt),p=m("skeleton",t),[g,b]=vg(p),y=X(p,`${p}-element`,{[`${p}-active`]:u},g,r?.root,n,o,b);return f.createElement("div",{className:y,style:l?.root},f.createElement("div",{className:X(r?.content,i||`${p}-node`),style:{...l?.content,...s}},d))},jse=e=>{const{getPrefixCls:t}=f.useContext(wt),n=t("skeleton",e.prefixCls);return f.createElement(EF,{...e,internalClassName:`${n}-image`},f.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${n}-image-svg`},f.createElement("title",null,"Image placeholder"),f.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${n}-image-path`})))},Use=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,active:i,block:s,style:l,styles:u,size:d,...m}=e,{getPrefixCls:p}=f.useContext(wt),g=p("skeleton",t),[b,y]=vg(g),S=br(w=>d??w),C=X(g,`${g}-element`,{[`${g}-active`]:i,[`${g}-block`]:s},r?.root,n,o,b,y);return f.createElement("div",{className:C,style:u?.root},f.createElement(P1,{prefixCls:`${g}-input`,className:r?.content,style:{...u?.content,...l},size:S,...m}))},Wse=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Gse=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,i=Array.from({length:o}).map((s,l)=>f.createElement("li",{key:l,style:{width:Wse(l,e)}}));return f.createElement("ul",{className:X(t,n),style:r},i)},qse=({prefixCls:e,className:t,width:n,style:r})=>f.createElement("h3",{className:X(e,t),style:{width:n,...r}});function yw(e){return e&&typeof e=="object"?e:{}}function Kse(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Yse(e,t){return !e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Xse(e,t){const n={};return (!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Zf=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,classNames:i,style:s,styles:l,children:u,avatar:d=false,title:m=true,paragraph:p=true,active:g,round:b}=e,{getPrefixCls:y,direction:S,className:C,style:w,classNames:E,styles:M}=jt("skeleton"),T=y("skeleton",t),[A,I]=vg(T),N={...e,avatar:d,title:m,paragraph:p},[P,O]=qt([E,i],[M,l],{props:N});if(n||!("loading"in e)){const D=!!d,L=!!m,F=!!p;let U;if(D){const k={className:P.avatar,prefixCls:`${T}-avatar`,...Kse(L,F),...yw(d),style:O.avatar};U=f.createElement("div",{className:X(P.header,`${T}-header`),style:O.header},f.createElement(P1,{...k}));}let W;if(L||F){let k;if(L){const j={className:P.title,prefixCls:`${T}-title`,...Yse(D,F),...yw(m),style:O.title};k=f.createElement(qse,{...j});}let G;if(F){const j={className:P.paragraph,prefixCls:`${T}-paragraph`,...Xse(D,L),...yw(p),style:O.paragraph};G=f.createElement(Gse,{...j});}W=f.createElement("div",{className:X(P.section,`${T}-section`),style:O.section},k,G);}const z=X(T,{[`${T}-with-avatar`]:D,[`${T}-active`]:g,[`${T}-rtl`]:S==="rtl",[`${T}-round`]:b},P.root,C,r,o,A,I);return f.createElement("div",{className:z,style:{...O.root,...w,...s}},U,W)}return u??null};Zf.Button=Vse;Zf.Avatar=Hse;Zf.Input=Use;Zf.Image=jse;Zf.Node=EF;function qO(){}const Qse=f.createContext({add:qO,remove:qO});function Zse(e){const t=f.useContext(Qse),n=f.useRef(null);return Mt(o=>{if(o){const i=e?o.querySelector(e):o;i&&(t.add(i),n.current=i);}else t.remove(n.current);})}const KO=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=f.useContext(hg);return q.createElement(ht,{onClick:n,...e},t)},YO=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=f.useContext(hg);return q.createElement(ht,{...NT(n),loading:e,onClick:o,...t},r)};function $F(e,t){return q.createElement("span",{className:`${e}-close-x`},t||q.createElement(Xa,{className:`${e}-close-icon`}))}const MF=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:s,okButtonProps:l,cancelButtonProps:u,footer:d}=e,[m]=Lo("Modal",xz()),p=t||m?.okText,g=r||m?.cancelText,b=q.useMemo(()=>({confirmLoading:o,okButtonProps:l,cancelButtonProps:u,okTextLocale:p,cancelTextLocale:g,okType:n,onOk:i,onCancel:s}),[o,l,u,p,g,n,i,s]);let y;return typeof d=="function"||typeof d>"u"?(y=q.createElement(q.Fragment,null,q.createElement(KO,null),q.createElement(YO,null)),typeof d=="function"&&(y=d(y,{OkBtn:YO,CancelBtn:KO})),y=q.createElement(gF,{value:b},y)):y=d,q.createElement(Vz,{disabled:false},y)},Jse=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"}}}},eae=e=>{const{componentCls:t}=e;return {[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},tae=(e,t)=>{const{componentCls:n,gridColumns:r,antCls:o}=e,[i,s]=nr(o,"grid"),[,l]=nr(o,"col"),u={};for(let d=r;d>=0;d--)d===0?(u[`${n}${t}-${d}`]={display:"none"},u[`${n}-push-${d}`]={insetInlineStart:"auto"},u[`${n}-pull-${d}`]={insetInlineEnd:"auto"},u[`${n}${t}-push-${d}`]={insetInlineStart:"auto"},u[`${n}${t}-pull-${d}`]={insetInlineEnd:"auto"},u[`${n}${t}-offset-${d}`]={marginInlineStart:0},u[`${n}${t}-order-${d}`]={order:0}):(u[`${n}${t}-${d}`]=[{[i("display")]:"block",display:"block"},{display:s("display"),flex:`0 0 ${d/r*100}%`,maxWidth:`${d/r*100}%`}],u[`${n}${t}-push-${d}`]={insetInlineStart:`${d/r*100}%`},u[`${n}${t}-pull-${d}`]={insetInlineEnd:`${d/r*100}%`},u[`${n}${t}-offset-${d}`]={marginInlineStart:`${d/r*100}%`},u[`${n}${t}-order-${d}`]={order:d});return u[`${n}${t}-flex`]={flex:l(`${t.replace(/-/,"")}-flex`)},u},E2=(e,t)=>tae(e,t),nae=(e,t,n)=>({[`@media (min-width: ${oe(t)})`]:{...E2(e,n)}}),rae=()=>({}),oae=()=>({});Wt("Grid",Jse,rae);const TF=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin});Wt("Grid",e=>{const t=zt(e,{gridColumns:24}),n=TF(t);return delete n.xs,[eae(t),E2(t,""),E2(t,"-xs"),Object.keys(n).map(r=>nae(t,n[r],`-${r}`)).reduce((r,o)=>({...r,...o}),{})]},oae);function XO(e){return {position:e,inset:0}}const iae=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}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...XO("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...XO("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:PT(e)}]},sae=e=>{const{componentCls:t,motionDurationMid:n}=e;return [{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${oe(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...mn(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${oe(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...$s(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(r=>`${r} ${n}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:oe(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...Ai(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${oe(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container,
          ${t}-body,
          ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},aae=e=>{const{componentCls:t}=e;return {[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},lae=e=>{const{componentCls:t}=e,n=TF(e),r={...n};delete r.xs;const o=`--${t.replace(".","")}-`,i=Object.keys(r).map(s=>({[`@media (min-width: ${oe(r[s])})`]:{width:`var(${o}${s}-width)`}}));return {[`${t}-root`]:{[t]:[].concat(Zt(Object.keys(n).map((s,l)=>{const u=Object.keys(n)[l-1];return u?{[`${o}${s}-width`]:`var(${o}${u}-width)`}:null})),[{width:`var(${o}xs-width)`}],Zt(i))}}},AF=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return zt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},RF=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${oe(e.paddingMD)} ${oe(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${oe(e.padding)} ${oe(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${oe(e.paddingXS)} ${oe(e.padding)}`:0,footerBorderTop:e.wireframe?`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${oe(e.padding*2)} ${oe(e.padding*2)} ${oe(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:true}),NF=Wt("Modal",e=>{const t=AF(e);return [sae(t),aae(t),iae(t),mg(t,"zoom"),lae(t)]},RF,{unitless:{titleLineHeight:true}});let $2;const cae=e=>{$2={x:e.pageX,y:e.pageY},setTimeout(()=>{$2=null;},100);};Nse()&&document.documentElement.addEventListener("click",cae,true);const PF=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:i,centered:s,getContainer:l,style:u,width:d=520,footer:m,classNames:p,styles:g,children:b,loading:y,confirmLoading:S,zIndex:C,mousePosition:w,onOk:E,onCancel:M,okButtonProps:T,cancelButtonProps:A,destroyOnHidden:I,destroyOnClose:N,panelRef:P=null,closable:O,mask:D,modalRender:L,maskClosable:F,focusTriggerAfterClose:U,focusable:W,...z}=e,{getPopupContainer:k,getPrefixCls:G,direction:j,className:K,style:Q,classNames:_,styles:B,centered:Y,cancelButtonProps:J,okButtonProps:ee,mask:te}=jt("modal"),{modal:re}=f.useContext(wt),[ie,de]=f.useMemo(()=>typeof O=="boolean"?[void 0,void 0]:[O?.afterClose,O?.onClose],[O]),ne=G("modal",t),ae=G(),[ce,se,$e]=$ne(D,te,ne,F),le=Pse(W,ce,U),pe=xt=>{S||(M?.(xt),de?.());},be=xt=>{E?.(xt),de?.();},Ce=Qn(ne),[Ae,Ye]=NF(ne,Ce),Re=X(i,{[`${ne}-centered`]:s??Y,[`${ne}-wrap-rtl`]:j==="rtl"}),fe=m!==null&&!y?f.createElement(MF,{...e,okButtonProps:{...ee,...T},onOk:be,cancelButtonProps:{...J,...A},onCancel:pe}):null,[ve,Ne,He,Ge]=xT(tc(e),tc(re),{closable:true,closeIcon:f.createElement(Xa,{className:`${ne}-close-icon`}),closeIconRender:xt=>$F(ne,xt)}),je=ve?{disabled:He,closeIcon:Ne,afterClose:ie,...Ge}:false,rt=L?xt=>f.createElement("div",{className:`${ne}-render`},L(xt)):void 0,ot=`.${ne}-${L?"render":"container"}`,Ke=Zse(ot),De=Yr(P,Ke),[qe,Je]=Wu("Modal",C),Be={...e,width:d,panelRef:P,focusTriggerAfterClose:le.focusTriggerAfterClose,focusable:le,mask:ce,maskClosable:$e,zIndex:qe},[Ie,lt]=qt([_,p,se],[B,g],{props:Be}),[Dt,pt]=f.useMemo(()=>d&&typeof d=="object"?[void 0,d]:[d,void 0],[d]),Lt=f.useMemo(()=>{const xt={};return pt&&Object.keys(pt).forEach(Pt=>{const ut=pt[Pt];ut!==void 0&&(xt[`--${ne}-${Pt}-width`]=typeof ut=="number"?`${ut}px`:ut);}),xt},[ne,pt]);return f.createElement(oc,{form:true,space:true},f.createElement(w1.Provider,{value:Je},f.createElement(Iie,{width:Dt,...z,zIndex:qe,getContainer:l===void 0?k:l,prefixCls:ne,rootClassName:X(Ae,r,Ye,Ce,Ie.root),rootStyle:lt.root,footer:fe,visible:o,mousePosition:w??$2,onClose:pe,closable:je,closeIcon:Ne,transitionName:nc(ae,"zoom",e.transitionName),maskTransitionName:nc(ae,"fade",e.maskTransitionName),mask:ce,maskClosable:$e,className:X(Ae,n,K),style:{...Q,...u,...Lt},classNames:{...Ie,wrapper:X(Ie.wrapper,Re)},styles:lt,panelRef:De,destroyOnHidden:I??N,modalRender:rt,focusTriggerAfterClose:le.focusTriggerAfterClose,focusTrap:le.trap},y?f.createElement(Zf,{active:true,title:false,paragraph:{rows:4},className:`${ne}-body-skeleton`}):b)))},uae=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:s,modalTitleHeight:l,fontHeight:u,confirmBodyPadding:d}=e,m=`${t}-confirm`;return {[m]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${m}-body-wrapper`]:{...ey()},[`&${t} ${t}-body`]:{padding:d},[`${m}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(u).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${m}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${oe(e.marginSM)})`},[`${m}-body-no-icon ${m}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${m}-paragraph`]:{maxWidth:`calc(100% - ${oe(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${m}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${m}-container`]:{color:e.colorText,fontSize:i,lineHeight:s},[`${m}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${m}-error ${m}-body > ${e.iconCls}`]:{color:e.colorError},[`${m}-warning ${m}-body > ${e.iconCls},
        ${m}-confirm ${m}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${m}-info ${m}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${m}-success ${m}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},dae=Yf(["Modal","confirm"],e=>{const t=AF(e);return uae(t)},RF,{order:-1e3}),IF=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:s,okCancel:l,footer:u,locale:d,autoFocusButton:m,focusable:p,...g}=e;let b=n;if(!n&&n!==null)switch(s){case "info":b=f.createElement(yT,null);break;case "success":b=f.createElement(bT,null);break;case "error":b=f.createElement(cg,null);break;default:b=f.createElement(ug,null);}const y=l??s==="confirm",S=f.useMemo(()=>{const L=p?.autoFocusButton||m;return L||L===null?L:"ok"},[m,p?.autoFocusButton]),[C]=Lo("Modal"),w=d||C,E=r||(y?w?.okText:w?.justOkText),M=o||w?.cancelText,{closable:T}=g,{onClose:A}=T&&typeof T=="object"?T:{},I=f.useMemo(()=>({autoFocusButton:S,cancelTextLocale:M,okTextLocale:E,mergedOkCancel:y,onClose:A,...g}),[S,M,E,y,A,g]),N=f.createElement(f.Fragment,null,f.createElement(OO,null),f.createElement(DO,null)),P=Lr(e.title)&&e.title!=="",O=Lr(b),D=`${i}-body`;return f.createElement("div",{className:`${i}-body-wrapper`},f.createElement("div",{className:X(D,{[`${D}-has-title`]:P,[`${D}-no-icon`]:!O})},b,f.createElement("div",{className:`${i}-paragraph`},P&&f.createElement("span",{className:`${i}-title`},e.title),f.createElement("div",{className:`${i}-content`},e.content))),u===void 0||typeof u=="function"?f.createElement(gF,{value:I},f.createElement("div",{className:`${i}-btns`},typeof u=="function"?u(N,{OkBtn:DO,CancelBtn:OO}):N)):u,f.createElement(dae,{prefixCls:t}))},fae=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:s,rootPrefixCls:l,bodyStyle:u,closable:d=false,onConfirm:m,styles:p,title:g,mask:b,maskClosable:y,okButtonProps:S,cancelButtonProps:C}=e,{cancelButtonProps:w,okButtonProps:E}=jt("modal"),M=`${i}-confirm`,T=e.width||416,A=e.style||{},I=X(M,`${M}-${e.type}`,{[`${M}-rtl`]:o==="rtl"},e.className),N=f.useMemo(()=>{const D=e2(b,y);return D.closable??(D.closable=false),D},[b,y]),[,P]=Xr(),O=f.useMemo(()=>n!==void 0?n:P.zIndexPopupBase+ET,[n,P]);return f.createElement(PF,{...e,className:I,wrapClassName:X({[`${M}-centered`]:!!e.centered},s),onCancel:()=>{t?.({triggerCancel:true}),m?.(false);},title:g,footer:null,transitionName:nc(l||"","zoom",e.transitionName),maskTransitionName:nc(l||"","fade",e.maskTransitionName),mask:N,style:A,styles:{body:u,mask:r,...p},width:T,zIndex:O,closable:d},f.createElement(IF,{...e,confirmPrefixCls:M,okButtonProps:{...E,...S},cancelButtonProps:{...w,...C}}))},OF=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return f.createElement(Bo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},f.createElement(fae,{...e}))},lu=[];let DF="";function _F(){return DF}const mae=e=>{const{prefixCls:t,getContainer:n,direction:r}=e,o=xz(),i=f.useContext(wt),s=_F()||i.getPrefixCls(),l=t||`${s}-modal`;let u=n;return u===false&&(u=void 0),q.createElement(OF,{...e,rootPrefixCls:s,prefixCls:l,iconPrefixCls:i.iconPrefixCls,theme:i.theme,direction:r??i.direction,locale:i.locale?.Modal??o,getContainer:u})};function bg(e){const t=MT(),n=document.createDocumentFragment();let r={...e,close:l,open:true},o;function i(...d){d.some(p=>p?.triggerCancel)&&e.onCancel?.(()=>{},...d.slice(1));for(let p=0;p<lu.length;p++)if(lu[p]===l){lu.splice(p,1);break}Jz(n).then(()=>{});}const s=d=>{clearTimeout(o),o=setTimeout(()=>{const m=t.getPrefixCls(void 0,_F()),p=t.getIconPrefixCls(),g=t.getTheme(),b=q.createElement(mae,{...d});T1(q.createElement(Bo,{prefixCls:m,iconPrefixCls:p,theme:g},typeof t.holderRender=="function"?t.holderRender(b):b),n);});};function l(...d){r={...r,open:false,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,d);}},s(r);}function u(d){typeof d=="function"?r=d(r):r={...r,...d},s(r);}return s(r),lu.push(l),{destroy:l,update:u}}function LF(e){return {...e,type:"warning"}}function BF(e){return {...e,type:"info"}}function kF(e){return {...e,type:"success"}}function zF(e){return {...e,type:"error"}}function FF(e){return {...e,type:"confirm"}}function hae({rootPrefixCls:e}){DF=e;}const pae=f.forwardRef((e,t)=>{const{afterClose:n,config:r,...o}=e,[i,s]=f.useState(true),[l,u]=f.useState(r),{direction:d,getPrefixCls:m}=f.useContext(wt),p=m("modal"),g=m(),b=()=>{n(),l.afterClose?.();},y=(...w)=>{s(false),w.some(M=>M?.triggerCancel)&&l.onCancel?.(()=>{},...w.slice(1));};f.useImperativeHandle(t,()=>({destroy:y,update:w=>{u(E=>{const M=typeof w=="function"?w(E):w;return {...E,...M}});}}));const S=l.okCancel??l.type==="confirm",[C]=Lo("Modal",Ms.Modal);return f.createElement(OF,{prefixCls:p,rootPrefixCls:g,...l,close:y,open:i,afterClose:b,okText:l.okText||(S?C?.okText:C?.justOkText),direction:l.direction||d,cancelText:l.cancelText||C?.cancelText,...o})});let QO=0;const gae=f.memo(f.forwardRef((e,t)=>{const[n,r]=Ane();return f.useImperativeHandle(t,()=>({patchElement:r}),[r]),f.createElement(f.Fragment,null,n)}));function HF(){const e=f.useRef(null),[t,n]=f.useState([]);f.useEffect(()=>{t.length&&(Zt(t).forEach(s=>{s();}),n([]));},[t]);const r=f.useCallback(i=>function(l){QO+=1;const u=f.createRef();let d;const m=new Promise(S=>{d=S;});let p=false,g;const b=f.createElement(pae,{key:`modal-${QO}`,config:i(l),ref:u,afterClose:()=>{g?.();},isSilent:()=>p,onConfirm:S=>{d(S);}});return g=e.current?.patchElement(b),g&&lu.push(g),{destroy:()=>{function S(){u.current?.destroy();}u.current?S():n(C=>[].concat(Zt(C),[S]));},update:S=>{function C(){u.current?.update(S);}u.current?C():n(w=>[].concat(Zt(w),[C]));},then:S=>(p=true,m.then(S))}},[]);return [f.useMemo(()=>({info:r(BF),success:r(kF),error:r(zF),warning:r(LF),confirm:r(FF)}),[r]),f.createElement(gae,{key:"modal-holder",ref:e})]}const vae=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new Bt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),s=new Bt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new Bt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),u=new Bt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return {[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:true},marginLeft:{value:n,_skip_check_:true},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:u}}}}},bae=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],yae={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Sae=(e,t)=>{const{componentCls:n}=e;return {[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[yae[t]]:{value:0,_skip_check_:true}}}}},Cae=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return {[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"},...t}},xae=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return t},wae=e=>{const{componentCls:t}=e;return {[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:{transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute",...Cae(e)}},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:{...xae(e)}},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}},...bae.map(n=>Sae(e,n)).reduce((n,r)=>({...n,...r}),{})}},VF=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:s,colorSuccess:l,colorInfo:u,colorWarning:d,colorError:m,colorTextHeading:p,notificationBg:g,notificationPadding:b,notificationMarginEdge:y,progressBg:S,notificationProgressHeight:C,fontSize:w,lineHeight:E,width:M,notificationIconSize:T,colorText:A,colorSuccessBg:I,colorErrorBg:N,colorInfoBg:P,colorWarningBg:O,motionDurationMid:D}=e,L=`${n}-notice`;return {position:"relative",marginBottom:i,marginInlineStart:"auto",background:g,borderRadius:s,boxShadow:r,[L]:{padding:b,width:M,maxWidth:`calc(100vw - ${oe(e.calc(y).mul(2).equal())})`,lineHeight:E,wordWrap:"break-word",borderRadius:s,overflow:"hidden","&-success":I?{background:I}:{},"&-error":N?{background:N}:{},"&-info":P?{background:P}:{},"&-warning":O?{background:O}:{}},[`${L}-title`]:{marginBottom:e.marginXS,color:p,fontSize:o,lineHeight:e.lineHeightLG},[`${L}-description`]:{fontSize:w,color:A,marginTop:e.marginXS},[`${L}-closable ${L}-title`]:{paddingInlineEnd:e.paddingLG},[`${L}-with-icon ${L}-title`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(T).equal(),fontSize:o},[`${L}-with-icon ${L}-description`]:{marginInlineStart:e.calc(e.marginSM).add(T).equal(),fontSize:w},[`${L}-icon`]:{position:"absolute",fontSize:T,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:u},[`&-warning${t}`]:{color:d},[`&-error${t}`]:{color:m}},[`${L}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:["color","background-color"].map(F=>`${F} ${D}`).join(", "),display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...Ai(e)},[`${L}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${oe(s)} * 2)`,left:{_skip_check_:true,value:s},right:{_skip_check_:true,value:s},bottom:0,blockSize:C,border:0,"&, &::-webkit-progress-bar":{borderRadius:s,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:S},"&::-webkit-progress-value":{borderRadius:s,background:S}},[`${L}-actions`]:{float:"right",marginTop:e.marginSM}}},Eae=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,s=`${t}-notice`,l=new Bt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return [{[t]:{...mn(e),position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:true},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${s}-actions`]:{float:"left"}}}},{[t]:{[`${s}-wrapper`]:VF(e)}}]},jF=e=>({zIndexPopup:e.zIndexPopupBase+ET+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),UF=e=>{const t=e.paddingMD,n=e.paddingLG;return zt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${oe(e.paddingMD)} ${oe(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2})},WF=Wt("Notification",e=>{const t=UF(e);return [Eae(t),vae(t),wae(t)]},jF),$ae=Yf(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=UF(e);return {[`${t}-pure-panel`]:{...VF(n),width:n.width,maxWidth:`calc(100vw - ${oe(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0}}},jF);function qT(e,t){return t===null||t===false?null:t||f.createElement(Xa,{className:`${e}-close-icon`})}const Mae={success:bT,info:yT,error:cg,warning:ug},GF=e=>{const{prefixCls:t,icon:n,type:r,title:o,description:i,actions:s,role:l="alert",styles:u,classNames:d}=e;let m=null;return n?m=f.createElement("span",{className:X(`${t}-icon`,d.icon),style:u.icon},n):r&&(m=f.createElement(Mae[r]||null,{className:X(`${t}-icon`,d.icon,`${t}-icon-${r}`),style:u.icon})),f.createElement("div",{className:X({[`${t}-with-icon`]:m}),role:l},m,f.createElement("div",{className:X(`${t}-title`,d.title),style:u.title},o),i&&f.createElement("div",{className:X(`${t}-description`,d.description),style:u.description},i),s&&f.createElement("div",{className:X(`${t}-actions`,d.actions),style:u.actions},s))},Tae=e=>{const{prefixCls:t,icon:n,type:r,message:o,title:i,description:s,btn:l,actions:u,closeIcon:d,className:m,style:p,styles:g,classNames:b,closable:y,...S}=e,{getPrefixCls:C,className:w,style:E,classNames:M,styles:T}=jt("notification"),[A,I]=qt([M,b],[T,g],{props:e}),{notification:N}=f.useContext(wt),P=u??l,O=i??o,D=t||C("notification"),L=`${D}-notice`,F=Qn(D),[U,W]=WF(D,F),[z,k,,G]=xT(tc(e),tc(N),{closable:true,closeIcon:f.createElement(Xa,{className:`${D}-close-icon`}),closeIconRender:K=>qT(D,K)}),j=z?{onClose:y&&typeof y=="object"?y?.onClose:void 0,closeIcon:k,...G}:false;return f.createElement("div",{className:X(`${L}-pure-panel`,U,m,W,F,A.root),style:I.root},f.createElement($ae,{prefixCls:D}),f.createElement(TT,{style:{...E,...p},...S,prefixCls:D,eventKey:"pure",duration:null,closable:j,className:X(m,w),content:f.createElement(GF,{classNames:A,styles:I,prefixCls:L,icon:n,type:r,title:O,description:s,actions:P})}))};function Aae(e,t,n){let r;switch(e){case "top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case "topLeft":r={left:0,top:t,bottom:"auto"};break;case "topRight":r={right:0,top:t,bottom:"auto"};break;case "bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case "bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function Rae(e){return {motionName:`${e}-fade`}}function Nae(e,t,n){return typeof e<"u"?e:typeof t?.closeIcon<"u"?t.closeIcon:n?.closeIcon}const ZO=24,Pae=4.5,Iae="topRight",Oae=({children:e,prefixCls:t})=>{const n=Qn(t),[r,o]=WF(t,n);return q.createElement(qz,{classNames:{list:X(r,o,n)}},e)},Dae=(e,{prefixCls:t,key:n})=>q.createElement(Oae,{prefixCls:t,key:n},e),_ae=q.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:s,rtl:l,onAllRemoved:u,stack:d,duration:m=Pae,pauseOnHover:p=true,showProgress:g}=e,{getPrefixCls:b,getPopupContainer:y,direction:S}=jt("notification"),{notification:C}=f.useContext(wt),[,w]=Xr(),E=o||b("notification"),M=f.useMemo(()=>typeof m=="number"&&m>0?m:false,[m]),T=L=>Aae(L,n??ZO,r??ZO),A=()=>X({[`${E}-rtl`]:l??S==="rtl"}),I=()=>Rae(E),[N,P]=Kz({prefixCls:E,style:T,className:A,motion:I,closable:{closeIcon:qT(E)},duration:M,getContainer:()=>i?.()||y?.()||document.body,maxCount:s,pauseOnHover:p,showProgress:g,onAllRemoved:u,renderNotifications:Dae,stack:d===false?false:{threshold:typeof d=="object"?d?.threshold:void 0,offset:8,gap:w.margin}}),[O,D]=qt([C?.classNames,e?.classNames],[C?.styles,e?.styles],{props:e});return q.useImperativeHandle(t,()=>({...N,prefixCls:E,notification:C,classNames:O,styles:D})),P});function qF(e){const t=q.useRef(null),{notification:n}=q.useContext(wt);return [q.useMemo(()=>{const o=u=>{if(!t.current)return;const{open:d,prefixCls:m,notification:p,classNames:g,styles:b}=t.current,y=p?.className||{},S=p?.style||{},C=`${m}-notice`,{title:w,message:E,description:M,icon:T,type:A,btn:I,actions:N,className:P,style:O,role:D="alert",closeIcon:L,closable:F,classNames:U={},styles:W={},...z}=u,k=w??E,G=N??I,j=qT(C,Nae(L,e,p)),[K,Q,,_]=Ez(tc({...e||{},...u}),tc(n),{closable:true,closeIcon:j}),B=K?{onClose:F&&typeof F=="object"?F.onClose:void 0,closeIcon:Q,..._}:false,Y=Wl(U,{props:u}),J=Wl(W,{props:u}),ee=x1(void 0,g,Y),te=wT(b,J);return d({placement:e?.placement??Iae,...z,content:q.createElement(GF,{prefixCls:C,icon:T,type:A,title:k,description:M,actions:G,role:D,classNames:ee,styles:te}),className:X({[`${C}-${A}`]:A},P,y,ee.root),style:{...S,...te.root,...O},closable:B})},s={open:o,destroy:u=>{u!==void 0?t.current?.close(u):t.current?.destroy();}};return ["success","info","warning","error"].forEach(u=>{s[u]=d=>o({...d,type:u});}),s},[e,n]),q.createElement(_ae,{key:"notification-holder",...e,ref:t})]}function KF(e){return qF(e)}const dy=q.createContext({}),YF=q.createContext({message:{},notification:{},modal:{}}),Lae=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return {[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},Bae=()=>({}),kae=Wt("App",Lae,Bae),zae=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:s,style:l,component:u="div"}=e,{direction:d,getPrefixCls:m,className:p,style:g}=jt("app"),b=m("app",t),[y,S]=kae(b),C=X(y,b,r,o,S,{[`${b}-rtl`]:d==="rtl"}),w=f.useContext(dy),E=q.useMemo(()=>({message:{...w.message,...i},notification:{...w.notification,...s}}),[i,s,w.message,w.notification]),[M,T]=Zz(E.message),[A,I]=KF(E.notification),[N,P]=HF(),O=q.useMemo(()=>({message:M,notification:A,modal:N}),[M,A,N]),D=u===false?q.Fragment:u,L={className:X(p,C),style:{...g,...l}};return q.createElement(YF.Provider,{value:O},q.createElement(dy.Provider,{value:E},q.createElement(D,{...u===false?void 0:L},P,T,I,n)))},Fae=()=>q.useContext(YF),yg=zae;yg.useApp=Fae;function XF(e){return t=>f.createElement(Bo,{theme:{token:{motion:false,zIndexPopupBase:0}}},f.createElement(e,{...t}))}const KT=(e,t,n,r,o)=>XF(s=>{const{prefixCls:l,style:u}=s,d=f.useRef(null),[m,p]=f.useState(0),[g,b]=f.useState(0),[y,S]=fn(false,s.open),{getPrefixCls:C}=f.useContext(wt),w=C(r||"select",l);f.useEffect(()=>{if(S(true),typeof ResizeObserver<"u"){const T=new ResizeObserver(I=>{const N=I[0].target;p(N.offsetHeight+8),b(N.offsetWidth);}),A=setInterval(()=>{const I=o?`.${o(w)}`:`.${w}-dropdown`,N=d.current?.querySelector(I);N&&(clearInterval(A),T.observe(N));},10);return ()=>{clearInterval(A),T.disconnect();}}},[w]);let E={...s,style:{...u,margin:0},open:y,getPopupContainer:()=>d.current};n&&(E=n(E)),t&&Object.assign(E,{[t]:{overflow:{adjustX:false,adjustY:false}}});const M={paddingBottom:m,position:"relative",minWidth:g};return f.createElement("div",{ref:d,style:M},f.createElement(e,{...E}))}),Hae=(e,t,n,r,o=false,i,s)=>{const l=f.useMemo(()=>typeof n=="boolean"?{allowClear:n}:n&&typeof n=="object"?n:{allowClear:false},[n]);return f.useMemo(()=>{const u=!o&&l.allowClear!==false&&(t.length||i)&&!(s==="combobox"&&i==="");return {allowClear:u,clearIcon:u?l.clearIcon||r||"×":null}},[l,r,o,t.length,i,s])},QF=f.createContext(null);function Gu(){return f.useContext(QF)}function Vae(e=250){const t=f.useRef(null),n=f.useRef(null);f.useEffect(()=>()=>{window.clearTimeout(n.current);},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null;},e);}return [()=>t.current,r]}function ZF(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function jae(e,t,n,r){const o=Mt(i=>{if(r)return;let s=i.target;s.shadowRoot&&i.composed&&(s=i.composedPath()[0]||s),i._ori_target&&(s=i._ori_target),t&&!ZF(e(),s)&&n(false);});f.useEffect(()=>(window.addEventListener("mousedown",o),()=>window.removeEventListener("mousedown",o)),[o]);}function M2(){return M2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},M2.apply(this,arguments)}const Uae=e=>{const t=e===true?0:1;return {bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},Wae=(e,t)=>{const{prefixCls:n,disabled:r,visible:o,children:i,popupElement:s,animation:l,transitionName:u,popupStyle:d,popupClassName:m,direction:p="ltr",placement:g,builtinPlacements:b,popupMatchSelectWidth:y,popupRender:S,popupAlign:C,getPopupContainer:w,empty:E,onPopupVisibleChange:M,onPopupMouseEnter:T,onPopupMouseDown:A,onPopupBlur:I,...N}=e,P=`${n}-dropdown`;let O=s;S&&(O=S(s));const D=f.useMemo(()=>b||Uae(y),[b,y]),L=l?`${P}-${l}`:u,F=typeof y=="number",U=f.useMemo(()=>F?null:y===false?"minWidth":"width",[y,F]);let W=d;F&&(W={...d,width:y});const z=f.useRef(null);return f.useImperativeHandle(t,()=>({getPopupElement:()=>z.current?.popupElement})),f.createElement($1,M2({},N,{showAction:M?["click"]:[],hideAction:M?["click"]:[],popupPlacement:g||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:D,prefixCls:P,popupMotion:{motionName:L},popup:f.createElement("div",{onMouseEnter:T,onMouseDown:A,onBlur:I},O),ref:z,stretch:U,popupAlign:C,popupVisible:o,getPopupContainer:w,popupClassName:X(m,{[`${P}-empty`]:E}),popupStyle:W,onPopupVisibleChange:M}),i)},Gae=f.forwardRef(Wae);function JO(e,t){const{key:n}=e;let r;return "value"in e&&({value:r}=e),n??(r!==void 0?r:`rc-index-key-${t}`)}function T2(e){return typeof e<"u"&&!Number.isNaN(e)}function JF(e,t){const{label:n,value:r,options:o,groupLabel:i}=e||{},s=n||(t?"children":"label");return {label:s,value:r||"value",options:o||"options",groupLabel:i||s}}function qae(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:o,value:i,options:s,groupLabel:l}=JF(t,false);function u(d,m){Array.isArray(d)&&d.forEach(p=>{if(m||!(s in p)){const g=p[i];r.push({key:JO(p,r.length),groupOption:m,data:p,label:p[o],value:g});}else {let g=p[l];g===void 0&&n&&(g=p.label),r.push({key:JO(p,r.length),group:true,data:p,label:g}),u(p[s],true);}});}return u(e,false),r}function A2(e){const t={...e};return "props"in t||Object.defineProperty(t,"props",{get(){return Pr(false,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const Kae=(e,t,n)=>{if(!t||!t.length)return null;let r=false;const o=(s,[l,...u])=>{if(!l)return [s];const d=s.split(l);return r=r||d.length>1,d.reduce((m,p)=>[...m,...o(p,u)],[]).filter(Boolean)},i=o(e,t);return r?typeof n<"u"?i.slice(0,n):i:null};function Yae(e){const{visible:t,values:n}=e;if(!t)return null;const r=50;return f.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${n.slice(0,r).map(({label:o,value:i})=>["number","string"].includes(typeof o)?o:i).join(", ")}`,n.length>r?", ...":null)}const Xae=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null);},YT=(e,t=1)=>{if(t<=0){e();return}Xae(()=>{YT(e,t-1);});};function Qae(e,t,n,r){const[o,i]=f.useState(false);f.useEffect(()=>{i(true);},[]);const[s,l]=fn(e,t),[u,d]=f.useState(false),m=o?s:false,p=r(m),g=f.useRef(0),b=Mt(S=>{n&&p!==S&&n(S),l(S);}),y=Mt((S,C={})=>{const{cancelFun:w}=C;g.current+=1;const E=g.current,M=typeof S=="boolean"?S:!p;d(!M);function T(){E===g.current&&!w?.()&&(b(M),d(false));}M?T():YT(()=>{T();});});return [m,p,y,u]}function Sw(e){const{children:t,...n}=e;return t?f.createElement("div",n,t):null}const e7=f.createContext(null);function Sg(){return f.useContext(e7)}const t7=f.forwardRef((e,t)=>{const{onChange:n,onKeyDown:r,onBlur:o,style:i,syncWidth:s,value:l,className:u,autoComplete:d,...m}=e,{prefixCls:p,mode:g,onSearch:b,onSearchSubmit:y,onInputBlur:S,autoFocus:C,tokenWithEnter:w,placeholder:E,components:{input:M="input"}}=Sg(),{id:T,classNames:A,styles:I,open:N,activeDescendantId:P,role:O,disabled:D}=Gu()||{},L=X(`${p}-input`,A?.input,u),F=f.useRef(false),U=f.useRef(null),W=f.useRef(null);f.useImperativeHandle(t,()=>W.current);const z=ee=>{let{value:te}=ee.target;if(w&&U.current&&/[\r\n]/.test(U.current)){const re=U.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");te=te.replace(re,U.current);}U.current=null,b&&b(te,true,F.current),n?.(ee);},k=ee=>{const{key:te}=ee,{value:re}=ee.currentTarget;te==="Enter"&&g==="tags"&&!F.current&&y&&y(re),r?.(ee);},G=ee=>{S?.(),o?.(ee);},j=()=>{F.current=true;},K=ee=>{if(F.current=false,g!=="combobox"){const{value:te}=ee.currentTarget;b?.(te,true,false);}},Q=ee=>{const{clipboardData:te}=ee,re=te?.getData("text");U.current=re||"";},[_,B]=f.useState(void 0);Rn(()=>{const ee=W.current;if(s&&ee){ee.style.width="0px";const te=ee.scrollWidth;B(te),ee.style.width="";}},[s,l]);const Y={id:T,type:g==="combobox"?"text":"search",...m,ref:W,style:{...I?.input,...i,"--select-input-width":_},autoFocus:C,autoComplete:d||"off",className:L,disabled:D,value:l||"",onChange:z,onKeyDown:k,onBlur:G,onPaste:Q,onCompositionStart:j,onCompositionEnd:K,role:O||"combobox","aria-expanded":N||false,"aria-haspopup":"listbox","aria-owns":N?`${T}_list`:void 0,"aria-autocomplete":"list","aria-controls":N?`${T}_list`:void 0,"aria-activedescendant":N?P:void 0};if(f.isValidElement(M)){const ee=M.props||{},te={placeholder:e.placeholder||E,...Y,...ee};return Object.keys(ee).forEach(re=>{const ie=ee[re];typeof ie=="function"&&(te[re]=(...de)=>{ie(...de),Y[re]?.(...de);});}),te.ref=Yr(M.ref,Y.ref),f.cloneElement(M,te)}const J=M;return f.createElement(J,Y)});function n7(e){const{prefixCls:t,placeholder:n,displayValues:r}=Sg(),{classNames:o,styles:i}=Gu(),{show:s=true}=e;return r.length?null:f.createElement("div",{className:X(`${t}-placeholder`,o?.placeholder),style:{visibility:s?"visible":"hidden",...i?.placeholder}},n)}const XT=f.createContext(null);function r7(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Zae(e){return e!=null}function Jae(e){return !e&&e!==0}function eD(e){return ["string","number"].includes(typeof e)}function R2(e){let t;return e&&(eD(e.title)?t=e.title.toString():eD(e.label)&&(t=e.label.toString())),t}function N2(){return N2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},N2.apply(this,arguments)}const ele=f.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:o,displayValues:i,maxLength:s,mode:l,components:u}=Sg(),{triggerOpen:d,title:m,showSearch:p,classNames:g,styles:b}=Gu(),y=f.useContext(XT),[S,C]=f.useState(false),w=l==="combobox",E=i[0],M=f.useMemo(()=>w&&o&&!S&&d?o:p?r:"",[w,o,S,d,r,p]),[T,A,I,N]=f.useMemo(()=>{let L,F,U;if(E&&y?.flattenOptions){const z=y.flattenOptions.find(k=>k.value===E.value);z?.data&&(L=z.data.className,F=z.data.style,U=R2(z.data));}return E&&!U&&(U=R2(E)),m!==void 0&&(U=m),[L,F,U,!!L||!!F]},[E,y?.flattenOptions,m]);f.useEffect(()=>{w&&C(false);},[w,o]);const P=E&&E.label!==null&&E.label!==void 0&&String(E.label).trim()!=="",D=!(w&&u?.input)?E?N?f.createElement("div",{className:X(`${n}-content-value`,T),style:{...M?{visibility:"hidden"}:{},...A},title:I},E.label):E.label:f.createElement(n7,{show:!M}):null;return f.createElement("div",{className:X(`${n}-content`,P&&`${n}-content-has-value`,M&&`${n}-content-has-search-value`,N&&`${n}-content-has-option-style`,g?.content),style:b?.content,title:N?void 0:I},D,f.createElement(t7,N2({ref:t},e,{value:M,maxLength:l==="combobox"?s:void 0,onChange:L=>{C(true),e.onChange?.(L);}})))}),Vd=void 0;function tle(e,t){const{prefixCls:n,invalidate:r,item:o,renderItem:i,responsive:s,responsiveDisabled:l,registerSize:u,itemKey:d,className:m,style:p,children:g,display:b,order:y,component:S="div",...C}=e,w=s&&!b;function E(N){u(d,N);}f.useEffect(()=>()=>{E(null);},[]);const M=i&&o!==Vd?i(o,{index:y}):g;let T;r||(T={opacity:w?0:1,height:w?0:Vd,overflowY:w?"hidden":Vd,order:s?y:Vd,pointerEvents:w?"none":Vd,position:w?"absolute":Vd});const A={};w&&(A["aria-hidden"]=true);let I=f.createElement(S,dr({className:X(!r&&n,m),style:{...T,...p}},A,C,{ref:t}),M);return s&&(I=f.createElement(ys,{onResize:({offsetWidth:N})=>{E(N);},disabled:l},I)),I}const Bh=f.forwardRef(tle);function nle(e){if(typeof MessageChannel>"u")_t(e);else {const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0);}}function rle(){const e=f.useRef(null);return n=>{e.current||(e.current=[],nle(()=>{No.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r();}),e.current=null;});})),e.current.push(n);}}function jd(e,t){const[n,r]=f.useState(t),o=Mt(i=>{e(()=>{r(i);});});return [n,o]}const fy=q.createContext(null),ole=(e,t)=>{const n=f.useContext(fy);if(!n){const{component:l="div",...u}=e;return f.createElement(l,dr({},u,{ref:t}))}const{className:r,...o}=n,{className:i,...s}=e;return f.createElement(fy.Provider,{value:null},f.createElement(Bh,dr({ref:t,className:X(r,i)},o,s)))},ile=f.forwardRef(ole),o7="responsive",i7="invalidate";function sle(e){return `+ ${e.length} ...`}function ale(e,t){const{prefixCls:n="rc-overflow",data:r=[],renderItem:o,renderRawItem:i,itemKey:s,itemWidth:l=10,ssr:u,style:d,className:m,maxCount:p,renderRest:g,renderRawRest:b,prefix:y,suffix:S,component:C="div",itemComponent:w,onVisibleChange:E,...M}=e,T=u==="full",A=rle(),[I,N]=jd(A,null),P=I||0,[O,D]=jd(A,new Map),[L,F]=jd(A,0),[U,W]=jd(A,0),[z,k]=jd(A,0),[G,j]=jd(A,0),[K,Q]=f.useState(null),[_,B]=f.useState(null),Y=f.useMemo(()=>_===null&&T?Number.MAX_SAFE_INTEGER:_||0,[_,I]),[J,ee]=f.useState(false),te=`${n}-item`,re=Math.max(L,U),ie=p===o7,de=r.length&&ie,ne=p===i7,ae=de||typeof p=="number"&&r.length>p,ce=f.useMemo(()=>{let De=r;return de?I===null&&T?De=r:De=r.slice(0,Math.min(r.length,P/l)):typeof p=="number"&&(De=r.slice(0,p)),De},[r,l,I,p,de]),se=f.useMemo(()=>de?r.slice(Y+1):r.slice(ce.length),[r,ce,de,Y]),$e=f.useCallback((De,qe)=>typeof s=="function"?s(De):(s&&De?.[s])??qe,[s]),le=f.useCallback(o||(De=>De),[o]);function pe(De,qe,Je){_===De&&(qe===void 0||qe===K)||(B(De),Je||(ee(De<r.length-1),E?.(De)),qe!==void 0&&Q(qe));}function be(De,qe){N(qe.clientWidth);}function Ce(De,qe){D(Je=>{const Be=new Map(Je);return qe===null?Be.delete(De):Be.set(De,qe),Be});}function Ae(De,qe){W(qe),F(U);}function Ye(De,qe){k(qe);}function Re(De,qe){j(qe);}function fe(De){return O.get($e(ce[De],De))}Rn(()=>{if(P&&typeof re=="number"&&ce){let De=z+G;const qe=ce.length,Je=qe-1;if(!qe){pe(0,null);return}for(let Be=0;Be<qe;Be+=1){let Ie=fe(Be);if(T&&(Ie=Ie||0),Ie===void 0){pe(Be-1,void 0,true);break}if(De+=Ie,Je===0&&De<=P||Be===Je-1&&De+fe(Je)<=P){pe(Je,null);break}else if(De+re>P){pe(Be-1,De-Ie-G+U);break}}S&&fe(0)+G>P&&Q(null);}},[P,O,U,z,G,$e,ce]);const ve=J&&!!se.length;let Ne={};K!==null&&de&&(Ne={position:"absolute",left:K,top:0});const He={prefixCls:te,responsive:de,component:w,invalidate:ne},Ge=i?(De,qe)=>{const Je=$e(De,qe);return f.createElement(fy.Provider,{key:Je,value:{...He,order:qe,item:De,itemKey:Je,registerSize:Ce,display:qe<=Y}},i(De,qe))}:(De,qe)=>{const Je=$e(De,qe);return f.createElement(Bh,dr({},He,{order:qe,key:Je,item:De,renderItem:le,itemKey:Je,registerSize:Ce,display:qe<=Y}))},je={order:ve?Y:Number.MAX_SAFE_INTEGER,className:`${te}-rest`,registerSize:Ae,display:ve},rt=g||sle,ot=b?f.createElement(fy.Provider,{value:{...He,...je}},b(se)):f.createElement(Bh,dr({},He,je),typeof rt=="function"?rt(se):rt),Ke=f.createElement(C,dr({className:X(!ne&&n,m),style:d,ref:t},M),y&&f.createElement(Bh,dr({},He,{responsive:ie,responsiveDisabled:!de,order:-1,className:`${te}-prefix`,registerSize:Ye,display:true}),y),ce.map(Ge),ae?ot:null,S&&f.createElement(Bh,dr({},He,{responsive:ie,responsiveDisabled:!de,order:Y,className:`${te}-suffix`,registerSize:Re,display:true,style:Ne}),S));return ie?f.createElement(ys,{onResize:be,disabled:!de},Ke):Ke}const Fa=f.forwardRef(ale);Fa.Item=ile;Fa.RESPONSIVE=o7;Fa.INVALIDATE=i7;const s7=e=>{const{className:t,style:n,customizeIcon:r,customizeIconProps:o,children:i,onMouseDown:s,onClick:l}=e,u=typeof r=="function"?r(o):r;return f.createElement("span",{className:t,onMouseDown:d=>{d.preventDefault(),s?.(d);},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:l,"aria-hidden":true},u!==void 0?u:f.createElement("span",{className:X(t.split(/\s+/).map(d=>`${d}-icon`))},i))};function P2(){return P2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},P2.apply(this,arguments)}function lle(e){return e.key??e.value}const tD=e=>{e.preventDefault(),e.stopPropagation();},cle=f.forwardRef(function({inputProps:t},n){const{prefixCls:r,displayValues:o,searchValue:i,mode:s,onSelectorRemove:l,removeIcon:u}=Sg(),{disabled:d,showSearch:m,triggerOpen:p,rawOpen:g,toggleOpen:b,autoClearSearchValue:y,tagRender:S,maxTagPlaceholder:C,maxTagTextLength:w,maxTagCount:E,classNames:M,styles:T}=Gu(),A=`${r}-selection-item`;let I=i;!g&&s==="multiple"&&y!==false&&(I="");const N=m&&I||"",P=m&&!d,O=u??"×",D=C??(j=>`+ ${j.length} ...`),L=S,F=j=>{b(j);},U=j=>{l?.(j);},W=(j,K,Q,_,B)=>f.createElement("span",{title:R2(j),className:X(A,{[`${A}-disabled`]:Q},M?.item),style:T?.item},f.createElement("span",{className:X(`${A}-content`,M?.itemContent),style:T?.itemContent},K),_&&f.createElement(s7,{className:X(`${A}-remove`,M?.itemRemove),style:T?.itemRemove,onMouseDown:tD,onClick:B,customizeIcon:O},"×")),z=(j,K,Q,_,B,Y,J)=>{const ee=te=>{tD(te),F(!p);};return f.createElement("span",{onMouseDown:ee},L({label:K,value:j,index:J?.index,disabled:Q,closable:_,onClose:B,isMaxTag:!!Y}))},k=(j,K)=>{const{disabled:Q,label:_,value:B}=j,Y=!d&&!Q;let J=_;if(typeof w=="number"&&(typeof _=="string"||typeof _=="number")){const te=String(J);te.length>w&&(J=`${te.slice(0,w)}...`);}const ee=te=>{te&&te.stopPropagation(),U(j);};return typeof L=="function"?z(B,J,Q,Y,ee,void 0,K):W(j,J,Q,Y,ee)},G=j=>{if(!o.length)return null;const K=typeof D=="function"?D(j):D;return typeof L=="function"?z(void 0,K,false,false,void 0,true):W({title:K},K,false)};return f.createElement(Fa,{prefixCls:`${r}-content`,className:M?.content,style:T?.content,prefix:!o.length&&!N&&f.createElement(n7,null),data:o,renderItem:k,renderRest:G,suffix:f.createElement(t7,P2({ref:n,disabled:d,readOnly:!P},t,{value:N||"",syncWidth:true})),itemKey:lle,maxCount:E})}),ule=f.forwardRef(function(t,n){const{multiple:r,onInputKeyDown:o,tabIndex:i}=Sg(),s=Gu(),{showSearch:l}=s,d={...$o(s,{aria:true}),onKeyDown:o,readOnly:!l,tabIndex:i};return r?f.createElement(cle,{ref:n,inputProps:d}):f.createElement(ele,{ref:n,inputProps:d})});function dle(e){return e&&![st.ESC,st.SHIFT,st.BACKSPACE,st.TAB,st.WIN_KEY,st.ALT,st.META,st.WIN_KEY_RIGHT,st.CTRL,st.SEMICOLON,st.EQUALS,st.CAPS_LOCK,st.CONTEXT_MENU,st.UP,st.LEFT,st.RIGHT,st.F1,st.F2,st.F3,st.F4,st.F5,st.F6,st.F7,st.F8,st.F9,st.F10,st.F11,st.F12].includes(e)}function my(){return my=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},my.apply(this,arguments)}const fle=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],mle=f.forwardRef(function(t,n){const{prefixCls:r,className:o,style:i,prefix:s,suffix:l,clearIcon:u,children:d,multiple:m,displayValues:p,placeholder:g,mode:b,searchValue:y,onSearch:S,onSearchSubmit:C,onInputBlur:w,maxLength:E,autoFocus:M,onMouseDown:T,onClearMouseDown:A,onInputKeyDown:I,onSelectorRemove:N,tokenWithEnter:P,components:O,...D}=t,{triggerOpen:L,toggleOpen:F,showSearch:U,disabled:W,loading:z,classNames:k,styles:G}=Gu(),j=f.useRef(null),K=f.useRef(null),Q=Mt(re=>{const{which:ie}=re,de=K.current instanceof HTMLTextAreaElement;if(!de&&L&&(ie===st.UP||ie===st.DOWN)&&re.preventDefault(),I&&I(re),de&&!L&&~[st.UP,st.DOWN,st.LEFT,st.RIGHT].indexOf(ie))return;!(re.ctrlKey||re.altKey||re.metaKey)&&dle(ie)&&F(true);});f.useImperativeHandle(n,()=>({focus:re=>{(K.current||j.current).focus?.(re);},blur:()=>{(K.current||j.current).blur?.();},nativeElement:Iu(j.current)}));const _=Mt(re=>{if(!W){const ie=Iu(K.current);re.nativeEvent._ori_target=ie;const de=ie===re.target||ie?.contains(re.target);ie&&!de&&re.preventDefault();const ce=L&&!m&&(b==="combobox"||U)||L&&m&&de;re.nativeEvent._select_lazy?L&&F(false):(K.current?.focus(),ce||F());}T?.(re);}),{root:B}=O,Y=kn(D,fle),J=$o(Y,{aria:true}),ee=Object.keys(J),te={...t,onInputKeyDown:Q};if(B){const re=B.props||{},ie={...re,...Y};return Object.keys(re).forEach(de=>{const ne=re[de],ae=Y[de];typeof ne=="function"&&typeof ae=="function"&&(ie[de]=(...ce)=>{ae(...ce),ne(...ce);});}),f.isValidElement(B)?f.cloneElement(B,{...ie,ref:Yr(B.ref,j)}):f.createElement(B,my({},ie,{ref:j}))}return f.createElement(e7.Provider,{value:te},f.createElement("div",my({},kn(Y,ee),{ref:j,className:o,style:i,onMouseDown:_}),f.createElement(Sw,{className:X(`${r}-prefix`,k?.prefix),style:G?.prefix},s),f.createElement(ule,{ref:K}),f.createElement(Sw,{className:X(`${r}-suffix`,{[`${r}-suffix-loading`]:z},k?.suffix),style:G?.suffix},l),u&&f.createElement(Sw,{className:X(`${r}-clear`,k?.clear),style:G?.clear,onMouseDown:re=>{re.nativeEvent._select_lazy=true,A?.(re);}},u),d))});function hle(e,t,n){return f.useMemo(()=>{let{root:r,input:o}=e||{};return n&&(r=n()),t&&(o=t()),{root:r,input:o}},[e,t,n])}function I2(){return I2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},I2.apply(this,arguments)}const O2=e=>e==="tags"||e==="multiple",ple=f.forwardRef((e,t)=>{const{id:n,prefixCls:r,className:o,styles:i,classNames:s,showSearch:l,tagRender:u,showScrollBar:d="optional",direction:m,omitDomProps:p,displayValues:g,onDisplayValuesChange:b,emptyOptions:y,notFoundContent:S="Not Found",onClear:C,maxCount:w,placeholder:E,mode:M,disabled:T,loading:A,getInputElement:I,getRawInputElement:N,open:P,defaultOpen:O,onPopupVisibleChange:D,activeValue:L,onActiveValueChange:F,activeDescendantId:U,searchValue:W,autoClearSearchValue:z,onSearch:k,onSearchSplit:G,tokenSeparators:j,allowClear:K,prefix:Q,suffix:_,suffixIcon:B,clearIcon:Y,OptionList:J,animation:ee,transitionName:te,popupStyle:re,popupClassName:ie,popupMatchSelectWidth:de,popupRender:ne,popupAlign:ae,placement:ce,builtinPlacements:se,getPopupContainer:$e,showAction:le=[],onFocus:pe,onBlur:be,onKeyUp:Ce,onKeyDown:Ae,onMouseDown:Ye,components:Re,...fe}=e,ve=O2(M),Ne=f.useRef(null),He=f.useRef(null),Ge=f.useRef(null),[je,rt]=f.useState(false);f.useImperativeHandle(t,()=>({focus:Ne.current?.focus,blur:Ne.current?.blur,scrollTo:We=>Ge.current?.scrollTo(We),nativeElement:Iu(Ne.current)}));const ot=hle(Re,I,N),Ke=f.useMemo(()=>{if(M!=="combobox")return W;const We=g[0]?.value;return typeof We=="string"||typeof We=="number"?String(We):""},[W,M,g]),De=M==="combobox"&&typeof I=="function"&&I()||null,qe=!S&&y,[Je,Be,Ie,lt]=Qae(O||false,P,D,We=>T||qe?false:We),Dt=f.useMemo(()=>(j||[]).some(We=>[`
`,`\r
`].includes(We)),[j]),pt=(We,ft,Rt)=>{if(ve&&T2(w)&&g.length>=w)return;let Ut=true,en=We;F?.(null);const nn=Kae(We,j,T2(w)?w-g.length:void 0),Nn=Rt?null:nn;return M!=="combobox"&&Nn&&(en="",G?.(Nn),Ie(false),Ut=false),k&&Ke!==en&&k(en,{source:ft?"typing":"effect"}),We&&ft&&Ut&&Ie(true),Ut},Lt=We=>{!We||!We.trim()||k(We,{source:"submit"});};f.useEffect(()=>{!Je&&!ve&&M!=="combobox"&&pt("",false,false);},[Je]),f.useEffect(()=>{T&&(Ie(false),rt(false));},[T,Be]);const[xt,Pt]=Vae(),ut=f.useRef(false),ct=We=>{const ft=xt(),{key:Rt}=We,Ut=Rt==="Enter",en=Rt===" ";if(Ut||en){const nn=M==="combobox";(en&&!(nn||l)||Ut&&!nn)&&We.preventDefault(),Be||Ie(true);}if(Pt(!!Ke),Rt==="Backspace"&&!ft&&ve&&!Ke&&g.length){const nn=[...g];let Nn=null;for(let ir=nn.length-1;ir>=0;ir-=1){const Sn=nn[ir];if(!Sn.disabled){nn.splice(ir,1),Nn=Sn;break}}Nn&&b(nn,{type:"remove",values:[Nn]});}Be&&(!Ut||!ut.current)&&!en&&(Ut&&(ut.current=true),Ge.current?.onKeyDown(We)),Ae?.(We);},bt=(We,...ft)=>{Be&&Ge.current?.onKeyUp(We,...ft),We.key==="Enter"&&(ut.current=false),Ce?.(We,...ft);},Fe=Mt(We=>{const ft=g.filter(Rt=>Rt!==We);b(ft,{type:"remove",values:[We]});}),Ue=()=>{ut.current=false;},ye=()=>[Iu(Ne.current),He.current?.getPopupElement()];jae(ye,Be,Ie,!!ot.root);const Me=f.useRef(false),Se=We=>{rt(true),T||(le.includes("focus")&&Ie(true),pe?.(We));},he=()=>{Be&&!Me.current&&Ie(false,{cancelFun:()=>ZF(ye(),document.activeElement)});},Oe=We=>{rt(false),Ke&&(M==="tags"?k(Ke,{source:"submit"}):M==="multiple"&&k("",{source:"blur"})),he(),T||be?.(We);},xe=(We,...ft)=>{const{target:Rt}=We;He.current?.getPopupElement()?.contains(Rt)&&Ie&&Ie(true),Ye?.(We,...ft),Me.current=true,YT(()=>{Me.current=false;});},[,ke]=f.useState({});function Xe(){ke({});}let it;ot.root&&(it=We=>{Ie(We);});const dt=f.useMemo(()=>({...e,notFoundContent:S,open:Be,triggerOpen:Be,rawOpen:Je,id:n,showSearch:l,multiple:ve,toggleOpen:Ie,showScrollBar:d,styles:i,classNames:s,lockOptions:lt}),[e,S,Ie,n,l,ve,Be,Je,d,i,s,lt]),Et=f.useMemo(()=>{const We=_??B;return typeof We=="function"?We({searchValue:Ke,open:Be,focused:je,showSearch:l,loading:A}):We},[_,B,Ke,Be,je,l,A]),Tt=()=>{C?.(),Ne.current?.focus(),b([],{type:"clear",values:g}),pt("",false,false);},{allowClear:At,clearIcon:yn}=Hae(r,g,K,Y,T,Ke,M),Un=f.createElement(J,{ref:Ge}),et=X(r,o,{[`${r}-focused`]:je,[`${r}-multiple`]:ve,[`${r}-single`]:!ve,[`${r}-allow-clear`]:At,[`${r}-show-arrow`]:Et!=null,[`${r}-disabled`]:T,[`${r}-loading`]:A,[`${r}-open`]:Be,[`${r}-customize-input`]:De,[`${r}-show-search`]:l});let Qe=f.createElement(mle,I2({},fe,{ref:Ne,prefixCls:r,className:et,focused:je,prefix:Q,suffix:Et,clearIcon:yn,multiple:ve,mode:M,displayValues:g,placeholder:E,searchValue:Ke,activeValue:L,onSearch:pt,onSearchSubmit:Lt,onInputBlur:Ue,onFocus:Se,onBlur:Oe,onClearMouseDown:Tt,onKeyDown:ct,onKeyUp:bt,onSelectorRemove:Fe,tokenWithEnter:Dt,onMouseDown:xe,components:ot}));return Qe=f.createElement(Gae,{ref:He,disabled:T,prefixCls:r,visible:Be,popupElement:Un,animation:ee,transitionName:te,popupStyle:re,popupClassName:ie,direction:m,popupMatchSelectWidth:de,popupRender:ne,popupAlign:ae,placement:ce,builtinPlacements:se,getPopupContainer:$e,empty:y,onPopupVisibleChange:it,onPopupMouseEnter:Xe,onPopupMouseDown:xe,onPopupBlur:he},Qe),f.createElement(QF.Provider,{value:dt},f.createElement(Yae,{visible:je&&!Be,values:g}),Qe)}),QT=()=>null;QT.isSelectOptGroup=true;const ZT=()=>null;ZT.isSelectOption=true;const a7=f.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:o,onInnerResize:i,innerProps:s,rtl:l,extra:u},d)=>{let m={},p={display:"flex",flexDirection:"column"};return t!==void 0&&(m={height:e,position:"relative",overflow:"hidden"},p={...p,transform:`translateY(${t}px)`,[l?"marginRight":"marginLeft"]:-n,position:"absolute",left:0,right:0,top:0}),f.createElement("div",{style:m},f.createElement(ys,{onResize:({offsetHeight:g})=>{g&&i&&i();}},f.createElement("div",dr({style:p,className:X({[`${o}-holder-inner`]:o}),ref:d},s),r,u)))});a7.displayName="Filler";function gle({children:e,setRef:t}){const n=f.useCallback(r=>{t(r);},[]);return f.cloneElement(e,{ref:n})}function vle(e,t,n,r,o,i,s,{getKey:l}){return e.slice(t,n+1).map((u,d)=>{const m=t+d,p=s(u,m,{style:{width:r},offsetX:o}),g=l(u);return f.createElement(gle,{key:g,setRef:b=>i(u,b)},p)})}function ble(e,t,n){const r=e.length,o=t.length;let i,s;if(r===0&&o===0)return null;r<o?(i=e,s=t):(i=t,s=e);const l={__EMPTY_ITEM__:true};function u(p){return p!==void 0?n(p):l}let d=null,m=Math.abs(r-o)!==1;for(let p=0;p<s.length;p+=1){const g=u(i[p]),b=u(s[p]);if(g!==b){d=p,m=m||g!==u(s[p+1]);break}}return d===null?null:{index:d,multiple:m}}function yle(e,t,n){const[r,o]=f.useState(e),[i,s]=f.useState(null);return f.useEffect(()=>{const l=ble(r||[],e||[],t);l?.index!==void 0&&s(e[l.index]),o(e);},[e]),[i]}const nD=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),l7=((e,t,n,r)=>{const o=f.useRef(false),i=f.useRef(null);function s(){clearTimeout(i.current),o.current=true,i.current=setTimeout(()=>{o.current=false;},50);}const l=f.useRef({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,(u,d,m=false)=>{const p=u?d<0&&l.current.left||d>0&&l.current.right:d<0&&l.current.top||d>0&&l.current.bottom;return m&&p?(clearTimeout(i.current),o.current=false):(!p||o.current)&&s(),!o.current&&p}});function Sle(e,t,n,r,o,i,s){const l=f.useRef(0),u=f.useRef(null),d=f.useRef(null),m=f.useRef(false),p=l7(t,n,r,o);function g(E,M){if(_t.cancel(u.current),p(false,M))return;const T=E;if(!T._virtualHandled)T._virtualHandled=true;else return;l.current+=M,d.current=M,nD||T.preventDefault(),u.current=_t(()=>{const A=m.current?10:1;s(l.current*A,false),l.current=0;});}function b(E,M){s(M,true),nD||E.preventDefault();}const y=f.useRef(null),S=f.useRef(null);function C(E){if(!e)return;_t.cancel(S.current),S.current=_t(()=>{y.current=null;},2);const{deltaX:M,deltaY:T,shiftKey:A}=E;let I=M,N=T;(y.current==="sx"||!y.current&&A&&T&&!M)&&(I=T,N=0,y.current="sx");const P=Math.abs(I),O=Math.abs(N);y.current===null&&(y.current=i&&P>O?"x":"y"),y.current==="y"?g(E,N):b(E,I);}function w(E){e&&(m.current=E.detail===d.current);}return [C,w]}function Cle(e,t,n,r){const[o,i]=f.useMemo(()=>[new Map,[]],[e,n.id,r]);return (l,u=l)=>{let d=o.get(l),m=o.get(u);if(d===void 0||m===void 0){const p=e.length;for(let g=i.length;g<p;g+=1){const b=e[g],y=t(b);o.set(y,g);const S=n.get(y)??r;if(i[g]=(i[g-1]||0)+S,y===l&&(d=g),y===u&&(m=g),d!==void 0&&m!==void 0)break}}return {top:i[d-1]||0,bottom:i[m]}}}class xle{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null);}set(t,n){this.diffRecords.set(t,this.maps[t]),this.maps[t]=n,this.id+=1;}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear();}getRecord(){return this.diffRecords}}function rD(e){const t=parseFloat(e);return isNaN(t)?0:t}function wle(e,t,n){const[r,o]=f.useState(0),i=f.useRef(new Map),s=f.useRef(new xle),l=f.useRef(0);function u(){l.current+=1;}function d(p=false){u();const g=()=>{let b=false;i.current.forEach((y,S)=>{if(y&&y.offsetParent){const{offsetHeight:C}=y,{marginTop:w,marginBottom:E}=getComputedStyle(y),M=rD(w),T=rD(E),A=C+M+T;s.current.get(S)!==A&&(s.current.set(S,A),b=true);}}),b&&o(y=>y+1);};if(p)g();else {l.current+=1;const b=l.current;Promise.resolve().then(()=>{b===l.current&&g();});}}function m(p,g){const b=e(p);i.current.get(b),g?(i.current.set(b,g),d()):i.current.delete(b);}return f.useEffect(()=>u,[]),[m,d,s.current,r]}const oD=14/15;function Ele(e,t,n){const r=f.useRef(false),o=f.useRef(0),i=f.useRef(0),s=f.useRef(null),l=f.useRef(null);let u;const d=g=>{if(r.current){const b=Math.ceil(g.touches[0].pageX),y=Math.ceil(g.touches[0].pageY);let S=o.current-b,C=i.current-y;const w=Math.abs(S)>Math.abs(C);w?o.current=b:i.current=y;const E=n(w,w?S:C,false,g);E&&g.preventDefault(),clearInterval(l.current),E&&(l.current=setInterval(()=>{w?S*=oD:C*=oD;const M=Math.floor(w?S:C);(!n(w,M,true)||Math.abs(M)<=.1)&&clearInterval(l.current);},16));}},m=()=>{r.current=false,u();},p=g=>{u(),g.touches.length===1&&!r.current&&(r.current=true,o.current=Math.ceil(g.touches[0].pageX),i.current=Math.ceil(g.touches[0].pageY),s.current=g.target,s.current.addEventListener("touchmove",d,{passive:false}),s.current.addEventListener("touchend",m,{passive:true}));};u=()=>{s.current&&(s.current.removeEventListener("touchmove",d),s.current.removeEventListener("touchend",m));},Rn(()=>(e&&t.current.addEventListener("touchstart",p,{passive:true}),()=>{t.current?.removeEventListener("touchstart",p),u(),clearInterval(l.current);}),[e]);}function iD(e){return Math.floor(e**.5)}function D2(e,t){return ("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function $le(e,t,n){f.useEffect(()=>{const r=t.current;if(e&&r){let o=false,i,s;const l=()=>{_t.cancel(i);},u=()=>{l(),i=_t(()=>{n(s),u();});},d=()=>{o=false,l();},m=g=>{if(g.target.draggable||g.button!==0)return;const b=g;b._virtualHandled||(b._virtualHandled=true,o=true);},p=g=>{if(o){const b=D2(g,false),{top:y,bottom:S}=r.getBoundingClientRect();if(b<=y){const C=y-b;s=-iD(C),u();}else if(b>=S){const C=b-S;s=iD(C),u();}else l();}};return r.addEventListener("mousedown",m),r.ownerDocument.addEventListener("mouseup",d),r.ownerDocument.addEventListener("mousemove",p),r.ownerDocument.addEventListener("dragend",d),()=>{r.removeEventListener("mousedown",m),r.ownerDocument.removeEventListener("mouseup",d),r.ownerDocument.removeEventListener("mousemove",p),r.ownerDocument.removeEventListener("dragend",d),l();}}},[e]);}const Mle=10;function Tle(e,t,n,r,o,i,s,l){const u=f.useRef(),[d,m]=f.useState(null);return Rn(()=>{if(d&&d.times<Mle){if(!e.current){m(M=>({...M}));return}i();const{targetAlign:p,originAlign:g,index:b,offset:y}=d,S=e.current.clientHeight;let C=false,w=p,E=null;if(S){const M=p||g;let T=0,A=0,I=0;const N=Math.min(t.length-1,b);for(let O=0;O<=N;O+=1){const D=o(t[O]);A=T;const L=n.get(D);I=A+(L===void 0?r:L),T=I;}let P=M==="top"?y:S-y;for(let O=N;O>=0;O-=1){const D=o(t[O]),L=n.get(D);if(L===void 0){C=true;break}if(P-=L,P<=0)break}switch(M){case "top":E=A-y;break;case "bottom":E=I-S+y;break;default:{const{scrollTop:O}=e.current,D=O+S;A<O?w="top":I>D&&(w="bottom");}}E!==null&&s(E),E!==d.lastTop&&(C=true);}C&&m({...d,times:d.times+1,targetAlign:w,lastTop:E});}},[d,e.current]),p=>{if(p==null){l();return}if(_t.cancel(u.current),typeof p=="number")s(p);else if(p&&typeof p=="object"){let g;const{align:b}=p;"index"in p?{index:g}=p:g=t.findIndex(S=>o(S)===p.key);const{offset:y=0}=p;m({times:0,index:g,offset:y,originAlign:b});}}}const sD=f.forwardRef((e,t)=>{const{prefixCls:n,rtl:r,scrollOffset:o,scrollRange:i,onStartMove:s,onStopMove:l,onScroll:u,horizontal:d,spinSize:m,containerSize:p,style:g,thumbStyle:b,showScrollBar:y}=e,[S,C]=f.useState(false),[w,E]=f.useState(null),[M,T]=f.useState(null),A=!r,I=f.useRef(),N=f.useRef(),[P,O]=f.useState(y),D=f.useRef(),L=()=>{y===true||y===false||(clearTimeout(D.current),O(true),D.current=setTimeout(()=>{O(false);},3e3));},F=i-p||0,U=p-m||0,W=f.useMemo(()=>o===0||F===0?0:o/F*U,[o,F,U]),z=Y=>{Y.stopPropagation(),Y.preventDefault();},k=f.useRef({top:W,dragging:S,pageY:w,startTop:M});k.current={top:W,dragging:S,pageY:w,startTop:M};const G=Y=>{C(true),E(D2(Y,d)),T(k.current.top),s(),Y.stopPropagation(),Y.preventDefault();};f.useEffect(()=>{const Y=te=>{te.preventDefault();},J=I.current,ee=N.current;return J.addEventListener("touchstart",Y,{passive:false}),ee.addEventListener("touchstart",G,{passive:false}),()=>{J.removeEventListener("touchstart",Y),ee.removeEventListener("touchstart",G);}},[]);const j=f.useRef();j.current=F;const K=f.useRef();K.current=U,f.useEffect(()=>{if(S){let Y;const J=te=>{const{dragging:re,pageY:ie,startTop:de}=k.current;_t.cancel(Y);const ne=I.current.getBoundingClientRect(),ae=p/(d?ne.width:ne.height);if(re){const ce=(D2(te,d)-ie)*ae;let se=de;!A&&d?se-=ce:se+=ce;const $e=j.current,le=K.current,pe=le?se/le:0;let be=Math.ceil(pe*$e);be=Math.max(be,0),be=Math.min(be,$e),Y=_t(()=>{u(be,d);});}},ee=()=>{C(false),l();};return window.addEventListener("mousemove",J,{passive:true}),window.addEventListener("touchmove",J,{passive:true}),window.addEventListener("mouseup",ee,{passive:true}),window.addEventListener("touchend",ee,{passive:true}),()=>{window.removeEventListener("mousemove",J),window.removeEventListener("touchmove",J),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),_t.cancel(Y);}}},[S]),f.useEffect(()=>(L(),()=>{clearTimeout(D.current);}),[o]),f.useImperativeHandle(t,()=>({delayHidden:L}));const Q=`${n}-scrollbar`,_={position:"absolute",visibility:P?null:"hidden"},B={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return d?(Object.assign(_,{height:8,left:0,right:0,bottom:0}),Object.assign(B,{height:"100%",width:m,[A?"left":"right"]:W})):(Object.assign(_,{width:8,top:0,bottom:0,[A?"right":"left"]:0}),Object.assign(B,{width:"100%",height:m,top:W})),f.createElement("div",{ref:I,className:X(Q,{[`${Q}-horizontal`]:d,[`${Q}-vertical`]:!d,[`${Q}-visible`]:P}),style:{..._,...g},onMouseDown:z,onMouseMove:L},f.createElement("div",{ref:N,className:X(`${Q}-thumb`,{[`${Q}-thumb-moving`]:S}),style:{...B,...b},onMouseDown:G}))}),Ale=20;function aD(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Ale),Math.floor(n)}const Rle=[],Nle={overflowY:"auto",overflowAnchor:"none"};function Ple(e,t){const{prefixCls:n="rc-virtual-list",className:r,height:o,itemHeight:i,fullHeight:s=true,style:l,data:u,children:d,itemKey:m,virtual:p,direction:g,scrollWidth:b,component:y="div",onScroll:S,onVirtualScroll:C,onVisibleChange:w,innerProps:E,extraRender:M,styles:T,showScrollBar:A="optional",...I}=e,N=f.useCallback(Se=>typeof m=="function"?m(Se):Se?.[m],[m]),[P,O,D,L]=wle(N),F=!!(p!==false&&o&&i),U=f.useMemo(()=>Object.values(D.maps).reduce((Se,he)=>Se+he,0),[D.id,D.maps]),W=F&&u&&(Math.max(i*u.length,U)>o||!!b),z=g==="rtl",k=X(n,{[`${n}-rtl`]:z},r),G=u||Rle,j=f.useRef(),K=f.useRef(),Q=f.useRef(),[_,B]=f.useState(0),[Y,J]=f.useState(0),[ee,te]=f.useState(false),re=()=>{te(true);},ie=()=>{te(false);},de={getKey:N};function ne(Se){B(he=>{let Oe;typeof Se=="function"?Oe=Se(he):Oe=Se;const xe=je(Oe);return j.current.scrollTop=xe,xe});}const ae=f.useRef({start:0,end:G.length}),ce=f.useRef(),[se]=yle(G,N);ce.current=se;const{scrollHeight:$e,start:le,end:pe,offset:be}=f.useMemo(()=>{if(!F)return {scrollHeight:void 0,start:0,end:G.length-1,offset:void 0};if(!W)return {scrollHeight:K.current?.offsetHeight||0,start:0,end:G.length-1,offset:void 0};let Se=0,he,Oe,xe;const ke=G.length;for(let Xe=0;Xe<ke;Xe+=1){const it=G[Xe],dt=N(it),Et=D.get(dt),Tt=Se+(Et===void 0?i:Et);Tt>=_&&he===void 0&&(he=Xe,Oe=Se),Tt>_+o&&xe===void 0&&(xe=Xe),Se=Tt;}return he===void 0&&(he=0,Oe=0,xe=Math.ceil(o/i)),xe===void 0&&(xe=G.length-1),xe=Math.min(xe+1,G.length-1),{scrollHeight:Se,start:he,end:xe,offset:Oe}},[W,F,_,G,L,o]);ae.current.start=le,ae.current.end=pe,f.useLayoutEffect(()=>{const Se=D.getRecord();if(Se.size===1){const he=Array.from(Se.keys())[0],Oe=Se.get(he),xe=G[le];if(xe&&Oe===void 0&&N(xe)===he){const it=D.get(he)-i;ne(dt=>dt+it);}}D.resetRecord();},[$e]);const[Ce,Ae]=f.useState({width:0,height:o}),Ye=Se=>{Ae({width:Se.offsetWidth,height:Se.offsetHeight});},Re=f.useRef(),fe=f.useRef(),ve=f.useMemo(()=>aD(Ce.width,b),[Ce.width,b]),Ne=f.useMemo(()=>aD(Ce.height,$e),[Ce.height,$e]),He=$e-o,Ge=f.useRef(He);Ge.current=He;function je(Se){let he=Se;return Number.isNaN(Ge.current)||(he=Math.min(he,Ge.current)),he=Math.max(he,0),he}const rt=_<=0,ot=_>=He,Ke=Y<=0,De=Y>=b,qe=l7(rt,ot,Ke,De),Je=()=>({x:z?-Y:Y,y:_}),Be=f.useRef(Je()),Ie=Mt(Se=>{if(C){const he={...Je(),...Se};(Be.current.x!==he.x||Be.current.y!==he.y)&&(C(he),Be.current=he);}});function lt(Se,he){const Oe=Se;he?(No.flushSync(()=>{J(Oe);}),Ie()):ne(Oe);}function Dt(Se){const{scrollTop:he}=Se.currentTarget;he!==_&&ne(he),S?.(Se),Ie();}const pt=Se=>{let he=Se;const Oe=b?b-Ce.width:0;return he=Math.max(he,0),he=Math.min(he,Oe),he},Lt=Mt((Se,he)=>{he?(No.flushSync(()=>{J(Oe=>{const xe=Oe+(z?-Se:Se);return pt(xe)});}),Ie()):ne(Oe=>Oe+Se);}),[xt,Pt]=Sle(F,rt,ot,Ke,De,!!b,Lt);Ele(F,j,(Se,he,Oe,xe)=>{const ke=xe;return qe(Se,he,Oe)?false:!ke||!ke._virtualHandled?(ke&&(ke._virtualHandled=true),xt({preventDefault(){},deltaX:Se?he:0,deltaY:Se?0:he}),true):false}),$le(W,j,Se=>{ne(he=>he+Se);}),Rn(()=>{function Se(Oe){const xe=rt&&Oe.detail<0,ke=ot&&Oe.detail>0;F&&!xe&&!ke&&Oe.preventDefault();}const he=j.current;return he.addEventListener("wheel",xt,{passive:false}),he.addEventListener("DOMMouseScroll",Pt,{passive:true}),he.addEventListener("MozMousePixelScroll",Se,{passive:false}),()=>{he.removeEventListener("wheel",xt),he.removeEventListener("DOMMouseScroll",Pt),he.removeEventListener("MozMousePixelScroll",Se);}},[F,rt,ot]),Rn(()=>{if(b){const Se=pt(Y);J(Se),Ie({x:Se});}},[Ce.width,b]);const ut=()=>{Re.current?.delayHidden(),fe.current?.delayHidden();},ct=Tle(j,G,D,i,N,()=>O(true),ne,ut);f.useImperativeHandle(t,()=>({nativeElement:Q.current,getScrollInfo:Je,scrollTo:Se=>{function he(Oe){return Oe&&typeof Oe=="object"&&("left"in Oe||"top"in Oe)}he(Se)?(Se.left!==void 0&&J(pt(Se.left)),ct(Se.top)):ct(Se);}})),Rn(()=>{if(w){const Se=G.slice(le,pe+1);w(Se,G);}},[le,pe,G]);const bt=Cle(G,N,D,i),Fe=M?.({start:le,end:pe,virtual:W,offsetX:Y,offsetY:be,rtl:z,getSize:bt}),Ue=vle(G,le,pe,b,Y,P,d,de);let ye=null;o&&(ye={[s?"height":"maxHeight"]:o,...Nle},F&&(ye.overflowY="hidden",b&&(ye.overflowX="hidden"),ee&&(ye.pointerEvents="none")));const Me={};return z&&(Me.dir="rtl"),f.createElement("div",dr({ref:Q,style:{...l,position:"relative"},className:k},Me,I),f.createElement(ys,{onResize:Ye},f.createElement(y,{className:`${n}-holder`,style:ye,ref:j,onScroll:Dt,onMouseEnter:ut},f.createElement(a7,{prefixCls:n,height:$e,offsetX:Y,offsetY:be,scrollWidth:b,onInnerResize:O,ref:K,innerProps:E,rtl:z,extra:Fe},Ue))),W&&$e>o&&f.createElement(sD,{ref:Re,prefixCls:n,scrollOffset:_,scrollRange:$e,rtl:z,onScroll:lt,onStartMove:re,onStopMove:ie,spinSize:Ne,containerSize:Ce.height,style:T?.verticalScrollBar,thumbStyle:T?.verticalScrollBarThumb,showScrollBar:A}),W&&b>Ce.width&&f.createElement(sD,{ref:fe,prefixCls:n,scrollOffset:Y,scrollRange:b,rtl:z,onScroll:lt,onStartMove:re,onStopMove:ie,spinSize:ve,containerSize:Ce.width,horizontal:true,style:T?.horizontalScrollBar,thumbStyle:T?.horizontalScrollBarThumb,showScrollBar:A}))}const c7=f.forwardRef(Ple);c7.displayName="List";function Ile(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}function Qh(){return Qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Qh.apply(this,arguments)}function lD(e){return typeof e=="string"||typeof e=="number"}const Ole=(e,t)=>{const{prefixCls:n,id:r,open:o,multiple:i,mode:s,searchValue:l,toggleOpen:u,notFoundContent:d,onPopupScroll:m,showScrollBar:p,lockOptions:g}=Gu(),{maxCount:b,flattenOptions:y,onActiveValue:S,defaultActiveFirstOption:C,onSelect:w,menuItemSelectedIcon:E,rawValues:M,fieldNames:T,virtual:A,direction:I,listHeight:N,listItemHeight:P,optionRender:O,classNames:D,styles:L}=f.useContext(XT),F=`${n}-item`,U=qf(()=>y,[o,g],(ne,ae)=>ae[0]&&!ae[1]),W=f.useRef(null),z=f.useMemo(()=>i&&T2(b)&&M?.size>=b,[i,b,M?.size]),k=ne=>{ne.preventDefault();},G=ne=>{W.current?.scrollTo(typeof ne=="number"?{index:ne}:ne);},j=f.useCallback(ne=>s==="combobox"?false:M.has(ne),[s,[...M].toString(),M.size]),K=(ne,ae=1)=>{const ce=U.length;for(let se=0;se<ce;se+=1){const $e=(ne+se*ae+ce)%ce,{group:le,data:pe}=U[$e]||{};if(!le&&!pe?.disabled&&(j(pe.value)||!z))return $e}return  -1},[Q,_]=f.useState(()=>K(0)),B=(ne,ae=false)=>{_(ne);const ce={source:ae?"keyboard":"mouse"},se=U[ne];if(!se){S(null,-1,ce);return}S(se.value,ne,ce);};f.useEffect(()=>{B(C!==false?K(0):-1);},[U.length,l]);const Y=f.useCallback(ne=>s==="combobox"?String(ne).toLowerCase()===l.toLowerCase():M.has(ne),[s,l,[...M].toString(),M.size]);f.useEffect(()=>{let ne;if(!i&&o&&M.size===1){const ae=Array.from(M)[0],ce=U.findIndex(({data:se})=>l?String(se.value).startsWith(l):se.value===ae);ce!==-1&&(B(ce),ne=setTimeout(()=>{G(ce);}));}return o&&W.current?.scrollTo(void 0),()=>clearTimeout(ne)},[o,l]);const J=ne=>{ne!==void 0&&w(ne,{selected:!M.has(ne)}),i||u(false);};if(f.useImperativeHandle(t,()=>({onKeyDown:ne=>{const{which:ae,ctrlKey:ce}=ne;switch(ae){case st.N:case st.P:case st.UP:case st.DOWN:{let se=0;if(ae===st.UP?se=-1:ae===st.DOWN?se=1:Ile()&&ce&&(ae===st.N?se=1:ae===st.P&&(se=-1)),se!==0){const $e=K(Q+se,se);G($e),B($e,true);}break}case st.TAB:case st.ENTER:{const se=U[Q];if(!se||se.data.disabled)return J(void 0);!z||M.has(se.value)?J(se.value):J(void 0),o&&ne.preventDefault();break}case st.ESC:u(false),o&&ne.stopPropagation();}},onKeyUp:()=>{},scrollTo:ne=>{G(ne);}})),U.length===0)return f.createElement("div",{role:"listbox",id:`${r}_list`,className:`${F}-empty`,onMouseDown:k},d);const ee=Object.keys(T).map(ne=>T[ne]),te=ne=>ne.label;function re(ne,ae){const{group:ce}=ne;return {role:ce?"presentation":"option",id:`${r}_list_${ae}`}}const ie=ne=>{const ae=U[ne];if(!ae)return null;const ce=ae.data||{},{value:se,disabled:$e}=ce,{group:le}=ae,pe=$o(ce,true),be=te(ae);return ae?f.createElement("div",Qh({"aria-label":typeof be=="string"&&!le?be:null},pe,{key:ne},re(ae,ne),{"aria-selected":Y(se),"aria-disabled":$e}),se):null},de={role:"listbox",id:`${r}_list`};return f.createElement(f.Fragment,null,A&&f.createElement("div",Qh({},de,{style:{height:0,width:0,overflow:"hidden"}}),ie(Q-1),ie(Q),ie(Q+1)),f.createElement(c7,{itemKey:"key",ref:W,data:U,height:N,itemHeight:P,fullHeight:false,onMouseDown:k,onScroll:m,virtual:A,direction:I,innerProps:A?null:de,showScrollBar:p,className:D?.popup?.list,style:L?.popup?.list},(ne,ae)=>{const{group:ce,groupOption:se,data:$e,label:le,value:pe}=ne,{key:be}=$e;if(ce){const Je=$e.title??(lD(le)?le.toString():void 0);return f.createElement("div",{className:X(F,`${F}-group`,$e.className),title:Je},le!==void 0?le:be)}const{disabled:Ce,title:Ae,children:Ye,style:Re,className:fe,...ve}=$e,Ne=kn(ve,ee),He=j(pe),Ge=Ce||!He&&z,je=`${F}-option`,rt=X(F,je,fe,D?.popup?.listItem,{[`${je}-grouped`]:se,[`${je}-active`]:Q===ae&&!Ge,[`${je}-disabled`]:Ge,[`${je}-selected`]:He}),ot=te(ne),Ke=!E||typeof E=="function"||He,De=typeof ot=="number"?ot:ot||pe;let qe=lD(De)?De.toString():void 0;return Ae!==void 0&&(qe=Ae),f.createElement("div",Qh({},$o(Ne),A?{}:re(ne,ae),{"aria-selected":A?void 0:Y(pe),"aria-disabled":Ge,className:rt,title:qe,onMouseMove:()=>{Q===ae||Ge||B(ae);},onClick:()=>{Ge||J(pe);},style:{...L?.popup?.listItem,...Re}}),f.createElement("div",{className:`${je}-content`},typeof O=="function"?O(ne,{index:ae}):De),f.isValidElement(E)||He,Ke&&f.createElement(s7,{className:`${F}-option-state`,customizeIcon:E,customizeIconProps:{value:pe,disabled:Ge,isSelected:He}},He?"✓":null))}))},Dle=f.forwardRef(Ole),_le=((e,t)=>{const n=f.useRef({values:new Map,options:new Map}),r=f.useMemo(()=>{const{values:i,options:s}=n.current,l=e.map(m=>m.label===void 0?{...m,label:i.get(m.value)?.label}:m),u=new Map,d=new Map;return l.forEach(m=>{u.set(m.value,m),d.set(m.value,t.get(m.value)||s.get(m.value));}),n.current.values=u,n.current.options=d,l},[e,t]),o=f.useCallback(i=>t.get(i)||n.current.options.get(i),[t]);return [r,o]});function Cw(e,t){return r7(e).join("").toUpperCase().includes(t)}const Lle=((e,t,n,r,o)=>f.useMemo(()=>{if(!n||r===false)return e;const{options:i,label:s,value:l}=t,u=[],d=typeof r=="function",m=n.toUpperCase(),p=d?r:(b,y)=>o&&o.length?o.some(S=>Cw(y[S],m)):y[i]?Cw(y[s!=="children"?s:"label"],m):Cw(y[l],m),g=d?b=>A2(b):b=>b;return e.forEach(b=>{if(b[i]){if(p(n,g(b)))u.push(b);else {const S=b[i].filter(C=>p(n,g(C)));S.length&&u.push({...b,[i]:S});}return}p(n,g(b))&&u.push(b);}),u},[e,r,o,n,t]));function Ble(e){const{key:t,props:{children:n,value:r,...o}}=e;return {key:t,value:r!==void 0?r:t,children:n,...o}}function u7(e,t=false){return ri(e).map((n,r)=>{if(!f.isValidElement(n)||!n.type)return null;const{type:{isSelectOptGroup:o},key:i,props:{children:s,...l}}=n;return t||!o?Ble(n):{key:`__RC_SELECT_GRP__${i===null?r:i}__`,label:i,...l,options:u7(s)}}).filter(n=>n)}const kle=(e,t,n,r,o)=>f.useMemo(()=>{let i=e;!e&&(i=u7(t));const l=new Map,u=new Map,d=(p,g,b)=>{b&&typeof b=="string"&&p.set(g[b],g);},m=(p,g=false)=>{for(let b=0;b<p.length;b+=1){const y=p[b];!y[n.options]||g?(l.set(y[n.value],y),d(u,y,n.label),r.forEach(S=>{d(u,y,S);}),d(u,y,o)):m(y[n.options],true);}};return m(i),{options:i,valueOptions:l,labelOptions:u}},[e,t,n,r,o]);function cD(e){const t=f.useRef();return t.current=e,f.useCallback((...r)=>t.current(...r),[])}function zle(e,t,n){const{filterOption:r,searchValue:o,optionFilterProp:i,filterSort:s,onSearch:l,autoClearSearchValue:u}=t;return f.useMemo(()=>{const d=typeof e=="object",m={filterOption:r,searchValue:o,optionFilterProp:i,filterSort:s,onSearch:l,autoClearSearchValue:u,...d?e:{}};return [d||n==="combobox"||n==="tags"||n==="multiple"&&e===void 0?true:e,m]},[n,e,r,o,i,s,l,u])}function _2(){return _2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},_2.apply(this,arguments)}const Fle=["inputValue"];function Hle(e){return !e||typeof e!="object"}const Vle=f.forwardRef((e,t)=>{const{id:n,mode:r,prefixCls:o="rc-select",backfill:i,fieldNames:s,showSearch:l,searchValue:u,onSearch:d,autoClearSearchValue:m,filterOption:p,optionFilterProp:g,filterSort:b,onSelect:y,onDeselect:S,onActive:C,popupMatchSelectWidth:w=true,optionLabelProp:E,options:M,optionRender:T,children:A,defaultActiveFirstOption:I,menuItemSelectedIcon:N,virtual:P,direction:O,listHeight:D=200,listItemHeight:L=20,labelRender:F,value:U,defaultValue:W,labelInValue:z,onChange:k,maxCount:G,classNames:j,styles:K,...Q}=e,_={searchValue:u,onSearch:d,autoClearSearchValue:m,filterOption:p,optionFilterProp:g,filterSort:b},[B,Y]=zle(l,_,r),{filterOption:J,searchValue:ee,optionFilterProp:te,filterSort:re,onSearch:ie,autoClearSearchValue:de=true}=Y,ne=f.useMemo(()=>te?Array.isArray(te)?te:[te]:[],[te]),ae=Qa(n),ce=O2(r),se=!!(!M&&A),$e=f.useMemo(()=>J===void 0&&r==="combobox"?false:J,[J,r]),le=f.useMemo(()=>JF(s,se),[JSON.stringify(s),se]),[pe,be]=fn("",ee),Ce=pe||"",Ae=kle(M,A,le,ne,E),{valueOptions:Ye,labelOptions:Re,options:fe}=Ae,ve=f.useCallback(xe=>r7(xe).map(Xe=>{let it,dt,Et,Tt;Hle(Xe)?it=Xe:(dt=Xe.label,it=Xe.value);const At=Ye.get(it);return At&&(dt===void 0&&(dt=At?.[E||le.label]),Et=At?.disabled,Tt=At?.title),{label:dt,value:it,key:it,disabled:Et,title:Tt}}),[le,E,Ye]),[Ne,He]=fn(W,U),Ge=f.useMemo(()=>{const ke=ve(ce&&Ne===null?[]:Ne);return r==="combobox"&&Jae(ke[0]?.value)?[]:ke},[Ne,ve,r,ce]),[je,rt]=_le(Ge,Ye),ot=f.useMemo(()=>{if(!r&&je.length===1){const xe=je[0];if(xe.value===null&&(xe.label===null||xe.label===void 0))return []}return je.map(xe=>({...xe,label:(typeof F=="function"?F(xe):xe.label)??xe.value}))},[r,je,F]),Ke=f.useMemo(()=>new Set(je.map(xe=>xe.value)),[je]);f.useEffect(()=>{if(r==="combobox"){const xe=je[0]?.value;be(Zae(xe)?String(xe):"");}},[je]);const De=cD((xe,ke)=>{const Xe=ke??xe;return {[le.value]:xe,[le.label]:Xe}}),qe=f.useMemo(()=>{if(r!=="tags")return fe;const xe=[...fe],ke=Xe=>Ye.has(Xe);return [...je].sort((Xe,it)=>Xe.value<it.value?-1:1).forEach(Xe=>{const it=Xe.value;ke(it)||xe.push(De(it,Xe.label));}),xe},[De,fe,Ye,je,r]),Je=Lle(qe,le,Ce,$e,ne),Be=f.useMemo(()=>{const xe=ke=>ne.length?ne.some(Xe=>ke?.[Xe]===Ce):ke?.value===Ce;return r!=="tags"||!Ce||Je.some(ke=>xe(ke))||Je.some(ke=>ke[le.value]===Ce)?Je:[De(Ce),...Je]},[De,ne,r,Je,Ce,le]),Ie=xe=>[...xe].sort((Xe,it)=>re(Xe,it,{searchValue:Ce})).map(Xe=>Array.isArray(Xe.options)?{...Xe,options:Xe.options.length>0?Ie(Xe.options):Xe.options}:Xe),lt=f.useMemo(()=>re?Ie(Be):Be,[Be,re,Ce]),Dt=f.useMemo(()=>qae(lt,{fieldNames:le,childrenAsData:se}),[lt,le,se]),pt=xe=>{const ke=ve(xe);if(He(ke),k&&(ke.length!==je.length||ke.some((Xe,it)=>je[it]?.value!==Xe?.value))){const Xe=z?ke.map(({label:dt,value:Et})=>({label:dt,value:Et})):ke.map(dt=>dt.value),it=ke.map(dt=>A2(rt(dt.value)));k(ce?Xe:Xe[0],ce?it:it[0]);}},[Lt,xt]=f.useState(null),[Pt,ut]=f.useState(0),ct=I!==void 0?I:r!=="combobox",bt=f.useRef(),Fe=f.useCallback((xe,ke,{source:Xe="keyboard"}={})=>{ut(ke),i&&r==="combobox"&&xe!==null&&Xe==="keyboard"&&xt(String(xe));const it=Promise.resolve().then(()=>{bt.current===it&&C?.(xe);});bt.current=it;},[i,r,C]),Ue=(xe,ke,Xe)=>{const it=()=>{const dt=rt(xe);return [z?{label:dt?.[le.label],value:xe}:xe,A2(dt)]};if(ke&&y){const[dt,Et]=it();y(dt,Et);}else if(!ke&&S&&Xe!=="clear"){const[dt,Et]=it();S(dt,Et);}},ye=cD((xe,ke)=>{let Xe;const it=ce?ke.selected:true;it?Xe=ce?[...je,xe]:[xe]:Xe=je.filter(dt=>dt.value!==xe),pt(Xe),Ue(xe,it),r==="combobox"?xt(""):(!O2||de)&&(be(""),xt(""));}),Me=(xe,ke)=>{pt(xe);const{type:Xe,values:it}=ke;(Xe==="remove"||Xe==="clear")&&it.forEach(dt=>{Ue(dt.value,false,Xe);});},Se=(xe,ke)=>{if(be(xe),xt(null),ke.source==="submit"){const Xe=(xe||"").trim();if(Xe){const it=Array.from(new Set([...Ke,Xe]));pt(it),Ue(Xe,true),be("");}return}ke.source!=="blur"&&(r==="combobox"&&pt(xe),ie?.(xe));},he=xe=>{let ke=xe;r!=="tags"&&(ke=xe.map(it=>Re.get(it)?.value).filter(it=>it!==void 0));const Xe=Array.from(new Set([...Ke,...ke]));pt(Xe),Xe.forEach(it=>{Ue(it,true);});},Oe=f.useMemo(()=>({...Ae,flattenOptions:Dt,onActiveValue:Fe,defaultActiveFirstOption:ct,onSelect:ye,menuItemSelectedIcon:N,rawValues:Ke,fieldNames:le,virtual:P!==false&&w!==false,direction:O,listHeight:D,listItemHeight:L,childrenAsData:se,maxCount:G,optionRender:T,classNames:j,styles:K}),[G,Ae,Dt,Fe,ct,ye,N,Ke,le,P,w,O,D,L,se,T,j,K]);return f.createElement(XT.Provider,{value:Oe},f.createElement(ple,_2({},Q,{id:ae,prefixCls:o,ref:t,omitDomProps:Fle,mode:r,classNames:j,styles:K,displayValues:ot,onDisplayValuesChange:Me,maxCount:G,direction:O,showSearch:B,searchValue:Ce,onSearch:Se,autoClearSearchValue:de,onSearchSplit:he,popupMatchSelectWidth:w,OptionList:Dle,emptyOptions:!Dt.length,activeValue:Lt,activeDescendantId:`${ae}_list_${Pt}`})))}),JT=Vle;JT.Option=ZT;JT.OptGroup=QT;const ic=(e,t,n)=>X({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n}),Jf=(e,t)=>t||e,jle=()=>{const[,e]=Xr(),[t]=Lo("Empty"),r=new dn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return f.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},f.createElement("title",null,t?.description||"Empty"),f.createElement("g",{fill:"none",fillRule:"evenodd"},f.createElement("g",{transform:"translate(24 31.7)"},f.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),f.createElement("path",{fill:"#aeb8c2",d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),f.createElement("path",{fill:"#f5f5f7",d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),f.createElement("path",{fill:"#dce0e6",d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),f.createElement("path",{fill:"#dce0e6",d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),f.createElement("g",{fill:"#fff",transform:"translate(149.7 15.4)"},f.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),f.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},Ule=()=>{const[,e]=Xr(),[t]=Lo("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:s,shadowColor:l,contentColor:u}=f.useMemo(()=>({borderColor:new dn(n).onBackground(i).toHexString(),shadowColor:new dn(r).onBackground(i).toHexString(),contentColor:new dn(o).onBackground(i).toHexString()}),[n,r,o,i]);return f.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},f.createElement("title",null,t?.description||"Empty"),f.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},f.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),f.createElement("g",{fillRule:"nonzero",stroke:s},f.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),f.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:u}))))},Wle=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:s}=e;return {[t]:{marginInline:r,fontSize:i,lineHeight:s,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.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Gle=Wt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=zt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return Wle(o)}),d7=f.createElement(jle,null),f7=f.createElement(Ule,null),qi=e=>{const{className:t,rootClassName:n,prefixCls:r,image:o,description:i,children:s,imageStyle:l,style:u,classNames:d,styles:m,...p}=e,{getPrefixCls:g,direction:b,className:y,style:S,classNames:C,styles:w,image:E}=jt("empty"),M=g("empty",r),[T,A]=Gle(M),[I,N]=qt([C,d],[w,m],{props:e}),[P]=Lo("Empty"),O=typeof i<"u"?i:P?.description,D=typeof O=="string"?O:"empty",L=o??E??d7;let F=null;return typeof L=="string"?F=f.createElement("img",{draggable:false,alt:D,src:L}):F=L,f.createElement("div",{className:X(T,A,M,y,{[`${M}-normal`]:L===f7,[`${M}-rtl`]:b==="rtl"},t,n,I.root),style:{...N.root,...S,...u},...p},f.createElement("div",{className:X(`${M}-image`,I.image),style:{...l,...N.image}},F),O&&f.createElement("div",{className:X(`${M}-description`,I.description),style:N.description},O),s&&f.createElement("div",{className:X(`${M}-footer`,I.footer),style:N.footer},s))};qi.PRESENTED_IMAGE_DEFAULT=d7;qi.PRESENTED_IMAGE_SIMPLE=f7;const m7=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(wt),r=n("empty");switch(t){case "Table":case "List":return q.createElement(qi,{image:qi.PRESENTED_IMAGE_SIMPLE});case "Select":case "TreeSelect":case "Cascader":case "Transfer":case "Mentions":return q.createElement(qi,{image:qi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case "Table.filter":return null;default:return q.createElement(qi,null)}},I1=(e,t,n)=>{const{variant:r,[e]:o}=f.useContext(wt),i=f.useContext(Rse),s=o?.variant;let l;typeof t<"u"?l=t:n===false?l="borderless":l=i??s??r??"outlined";const u=ZJ.includes(l);return [l,u]},qle=e=>{const n={overflow:{adjustX:true,adjustY:true,shiftY:true},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:true};return {bottomLeft:{...n,points:["tl","bl"],offset:[0,4]},bottomRight:{...n,points:["tr","br"],offset:[0,4]},topLeft:{...n,points:["bl","tl"],offset:[0,-4]},topRight:{...n,points:["br","tr"],offset:[0,-4]}}};function Kle(e,t){return e||qle(t)}const uD=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return {position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},Yle=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,u=`${r}-option-selected`;return [{[`${n}-dropdown`]:{...mn(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,[`
          ${o}${l}bottomLeft,
          ${i}${l}bottomLeft
        `]:{animationName:IT},[`
          ${o}${l}topLeft,
          ${i}${l}topLeft,
          ${o}${l}topRight,
          ${i}${l}topRight
        `]:{animationName:DT},[`${s}${l}bottomLeft`]:{animationName:OT},[`
          ${s}${l}topLeft,
          ${s}${l}topRight
        `]:{animationName:_T},"&-hidden":{display:"none"},[r]:{...uD(e),cursor:"pointer",transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...ra},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...uD(e),color:e.colorTextDisabled}},[`${u}:has(+ ${u})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${u}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},rc(e,"slide-up"),rc(e,"slide-down"),ay(e,"move-up"),ay(e,"move-down")]},Xle=e=>{const{componentCls:t}=e;return {[`&${t}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${t}-placeholder`]:{display:"none"},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:"none"}}}}},dD=4,Qle=e=>{const{componentCls:t,calc:n,iconCls:r,paddingXS:o,paddingXXS:i,INTERNAL_FIXED_ITEM_MARGIN:s,lineWidth:l,colorIcon:u,colorIconHover:d,inputPaddingHorizontalBase:m,antCls:p}=e,[g,b]=nr(p,"select");return {"&-multiple":{[g("multi-item-background")]:e.multipleItemBg,[g("multi-item-border-color")]:"transparent",[g("multi-item-border-radius")]:e.borderRadiusSM,[g("multi-item-height")]:e.multipleItemHeight,[g("multi-padding-base")]:`calc((${b("height")} - ${b("multi-item-height")}) / 2)`,[g("multi-padding-vertical")]:`calc(${b("multi-padding-base")} - ${s} - ${l})`,[g("multi-item-padding-horizontal")]:`calc(${m} - ${b("multi-padding-vertical")} - ${l} * 2)`,paddingBlock:b("multi-padding-vertical"),paddingInlineStart:`calc(${b("multi-padding-base")} - ${l})`,[`${t}-prefix`]:{marginInlineStart:b("multi-item-padding-horizontal")},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:b("line-height"),insetInlineStart:b("multi-item-padding-horizontal"),width:`calc(100% - ${b("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:b("font-size")},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${dD}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
          ${t}-content-item-suffix:first-child`]:{marginInlineStart:b("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${b("multi-item-height")} - ${l} * 2)`,border:`${l} solid ${b("multi-item-border-color")}`,display:"flex",marginBlock:s,marginInlineEnd:n(s).mul(2).equal(),background:b("multi-item-background"),borderRadius:b("multi-item-border-radius"),paddingInlineStart:o,paddingInlineEnd:i,transition:["height","line-height","padding"].map(y=>`${y} ${e.motionDurationSlow}`).join(","),"&-content":{...ra,marginInlineEnd:i},"&-remove":{...ju(),display:"inline-flex",alignItems:"center",color:u,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:d}}},[`${t}-input`]:{lineHeight:n(s).mul(2).add(b("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:dD,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[g("multi-item-height")]:e.multipleItemHeightSM,[g("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[g("multi-item-height")]:e.multipleItemHeightLG,[g("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[g("multi-item-border-color")]:e.colorSplit,[g("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[g("multi-item-border-color")]:"transparent"}}}}},xw=(e,t)=>{const{componentCls:n,antCls:r}=e,[o]=nr(r,"select"),{border:i,borderHover:s,borderActive:l,borderOutline:u}=t,d=t.background||e.selectorBg||e.colorBgContainer;return {[o("border-color")]:i,[o("background-color")]:d,[o("color")]:t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{[o("border-color")]:s,[o("background-color")]:t.backgroundHover||d},[`&${n}-focused`]:{[o("border-color")]:l,[o("background-color")]:t.backgroundActive||d,boxShadow:`0 0 0 ${oe(e.controlOutlineWidth)} ${u}`}},[`&${n}-disabled`]:{[o("border-color")]:t.borderDisabled||t.border,[o("background-color")]:t.backgroundDisabled||t.background}}},$b=(e,t,n,r={},o={},i)=>{const{componentCls:s}=e;return {[`&${s}-${t}`]:[xw(e,n),{[`&${s}-status-error`]:xw(e,{...n,color:r.color||e.colorError,...r}),[`&${s}-status-warning`]:xw(e,{...n,color:o.color||e.colorWarning,...o})},i]}},Zle=e=>{const{componentCls:t,fontHeight:n,controlHeight:r,iconCls:o,antCls:i,calc:s}=e,[l,u]=nr(i,"select");return {[t]:[{[l("border-radius")]:e.borderRadius,[l("border-color")]:"#000",[l("border-size")]:e.lineWidth,[l("background-color")]:e.colorBgContainer,[l("font-size")]:e.fontSize,[l("line-height")]:e.lineHeight,[l("font-height")]:n,[l("color")]:e.colorText,[l("height")]:r,[l("padding-horizontal")]:s(e.paddingSM).sub(e.lineWidth).equal(),[l("padding-vertical")]:`calc((${u("height")} - ${u("font-height")}) / 2 - ${u("border-size")})`,...mn(e,true),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:u("border-radius"),borderWidth:u("border-size"),borderStyle:e.lineType,borderColor:u("border-color"),background:u("background-color"),fontSize:u("font-size"),lineHeight:u("line-height"),color:u("color"),paddingInline:u("padding-horizontal"),paddingBlock:u("padding-vertical"),[`${t}-prefix`]:{flex:"none",lineHeight:1},[`${t}-placeholder`]:{...ra,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:s(e.paddingXXS).mul(1.5).equal(),"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{visibility:"inherit"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[o]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[l("height")]:e.controlHeightSM,[l("padding-horizontal")]:s(e.paddingXS).sub(e.lineWidth).equal(),[l("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:u("padding-horizontal")}},"&-lg":{[l("height")]:e.controlHeightLG,[l("font-size")]:e.fontSizeLG,[l("line-height")]:e.lineHeightLG,[l("font-height")]:e.fontHeightLG,[l("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:u("color"),"&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",inset:0,lineHeight:`calc(${u("font-height")} + ${u("padding-vertical")} * 2)`},[`${t}-content`]:{...ra,alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent"},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1}},[`&${t}-open ${t}-content`]:{color:e.colorTextPlaceholder,"&-has-search-value":{color:"transparent"}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},Qle(e),$b(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline}),$b(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),$b(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),$b(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"}),Xle(e)]}},Jle=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:s,paddingXXS:l,controlPaddingHorizontal:u,zIndexPopupBase:d,colorText:m,fontWeightStrong:p,controlItemBgActive:g,controlItemBgHover:b,colorBgContainer:y,colorFillSecondary:S,colorBgContainerDisabled:C,colorTextDisabled:w,colorPrimaryHover:E,colorPrimary:M,controlOutline:T}=e,A=l*2,I=r*2,N=Math.min(o-A,o-I),P=Math.min(i-A,i-I),O=Math.min(s-A,s-I);return {INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:d+50,optionSelectedColor:m,optionSelectedFontWeight:p,optionSelectedBg:g,optionActiveBg:b,optionPadding:`${(o-t*n)/2}px ${u}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:y,clearBg:y,singleItemHeightLG:s,multipleItemBg:S,multipleItemBorderColor:"transparent",multipleItemHeight:N,multipleItemHeightSM:P,multipleItemHeightLG:O,multipleSelectorBgDisabled:C,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:E,activeBorderColor:M,activeOutlineColor:T,selectAffixPadding:l}},ece=e=>{const{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:o}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return {[n]:{...mn(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...ra,[`> ${t}-typography`]:{display:"inline"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:["color","opacity"].map(s=>`${s} ${r} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},tce=e=>{const{componentCls:t}=e;return [{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},ece(e),Yle(e),{[`${t}-rtl`]:{direction:"rtl"}},Qf(e,{focusElCls:`${t}-focused`})]},nce=Wt("Select",(e,{rootPrefixCls:t})=>{const n=zt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [tce(n),Zle(n)]},Jle,{unitless:{optionLineHeight:true,optionSelectedFontWeight:true}});var rce={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"};function L2(){return L2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},L2.apply(this,arguments)}const oce=(e,t)=>f.createElement(Xn,L2({},e,{ref:t,icon:rce})),ice=f.forwardRef(oce);var sce={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"};function B2(){return B2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},B2.apply(this,arguments)}const ace=(e,t)=>f.createElement(Xn,B2({},e,{ref:t,icon:sce})),eA=f.forwardRef(ace);var lce={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"};function k2(){return k2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},k2.apply(this,arguments)}const cce=(e,t)=>f.createElement(Xn,k2({},e,{ref:t,icon:lce})),tA=f.forwardRef(cce);function uce({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,loadingIcon:i,multiple:s,hasFeedback:l,showSuffixIcon:u,feedbackIcon:d,showArrow:m,componentName:p}){const g=t??f.createElement(cg,null),b=w=>e===null&&!l&&!m?null:f.createElement(f.Fragment,null,u!==false&&w,l&&d);let y=null;e!==void 0?y=b(e):o?y=b(i??f.createElement(M1,{spin:true})):y=({open:w,showSearch:E})=>b(w&&E?f.createElement(tA,null):f.createElement(eA,null));let S=null;n!==void 0?S=n:s?S=f.createElement(ice,null):S=null;let C=null;return r!==void 0?C=r:C=f.createElement(Xa,null),{clearIcon:g,suffixIcon:y,itemIcon:S,removeIcon:C}}function dce(e){return q.useMemo(()=>{if(e)return (...t)=>q.createElement(oc,{space:true},e.apply(void 0,t))},[e])}function fce(e,t){return t!==void 0?t:e!==null}const h7="SECRET_COMBOBOX_MODE_DO_NOT_USE",mce=(e,t)=>{const{prefixCls:n,bordered:r,className:o,rootClassName:i,getPopupContainer:s,popupClassName:l,dropdownClassName:u,listHeight:d=256,placement:m,listItemHeight:p,size:g,disabled:b,notFoundContent:y,status:S,builtinPlacements:C,dropdownMatchSelectWidth:w,popupMatchSelectWidth:E,direction:M,style:T,allowClear:A,variant:I,popupStyle:N,dropdownStyle:P,transitionName:O,tagRender:D,maxCount:L,prefix:F,dropdownRender:U,popupRender:W,onDropdownVisibleChange:z,onOpenChange:k,styles:G,classNames:j,...K}=e,{getPopupContainer:Q,getPrefixCls:_,renderEmpty:B,direction:Y,virtual:J,popupMatchSelectWidth:ee,popupOverflow:te}=f.useContext(wt),{showSearch:re,style:ie,styles:de,className:ne,classNames:ae}=jt("select"),[,ce]=Xr(),se=p??ce?.controlHeight,$e=_("select",n),le=_(),pe=M??Y,{compactSize:be,compactItemClassnames:Ce}=Za($e,pe),[Ae,Ye]=I1("select",I,r),Re=Qn($e),[fe,ve]=nce($e,Re),Ne=f.useMemo(()=>{const{mode:ke}=e;if(ke!=="combobox")return ke===h7?"combobox":ke},[e.mode]),He=Ne==="multiple"||Ne==="tags",Ge=fce(e.suffixIcon,e.showArrow),je=E??w??ee,rt=dce(W||U),ot=k||z,{status:Ke,hasFeedback:De,isFormItemInput:qe,feedbackIcon:Je}=f.useContext(Mo),Be=Jf(Ke,S);let Ie;y!==void 0?Ie=y:Ne==="combobox"?Ie=null:Ie=B?.("Select")||f.createElement(m7,{componentName:"Select"});const{suffixIcon:lt,itemIcon:Dt,removeIcon:pt,clearIcon:Lt}=uce({...K,multiple:He,hasFeedback:De,feedbackIcon:Je,showSuffixIcon:Ge,componentName:"Select"}),xt=A===true?{clearIcon:Lt}:A,Pt=kn(K,["suffixIcon","itemIcon"]),ut=br(ke=>g??be??ke),ct=f.useContext(fo),bt=b??ct,Fe={...e,variant:Ae,status:Be,disabled:bt,size:ut},[Ue,ye]=qt([ae,j],[de,G],{props:Fe},{popup:{_default:"root"}}),Me=X(Ue.popup?.root,l,u,{[`${$e}-dropdown-${pe}`]:pe==="rtl"},i,ve,Re,fe),Se={...ye.popup?.root,...N??P},he=X({[`${$e}-lg`]:ut==="large",[`${$e}-sm`]:ut==="small",[`${$e}-rtl`]:pe==="rtl",[`${$e}-${Ae}`]:Ye,[`${$e}-in-form-item`]:qe},ic($e,Be,De),Ce,ne,o,Ue.root,i,ve,Re,fe),Oe=f.useMemo(()=>m!==void 0?m:pe==="rtl"?"bottomRight":"bottomLeft",[m,pe]),[xe]=Wu("SelectLike",ye.popup?.root?.zIndex??Se?.zIndex);return f.createElement(JT,{ref:t,virtual:J,classNames:Ue,styles:ye,showSearch:re,...Pt,style:{...ye.root,...ie,...T},popupMatchSelectWidth:je,transitionName:nc(le,"slide-up",O),builtinPlacements:Kle(C,te),listHeight:d,listItemHeight:se,mode:Ne,prefixCls:$e,placement:Oe,direction:pe,prefix:F,suffixIcon:lt,menuItemSelectedIcon:Dt,removeIcon:pt,allowClear:xt,notFoundContent:Ie,className:he,getPopupContainer:s||Q,popupClassName:Me,disabled:bt,popupStyle:{...ye.popup?.root,...Se,zIndex:xe},maxCount:He?L:void 0,tagRender:He?D:void 0,popupRender:rt,onPopupVisibleChange:ot})},pc=f.forwardRef(mce),hce=KT(pc,"popupAlign");pc.SECRET_COMBOBOX_MODE_DO_NOT_USE=h7;pc.Option=ZT;pc.OptGroup=QT;pc._InternalPanelDoNotUseOrYouWillBeFired=hce;const z2=["xxxl","xxl","xl","lg","md","sm","xs"],pce=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)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),gce=e=>{const t=e,n=[].concat(z2).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),s=`screen${i}Min`,l=`screen${i}`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);if(o<n.length-1){const u=`screen${i}Max`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`);const m=`screen${n[o+1].toUpperCase()}Min`;if(!(t[u]<=t[m]))throw new Error(`${u}<=${m} fails : !(${t[u]}<=${t[m]})`)}}),e},vce=()=>{const[,e]=Xr(),t=pce(gce(e));return q.useMemo(()=>{const n=new Map;let r=-1,o={};return {responsiveMap:t,matchHandlers:{},dispatch(i){return o=i,n.forEach(s=>s(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister();},register(){Object.entries(t).forEach(([i,s])=>{const l=({matches:d})=>{this.dispatch({...o,[i]:d});},u=window.matchMedia(s);typeof u?.addEventListener=="function"&&u.addEventListener("change",l),this.matchHandlers[s]={mql:u,listener:l},l(u);});},unregister(){Object.values(t).forEach(i=>{const s=this.matchHandlers[i];typeof s?.mql?.removeEventListener=="function"&&s.mql.removeEventListener("change",s?.listener);}),n.clear();}}},[t])};function p7(e=true,t={}){const n=f.useRef(t),[,r]=$z(),o=vce();return Rn(()=>{const i=o.subscribe(s=>{n.current=s,e&&r();});return ()=>o.unsubscribe(i)},[]),n.current}const F2=f.createContext({}),bce=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:s,containerSizeLG:l,containerSizeSM:u,textFontSize:d,textFontSizeLG:m,textFontSizeSM:p,iconFontSize:g,iconFontSizeLG:b,iconFontSizeSM:y,borderRadius:S,borderRadiusLG:C,borderRadiusSM:w,lineWidth:E,lineType:M}=e,T=(A,I,N,P)=>({width:A,height:A,borderRadius:"50%",fontSize:I,[`&${n}-square`]:{borderRadius:P},[`&${n}-icon`]:{fontSize:N,[`> ${r}`]:{margin:0}}});return {[n]:{...mn(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${oe(E)} ${M} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"},...T(s,d,g,S),"&-lg":{...T(l,m,b,C)},"&-sm":{...T(u,p,y,w)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}},yce=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return {[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},Sce=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:s,fontSizeHeading3:l,marginXS:u,marginXXS:d,colorBorderBg:m}=e;return {containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:o,textFontSizeLG:o,textFontSizeSM:o,iconFontSize:Math.round((i+s)/2),iconFontSizeLG:l,iconFontSizeSM:o,groupSpace:d,groupOverlapping:-u,groupBorderColor:m}},g7=Wt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=zt(e,{avatarBg:n,avatarColor:t});return [bce(r),yce(r)]},Sce),v7=f.forwardRef((e,t)=>{const{prefixCls:n,shape:r,size:o,src:i,srcSet:s,icon:l,className:u,rootClassName:d,style:m,alt:p,draggable:g,children:b,crossOrigin:y,gap:S=4,onError:C,...w}=e,[E,M]=f.useState(1),[T,A]=f.useState(false),[I,N]=f.useState(true),P=f.useRef(null),O=f.useRef(null),D=Yr(t,P),{getPrefixCls:L,className:F,style:U}=jt("avatar"),W=f.useContext(F2),z=()=>{if(!O.current||!P.current)return;const ae=O.current.offsetWidth,ce=P.current.offsetWidth;ae!==0&&ce!==0&&S*2<ce&&M(ce-S*2<ae?(ce-S*2)/ae:1);};f.useEffect(()=>{A(true);},[]),f.useEffect(()=>{N(true),M(1);},[i]),f.useEffect(z,[S]);const k=()=>{C?.()!==false&&N(false);},G=br(ae=>o??W?.size??ae??"medium"),j=Object.keys(typeof G=="object"?G||{}:{}).some(ae=>z2.includes(ae)),K=p7(j),Q=f.useMemo(()=>{if(typeof G!="object")return {};const ae=z2.find(se=>K[se]),ce=G[ae];return ce?{width:ce,height:ce,fontSize:ce&&(l||b)?ce/2:18}:{}},[K,G,l,b]),_=L("avatar",n),B=Qn(_),[Y,J]=g7(_,B),ee=X({[`${_}-lg`]:G==="large",[`${_}-sm`]:G==="small"}),te=f.isValidElement(i),re=r||W?.shape||"circle",ie=X(_,ee,F,`${_}-${re}`,{[`${_}-image`]:te||i&&I,[`${_}-icon`]:!!l},J,B,u,d,Y),de=typeof G=="number"?{width:G,height:G,fontSize:l?G/2:18}:{};let ne;if(typeof i=="string"&&I)ne=f.createElement("img",{src:i,draggable:g,srcSet:s,onError:k,alt:p,crossOrigin:y});else if(te)ne=i;else if(l)ne=l;else if(T||E!==1){const ae=`scale(${E})`,ce={msTransform:ae,WebkitTransform:ae,transform:ae};ne=f.createElement(ys,{onResize:z},f.createElement("span",{className:`${_}-string`,ref:O,style:ce},b));}else ne=f.createElement("span",{className:`${_}-string`,style:{opacity:0},ref:O},b);return f.createElement("span",{...w,style:{...de,...Q,...U,...m},className:ie,ref:D},ne)}),If=e=>e?typeof e=="function"?e():e:null,nA=e=>{const{children:t,prefixCls:n,id:r,classNames:o,styles:i,className:s,style:l}=e;return f.createElement("div",{id:r,className:X(`${n}-container`,o?.container,s),style:{...i?.container,...l},role:"tooltip"},typeof t=="function"?t():t)},Ud={shiftX:64,adjustY:1},Wd={adjustX:1,shiftY:true},Hi=[0,0],Cce={left:{points:["cr","cl"],overflow:Wd,offset:[-4,0],targetOffset:Hi},right:{points:["cl","cr"],overflow:Wd,offset:[4,0],targetOffset:Hi},top:{points:["bc","tc"],overflow:Ud,offset:[0,-4],targetOffset:Hi},bottom:{points:["tc","bc"],overflow:Ud,offset:[0,4],targetOffset:Hi},topLeft:{points:["bl","tl"],overflow:Ud,offset:[0,-4],targetOffset:Hi},leftTop:{points:["tr","tl"],overflow:Wd,offset:[-4,0],targetOffset:Hi},topRight:{points:["br","tr"],overflow:Ud,offset:[0,-4],targetOffset:Hi},rightTop:{points:["tl","tr"],overflow:Wd,offset:[4,0],targetOffset:Hi},bottomRight:{points:["tr","br"],overflow:Ud,offset:[0,4],targetOffset:Hi},rightBottom:{points:["bl","br"],overflow:Wd,offset:[4,0],targetOffset:Hi},bottomLeft:{points:["tl","bl"],overflow:Ud,offset:[0,4],targetOffset:Hi},leftBottom:{points:["br","bl"],overflow:Wd,offset:[-4,0],targetOffset:Hi}};function H2(){return H2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},H2.apply(this,arguments)}const xce=f.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:o=.1,prefixCls:i="rc-tooltip",children:s,onVisibleChange:l,afterVisibleChange:u,motion:d,placement:m="right",align:p={},destroyOnHidden:g=false,defaultVisible:b,getTooltipContainer:y,arrowContent:S,overlay:C,id:w,showArrow:E=true,classNames:M,styles:T,...A}=e,I=Qa(w),N=f.useRef(null);f.useImperativeHandle(t,()=>N.current);const P={...A};"visible"in e&&(P.popupVisible=e.visible);const O=f.useMemo(()=>{if(!E)return  false;const L=E===true?{}:E;return {...L,className:X(L.className,M?.arrow),style:{...L.style,...T?.arrow},content:L.content??S}},[E,M?.arrow,T?.arrow,S]),D=({open:L})=>{const F=f.Children.only(s),U={"aria-describedby":C&&L?I:void 0};return f.cloneElement(F,U)};return f.createElement($1,H2({popupClassName:M?.root,prefixCls:i,popup:f.createElement(nA,{key:"content",prefixCls:i,id:I,classNames:M,styles:T},C),action:n,builtinPlacements:Cce,popupPlacement:m,ref:N,popupAlign:p,getPopupContainer:y,onOpenChange:l,afterOpenChange:u,popupMotion:d,defaultPopupVisible:b,autoDestroy:g,mouseLeaveDelay:o,popupStyle:T?.root,mouseEnterDelay:r,arrow:O,uniqueContainerClassName:M?.uniqueContainer,uniqueContainerStyle:T?.uniqueContainer},P),D)});function rA(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,s=o,l=r*1/Math.sqrt(2),u=o-r*(1-1/Math.sqrt(2)),d=o-n*(1/Math.sqrt(2)),m=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),p=2*o-d,g=m,b=2*o-l,y=u,S=2*o-i,C=s,w=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),E=r*(Math.sqrt(2)-1),M=`polygon(${E}px 100%, 50% ${E}px, ${2*o-E}px 100%, ${E}px 100%)`,T=`path('M ${i} ${s} A ${r} ${r} 0 0 0 ${l} ${u} L ${d} ${m} A ${n} ${n} 0 0 1 ${p} ${g} L ${b} ${y} A ${r} ${r} 0 0 0 ${S} ${C} Z')`;return {arrowShadowWidth:w,arrowPath:T,arrowPolygon:M}}const wce=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:s,borderRadiusXS:l,calc:u}=e;return {pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:u(r).div(2).equal(),background:t,clipPath:{_multi_value_:true,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:true,value:`0 0 ${oe(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},b7=8;function O1(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return {arrowOffsetHorizontal:r,arrowOffsetVertical:n?b7:r}}function Mb(e,t){return e?t:{}}const oA=(e,t,n)=>{const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:s,antCls:l}=e,[u]=nr(l,"tooltip"),{arrowDistance:d=0,arrowPlacement:m={left:true,right:true,top:true,bottom:true}}=n||{};return {[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...wce(e,t,o),"&:before":{background:t}}],...Mb(!!m.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:d,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[u("arrow-offset-x")]:s,[`> ${r}-arrow`]:{left:{_skip_check_:true,value:s}}},"&-placement-topRight":{[u("arrow-offset-x")]:`calc(100% - ${oe(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:true,value:s}}}}),...Mb(!!m.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[u("arrow-offset-x")]:s,[`> ${r}-arrow`]:{left:{_skip_check_:true,value:s}}},"&-placement-bottomRight":{[u("arrow-offset-x")]:`calc(100% - ${oe(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:true,value:s}}}}),...Mb(!!m.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:true,value:d},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}}),...Mb(!!m.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:true,value:d},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}})}}};function Ece(e,t,n,r){if(r===false)return {adjustX:false,adjustY:false};const o=r&&typeof r=="object"?r:{},i={};switch(e){case "top":case "bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=true,i.adjustY=true;break;case "left":case "right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=true,i.adjustX=true;break}const s={...i,...o};return s.shiftX||(s.adjustX=true),s.shiftY||(s.adjustY=true),s}const fD={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},$ce={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Mce=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function y7(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:s}=e,l=t/2,u={},d=O1({contentRadius:i,limitVerticalRadius:true});return Object.keys(fD).forEach(m=>{const g={...r&&$ce[m]||fD[m],offset:[0,0],dynamicInset:true};switch(u[m]=g,Mce.has(m)&&(g.autoArrow=false),m){case "top":case "topLeft":case "topRight":g.offset[1]=-l-o;break;case "bottom":case "bottomLeft":case "bottomRight":g.offset[1]=l+o;break;case "left":case "leftTop":case "leftBottom":g.offset[0]=-l-o;break;case "right":case "rightTop":case "rightBottom":g.offset[0]=l+o;break}if(r)switch(m){case "topLeft":case "bottomLeft":g.offset[0]=-d.arrowOffsetHorizontal-l;break;case "topRight":case "bottomRight":g.offset[0]=d.arrowOffsetHorizontal+l;break;case "leftTop":case "rightTop":g.offset[1]=-d.arrowOffsetHorizontal*2+l;break;case "leftBottom":case "rightBottom":g.offset[1]=d.arrowOffsetHorizontal*2-l;break}g.overflow=Ece(m,d,t,n),s&&(g.htmlRegion="visibleFirst");}),u}const D1=(e,t)=>{const n=r=>typeof r=="boolean"?{show:r}:r||{};return q.useMemo(()=>{const r=n(e),o=n(t);return {...o,...r,show:r.show??o.show??true}},[e,t])},mD="50%",Tce=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:s,zIndexPopup:l,controlHeight:u,boxShadowSecondary:d,paddingSM:m,paddingXS:p,arrowOffsetHorizontal:g,sizePopupArrow:b,antCls:y}=e,[S,C]=nr(y,"tooltip"),w=t(s).add(b).add(g).equal(),M={minWidth:t(s).mul(2).add(b).equal(),minHeight:u,padding:`${oe(e.calc(m).div(2).equal())} ${oe(p)}`,color:C("overlay-color",o),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:s,boxShadow:d,boxSizing:"border-box"},T={[S("valid-offset-x")]:C("arrow-offset-x","var(--arrow-x)"),transformOrigin:[C("valid-offset-x",mD),`var(--arrow-y, ${mD})`].join(" ")};return [{[n]:{...mn(e),position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible",...T,"&-hidden":{display:"none"},[S("arrow-background-color")]:i,[`${n}-container`]:[M,PT(e,true)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:w},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(s,b7)}},[`${n}-content`]:{position:"relative"},...C1(e,(A,{darkColor:I})=>({[`&${n}-${A}`]:{[`${n}-container`]:{backgroundColor:I},[`${n}-arrow`]:{[S("arrow-background-color")]:I}}})),"&-rtl":{direction:"rtl"}}},oA(e,C("arrow-background-color")),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...M,...T,position:"absolute",zIndex:t(l).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},Ace=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...O1({contentRadius:e.borderRadius,limitVerticalRadius:true}),...rA(zt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),S7=(e,t,n=true)=>Wt("Tooltip",o=>{const{borderRadius:i,colorTextLightSolid:s,colorBgSpotlight:l,maxWidth:u}=o,d=zt(o,{tooltipMaxWidth:u,tooltipColor:s,tooltipBorderRadius:i,tooltipBg:l});return [Tce(d),mg(o,"zoom-big-fast")]},Ace,{resetStyle:false,injectStyle:n})(e,t),Rce=na.map(e=>`${e}-inverse`),Nce=["success","processing","error","default","warning"];function _1(e,t=true){return t?[].concat(Zt(Rce),Zt(na)).includes(e):na.includes(e)}function Pce(e){return Nce.includes(e)}const C7=(e,t,n)=>{const r=_1(n),[o]=nr(e,"tooltip"),i=X({[`${t}-${n}`]:n&&r}),s={},l={},u=mo(n).toRgb(),m=(.299*u.r+.587*u.g+.114*u.b)/255<.5?"#FFF":"#000";return n&&!r&&(s.background=n,s[o("overlay-color")]=m,l[o("arrow-background-color")]=n),{className:i,overlayStyle:s,arrowStyle:l}},Ice=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:s,classNames:l,styles:u}=e,{getPrefixCls:d}=f.useContext(wt),m=d("tooltip",t),p=d(),g=Qn(m),[b,y]=S7(m,g),S=C7(p,m,i),C=S.arrowStyle,w=f.useMemo(()=>({container:{...s,...S.overlayStyle}}),[s,S.overlayStyle]),E={...e,placement:r},[M,T]=qt([l],[w,u],{props:E}),A=X(g,b,y,m,`${m}-pure`,`${m}-placement-${r}`,n,S.className);return f.createElement("div",{className:A,style:C},f.createElement("div",{className:`${m}-arrow`}),f.createElement(nA,{...e,className:b,prefixCls:m,classNames:M,styles:T},o))},Oce=f.forwardRef((e,t)=>{const{prefixCls:n,openClassName:r,getTooltipContainer:o,color:i,children:s,afterOpenChange:l,arrow:u,destroyTooltipOnHide:d,destroyOnHidden:m,title:p,overlay:g,trigger:b,builtinPlacements:y,autoAdjustOverflow:S=true,motion:C,getPopupContainer:w,placement:E="top",mouseEnterDelay:M=.1,mouseLeaveDelay:T=.1,rootClassName:A,styles:I,classNames:N,onOpenChange:P,overlayInnerStyle:O,overlayStyle:D,overlayClassName:L,...F}=e,[,U]=Xr(),{getPopupContainer:W,getPrefixCls:z,direction:k,className:G,style:j,classNames:K,styles:Q,arrow:_,trigger:B}=jt("tooltip"),Y=D1(u,_),J=Y.show,ee=b||B||"hover",te=f.useRef(null),re=()=>{te.current?.forceAlign();};f.useImperativeHandle(t,()=>({forceAlign:re,nativeElement:te.current?.nativeElement,popupElement:te.current?.popupElement}));const[ie,de]=fn(e.defaultOpen??false,e.open),ne=!p&&!g&&p!==0,ae=lt=>{de(ne?false:lt),!ne&&P&&P(lt);},ce=f.useMemo(()=>y||y7({arrowPointAtCenter:Y?.pointAtCenter??false,autoAdjustOverflow:S,arrowWidth:J?U.sizePopupArrow:0,borderRadius:U.borderRadius,offset:U.marginXXS,visibleFirst:true}),[Y,y,U,J,S]),se=f.useMemo(()=>p===0?p:g||p||"",[g,p]),$e=f.createElement(oc,{space:true,form:true},typeof se=="function"?se():se),le={...e,trigger:ee,color:i,placement:E,builtinPlacements:y,openClassName:r,arrow:u,autoAdjustOverflow:S,getPopupContainer:w,children:s,destroyTooltipOnHide:d,destroyOnHidden:m},[pe,be]=qt([K,N],[Q,I],{props:le}),Ce=z("tooltip",n),Ae=z(),Ye=e["data-popover-inject"];let Re=ie;!("open"in e)&&ne&&(Re=false);const fe=f.isValidElement(s)&&!zz(s)?s:f.createElement("span",null,s),ve=fe.props,Ne=!ve.className||typeof ve.className=="string"?X(ve.className,r||`${Ce}-open`):ve.className,He=Qn(Ce),[Ge,je]=S7(Ce,He,!Ye),rt=C7(Ae,Ce,i),ot=rt.arrowStyle,Ke=X(He,Ge,je),De=X(L,{[`${Ce}-rtl`]:k==="rtl"},rt.className,A,Ke,G,pe.root),[qe,Je]=Wu("Tooltip",F.zIndex),Be={...be.container,...O,...rt.overlayStyle},Ie=f.createElement(xce,{unique:true,...F,trigger:ee,zIndex:qe,showArrow:J,placement:E,mouseEnterDelay:M,mouseLeaveDelay:T,prefixCls:Ce,classNames:{root:De,container:pe.container,arrow:pe.arrow,uniqueContainer:X(Ke,pe.container)},styles:{root:{...ot,...be.root,...j,...D},container:Be,uniqueContainer:Be,arrow:be.arrow},getTooltipContainer:w||o||W,ref:te,builtinPlacements:ce,overlay:$e,visible:Re,onVisibleChange:ae,afterVisibleChange:l,arrowContent:f.createElement("span",{className:`${Ce}-arrow-content`}),motion:{motionName:nc(Ae,"zoom-big-fast",typeof C?.motionName=="string"?C?.motionName:void 0),motionDeadline:1e3},destroyOnHidden:m??!!d},Re?qr(fe,{className:Ne}):fe);return f.createElement(w1.Provider,{value:Je},Ie)}),gc=Oce;gc._InternalPanelDoNotUseOrYouWillBeFired=Ice;gc.UniqueProvider=Hz;const hD="50%",Dce=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:s,colorTextHeading:l,borderRadiusLG:u,zIndexPopup:d,titleMarginBottom:m,colorBgElevated:p,popoverBg:g,titleBorderBottom:b,innerContentPadding:y,titlePadding:S,antCls:C}=e,[w,E]=nr(C,"tooltip");return [{[t]:{...mn(e),position:"absolute",top:0,left:{_skip_check_:true,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",[w("valid-offset-x")]:E("arrow-offset-x","var(--arrow-x)"),transformOrigin:[E("valid-offset-x",hD),`var(--arrow-y, ${hD})`].join(" "),[w("arrow-background-color")]:p,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:g,backgroundClip:"padding-box",borderRadius:u,boxShadow:s,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:m,color:l,fontWeight:o,borderBottom:b,padding:S},[`${t}-content`]:{color:n,padding:y}}},oA(e,E("arrow-background-color")),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},_ce=e=>{const{componentCls:t,antCls:n}=e,[r]=nr(n,"tooltip");return {[t]:na.map(o=>{const i=e[`${o}6`];return {[`&${t}-${o}`]:{[r("arrow-background-color")]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:"transparent"}}}})}},Lce=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:s,borderRadiusLG:l,marginXS:u,lineType:d,colorSplit:m,paddingSM:p}=e,g=n-r,b=g/2,y=g/2-t,S=o;return {titleMinWidth:177,zIndexPopup:s+30,...rA(e),...O1({contentRadius:l,limitVerticalRadius:true}),innerPadding:i?0:12,titleMarginBottom:i?0:u,titlePadding:i?`${b}px ${S}px ${y}px`:0,titleBorderBottom:i?`${t}px ${d} ${m}`:"none",innerContentPadding:i?`${p}px ${S}px`:0}},x7=Wt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=zt(e,{popoverBg:t,popoverColor:n});return [Dce(r),_ce(r),mg(r,"zoom-big")]},Lce,{resetStyle:false,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),w7=e=>{const{title:t,content:n,prefixCls:r,classNames:o,styles:i}=e;return !t&&!n?null:f.createElement(f.Fragment,null,t&&f.createElement("div",{className:X(`${r}-title`,o?.title),style:i?.title},t),n&&f.createElement("div",{className:X(`${r}-content`,o?.content),style:i?.content},n))},Bce=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:s,content:l,children:u,classNames:d,styles:m}=e,p=If(s),g=If(l),b={...e,placement:i},[y,S]=qt([d],[m],{props:b}),C=X(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return f.createElement("div",{className:C,style:o},f.createElement("div",{className:`${n}-arrow`}),f.createElement(nA,{...e,className:t,prefixCls:n,classNames:y,styles:S},u||f.createElement(w7,{prefixCls:n,title:p,content:g,classNames:y,styles:S})))},E7=e=>{const{prefixCls:t,className:n,...r}=e,{getPrefixCls:o}=f.useContext(wt),i=o("popover",t),[s,l]=x7(i);return f.createElement(Bce,{...r,prefixCls:i,hashId:s,className:X(n,l)})},kce=f.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:s="top",trigger:l,children:u,mouseEnterDelay:d=.1,mouseLeaveDelay:m=.1,onOpenChange:p,overlayStyle:g={},styles:b,classNames:y,motion:S,arrow:C,...w}=e,{getPrefixCls:E,className:M,style:T,classNames:A,styles:I,arrow:N,trigger:P}=jt("popover"),O=E("popover",n),[D,L]=x7(O),F=E(),U=D1(C,N),W=l||P||"hover",z={...e,placement:s,trigger:W,mouseEnterDelay:d,mouseLeaveDelay:m,overlayStyle:g,styles:b,classNames:y},[k,G]=qt([A,y],[I,b],{props:z}),j=X(i,D,L,M,k.root),[K,Q]=fn(e.defaultOpen??false,e.open),_=J=>{Q(J),p?.(J);},B=If(r),Y=If(o);return f.createElement(gc,{unique:false,arrow:U,placement:s,trigger:W,mouseEnterDelay:d,mouseLeaveDelay:m,...w,prefixCls:O,classNames:{root:j,container:k.container,arrow:k.arrow},styles:{root:{...G.root,...T,...g},container:G.container,arrow:G.arrow},ref:t,open:K,onOpenChange:_,overlay:B||Y?f.createElement(w7,{prefixCls:O,title:B,content:Y,classNames:k,styles:G}):null,motion:{motionName:nc(F,"zoom-big",typeof S?.motionName=="string"?S?.motionName:void 0)},"data-popover-inject":true},u)}),Ps=kce;Ps._InternalPanelDoNotUseOrYouWillBeFired=E7;const pD=e=>{const{size:t,shape:n}=f.useContext(F2),r=f.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return f.createElement(F2.Provider,{value:r},e.children)},zce=e=>{const{getPrefixCls:t,direction:n}=f.useContext(wt),{prefixCls:r,className:o,rootClassName:i,style:s,maxCount:l,maxStyle:u,size:d,shape:m,maxPopoverPlacement:p,maxPopoverTrigger:g,children:b,max:y}=e,S=t("avatar",r),C=`${S}-group`,w=Qn(S),[E,M]=g7(S,w),T=X(C,{[`${C}-rtl`]:n==="rtl"},M,w,o,i,E),A=ri(b).map((P,O)=>qr(P,{key:`avatar-key-${O}`})),I=y?.count||l,N=A.length;if(I&&I<N){const P=A.slice(0,I),O=A.slice(I,N),D=y?.style||u,L=y?.popover?.trigger||g||"hover",F=y?.popover?.placement||p||"top",U={content:O,...y?.popover,placement:F,trigger:L,rootClassName:X(`${C}-popover`,y?.popover?.rootClassName)};return P.push(f.createElement(Ps,{key:"avatar-popover-key",destroyOnHidden:true,...U},f.createElement(v7,{style:D},`+${N-I}`))),f.createElement(pD,{shape:m,size:d},f.createElement("div",{className:T,style:s},P))}return f.createElement(pD,{shape:m,size:d},f.createElement("div",{className:T,style:s},A))},vu=v7;vu.Group=zce;var Fce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};function V2(){return V2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},V2.apply(this,arguments)}const Hce=(e,t)=>f.createElement(Xn,V2({},e,{ref:t,icon:Fce})),Vce=f.forwardRef(Hce),gD=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),f.createElement("span",{style:i,className:X(`${t}-only-unit`,{current:r})},n)};function jce(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const Uce=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[s,l]=f.useState(o),[u,d]=f.useState(i),m=()=>{l(o),d(i);};f.useEffect(()=>{const b=setTimeout(m,1e3);return ()=>clearTimeout(b)},[o]);let p,g;if(s===o||Number.isNaN(o)||Number.isNaN(s))p=[f.createElement(gD,{...e,key:o,current:true})],g={transition:"none"};else {p=[];const b=o+10,y=[];for(let E=o;E<=b;E+=1)y.push(E);const S=u<i?1:-1,C=y.findIndex(E=>E%10===s);p=(S<0?y.slice(0,C+1):y.slice(C)).map((E,M)=>{const T=E%10;return f.createElement(gD,{...e,key:E,value:T,offset:S<0?M-C:M,current:M===C})}),g={transform:`translateY(${-jce(s,o,S)}00%)`};}return f.createElement("span",{className:`${t}-only`,style:g,onTransitionEnd:m},p)},Wce=f.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:i,style:s,title:l,show:u,component:d="sup",children:m,...p}=e,{getPrefixCls:g}=f.useContext(wt),b=g("scroll-number",n),y={...p,"data-show":u,style:s,className:X(b,o,i),title:l};let S=r;if(r&&Number(r)%1===0){const C=String(r).split("");S=f.createElement("bdi",null,C.map((w,E)=>f.createElement(Uce,{prefixCls:b,count:Number(r),value:w,key:C.length-E})));}return s?.borderColor&&(y.style={...s,boxShadow:`0 0 0 1px ${s.borderColor} inset`}),m?qr(m,C=>({className:X(`${b}-custom-component`,C?.className,i)})):f.createElement(d,{...y,ref:t},S)}),Gce=new Bt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),qce=new Bt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Kce=new Bt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Yce=new Bt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Xce=new Bt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Qce=new Bt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Zce=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:s,statusSize:l,dotSize:u,textFontWeight:d,indicatorHeight:m,indicatorHeightSM:p,marginXS:g,calc:b}=e,y=`${r}-scroll-number`,S=C1(e,(C,{darkColor:w})=>({[`&${t} ${t}-color-${C}`]:{background:w,[`&:not(${t}-count)`]:{color:w},"a:hover &":{background:w}}}));return {[t]:{...mn(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:m,height:m,color:e.badgeTextColor,fontWeight:d,fontSize:i,lineHeight:oe(m),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:b(m).div(2).equal(),boxShadow:`0 0 0 ${oe(o)} ${e.badgeShadowColor}`,transition:`background-color ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:p,height:p,fontSize:s,lineHeight:oe(p),borderRadius:b(p).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${oe(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:u,minWidth:u,height:u,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${oe(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${y}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:Qce,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Gce,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:g,color:e.colorText,fontSize:e.fontSize}},...S,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:qce,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Kce,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Yce,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Xce,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${y}-custom-component, ${t}-count`]:{transform:"none"},[`${y}-custom-component, ${y}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[y]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${y}-only`]:{position:"relative",display:"inline-block",height:m,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${y}-only-unit`]:{height:m,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${y}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${y}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},$7=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,s=n,l=e.colorTextLightSolid,u=e.colorError,d=e.colorErrorHover;return zt(e,{badgeFontHeight:i,badgeShadowSize:s,badgeTextColor:l,badgeColor:u,badgeColorHover:d,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},M7=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return {indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},Jce=Wt("Badge",e=>{const t=$7(e);return Zce(t)},M7),eue=f.forwardRef((e,t)=>{const{prefixCls:n,scrollNumberPrefixCls:r,children:o,status:i,text:s,color:l,count:u=null,overflowCount:d=99,dot:m=false,size:p="medium",title:g,offset:b,style:y,className:S,rootClassName:C,classNames:w,styles:E,showZero:M=false,...T}=e,{getPrefixCls:A,direction:I,className:N,style:P,classNames:O,styles:D}=jt("badge"),L=A("badge",n),[F,U]=Jce(L),W={...e,overflowCount:d,size:p,dot:m,showZero:M},[z,k]=qt([O,w],[D,E],{props:W}),G=u>d?`${d}+`:u,j=G==="0"||G===0||s==="0"||s===0,K=u===null||j&&!M,Q=(Lr(i)||Lr(l))&&K,_=Lr(i)||!j,B=m&&!j,Y=B?"":G,J=f.useMemo(()=>((!Lr(Y)||Y==="")&&(!Lr(s)||s==="")||j&&!M)&&!B,[Y,j,M,B,s]),ee=f.useRef(u);J||(ee.current=u);const te=ee.current,re=f.useRef(Y);J||(re.current=Y);const ie=re.current,de=f.useRef(B);J||(de.current=B);const ne=f.useMemo(()=>{if(!b)return {...P,...y};const Ae=Number.parseInt(b[0],10);return {...{marginTop:b[1],insetInlineEnd:-Ae},...P,...y}},[b,y,P]),ae=g??(typeof te=="string"||typeof te=="number"?te:void 0),ce=!J&&(s===0?M:!!s&&s!==true),se=ce?f.createElement("span",{className:`${L}-status-text`},s):null,$e=!te||typeof te!="object"?void 0:qr(te,Ae=>({style:{...ne,...Ae.style}})),le=_1(l,false),pe=X(z.indicator,{[`${L}-status-dot`]:Q,[`${L}-status-${i}`]:!!i,[`${L}-color-${l}`]:le}),be={};l&&!le&&(be.color=l,be.background=l);const Ce=X(L,{[`${L}-status`]:Q,[`${L}-not-a-wrapper`]:!o,[`${L}-rtl`]:I==="rtl"},S,C,N,z.root,F,U);if(!o&&Q&&(s||_||!K)){const Ae=ne.color;return f.createElement("span",{ref:t,...T,className:Ce,style:{...k.root,...ne}},f.createElement("span",{className:pe,style:{...k.indicator,...be}}),ce&&f.createElement("span",{style:{color:Ae},className:`${L}-status-text`},s))}return f.createElement("span",{ref:t,...T,className:Ce,style:k.root},o,f.createElement(To,{visible:!J,motionName:`${L}-zoom`,motionAppear:false,motionDeadline:1e3},({className:Ae})=>{const Ye=A("scroll-number",r),Re=de.current,fe=X(z.indicator,{[`${L}-dot`]:Re,[`${L}-count`]:!Re,[`${L}-count-sm`]:p==="small",[`${L}-multiple-words`]:!Re&&ie&&ie.toString().length>1,[`${L}-status-${i}`]:!!i,[`${L}-color-${l}`]:le});let ve={...k.indicator,...ne};return l&&!le&&(ve=ve||{},ve.background=l),f.createElement(Wce,{prefixCls:Ye,show:!J,motionClassName:Ae,className:fe,count:ie,title:ae,style:ve,key:"scrollNumber"},$e)}),se)}),tue=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,s=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,u=C1(e,(d,{darkColor:m})=>({[`&${s}-color-${d}`]:{background:m,color:m}}));return {[l]:{position:"relative"},[s]:{...mn(e),position:"absolute",top:r,padding:`0 ${oe(e.paddingXS)}`,color:e.colorPrimary,lineHeight:oe(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${s}-content`]:{color:e.badgeTextColor},[`${s}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${oe(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...u,[`&${s}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${s}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${s}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${s}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},nue=Wt(["Badge","Ribbon"],e=>{const t=$7(e);return tue(t)},M7),rue=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:s,placement:l="end",rootClassName:u,styles:d,classNames:m}=e,{getPrefixCls:p,direction:g,className:b,style:y,classNames:S,styles:C}=jt("ribbon"),w=p("ribbon",n),E=`${w}-wrapper`,[M,T]=nue(w,E),A={...e,placement:l},[I,N]=qt([S,m],[C,d],{props:A}),P=_1(o,false),O=X(w,`${w}-placement-${l}`,{[`${w}-rtl`]:g==="rtl",[`${w}-color-${o}`]:P},t,b,I.indicator),D={},L={};return o&&!P&&(D.background=o,L.color=o),f.createElement("div",{className:X(E,u,M,T,I.root),style:N.root},i,f.createElement("div",{className:X(O,M),style:{...D,...N.indicator,...y,...r}},f.createElement("span",{className:X(`${w}-content`,I.content),style:N.content},s),f.createElement("div",{className:`${w}-corner`,style:L})))},Cg=eue;Cg.Ribbon=rue;var oue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function j2(){return j2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},j2.apply(this,arguments)}const iue=(e,t)=>f.createElement(Xn,j2({},e,{ref:t,icon:oue})),Np=f.forwardRef(iue),{ESC:sue,TAB:aue}=st;function lue({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:o}){const i=f.useRef(false),s=()=>{e&&(t.current?.focus?.(),n?.(false));},l=()=>o.current?.focus?(o.current.focus(),i.current=true,true):false,u=d=>{switch(d.keyCode){case sue:s();break;case aue:{let m=false;i.current||(m=l()),m?d.preventDefault():s();break}}};f.useEffect(()=>e?(window.addEventListener("keydown",u),r&&_t(l,3),()=>{window.removeEventListener("keydown",u),i.current=false;}):()=>{i.current=false;},[e]);}const cue=f.forwardRef((e,t)=>{const{overlay:n,arrow:r,prefixCls:o}=e,i=f.useMemo(()=>{let l;return typeof n=="function"?l=n():l=n,l},[n]),s=Yr(t,hc(i));return q.createElement(q.Fragment,null,r&&q.createElement("div",{className:`${o}-arrow`}),q.cloneElement(i,{ref:Vu(i)?s:void 0}))}),Gd={adjustX:1,adjustY:1},qd=[0,0],uue={topLeft:{points:["bl","tl"],overflow:Gd,offset:[0,-4],targetOffset:qd},top:{points:["bc","tc"],overflow:Gd,offset:[0,-4],targetOffset:qd},topRight:{points:["br","tr"],overflow:Gd,offset:[0,-4],targetOffset:qd},bottomLeft:{points:["tl","bl"],overflow:Gd,offset:[0,4],targetOffset:qd},bottom:{points:["tc","bc"],overflow:Gd,offset:[0,4],targetOffset:qd},bottomRight:{points:["tr","br"],overflow:Gd,offset:[0,4],targetOffset:qd}};function U2(){return U2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},U2.apply(this,arguments)}const T7=q.forwardRef((e,t)=>{const{arrow:n=false,prefixCls:r="rc-dropdown",transitionName:o,animation:i,align:s,placement:l="bottomLeft",placements:u=uue,getPopupContainer:d,showAction:m,hideAction:p,overlayClassName:g,overlayStyle:b,visible:y,trigger:S=["hover"],autoFocus:C,overlay:w,children:E,onVisibleChange:M,...T}=e,[A,I]=q.useState(),N="visible"in e?y:A,P=i?`${r}-${i}`:o,O=q.useRef(null),D=q.useRef(null),L=q.useRef(null);q.useImperativeHandle(t,()=>O.current);const F=Q=>{I(Q),M?.(Q);};lue({visible:N,triggerRef:L,onVisibleChange:F,autoFocus:C,overlayRef:D});const U=Q=>{const{onOverlayClick:_}=e;I(false),_&&_(Q);},W=()=>q.createElement(cue,{ref:D,overlay:w,prefixCls:r,arrow:n}),z=()=>typeof w=="function"?W:W(),k=()=>{const{minOverlayWidthMatchTrigger:Q,alignPoint:_}=e;return "minOverlayWidthMatchTrigger"in e?Q:!_},G=()=>{const{openClassName:Q}=e;return Q!==void 0?Q:`${r}-open`},j=q.cloneElement(E,{className:X(E.props?.className,N&&G()),ref:Vu(E)?Yr(L,hc(E)):void 0});let K=p;return !K&&S.indexOf("contextMenu")!==-1&&(K=["click"]),q.createElement($1,U2({builtinPlacements:u},T,{prefixCls:r,ref:O,popupClassName:X(g,{[`${r}-show-arrow`]:n}),popupStyle:b,action:S,showAction:m,hideAction:K,popupPlacement:l,popupAlign:s,popupMotion:{motionName:P},popupVisible:N,stretch:k()?"minWidth":"",popup:z(),onOpenChange:F,onPopupClick:U,getPopupContainer:d}),j)}),due=e=>typeof e!="object"&&typeof e!="function"||e===null,A7=f.createContext(null);function R7(e,t){return `${e}-${t}`}function N7(e){const t=f.useContext(A7);return R7(t,e)}const As=f.createContext(null);function fue(e,t){const n={...e};return Object.keys(t).forEach(r=>{const o=t[r];o!==void 0&&(n[r]=o);}),n}function Pp({children:e,locked:t,...n}){const r=f.useContext(As),o=qf(()=>fue(r,n),[r,n],(i,s)=>!t&&(i[0]!==s[0]||!ec(i[1],s[1],true)));return f.createElement(As.Provider,{value:o},e)}const mue=[],P7=f.createContext(null);function L1(){return f.useContext(P7)}const I7=f.createContext(mue);function em(e){const t=f.useContext(I7);return f.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const O7=f.createContext(null),iA=f.createContext({}),{LEFT:W2,RIGHT:G2,UP:q2,DOWN:h0,ENTER:p0,ESC:D7,HOME:hh,END:ph}=st,vD=[q2,h0,W2,G2];function hue(e,t,n,r){const o="prev",i="next",s="children",l="parent";if(e==="inline"&&r===p0)return {inlineTrigger:true};const u={[q2]:o,[h0]:i},d={[W2]:n?i:o,[G2]:n?o:i,[h0]:s,[p0]:s},m={[q2]:o,[h0]:i,[p0]:s,[D7]:l,[W2]:n?s:l,[G2]:n?l:s};switch({inline:u,horizontal:d,vertical:m,inlineSub:u,horizontalSub:m,verticalSub:m}[`${e}${t?"":"Sub"}`]?.[r]){case o:return {offset:-1,sibling:true};case i:return {offset:1,sibling:true};case l:return {offset:-1,sibling:false};case s:return {offset:1,sibling:false};default:return null}}function pue(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function gue(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement;}return null}function sA(e,t){return VT(e,true).filter(r=>t.has(r))}function bD(e,t,n,r=1){if(!e)return null;const o=sA(e,t),i=o.length;let s=o.findIndex(l=>n===l);return r<0?s===-1?s=i-1:s-=1:r>0&&(s+=1),s=(s+i)%i,o[s]}const hy=(e,t)=>{const n=new Set,r=new Map,o=new Map;return e.forEach(i=>{const s=document.querySelector(`[data-menu-id='${R7(t,i)}']`);s&&(n.add(s),o.set(s,i),r.set(i,s));}),{elements:n,key2element:r,element2key:o}};function vue(e,t,n,r,o,i,s,l,u,d){const m=f.useRef(),p=f.useRef();p.current=t;const g=()=>{_t.cancel(m.current);};return f.useEffect(()=>()=>{g();},[]),b=>{const{which:y}=b;if([...vD,p0,D7,hh,ph].includes(y)){const S=i();let C=hy(S,r);const{elements:w,key2element:E,element2key:M}=C,T=E.get(t),A=gue(T,w),I=M.get(A),N=hue(e,s(I,true).length===1,n,y);if(!N&&y!==hh&&y!==ph)return;(vD.includes(y)||[hh,ph].includes(y))&&b.preventDefault();const P=O=>{if(O){let D=O;const L=O.querySelector("a");L?.getAttribute("href")&&(D=L);const F=M.get(O);l(F),g(),m.current=_t(()=>{p.current===F&&D.focus();});}};if([hh,ph].includes(y)||N.sibling||!A){let O;!A||e==="inline"?O=o.current:O=pue(A);let D;const L=sA(O,w);y===hh?D=L[0]:y===ph?D=L[L.length-1]:D=bD(O,w,A,N.offset),P(D);}else if(N.inlineTrigger)u(I);else if(N.offset>0)u(I,true),g(),m.current=_t(()=>{C=hy(S,r);const O=A.getAttribute("aria-controls"),D=document.getElementById(O),L=bD(D,C.elements);P(L);},5);else if(N.offset<0){const O=s(I,true),D=O[O.length-2],L=E.get(D);u(D,false),P(L);}}d?.(b);}}function bue(e){Promise.resolve().then(e);}const aA="__RC_UTIL_PATH_SPLIT__",yD=e=>e.join(aA),yue=e=>e.split(aA),K2="rc-menu-more";function Sue(){const[,e]=f.useState({}),t=f.useRef(new Map),n=f.useRef(new Map),[r,o]=f.useState([]),i=f.useRef(0),s=f.useRef(false),l=()=>{s.current||e({});},u=f.useCallback((S,C)=>{const w=yD(C);n.current.set(w,S),t.current.set(S,w),i.current+=1;const E=i.current;bue(()=>{E===i.current&&l();});},[]),d=f.useCallback((S,C)=>{const w=yD(C);n.current.delete(w),t.current.delete(S);},[]),m=f.useCallback(S=>{o(S);},[]),p=f.useCallback((S,C)=>{const w=t.current.get(S)||"",E=yue(w);return C&&r.includes(E[0])&&E.unshift(K2),E},[r]),g=f.useCallback((S,C)=>S.filter(w=>w!==void 0).some(w=>p(w,true).includes(C)),[p]),b=()=>{const S=[...t.current.keys()];return r.length&&S.push(K2),S},y=f.useCallback(S=>{const C=`${t.current.get(S)}${aA}`,w=new Set;return [...n.current.keys()].forEach(E=>{E.startsWith(C)&&w.add(n.current.get(E));}),w},[]);return f.useEffect(()=>()=>{s.current=true;},[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:m,isSubPathKey:g,getKeyPath:p,getKeys:b,getSubPathKeys:y}}function kh(e){const t=f.useRef(e);t.current=e;const n=f.useCallback((...r)=>t.current?.(...r),[]);return e?n:void 0}function _7(e,t,n,r){const{activeKey:o,onActive:i,onInactive:s}=f.useContext(As),l={active:o===e};return t||(l.onMouseEnter=u=>{n?.({key:e,domEvent:u}),i(e);},l.onMouseLeave=u=>{r?.({key:e,domEvent:u}),s(e);}),l}function L7(e){const{mode:t,rtl:n,inlineIndent:r}=f.useContext(As);if(t!=="inline")return null;const o=e;return n?{paddingRight:o*r}:{paddingLeft:o*r}}function B7({icon:e,props:t,children:n}){let r;return e===null||e===false?null:(typeof e=="function"?r=f.createElement(e,{...t}):typeof e!="boolean"&&(r=e),r||n||null)}function py({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(Pr(false,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Ip(){return Ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Ip.apply(this,arguments)}class Cue extends f.Component{render(){const{title:t,attribute:n,elementRef:r,...o}=this.props,i=kn(o,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Pr(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f.createElement(Fa.Item,Ip({},n,{title:typeof t=="string"?t:void 0},i,{ref:r}))}}const xue=f.forwardRef((e,t)=>{const{style:n,className:r,eventKey:o,warnKey:i,disabled:s,itemIcon:l,children:u,role:d,onMouseEnter:m,onMouseLeave:p,onClick:g,onKeyDown:b,onFocus:y,...S}=e,C=N7(o),{prefixCls:w,onItemClick:E,disabled:M,overflowDisabled:T,itemIcon:A,selectedKeys:I,onActive:N}=f.useContext(As),{_internalRenderMenuItem:P}=f.useContext(iA),O=`${w}-item`,D=f.useRef(),L=f.useRef(),F=M||s,U=Ya(t,L),W=em(o),z=te=>({key:o,keyPath:[...W].reverse(),item:D.current,domEvent:te}),k=l||A,{active:G,...j}=_7(o,F,m,p),K=I.includes(o),Q=L7(W.length),_=te=>{if(F)return;const re=z(te);g?.(py(re)),E(re);},B=te=>{if(b?.(te),te.which===st.ENTER){const re=z(te);g?.(py(re)),E(re);}},Y=te=>{N(o),y?.(te);},J={};e.role==="option"&&(J["aria-selected"]=K);let ee=f.createElement(Cue,Ip({ref:D,elementRef:U,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":T&&C?null:C},kn(S,["extra"]),j,J,{component:"li","aria-disabled":s,style:{...Q,...n},className:X(O,{[`${O}-active`]:G,[`${O}-selected`]:K,[`${O}-disabled`]:F},r),onClick:_,onKeyDown:B,onFocus:Y}),u,f.createElement(B7,{props:{...e,isSelected:K},icon:k}));return P&&(ee=P(ee,e,{selected:K})),ee});function wue(e,t){const{eventKey:n}=e,r=L1(),o=em(n);return f.useEffect(()=>{if(r)return r.registerPath(n,o),()=>{r.unregisterPath(n,o);}},[o]),r?null:f.createElement(xue,Ip({},e,{ref:t}))}const xg=f.forwardRef(wue);function Y2(){return Y2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Y2.apply(this,arguments)}const Eue=({className:e,children:t,...n},r)=>{const{prefixCls:o,mode:i,rtl:s}=f.useContext(As);return f.createElement("ul",Y2({className:X(o,s&&`${o}-rtl`,`${o}-sub`,`${o}-${i==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":true,ref:r}),t)},k7=f.forwardRef(Eue);function lA(e,t){return ri(e).map((n,r)=>{if(f.isValidElement(n)){const{key:o}=n;let i=n.props?.eventKey??o;i==null&&(i=`tmp_key-${[...t,r].join("-")}`);const l={key:i,eventKey:i};return f.cloneElement(n,l)}return n})}const wo={adjustX:1,adjustY:1},$ue={topLeft:{points:["bl","tl"],overflow:wo},topRight:{points:["br","tr"],overflow:wo},bottomLeft:{points:["tl","bl"],overflow:wo},bottomRight:{points:["tr","br"],overflow:wo},leftTop:{points:["tr","tl"],overflow:wo},leftBottom:{points:["br","bl"],overflow:wo},rightTop:{points:["tl","tr"],overflow:wo},rightBottom:{points:["bl","br"],overflow:wo}},Mue={topLeft:{points:["bl","tl"],overflow:wo},topRight:{points:["br","tr"],overflow:wo},bottomLeft:{points:["tl","bl"],overflow:wo},bottomRight:{points:["tr","br"],overflow:wo},rightTop:{points:["tr","tl"],overflow:wo},rightBottom:{points:["br","bl"],overflow:wo},leftTop:{points:["tl","tr"],overflow:wo},leftBottom:{points:["bl","br"],overflow:wo}};function z7(e,t,n){if(t)return t;if(n)return n[e]||n.other}const Tue={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Aue({prefixCls:e,visible:t,children:n,popup:r,popupStyle:o,popupClassName:i,popupOffset:s,disabled:l,mode:u,onVisibleChange:d}){const{getPopupContainer:m,rtl:p,subMenuOpenDelay:g,subMenuCloseDelay:b,builtinPlacements:y,triggerSubMenuAction:S,forceSubMenuRender:C,rootClassName:w,motion:E,defaultMotions:M}=f.useContext(As),[T,A]=f.useState(false),I=p?{...Mue,...y}:{...$ue,...y},N=Tue[u],P=z7(u,E,M),O=f.useRef(P);u!=="inline"&&(O.current=P);const D={...O.current,leavedClassName:`${e}-hidden`,removeOnLeave:false,motionAppear:true},L=f.useRef();return f.useEffect(()=>(L.current=_t(()=>{A(t);}),()=>{_t.cancel(L.current);}),[t]),f.createElement($1,{prefixCls:e,popupClassName:X(`${e}-popup`,{[`${e}-rtl`]:p},i,w),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:I,popupPlacement:N,popupVisible:T,popup:r,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[S],mouseEnterDelay:g,mouseLeaveDelay:b,onPopupVisibleChange:d,forceRender:C,popupMotion:D,fresh:true},n)}function X2(){return X2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},X2.apply(this,arguments)}function Rue({id:e,open:t,keyPath:n,children:r}){const o="inline",{prefixCls:i,forceSubMenuRender:s,motion:l,defaultMotions:u,mode:d}=f.useContext(As),m=f.useRef(false);m.current=d===o;const[p,g]=f.useState(!m.current),b=m.current?t:false;f.useEffect(()=>{m.current&&g(false);},[d]);const y={...z7(o,l,u)};n.length>1&&(y.motionAppear=false);const S=y.onVisibleChanged;return y.onVisibleChanged=C=>(!m.current&&!C&&g(true),S?.(C)),p?null:f.createElement(Pp,{mode:o,locked:!m.current},f.createElement(To,X2({visible:b},y,{forceRender:s,removeOnLeave:false,leavedClassName:`${i}-hidden`}),({className:C,style:w})=>f.createElement(k7,{id:e,className:C,style:w},r)))}function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Op.apply(this,arguments)}const Nue=f.forwardRef((e,t)=>{const{style:n,className:r,styles:o,classNames:i,title:s,eventKey:l,warnKey:u,disabled:d,internalPopupClose:m,children:p,itemIcon:g,expandIcon:b,popupClassName:y,popupOffset:S,popupStyle:C,onClick:w,onMouseEnter:E,onMouseLeave:M,onTitleClick:T,onTitleMouseEnter:A,onTitleMouseLeave:I,popupRender:N,...P}=e,O=N7(l),{prefixCls:D,mode:L,openKeys:F,disabled:U,overflowDisabled:W,activeKey:z,selectedKeys:k,itemIcon:G,expandIcon:j,onItemClick:K,onOpenChange:Q,onActive:_,popupRender:B}=f.useContext(As),{_internalRenderSubMenuItem:Y}=f.useContext(iA),{isSubPathKey:J}=f.useContext(O7),ee=em(),te=`${D}-submenu`,re=U||d,ie=f.useRef(),de=f.useRef(),ne=g??G,ae=b??j,ce=F.includes(l),se=!W&&ce,$e=J(k,l),{active:le,...pe}=_7(l,re,A,I),[be,Ce]=f.useState(false),Ae=Ie=>{re||Ce(Ie);},Ye=Ie=>{Ae(true),E?.({key:l,domEvent:Ie});},Re=Ie=>{Ae(false),M?.({key:l,domEvent:Ie});},fe=f.useMemo(()=>le||(L!=="inline"?be||J([z],l):false),[L,le,z,be,l,J]),ve=L7(ee.length),Ne=Ie=>{re||(T?.({key:l,domEvent:Ie}),L==="inline"&&Q(l,!ce));},He=kh(Ie=>{w?.(py(Ie)),K(Ie);}),Ge=Ie=>{L!=="inline"&&Q(l,Ie);},je=()=>{_(l);},rt=O&&`${O}-popup`,ot=f.useMemo(()=>f.createElement(B7,{icon:L!=="horizontal"?ae:void 0,props:{...e,isOpen:se,isSubMenu:true}},f.createElement("i",{className:`${te}-arrow`})),[L,ae,e,se,te]);let Ke=f.createElement("div",Op({role:"menuitem",style:ve,className:`${te}-title`,tabIndex:re?null:-1,ref:ie,title:typeof s=="string"?s:null,"data-menu-id":W&&O?null:O,"aria-expanded":se,"aria-haspopup":true,"aria-controls":rt,"aria-disabled":re,onClick:Ne,onFocus:je},pe),s,ot);const De=f.useRef(L);L!=="inline"&&ee.length>1?De.current="vertical":De.current=L;const qe=De.current,Je=f.useMemo(()=>{const Ie=f.createElement(Pp,{classNames:i,styles:o,mode:qe==="horizontal"?"vertical":qe},f.createElement(k7,{id:rt,ref:de},p)),lt=N||B;return lt?lt(Ie,{item:e,keys:ee}):Ie},[N,B,ee,rt,p,e,qe]);if(!W){const Ie=De.current;Ke=f.createElement(Aue,{mode:Ie,prefixCls:te,visible:!m&&se&&L!=="inline",popupClassName:y,popupOffset:S,popupStyle:C,popup:Je,disabled:re,onVisibleChange:Ge},Ke);}let Be=f.createElement(Fa.Item,Op({ref:t,role:"none"},P,{component:"li",style:n,className:X(te,`${te}-${L}`,r,{[`${te}-open`]:se,[`${te}-active`]:fe,[`${te}-selected`]:$e,[`${te}-disabled`]:re}),onMouseEnter:Ye,onMouseLeave:Re}),Ke,!W&&f.createElement(Rue,{id:rt,open:se,keyPath:ee},p));return Y&&(Be=Y(Be,e,{selected:$e,active:fe,open:se,disabled:re})),f.createElement(Pp,{classNames:i,styles:o,onItemClick:He,mode:L==="horizontal"?"vertical":L,itemIcon:ne,expandIcon:ae},Be)}),B1=f.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,o=em(n),i=lA(r,o),s=L1();f.useEffect(()=>{if(s)return s.registerPath(n,o),()=>{s.unregisterPath(n,o);}},[o]);let l;return s?l=i:l=f.createElement(Nue,Op({ref:t},e),i),f.createElement(I7.Provider,{value:o},l)});function cA({className:e,style:t}){const{prefixCls:n}=f.useContext(As);return L1()?null:f.createElement("li",{role:"separator",className:X(`${n}-item-divider`,e),style:t})}function gy(){return gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},gy.apply(this,arguments)}const Pue=f.forwardRef((e,t)=>{const{className:n,title:r,eventKey:o,children:i,...s}=e,{prefixCls:l,classNames:u,styles:d}=f.useContext(As),m=`${l}-item-group`;return f.createElement("li",gy({ref:t,role:"presentation"},s,{onClick:p=>p.stopPropagation(),className:X(m,n)}),f.createElement("div",{role:"presentation",className:X(`${m}-title`,u?.listTitle),style:d?.listTitle,title:typeof r=="string"?r:void 0},r),f.createElement("ul",{role:"group",className:X(`${m}-list`,u?.list),style:d?.list},i))}),uA=f.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,o=em(n),i=lA(r,o);return L1()?i:f.createElement(Pue,gy({ref:t},kn(e,["warnKey"])),i)});function rf(){return rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},rf.apply(this,arguments)}function Q2(e,t,n){const{item:r,group:o,submenu:i,divider:s}=t;return (e||[]).map((l,u)=>{if(l&&typeof l=="object"){const{label:d,children:m,key:p,type:g,extra:b,...y}=l,S=p??`tmp-${u}`;return m||g==="group"?g==="group"?f.createElement(o,rf({key:S},y,{title:d}),Q2(m,t,n)):f.createElement(i,rf({key:S},y,{title:d}),Q2(m,t,n)):g==="divider"?f.createElement(s,rf({key:S},y)):f.createElement(r,rf({key:S},y,{extra:b}),d,(!!b||b===0)&&f.createElement("span",{className:`${n}-item-extra`},b))}return null}).filter(l=>l)}function SD(e,t,n,r,o){let i=e;const s={divider:cA,item:xg,group:uA,submenu:B1,...r};return t&&(i=Q2(t,s,o)),lA(i,n)}function Z2(){return Z2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Z2.apply(this,arguments)}const Wc=[],Iue=f.forwardRef((e,t)=>{const{prefixCls:n="rc-menu",rootClassName:r,style:o,className:i,styles:s,classNames:l,tabIndex:u=0,items:d,children:m,direction:p,id:g,mode:b="vertical",inlineCollapsed:y,disabled:S,disabledOverflow:C,subMenuOpenDelay:w=.1,subMenuCloseDelay:E=.1,forceSubMenuRender:M,defaultOpenKeys:T,openKeys:A,activeKey:I,defaultActiveFirst:N,selectable:P=true,multiple:O=false,defaultSelectedKeys:D,selectedKeys:L,onSelect:F,onDeselect:U,inlineIndent:W=24,motion:z,defaultMotions:k,triggerSubMenuAction:G="hover",builtinPlacements:j,itemIcon:K,expandIcon:Q,overflowedIndicator:_="...",overflowedIndicatorPopupClassName:B,getPopupContainer:Y,onClick:J,onOpenChange:ee,onKeyDown:te,openAnimation:re,openTransitionName:ie,_internalRenderMenuItem:de,_internalRenderSubMenuItem:ne,_internalComponents:ae,popupRender:ce,...se}=e,[$e,le]=f.useMemo(()=>[SD(m,d,Wc,ae,n),SD(m,d,Wc,{},n)],[m,d,ae]),[pe,be]=f.useState(false),Ce=f.useRef(),Ae=Qa(g?`rc-menu-uuid-${g}`:"rc-menu-uuid"),Ye=p==="rtl",[Re,fe]=fn(T,A),ve=Re||Wc,Ne=(et,Qe=false)=>{function We(){fe(et),ee?.(et);}Qe?No.flushSync(We):We();},[He,Ge]=f.useState(ve),je=f.useRef(false),[rt,ot]=f.useMemo(()=>(b==="inline"||b==="vertical")&&y?["vertical",y]:[b,false],[b,y]),Ke=rt==="inline",[De,qe]=f.useState(rt),[Je,Be]=f.useState(ot);f.useEffect(()=>{qe(rt),Be(ot),je.current&&(Ke?fe(He):Ne(Wc));},[rt,ot]);const[Ie,lt]=f.useState(0),Dt=Ie>=$e.length-1||De!=="horizontal"||C;f.useEffect(()=>{Ke&&Ge(ve);},[ve]),f.useEffect(()=>(je.current=true,()=>{je.current=false;}),[]);const{registerPath:pt,unregisterPath:Lt,refreshOverflowKeys:xt,isSubPathKey:Pt,getKeyPath:ut,getKeys:ct,getSubPathKeys:bt}=Sue(),Fe=f.useMemo(()=>({registerPath:pt,unregisterPath:Lt}),[pt,Lt]),Ue=f.useMemo(()=>({isSubPathKey:Pt}),[Pt]);f.useEffect(()=>{xt(Dt?Wc:$e.slice(Ie+1).map(et=>et.key));},[Ie,Dt]);const[ye,Me]=fn(I||N&&$e[0]?.key,I),Se=kh(et=>{Me(et);}),he=kh(()=>{Me(void 0);});f.useImperativeHandle(t,()=>({list:Ce.current,focus:et=>{const Qe=ct(),{elements:We,key2element:ft,element2key:Rt}=hy(Qe,Ae),Ut=sA(Ce.current,We);let en;ye&&Qe.includes(ye)?en=ye:en=Ut[0]?Rt.get(Ut[0]):$e.find(Nn=>!Nn.props.disabled)?.key;const nn=ft.get(en);en&&nn&&nn?.focus?.(et);},findItem:({key:et})=>{const Qe=ct(),{key2element:We}=hy(Qe,Ae);return We.get(et)||null}}));const[Oe,xe]=fn(D||[],L),ke=f.useMemo(()=>Array.isArray(Oe)?Oe:Oe==null?Wc:[Oe],[Oe]),Xe=et=>{if(P){const{key:Qe}=et,We=ke.includes(Qe);let ft;O?We?ft=ke.filter(Ut=>Ut!==Qe):ft=[...ke,Qe]:ft=[Qe],xe(ft);const Rt={...et,selectedKeys:ft};We?U?.(Rt):F?.(Rt);}!O&&ve.length&&De!=="inline"&&Ne(Wc);},it=kh(et=>{J?.(py(et)),Xe(et);}),dt=kh((et,Qe)=>{let We=ve.filter(ft=>ft!==et);if(Qe)We.push(et);else if(De!=="inline"){const ft=bt(et);We=We.filter(Rt=>!ft.has(Rt));}ec(ve,We,true)||Ne(We,true);}),Tt=vue(De,ye,Ye,Ae,Ce,ct,ut,Me,(et,Qe)=>{const We=Qe??!ve.includes(et);dt(et,We);},te);f.useEffect(()=>{be(true);},[]);const At=f.useMemo(()=>({_internalRenderMenuItem:de,_internalRenderSubMenuItem:ne}),[de,ne]),yn=De!=="horizontal"||C?$e:$e.map((et,Qe)=>f.createElement(Pp,{key:et.key,overflowDisabled:Qe>Ie,classNames:l,styles:s},et)),Un=f.createElement(Fa,Z2({id:g,ref:Ce,prefixCls:`${n}-overflow`,component:"ul",itemComponent:xg,className:X(n,`${n}-root`,`${n}-${De}`,i,{[`${n}-inline-collapsed`]:Je,[`${n}-rtl`]:Ye},r),dir:p,style:o,role:"menu",tabIndex:u,data:yn,renderRawItem:et=>et,renderRawRest:et=>{const Qe=et.length,We=Qe?$e.slice(-Qe):null;return f.createElement(B1,{eventKey:K2,title:_,disabled:Dt,internalPopupClose:Qe===0,popupClassName:B},We)},maxCount:De!=="horizontal"||C?Fa.INVALIDATE:Fa.RESPONSIVE,ssr:"full","data-menu-list":true,onVisibleChange:et=>{lt(et);},onKeyDown:Tt},se));return f.createElement(iA.Provider,{value:At},f.createElement(A7.Provider,{value:Ae},f.createElement(Pp,{prefixCls:n,rootClassName:r,classNames:l,styles:s,mode:De,openKeys:ve,rtl:Ye,disabled:S,motion:pe?z:null,defaultMotions:pe?k:null,activeKey:ye,onActive:Se,onInactive:he,selectedKeys:ke,inlineIndent:W,subMenuOpenDelay:w,subMenuCloseDelay:E,forceSubMenuRender:M,builtinPlacements:j,triggerSubMenuAction:G,getPopupContainer:Y,itemIcon:K,expandIcon:Q,onItemClick:it,onOpenChange:dt,popupRender:ce},f.createElement(O7.Provider,{value:Ue},Un),f.createElement("div",{style:{display:"none"},"aria-hidden":true},f.createElement(P7.Provider,{value:Fe},le)))))}),tm=Iue;tm.Item=xg;tm.SubMenu=B1;tm.ItemGroup=uA;tm.Divider=cA;const F7=f.createContext({});var Oue={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"};function J2(){return J2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},J2.apply(this,arguments)}const Due=(e,t)=>f.createElement(Xn,J2({},e,{ref:t,icon:Oue})),dA=f.forwardRef(Due),vy=f.createContext({prefixCls:"",firstLevel:true,inlineCollapsed:false,styles:null,classNames:null}),H7=e=>{const{prefixCls:t,className:n,dashed:r,...o}=e,{getPrefixCls:i}=f.useContext(wt),s=i("menu",t),l=X({[`${s}-item-divider-dashed`]:!!r},n);return f.createElement(cA,{className:l,...o})},V7=e=>{const{className:t,children:n,icon:r,title:o,danger:i,extra:s}=e,{prefixCls:l,firstLevel:u,direction:d,disableMenuItemTitleTooltip:m,tooltip:p,inlineCollapsed:g,styles:b,classNames:y}=f.useContext(vy),S=N=>{const P=n?.[0],O=f.createElement("span",{className:X(`${l}-title-content`,u?y?.itemContent:y?.subMenu?.itemContent,{[`${l}-title-content-with-extra`]:!!s||s===0}),style:u?b?.itemContent:b?.subMenu?.itemContent},n);return (!r||f.isValidElement(n)&&n.type==="span")&&n&&N&&u&&typeof P=="string"?f.createElement("div",{className:`${l}-inline-collapsed-noicon`},P.charAt(0)):O},{siderCollapsed:C}=f.useContext(F7);let w=o;typeof o>"u"?w=u?n:"":o===false&&(w="");const E=p===false?void 0:p,M=E&&E.title!==void 0?E.title:w,T={...E??null,title:M};!C&&!g&&(T.title=null,T.open=false);const A=ri(n).length;let I=f.createElement(xg,{...kn(e,["title","icon","danger"]),className:X(u?y?.item:y?.subMenu?.item,{[`${l}-item-danger`]:i,[`${l}-item-only-child`]:(r?A+1:A)===1},t),style:{...u?b?.item:b?.subMenu?.item,...e.style},title:typeof o=="string"?o:void 0},qr(r,N=>({className:X(`${l}-item-icon`,u?y?.itemIcon:y?.subMenu?.itemIcon,N.className),style:{...u?b?.itemIcon:b?.subMenu?.itemIcon,...N.style}})),S(g));if(!m&&p!==false){const N=E&&E.placement?E.placement:d==="rtl"?"left":"right",P=`${l}-inline-collapsed-tooltip`,O=L=>({...L,root:X(P,L?.root)}),D=E&&typeof E.classNames=="function"?L=>{const F=E.classNames(L);return O(F)}:O(E?.classNames);I=f.createElement(gc,{...T,placement:N,classNames:D},I);}return I},by=f.createContext(null),_ue=f.forwardRef((e,t)=>{const{children:n,...r}=e,o=f.useContext(by),i=f.useMemo(()=>({...o,...r}),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),s=PJ(n),l=Ya(t,s?hc(n):null);return f.createElement(by.Provider,{value:i},f.createElement(oc,{space:true},s?f.cloneElement(n,{ref:l}):n))}),Lue=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:s,itemPaddingInline:l}=e;return {[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${oe(i)} ${s} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
        > ${t}-item-active,
        > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:["border-color","background-color"].map(u=>`${u} ${n}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Bue=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
    ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${oe(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${oe(t)})`}}}}),CD=e=>$s(e),xD=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:s,itemBg:l,subMenuItemBg:u,itemSelectedBg:d,activeBarHeight:m,activeBarWidth:p,activeBarBorderWidth:g,motionDurationSlow:b,motionEaseInOut:y,motionEaseOut:S,itemPaddingInline:C,motionDurationMid:w,itemHoverColor:E,lineType:M,colorSplit:T,itemDisabledColor:A,dangerItemColor:I,dangerItemHoverColor:N,dangerItemSelectedColor:P,dangerItemActiveBg:O,dangerItemSelectedBg:D,popupBg:L,itemHoverBg:F,itemActiveBg:U,menuSubMenuBg:W,horizontalItemSelectedColor:z,horizontalItemSelectedBg:k,horizontalItemBorderRadius:G,horizontalItemHoverBg:j}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:{...CD(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:s}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...CD(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${A} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:E}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:F},"&:active":{backgroundColor:U}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:F},"&:active":{backgroundColor:U}}},[`${n}-item-danger`]:{color:I,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:N}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:P},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:d,[`&${n}-item-danger`]:{backgroundColor:D}},[`&${n}-submenu > ${n}`]:{backgroundColor:W},[`&${n}-popup > ${n}`]:{backgroundColor:L},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:L},[`&${n}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:g,marginTop:e.calc(g).mul(-1).equal(),marginBottom:0,borderRadius:G,"&::after":{position:"absolute",insetInline:C,bottom:0,borderBottom:`${oe(m)} solid transparent`,transition:`border-color ${b} ${y}`,content:'""'},"&:hover, &-active, &-open":{background:j,"&::after":{borderBottomWidth:m,borderBottomColor:z}},"&-selected":{color:z,backgroundColor:k,"&:hover":{backgroundColor:k},"&::after":{borderBottomWidth:m,borderBottomColor:z}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${oe(g)} ${M} ${T}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:u},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${oe(p)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(K=>`${K} ${w} ${S}`).join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:P}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(K=>`${K} ${w} ${y}`).join(",")}}}}}},wD=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:s,itemMarginBlock:l,itemWidth:u,itemPaddingInline:d}=e,m=e.calc(i).add(o).add(s).equal();return {[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:oe(n),paddingInline:d,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:u},[`> ${t}-item,
            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:oe(n)},[`${t}-item-group-list ${t}-submenu-title,
            ${t}-submenu-title`]:{paddingInlineEnd:m}}},kue=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:s,motionEaseOut:l,paddingXL:u,itemMarginInline:d,fontSizeLG:m,motionDurationFast:p,motionDurationSlow:g,paddingXS:b,boxShadowSecondary:y,collapsedWidth:S,collapsedIconSize:C}=e,w={height:r,lineHeight:oe(r),listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...wD(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...wD(e),boxShadow:y}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${oe(e.calc(s).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${g}`,`background-color ${g}`,`padding ${p} ${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`]:w,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:w}},{[`${t}-inline-collapsed`]:{width:S,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:m,textAlign:"center"}}},[`> ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
          > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${oe(e.calc(C).div(2).equal())} - ${oe(d)})`,textOverflow:"clip",[`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:C,lineHeight:oe(r),"+ 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`]:{...ra,paddingInline:b}}}]},ED=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:s,iconSize:l,iconMarginInlineEnd:u}=e;return {[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${s}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:u,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:{...ju()},[`&${t}-item-only-child`]:{[`> ${s}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},$D=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:s}=e;return {[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:["transform","opacity"].map(l=>`${l} ${n}`).join(",")},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:["background-color","transform","top","color"].map(l=>`${l} ${n} ${r}`).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${oe(e.calc(s).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${oe(s)})`}}}}},zue=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:s,paddingXS:l,padding:u,colorSplit:d,lineWidth:m,zIndexPopup:p,borderRadiusLG:g,subMenuItemBorderRadius:b,menuArrowSize:y,menuArrowOffset:S,lineType:C,groupTitleLineHeight:w,groupTitleFontSize:E}=e;return [{"":{[n]:{...ey(),"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...mn(e),...ey(),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:`${oe(l)} ${oe(u)}`,fontSize:E,lineHeight:w,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:["border-color","background-color"].map(M=>`${M} ${o} ${s}`).join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o}`,`background-color ${o}`,`padding ${i}`].map(M=>`${M} ${s}`).join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:["background-color","padding"].map(M=>`${M} ${o} ${s}`).join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:C,borderWidth:0,borderTopWidth:m,marginBlock:m,padding:0,"&-dashed":{borderStyle:"dashed"}},...ED(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${oe(e.calc(r).mul(2).equal())} ${oe(u)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,borderRadius:g,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:{borderRadius:g,...ED(e),...$D(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:b},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${s}`}}},"\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}},...$D(e),[`&-inline-collapsed ${n}-submenu-arrow,
        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${oe(S)})`},"&::after":{transform:`rotate(45deg) translateX(${oe(e.calc(S).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${oe(e.calc(y).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${oe(e.calc(S).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${oe(S)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Fue=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:s,colorBgContainer:l,colorFillAlter:u,colorFillContent:d,lineWidth:m,lineWidthBold:p,controlItemBgActive:g,colorBgTextHover:b,controlHeightLG:y,lineHeight:S,colorBgElevated:C,marginXXS:w,padding:E,fontSize:M,controlHeightSM:T,fontSizeLG:A,colorTextLightSolid:I,colorErrorHover:N}=e,P=e.activeBarWidth??0,O=e.activeBarBorderWidth??m,D=e.itemMarginInline??e.marginXXS,L=new dn(I).setA(.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:s,groupTitleColor:s,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:b,itemHoverBg:b,colorItemBgActive:d,itemActiveBg:g,colorSubItemBg:u,subMenuItemBg:u,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:m,activeBarBorderWidth:O,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:D,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:S,collapsedWidth:y*2,popupBg:C,itemMarginBlock:w,itemPaddingInline:E,horizontalLineHeight:`${y*1.15}px`,iconSize:M,iconMarginInlineEnd:T-M,collapsedIconSize:A,groupTitleFontSize:M,darkItemDisabledColor:new dn(I).setA(.25).toRgbString(),darkItemColor:L,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:I,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:L,darkItemHoverColor:I,darkDangerItemHoverColor:N,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:n,itemWidth:P?`calc(100% + ${O}px)`:`calc(100% - ${D*2}px)`}},Hue=(e,t=e,n=true)=>Wt("Menu",o=>{const{colorBgElevated:i,controlHeightLG:s,fontSize:l,darkItemColor:u,darkDangerItemColor:d,darkItemBg:m,darkSubMenuItemBg:p,darkItemSelectedColor:g,darkItemSelectedBg:b,darkDangerItemSelectedBg:y,darkItemHoverBg:S,darkGroupTitleColor:C,darkItemHoverColor:w,darkItemDisabledColor:E,darkDangerItemHoverColor:M,darkDangerItemSelectedColor:T,darkDangerItemActiveBg:A,popupBg:I,darkPopupBg:N}=o,P=o.calc(l).div(7).mul(5).equal(),O=zt(o,{menuArrowSize:P,menuHorizontalHeight:o.calc(s).mul(1.15).equal(),menuArrowOffset:o.calc(P).mul(.25).equal(),menuSubMenuBg:i,calc:o.calc,popupBg:I}),D=zt(O,{itemColor:u,itemHoverColor:w,groupTitleColor:C,itemSelectedColor:g,subMenuItemSelectedColor:g,itemBg:m,popupBg:N,subMenuItemBg:p,itemActiveBg:"transparent",itemSelectedBg:b,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:E,dangerItemColor:d,dangerItemHoverColor:M,dangerItemSelectedColor:T,dangerItemActiveBg:A,dangerItemSelectedBg:y,menuSubMenuBg:p,horizontalItemSelectedColor:g,horizontalItemSelectedBg:b});return [zue(O),Lue(O),kue(O),xD(O,"light"),xD(D,"dark"),Bue(O),rF(O),rc(O,"slide-up"),rc(O,"slide-down"),mg(O,"zoom-big")]},Fue,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:true}})(e,t),j7=e=>{const{popupClassName:t,icon:n,title:r,theme:o}=e,i=f.useContext(vy),{prefixCls:s,inlineCollapsed:l,theme:u,classNames:d,styles:m}=i,p=em();let g;if(!n)g=l&&!p.length&&r&&typeof r=="string"?f.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):f.createElement("span",{className:`${s}-title-content`},r);else {const S=f.isValidElement(r)&&r.type==="span";g=f.createElement(f.Fragment,null,qr(n,C=>({className:X(C.className,`${s}-item-icon`,d?.itemIcon),style:{...C.style,...m?.itemIcon}})),S?r:f.createElement("span",{className:`${s}-title-content`},r));}const b=f.useMemo(()=>({...i,firstLevel:false}),[i]),[y]=Wu("Menu");return f.createElement(vy.Provider,{value:b},f.createElement(B1,{...kn(e,["icon"]),title:g,classNames:{list:d?.subMenu?.list,listTitle:d?.subMenu?.itemTitle},styles:{list:m?.subMenu?.list,listTitle:m?.subMenu?.itemTitle},popupClassName:X(s,t,d?.popup?.root,`${s}-${o||u}`),popupStyle:{zIndex:y,...e.popupStyle,...m?.popup?.root}}))};function ww(e){return e===null||e===false}const Vue={item:V7,submenu:j7,divider:H7},jue=f.forwardRef((e,t)=>{const n=f.useContext(by),r=n||{},{prefixCls:o,className:i,style:s,theme:l="light",expandIcon:u,_internalDisableMenuItemTitleTooltip:d,tooltip:m,inlineCollapsed:p,siderCollapsed:g,rootClassName:b,mode:y,selectable:S,onClick:C,overflowedIndicatorPopupClassName:w,classNames:E,styles:M,...T}=e,{menu:A}=f.useContext(wt),{getPrefixCls:I,getPopupContainer:N,direction:P,className:O,style:D,classNames:L,styles:F}=jt("menu"),U=I(),W=kn(T,["collapsedWidth"]);r.validator?.({mode:y});const z=Mt((...ne)=>{C?.(...ne),r.onClick?.();}),k=r.mode||y,G=S??r.selectable,j=p??g,K={...e,mode:k,inlineCollapsed:j,selectable:G,theme:l},[Q,_]=qt([L,E],[F,M],{props:K},{popup:{_default:"root"},subMenu:{_default:"item"}}),B={horizontal:{motionName:`${U}-slide-up`},inline:eF(U),other:{motionName:`${U}-zoom-big`}},Y=I("menu",o||r.prefixCls),J=Qn(Y),[ee,te]=Hue(Y,J,!n),re=X(`${Y}-${l}`,O,i),ie=f.useMemo(()=>{if(typeof u=="function"||ww(u))return u||null;if(typeof r.expandIcon=="function"||ww(r.expandIcon))return r.expandIcon||null;if(typeof A?.expandIcon=="function"||ww(A?.expandIcon))return A?.expandIcon||null;const ne=u??r?.expandIcon??A?.expandIcon;return qr(ne,{className:X(`${Y}-submenu-expand-icon`,f.isValidElement(ne)?ne.props?.className:void 0)})},[u,r?.expandIcon,A?.expandIcon,Y]),de=f.useMemo(()=>({prefixCls:Y,inlineCollapsed:j||false,direction:P,firstLevel:true,theme:l,mode:k,disableMenuItemTitleTooltip:d,tooltip:m,classNames:Q,styles:_}),[Y,j,P,d,l,k,Q,_,m]);return f.createElement(by.Provider,{value:null},f.createElement(vy.Provider,{value:de},f.createElement(tm,{getPopupContainer:N,overflowedIndicator:f.createElement(dA,null),overflowedIndicatorPopupClassName:X(Y,`${Y}-${l}`,w),classNames:{list:Q.list,listTitle:Q.itemTitle},styles:{list:_.list,listTitle:_.itemTitle},mode:k,selectable:G,onClick:z,...W,inlineCollapsed:j,style:{..._.root,...D,...s},className:re,prefixCls:Y,direction:P,defaultMotions:B,expandIcon:ie,ref:t,rootClassName:X(b,ee,r.rootClassName,te,J,Q.root),_internalComponents:Vue})))}),vc=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f.useContext(F7);return f.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{n.current?.focus(o);}})),f.createElement(jue,{ref:n,...e,...r})});vc.Item=V7;vc.SubMenu=j7;vc.Divider=H7;vc.ItemGroup=uA;const Uue=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return {[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},Wue=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:s,iconCls:l,motionDurationMid:u,paddingBlock:d,fontSize:m,dropdownEdgeChildPadding:p,colorTextDisabled:g,fontSizeIcon:b,controlPaddingHorizontal:y,colorBgElevated:S}=e;return [{[t]:{position:"absolute",top:-9999,left:{_skip_check_:true,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${s}-btn`]:{[`& > ${l}-down, & > ${s}-btn-icon > ${l}-down`]:{fontSize:b}},[`${t}-wrap`]:{position:"relative",[`${s}-btn > ${l}-down`]:{fontSize:b},[`${l}-down::before`]:{transition:`transform ${u}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},[`&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomLeft,
          &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomLeft,
          &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottom,
          &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottom,
          &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomRight,
          &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:IT},[`&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topLeft,
          &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topLeft,
          &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-top,
          &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-top,
          &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topRight,
          &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topRight`]:{animationName:DT},[`&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomLeft,
          &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottom,
          &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:OT},[`&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topLeft,
          &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-top,
          &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topRight`]:{animationName:_T}}},oA(e,S,{arrowPlacement:{top:true,bottom:true}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{...mn(e),[n]:{padding:p,listStyleType:"none",backgroundColor:S,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...Ai(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${oe(d)} ${oe(y)}`,color:e.colorTextDescription,transition:`all ${u}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:m,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${u}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:"flex",margin:0,padding:`${oe(d)} ${oe(y)}`,color:e.colorText,fontWeight:"normal",fontSize:m,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${u}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...Ai(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:S,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${oe(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:b,fontStyle:"normal"}}},[`${n}-item-group-list`]:{margin:`0 ${oe(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(y).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:S,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[rc(e,"slide-up"),rc(e,"slide-down"),ay(e,"move-up"),ay(e,"move-down"),mg(e,"zoom-big")]]},Gue=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...O1({contentRadius:e.borderRadiusLG,limitVerticalRadius:true}),...rA(e)}),que=Wt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=zt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return [Wue(i),Uue(i)]},Gue,{resetStyle:false}),k1=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:s,dropdownRender:l,popupRender:u,getPopupContainer:d,overlayClassName:m,rootClassName:p,overlayStyle:g,open:b,onOpenChange:y,mouseEnterDelay:S=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:w=true,placement:E="",transitionName:M,classNames:T,styles:A,destroyPopupOnHide:I,destroyOnHidden:N}=e,{getPrefixCls:P,direction:O,getPopupContainer:D,className:L,style:F,classNames:U,styles:W}=jt("dropdown"),z={...e,mouseEnterDelay:S,mouseLeaveDelay:C,autoAdjustOverflow:w},[k,G]=qt([U,T],[W,A],{props:z}),j={...F,...g,...G.root},K=u||l,Q=f.useMemo(()=>{const Re=P();return M!==void 0?M:E.includes("top")?`${Re}-slide-down`:`${Re}-slide-up`},[P,E,M]),_=f.useMemo(()=>E?E.includes("Center")?E.slice(0,E.indexOf("Center")):E:O==="rtl"?"bottomRight":"bottomLeft",[E,O]),B=P("dropdown",r),Y=Qn(B),[J,ee]=que(B,Y),[,te]=Xr(),re=f.Children.only(due(o)?f.createElement("span",null,o):o),ie=qr(re,{className:X(`${B}-trigger`,{[`${B}-rtl`]:O==="rtl"},re.props.className),disabled:re.props.disabled??s}),de=s?[]:i,ne=!!de?.includes("contextMenu"),[ae,ce]=fn(false,b),se=Mt(Re=>{y?.(Re,{source:"trigger"}),ce(Re);}),$e=X(m,p,J,ee,Y,L,k.root,{[`${B}-rtl`]:O==="rtl"}),le=y7({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:w,offset:te.marginXXS,arrowWidth:n?te.sizePopupArrow:0,borderRadius:te.borderRadius}),pe=Mt(()=>{t?.selectable&&t?.multiple||(y?.(false,{source:"menu"}),ce(false));}),be=()=>{const Re=kn(k,["root"]),fe=kn(G,["root"]);let ve;return t?.items&&(ve=f.createElement(vc,{...t,classNames:{...Re,subMenu:{...Re}},styles:{...fe,subMenu:{...fe}}})),K&&(ve=K(ve)),ve=f.Children.only(typeof ve=="string"?f.createElement("span",null,ve):ve),f.createElement(_ue,{prefixCls:`${B}-menu`,rootClassName:X(ee,Y),expandIcon:f.createElement("span",{className:`${B}-menu-submenu-arrow`},O==="rtl"?f.createElement(Np,{className:`${B}-menu-submenu-arrow-icon`}):f.createElement(Nf,{className:`${B}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:false,onClick:pe,validator:({mode:Ne})=>{}},ve)},[Ce,Ae]=Wu("Dropdown",j.zIndex);let Ye=f.createElement(T7,{alignPoint:ne,...kn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:S,mouseLeaveDelay:C,visible:ae,builtinPlacements:le,arrow:!!n,overlayClassName:$e,prefixCls:B,getPopupContainer:d||D,transitionName:Q,trigger:de,overlay:be,placement:_,onVisibleChange:se,overlayStyle:{...j,zIndex:Ce},autoDestroy:N??I},ie);return Ce&&(Ye=f.createElement(w1.Provider,{value:Ae},Ye)),Ye},Kue=KT(k1,"align",void 0,"dropdown",e=>e),Yue=e=>f.createElement(Kue,{...e},f.createElement("span",null));k1._InternalPanelDoNotUseOrYouWillBeFired=Yue;var g0={exports:{}},Xue=g0.exports,MD;function Que(){return MD||(MD=1,(function(e,t){(function(n,r){e.exports=r();})(Xue,(function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",l="minute",u="hour",d="day",m="week",p="month",g="quarter",b="year",y="date",S="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var z=["th","st","nd","rd"],k=W%100;return "["+W+(z[(k-20)%10]||z[k]||z[0])+"]"}},M=function(W,z,k){var G=String(W);return !G||G.length>=z?W:""+Array(z+1-G.length).join(k)+W},T={s:M,z:function(W){var z=-W.utcOffset(),k=Math.abs(z),G=Math.floor(k/60),j=k%60;return (z<=0?"+":"-")+M(G,2,"0")+":"+M(j,2,"0")},m:function W(z,k){if(z.date()<k.date())return -W(k,z);var G=12*(k.year()-z.year())+(k.month()-z.month()),j=z.clone().add(G,p),K=k-j<0,Q=z.clone().add(G+(K?-1:1),p);return +(-(G+(k-j)/(K?j-Q:Q-j))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return {M:p,y:b,w:m,d,D:y,h:u,m:l,s,ms:i,Q:g}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},A="en",I={};I[A]=E;var N="$isDayjsObject",P=function(W){return W instanceof F||!(!W||!W[N])},O=function W(z,k,G){var j;if(!z)return A;if(typeof z=="string"){var K=z.toLowerCase();I[K]&&(j=K),k&&(I[K]=k,j=K);var Q=z.split("-");if(!j&&Q.length>1)return W(Q[0])}else {var _=z.name;I[_]=z,j=_;}return !G&&j&&(A=j),j||!G&&A},D=function(W,z){if(P(W))return W.clone();var k=typeof z=="object"?z:{};return k.date=W,k.args=arguments,new F(k)},L=T;L.l=O,L.i=P,L.w=function(W,z){return D(W,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var F=(function(){function W(k){this.$L=O(k.locale,null,true),this.parse(k),this.$x=this.$x||k.x||{},this[N]=true;}var z=W.prototype;return z.parse=function(k){this.$d=(function(G){var j=G.date,K=G.utc;if(j===null)return new Date(NaN);if(L.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var Q=j.match(C);if(Q){var _=Q[2]-1||0,B=(Q[7]||"0").substring(0,3);return K?new Date(Date.UTC(Q[1],_,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,B)):new Date(Q[1],_,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,B)}}return new Date(j)})(k),this.init();},z.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds();},z.$utils=function(){return L},z.isValid=function(){return this.$d.toString()!==S},z.isSame=function(k,G){var j=D(k);return this.startOf(G)<=j&&j<=this.endOf(G)},z.isAfter=function(k,G){return D(k)<this.startOf(G)},z.isBefore=function(k,G){return this.endOf(G)<D(k)},z.$g=function(k,G,j){return L.u(k)?this[G]:this.set(j,k)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(k,G){var j=this,K=!!L.u(G)||G,Q=L.p(k),_=function(de,ne){var ae=L.w(j.$u?Date.UTC(j.$y,ne,de):new Date(j.$y,ne,de),j);return K?ae:ae.endOf(d)},B=function(de,ne){return L.w(j.toDate()[de].apply(j.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(ne)),j)},Y=this.$W,J=this.$M,ee=this.$D,te="set"+(this.$u?"UTC":"");switch(Q){case b:return K?_(1,0):_(31,11);case p:return K?_(1,J):_(0,J+1);case m:var re=this.$locale().weekStart||0,ie=(Y<re?Y+7:Y)-re;return _(K?ee-ie:ee+(6-ie),J);case d:case y:return B(te+"Hours",0);case u:return B(te+"Minutes",1);case l:return B(te+"Seconds",2);case s:return B(te+"Milliseconds",3);default:return this.clone()}},z.endOf=function(k){return this.startOf(k,false)},z.$set=function(k,G){var j,K=L.p(k),Q="set"+(this.$u?"UTC":""),_=(j={},j[d]=Q+"Date",j[y]=Q+"Date",j[p]=Q+"Month",j[b]=Q+"FullYear",j[u]=Q+"Hours",j[l]=Q+"Minutes",j[s]=Q+"Seconds",j[i]=Q+"Milliseconds",j)[K],B=K===d?this.$D+(G-this.$W):G;if(K===p||K===b){var Y=this.clone().set(y,1);Y.$d[_](B),Y.init(),this.$d=Y.set(y,Math.min(this.$D,Y.daysInMonth())).$d;}else _&&this.$d[_](B);return this.init(),this},z.set=function(k,G){return this.clone().$set(k,G)},z.get=function(k){return this[L.p(k)]()},z.add=function(k,G){var j,K=this;k=Number(k);var Q=L.p(G),_=function(J){var ee=D(K);return L.w(ee.date(ee.date()+Math.round(J*k)),K)};if(Q===p)return this.set(p,this.$M+k);if(Q===b)return this.set(b,this.$y+k);if(Q===d)return _(1);if(Q===m)return _(7);var B=(j={},j[l]=r,j[u]=o,j[s]=n,j)[Q]||1,Y=this.$d.getTime()+k*B;return L.w(Y,this)},z.subtract=function(k,G){return this.add(-1*k,G)},z.format=function(k){var G=this,j=this.$locale();if(!this.isValid())return j.invalidDate||S;var K=k||"YYYY-MM-DDTHH:mm:ssZ",Q=L.z(this),_=this.$H,B=this.$m,Y=this.$M,J=j.weekdays,ee=j.months,te=j.meridiem,re=function(ne,ae,ce,se){return ne&&(ne[ae]||ne(G,K))||ce[ae].slice(0,se)},ie=function(ne){return L.s(_%12||12,ne,"0")},de=te||function(ne,ae,ce){var se=ne<12?"AM":"PM";return ce?se.toLowerCase():se};return K.replace(w,(function(ne,ae){return ae||(function(ce){switch(ce){case "YY":return String(G.$y).slice(-2);case "YYYY":return L.s(G.$y,4,"0");case "M":return Y+1;case "MM":return L.s(Y+1,2,"0");case "MMM":return re(j.monthsShort,Y,ee,3);case "MMMM":return re(ee,Y);case "D":return G.$D;case "DD":return L.s(G.$D,2,"0");case "d":return String(G.$W);case "dd":return re(j.weekdaysMin,G.$W,J,2);case "ddd":return re(j.weekdaysShort,G.$W,J,3);case "dddd":return J[G.$W];case "H":return String(_);case "HH":return L.s(_,2,"0");case "h":return ie(1);case "hh":return ie(2);case "a":return de(_,B,true);case "A":return de(_,B,false);case "m":return String(B);case "mm":return L.s(B,2,"0");case "s":return String(G.$s);case "ss":return L.s(G.$s,2,"0");case "SSS":return L.s(G.$ms,3,"0");case "Z":return Q}return null})(ne)||Q.replace(":","")}))},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(k,G,j){var K,Q=this,_=L.p(G),B=D(k),Y=(B.utcOffset()-this.utcOffset())*r,J=this-B,ee=function(){return L.m(Q,B)};switch(_){case b:K=ee()/12;break;case p:K=ee();break;case g:K=ee()/3;break;case m:K=(J-Y)/6048e5;break;case d:K=(J-Y)/864e5;break;case u:K=J/o;break;case l:K=J/r;break;case s:K=J/n;break;default:K=J;}return j?K:L.a(K)},z.daysInMonth=function(){return this.endOf(p).$D},z.$locale=function(){return I[this.$L]},z.locale=function(k,G){if(!k)return this.$L;var j=this.clone(),K=O(k,G,true);return K&&(j.$L=K),j},z.clone=function(){return L.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},W})(),U=F.prototype;return D.prototype=U,[["$ms",i],["$s",s],["$m",l],["$H",u],["$W",d],["$M",p],["$y",b],["$D",y]].forEach((function(W){U[W[1]]=function(z){return this.$g(z,W[0],W[1])};})),D.extend=function(W,z){return W.$i||(W(z,F,D),W.$i=true),D},D.locale=O,D.isDayjs=P,D.unix=function(W){return D(1e3*W)},D.en=I[A],D.Ls=I,D.p={},D}));})(g0)),g0.exports}var Zue=Que();const Yn=Ni(Zue);function Jue(e){return e===void 0||e===false?[]:Array.isArray(e)?e:[e]}function ede(e){return Jue(e).join("_")}const U7=f.createContext(void 0),tde=U7.Provider,W7=f.createContext(void 0),nde=W7.Provider;function e3(){return e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},e3.apply(this,arguments)}const G7=f.forwardRef((e,t)=>{const{prefixCls:n="rc-checkbox",className:r,style:o,checked:i,disabled:s,defaultChecked:l=false,type:u="checkbox",title:d,onChange:m,...p}=e,g=f.useRef(null),b=f.useRef(null),[y,S]=fn(l,i);f.useImperativeHandle(t,()=>({focus:E=>{g.current?.focus(E);},blur:()=>{g.current?.blur();},input:g.current,nativeElement:b.current}));const C=X(n,r,{[`${n}-checked`]:y,[`${n}-disabled`]:s}),w=E=>{s||("checked"in e||S(E.target.checked),m?.({target:{...e,type:u,checked:E.target.checked},stopPropagation(){E.stopPropagation();},preventDefault(){E.preventDefault();},nativeEvent:E.nativeEvent}));};return f.createElement("span",{className:C,title:d,style:o,ref:b},f.createElement("input",e3({},p,{className:`${n}-input`,ref:g,onChange:w,disabled:s,checked:!!y,type:u})))});function q7(e){const t=q.useRef(null),n=()=>{_t.cancel(t.current),t.current=null;};return [()=>{n(),t.current=_t(()=>{t.current=null;});},i=>{t.current&&(i.stopPropagation(),n()),e?.(i);}]}const rde=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:{...mn(e),display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"},"&-vertical":{display:"flex",flexDirection:"column",rowGap:e.marginXS,[`${t}-wrapper`]:{marginInlineEnd:0}}}}},ode=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:o,radioSize:i,motionDurationSlow:s,motionDurationMid:l,motionEaseInOutCirc:u,colorBgContainer:d,colorBorder:m,lineWidth:p,colorBgContainerDisabled:g,colorTextDisabled:b,paddingXS:y,dotColorDisabled:S,dotSize:C,lineType:w,radioColor:E,radioBgColor:M}=e;return {[`${t}-wrapper`]:{...mn(e),display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[t]:{...mn(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:`calc(${i} * 1px)`,height:`calc(${i} * 1px)`,backgroundColor:d,border:`${oe(p)} ${w} ${m}`,borderRadius:"50%",transition:`all ${l}`,flex:"none","&:after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(0)",width:`calc(${C} * 1px)`,height:`calc(${C} * 1px)`,backgroundColor:E,borderRadius:"50%",transformOrigin:"50% 50%",opacity:0,transition:`all ${s} ${u}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:$s(e)},[`&:hover ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:o,borderColor:"transparent"},[`${t}-checked`]:{backgroundColor:M,borderColor:r,"&::after":{transform:"translate(-50%, -50%)",opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:g,borderColor:m,"&::after":{backgroundColor:S}},[`${t}-disabled + span`]:{color:b,cursor:"not-allowed"},[`span${t} + *`]:{paddingInlineStart:y,paddingInlineEnd:y}}}},ide=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:s,motionDurationMid:l,buttonPaddingInline:u,fontSize:d,buttonBg:m,fontSizeLG:p,controlHeightLG:g,controlHeightSM:b,paddingXS:y,borderRadius:S,borderRadiusSM:C,borderRadiusLG:w,buttonCheckedBg:E,buttonSolidCheckedColor:M,colorTextDisabled:T,colorBgContainerDisabled:A,buttonCheckedBgDisabled:I,buttonCheckedColorDisabled:N,colorPrimary:P,colorPrimaryHover:O,colorPrimaryActive:D,buttonSolidCheckedBg:L,buttonSolidCheckedHoverBg:F,buttonSolidCheckedActiveBg:U,calc:W}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:oe(W(n).sub(W(o).mul(2)).equal()),background:m,border:`${oe(o)} ${i} ${s}`,borderBlockStartWidth:W(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:["color","background-color","box-shadow"].map(z=>`${z} ${l}`).join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:W(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${oe(o)} ${i} ${s}`,borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S},"&:first-child:last-child":{borderRadius:S},[`${r}-group-large &`]:{height:g,fontSize:p,lineHeight:oe(W(g).sub(W(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${r}-group-small &`]:{height:b,paddingInline:W(y).sub(o).equal(),paddingBlock:0,lineHeight:oe(W(b).sub(W(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},"&:hover":{position:"relative",color:P},"&:has(:focus-visible)":$s(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:P,background:E,borderColor:P,"&::before":{backgroundColor:P},"&:first-child":{borderColor:P},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:D,borderColor:D,"&::before":{backgroundColor:D}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:M,background:L,borderColor:L,"&:hover":{color:M,background:F,borderColor:F},"&:active":{color:M,background:U,borderColor:U}},"&-disabled":{color:T,backgroundColor:A,borderColor:s,cursor:"not-allowed","&:first-child, &:hover":{color:T,backgroundColor:A,borderColor:s}},[`&-disabled${r}-button-wrapper-checked`]:{color:N,backgroundColor:I,borderColor:s,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},sde=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:s,colorBgContainer:l,colorTextDisabled:u,controlItemBgActiveDisabled:d,colorTextLightSolid:m,colorPrimary:p,colorPrimaryHover:g,colorPrimaryActive:b,colorWhite:y}=e,S=4,C=i,w=t?C-S*2:C-(S+o)*2;return {radioSize:C,dotSize:w,dotColorDisabled:u,buttonSolidCheckedColor:m,buttonSolidCheckedBg:p,buttonSolidCheckedHoverBg:g,buttonSolidCheckedActiveBg:b,buttonBg:l,buttonCheckedBg:l,buttonColor:s,buttonCheckedBgDisabled:d,buttonCheckedColorDisabled:u,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?p:y,radioBgColor:t?l:p}},K7=Wt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${oe(n)} ${t}`,i=zt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return [rde(i),ode(i),ide(i)]},sde,{unitless:{radioSize:true,dotSize:true}}),ade=(e,t)=>{const n=f.useContext(U7),r=f.useContext(W7),{getPrefixCls:o,direction:i,className:s,style:l,classNames:u,styles:d}=jt("radio"),m=f.useRef(null),p=Yr(t,m),{isFormItemInput:g}=f.useContext(Mo),b=B=>{e.onChange?.(B),n?.onChange?.(B);},{prefixCls:y,className:S,rootClassName:C,children:w,style:E,title:M,classNames:T,styles:A,...I}=e,N=o("radio",y),P=(n?.optionType||r)==="button",O=P?`${N}-button`:N,D=Qn(N),[L,F]=K7(N,D),U={...I},W=f.useContext(fo);let z=U.checked;n&&(U.name=n.name,U.onChange=b,z=e.value===n.value,U.disabled=U.disabled??n.disabled),U.disabled=U.disabled??W;const k={...e,...U,checked:z},[G,j]=qt([u,T],[d,A],{props:k}),K=X(`${O}-wrapper`,{[`${O}-wrapper-checked`]:z,[`${O}-wrapper-disabled`]:U.disabled,[`${O}-wrapper-rtl`]:i==="rtl",[`${O}-wrapper-in-form-item`]:g,[`${O}-wrapper-block`]:!!n?.block},s,S,C,G.root,L,F,D),[Q,_]=q7(U.onClick);return f.createElement(fg,{component:"Radio",disabled:U.disabled},f.createElement("label",{className:K,style:{...j.root,...l,...E},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:M,onClick:Q},f.createElement(G7,{...U,checked:z,className:X(G.icon,{[A1]:!P}),style:j.icon,type:"radio",prefixCls:O,ref:p,onClick:_}),w!==void 0?f.createElement("span",{className:X(`${O}-label`,G.label),style:j.label},w):null))},yy=f.forwardRef(ade),lde=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f.useContext(wt),{name:o}=f.useContext(Mo),i=Qa(ede(o)),{prefixCls:s,className:l,rootClassName:u,options:d,buttonStyle:m="outline",disabled:p,children:g,size:b,style:y,id:S,optionType:C,name:w=i,defaultValue:E,value:M,block:T=false,onChange:A,onMouseEnter:I,onMouseLeave:N,onFocus:P,onBlur:O,orientation:D,vertical:L,role:F="radiogroup"}=e,[U,W]=fn(E,M),z=f.useCallback(te=>{const re=U,ie=te.target.value;"value"in e||W(ie),ie!==re&&A?.(te);},[U,W,A]),k=n("radio",s),G=`${k}-group`,j=Qn(k),[K,Q]=K7(k,j);let _=g;d&&d.length>0&&(_=d.map(te=>typeof te=="string"||typeof te=="number"?f.createElement(yy,{key:te.toString(),prefixCls:k,disabled:p,value:te,checked:U===te},te):f.createElement(yy,{key:`radio-group-value-options-${te.value}`,prefixCls:k,disabled:te.disabled||p,value:te.value,checked:U===te.value,title:te.title,style:te.style,className:te.className,id:te.id,required:te.required},te.label)));const B=br(b),[,Y]=Uu(D,L),J=X(G,`${G}-${m}`,{[`${G}-large`]:B==="large",[`${G}-small`]:B==="small",[`${G}-rtl`]:r==="rtl",[`${G}-block`]:T},l,u,K,Q,j),ee=f.useMemo(()=>({onChange:z,value:U,disabled:p,name:w,optionType:C,block:T}),[z,U,p,w,C,T]);return f.createElement("div",{...$o(e,{aria:true,data:true}),role:F,className:X(J,{[`${k}-group-vertical`]:Y}),style:y,onMouseEnter:I,onMouseLeave:N,onFocus:P,onBlur:O,id:S,ref:t},f.createElement(tde,{value:ee},_))}),cde=f.memo(lde),ude=(e,t)=>{const{getPrefixCls:n}=f.useContext(wt),{prefixCls:r,...o}=e,i=n("radio",r);return f.createElement(nde,{value:"button"},f.createElement(yy,{prefixCls:i,...o,type:"radio",ref:t}))},dde=f.forwardRef(ude),Rr=yy;Rr.Button=dde;Rr.Group=cde;Rr.__ANT_RADIO=true;function nm(e){return zt(e,{inputAffixPadding:e.paddingXXS})}const rm=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:s,fontSizeLG:l,lineHeightLG:u,paddingSM:d,controlPaddingHorizontalSM:m,controlPaddingHorizontal:p,colorFillAlter:g,colorPrimaryHover:b,colorPrimary:y,controlOutlineWidth:S,controlOutline:C,colorErrorOutline:w,colorWarningOutline:E,colorBgContainer:M,inputFontSize:T,inputFontSizeLG:A,inputFontSizeSM:I}=e,N=T||n,P=I||N,O=A||l,D=Math.round((t-N*r)/2*10)/10-o,L=Math.round((i-P*r)/2*10)/10-o,F=Math.ceil((s-O*u)/2*10)/10-o;return {paddingBlock:Math.max(D,0),paddingBlockSM:Math.max(L,0),paddingBlockLG:Math.max(F,0),paddingInline:d-o,paddingInlineSM:m-o,paddingInlineLG:p-o,addonBg:g,activeBorderColor:y,hoverBorderColor:b,activeShadow:`0 0 0 ${S}px ${C}`,errorActiveShadow:`0 0 0 ${S}px ${w}`,warningActiveShadow:`0 0 0 ${S}px ${E}`,hoverBg:M,activeBg:M,inputFontSize:N,inputFontSizeLG:O,inputFontSizeSM:P}},fde=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),z1=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...fde(zt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),fA=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),TD=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...fA(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Y7=(e,t)=>({"&-outlined":{...fA(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...z1(e)},...TD(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...TD(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),AD=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),mde=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...AD(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...AD(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...z1(e)}}}}),X7=(e,t)=>{const{componentCls:n}=e;return {"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},Q7=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),RD=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Q7(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),Z7=(e,t)=>({"&-filled":{...Q7(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...z1(e)},...RD(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...RD(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),ND=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),hde=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...ND(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...ND(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),J7=(e,t)=>({background:e.colorBgContainer,borderWidth:`${oe(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),PD=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...J7(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),eH=(e,t)=>({"&-underlined":{...J7(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"},...PD(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...PD(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),tH=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),mA=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return {padding:`${oe(t)} ${oe(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},hA=e=>({padding:`${oe(e.paddingBlockSM)} ${oe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),F1=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${oe(e.paddingBlock)} ${oe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...tH(e.colorTextPlaceholder),"&-lg":{...mA(e),...t.largeStyle},"&-sm":{...hA(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),pde=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`]:{...mA(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...hA(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{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 ${oe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${oe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${oe(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${oe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${n}-cascader-picker`]:{margin:`-9px ${oe(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{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`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...ey(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
        & > ${t}-affix-wrapper,
        & > ${t}-number-affix-wrapper,
        & > ${n}-picker-range
      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select,
      & > ${n}-select-auto-complete ${t},
      & > ${n}-cascader-picker ${t},
      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
      & > ${n}-select:first-child,
      & > ${n}-select-auto-complete:first-child ${t},
      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
      & > ${n}-select:last-child,
      & > ${n}-cascader-picker:last-child ${t},
      & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},gde=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,s=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return {[t]:{...mn(e),...F1(e),...Y7(e),...Z7(e),...X7(e),...eH(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},vde=e=>{const{componentCls:t}=e;return {[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${oe(e.inputAffixPadding)}`}}}},bde=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:s,iconCls:l}=e,u=`${t}-affix-wrapper`,d=`${t}-affix-wrapper-disabled`;return {[u]:{...F1(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}},...vde(e),[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:s}}},[`${t}-underlined`]:{borderRadius:0},[d]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},yde=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return {[`${t}-group`]:{...mn(e),...pde(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...mde(e),...hde(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}},Sde=e=>{const{componentCls:t}=e;return {[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},nH=Wt(["Input","Shared"],e=>{const t=zt(e,nm(e));return [gde(t),bde(t)]},rm,{resetFont:false}),rH=Wt(["Input","Component"],e=>{const t=zt(e,nm(e));return [yde(t),Sde(t),Qf(t,{focus:true,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},rm,{resetFont:false});var Cde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function t3(){return t3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},t3.apply(this,arguments)}const xde=(e,t)=>f.createElement(Xn,t3({},e,{ref:t,icon:Cde})),oH=f.forwardRef(xde);var gh={exports:{}},ID;function wde(){if(ID)return gh.exports;ID=1,gh.exports=r,gh.exports.isMobile=r,gh.exports.default=r;const e=/(android|bb\d+|meego).+mobile|armv7l|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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,t=/CrOS/,n=/android|ipad|playbook|silk/i;function r(o){o||(o={});let i=o.ua;if(!i&&typeof navigator<"u"&&(i=navigator.userAgent),i&&i.headers&&typeof i.headers["user-agent"]=="string"&&(i=i.headers["user-agent"]),typeof i!="string")return  false;let s=e.test(i)&&!t.test(i)||!!o.tablet&&n.test(i);return !s&&o.tablet&&o.featureDetect&&navigator&&navigator.maxTouchPoints>1&&i.indexOf("Macintosh")!==-1&&i.indexOf("Safari")!==-1&&(s=true),s}return gh.exports}var Ede=wde();const $de=Ni(Ede);let Ew;const Mde=(()=>(typeof Ew>"u"&&(Ew=$de()),Ew)),pA=f.createContext(null),Tde=e=>{const{activeTabOffset:t,horizontal:n,rtl:r,indicator:o={}}=e,{size:i,align:s="center"}=o,[l,u]=f.useState(),d=f.useRef(),m=q.useCallback(g=>typeof i=="function"?i(g):typeof i=="number"?i:g,[i]);function p(){_t.cancel(d.current);}return f.useEffect(()=>{const g={};if(t)if(n){g.width=m(t.width);const b=r?"right":"left";s==="start"&&(g[b]=t[b]),s==="center"&&(g[b]=t[b]+t.width/2,g.transform=r?"translateX(50%)":"translateX(-50%)"),s==="end"&&(g[b]=t[b]+t.width,g.transform="translateX(-100%)");}else g.height=m(t.height),s==="start"&&(g.top=t.top),s==="center"&&(g.top=t.top+t.height/2,g.transform="translateY(-50%)"),s==="end"&&(g.top=t.top+t.height,g.transform="translateY(-100%)");return p(),d.current=_t(()=>{l&&g&&Object.keys(g).every(y=>{const S=g[y],C=l[y];return typeof S=="number"&&typeof C=="number"?Math.round(S)===Math.round(C):S===C})||u(g);}),p},[JSON.stringify(t),n,r,s,m]),{style:l}},OD={width:0,height:0,left:0,top:0};function Ade(e,t,n){return f.useMemo(()=>{const r=new Map,o=t.get(e[0]?.key)||OD,i=o.left+o.width;for(let s=0;s<e.length;s+=1){const{key:l}=e[s];let u=t.get(l);u||(u=t.get(e[s-1]?.key)||OD);const d=r.get(l)||{...u};d.right=i-d.left-d.width,r.set(l,d);}return r},[e.map(r=>r.key).join("_"),t,n])}function DD(e,t){const n=f.useRef(e),[,r]=f.useState({});function o(i){const s=typeof i=="function"?i(n.current):i;s!==n.current&&t(s,n.current),n.current=s,r({});}return [n.current,o]}const Rde=.1,_D=.01,v0=20,LD=.995**v0;function Nde(e,t){const[n,r]=f.useState(),[o,i]=f.useState(0),[s,l]=f.useState(0),[u,d]=f.useState(),m=f.useRef();function p(w){const{screenX:E,screenY:M}=w.touches[0];r({x:E,y:M}),window.clearInterval(m.current);}function g(w){if(!n)return;const{screenX:E,screenY:M}=w.touches[0];r({x:E,y:M});const T=E-n.x,A=M-n.y;t(T,A);const I=Date.now();i(I),l(I-o),d({x:T,y:A});}function b(){if(n&&(r(null),d(null),u)){const w=u.x/s,E=u.y/s,M=Math.abs(w),T=Math.abs(E);if(Math.max(M,T)<Rde)return;let A=w,I=E;m.current=window.setInterval(()=>{if(Math.abs(A)<_D&&Math.abs(I)<_D){window.clearInterval(m.current);return}A*=LD,I*=LD,t(A*v0,I*v0);},v0);}}const y=f.useRef();function S(w){const{deltaX:E,deltaY:M}=w;let T=0;const A=Math.abs(E),I=Math.abs(M);A===I?T=y.current==="x"?E:M:A>I?(T=E,y.current="x"):(T=M,y.current="y"),t(-T,-T)&&w.preventDefault();}const C=f.useRef(null);C.current={onTouchStart:p,onTouchMove:g,onTouchEnd:b,onWheel:S},f.useEffect(()=>{function w(A){C.current.onTouchStart(A);}function E(A){C.current.onTouchMove(A);}function M(A){C.current.onTouchEnd(A);}function T(A){C.current.onWheel(A);}return document.addEventListener("touchmove",E,{passive:false}),document.addEventListener("touchend",M,{passive:true}),e.current.addEventListener("touchstart",w,{passive:true}),e.current.addEventListener("wheel",T,{passive:false}),()=>{document.removeEventListener("touchmove",E),document.removeEventListener("touchend",M);}},[]);}function iH(e){const[t,n]=f.useState(0),r=f.useRef(0),o=f.useRef();return o.current=e,o0(()=>{o.current?.();},[t]),()=>{r.current===t&&(r.current+=1,n(r.current));}}function Pde(e){const t=f.useRef([]),[,n]=f.useState({}),r=f.useRef(typeof e=="function"?e():e),o=iH(()=>{let s=r.current;t.current.forEach(l=>{s=l(s);}),t.current=[],r.current=s,n({});});function i(s){t.current.push(s),o();}return [r.current,i]}const BD={width:0,height:0,left:0,top:0,right:0};function Ide(e,t,n,r,o,i,{tabs:s,tabPosition:l,rtl:u}){let d,m,p;return ["top","bottom"].includes(l)?(d="width",m=u?"right":"left",p=Math.abs(n)):(d="height",m="top",p=-n),f.useMemo(()=>{if(!s.length)return [0,0];const g=s.length;let b=g;for(let S=0;S<g;S+=1){const C=e.get(s[S].key)||BD;if(Math.floor(C[m]+C[d])>Math.floor(p+t)){b=S-1;break}}let y=0;for(let S=g-1;S>=0;S-=1)if((e.get(s[S].key)||BD)[m]<p){y=S+1;break}return y>b?[0,-1]:[y,b]},[e,t,r,o,i,p,l,s.map(g=>g.key).join("_"),u])}function kD(e){let t;return e instanceof Map?(t={},e.forEach((n,r)=>{t[r]=n;})):t=e,JSON.stringify(t)}const Ode="TABS_DQ";function sH(e){return String(e).replace(/"/g,Ode)}function gA(e,t,n,r){return !(!n||r||e===false||e===void 0&&(t===false||t===null))}const aH=f.forwardRef((e,t)=>{const{prefixCls:n,editable:r,locale:o,style:i}=e;return !r||r.showAdd===false?null:f.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:i,"aria-label":o?.addAriaLabel||"Add tab",onClick:s=>{r.onEdit("add",{event:s});}},r.addIcon||"+")}),zD=f.forwardRef((e,t)=>{const{position:n,prefixCls:r,extra:o}=e;if(!o)return null;let i,s={};return typeof o=="object"&&!f.isValidElement(o)?s=o:s.right=o,n==="right"&&(i=s.right),n==="left"&&(i=s.left),i?f.createElement("div",{className:`${r}-extra-content`,ref:t},i):null});function n3(){return n3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},n3.apply(this,arguments)}const Dde=f.forwardRef((e,t)=>{const{prefixCls:n,id:r,tabs:o,locale:i,mobile:s,more:l={},style:u,className:d,editable:m,tabBarGutter:p,rtl:g,removeAriaLabel:b,onTabClick:y,getPopupContainer:S,popupClassName:C,popupStyle:w}=e,[E,M]=f.useState(false),[T,A]=f.useState(null),{icon:I="More"}=l,N=`${r}-more-popup`,P=`${n}-dropdown`,O=T!==null?`${N}-${T}`:null,D=i?.dropdownAriaLabel;function L(j,K){j.preventDefault(),j.stopPropagation(),m.onEdit("remove",{key:K,event:j});}const F=f.createElement(tm,{onClick:({key:j,domEvent:K})=>{y(j,K),M(false);},prefixCls:`${P}-menu`,id:N,tabIndex:-1,role:"listbox","aria-activedescendant":O,selectedKeys:[T],"aria-label":D!==void 0?D:"expanded dropdown"},o.map(j=>{const{closable:K,disabled:Q,closeIcon:_,key:B,label:Y}=j,J=gA(K,_,m,Q);return f.createElement(xg,{key:B,id:`${N}-${B}`,role:"option","aria-controls":r&&`${r}-panel-${B}`,disabled:Q},f.createElement("span",null,Y),J&&f.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:`${P}-menu-item-remove`,onClick:ee=>{ee.stopPropagation(),L(ee,B);}},_||m.removeIcon||"×"))}));function U(j){const K=o.filter(B=>!B.disabled);let Q=K.findIndex(B=>B.key===T)||0;const _=K.length;for(let B=0;B<_;B+=1){Q=(Q+j+_)%_;const Y=K[Q];if(!Y.disabled){A(Y.key);return}}}function W(j){const{which:K}=j;if(!E){[st.DOWN,st.SPACE,st.ENTER].includes(K)&&(M(true),j.preventDefault());return}switch(K){case st.UP:U(-1),j.preventDefault();break;case st.DOWN:U(1),j.preventDefault();break;case st.ESC:M(false);break;case st.SPACE:case st.ENTER:T!==null&&y(T,j);break}}f.useEffect(()=>{const j=document.getElementById(O);j?.scrollIntoView&&j.scrollIntoView(false);},[O,T]),f.useEffect(()=>{E||A(null);},[E]);const z={marginInlineStart:p};o.length||(z.visibility="hidden",z.order=1);const k=X(C,{[`${P}-rtl`]:g}),G=s?null:f.createElement(T7,n3({prefixCls:P,overlay:F,visible:o.length?E:false,onVisibleChange:M,overlayClassName:k,overlayStyle:w,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:S},l),f.createElement("button",{type:"button",className:`${n}-nav-more`,style:z,"aria-haspopup":"listbox","aria-controls":N,id:`${r}-more`,"aria-expanded":E,onKeyDown:W},I));return f.createElement("div",{className:X(`${n}-nav-operations`,d),style:u,ref:t},G,f.createElement(aH,{prefixCls:n,locale:i,editable:m}))}),_de=f.memo(Dde,(e,t)=>t.tabMoving),Lde=e=>{const{prefixCls:t,id:n,active:r,focus:o,tab:{key:i,label:s,disabled:l,closeIcon:u,icon:d},closable:m,renderWrapper:p,removeAriaLabel:g,editable:b,onClick:y,onFocus:S,onBlur:C,onKeyDown:w,onMouseDown:E,onMouseUp:M,style:T,className:A,tabCount:I,currentPosition:N}=e,P=`${t}-tab`,O=gA(m,u,b,l);function D(z){l||y(z);}function L(z){z.preventDefault(),z.stopPropagation(),b.onEdit("remove",{key:i,event:z});}const F=f.useMemo(()=>d&&typeof s=="string"?f.createElement("span",null,s):s,[s,d]),U=f.useRef(null);f.useEffect(()=>{o&&U.current&&U.current.focus();},[o]);const W=f.createElement("div",{key:i,"data-node-key":sH(i),className:X(P,A,{[`${P}-with-remove`]:O,[`${P}-active`]:r,[`${P}-disabled`]:l,[`${P}-focus`]:o}),style:T,onClick:D},f.createElement("div",{ref:U,role:"tab","aria-selected":r,id:n&&`${n}-tab-${i}`,className:`${P}-btn`,"aria-controls":n&&`${n}-panel-${i}`,"aria-disabled":l,tabIndex:l?null:r?0:-1,onClick:z=>{z.stopPropagation(),D(z);},onKeyDown:w,onMouseDown:E,onMouseUp:M,onFocus:S,onBlur:C},o&&f.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${N} of ${I}`),d&&f.createElement("span",{className:`${P}-icon`},d),s&&F),O&&f.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:r?0:-1,className:`${P}-remove`,onClick:z=>{z.stopPropagation(),L(z);}},u||b.removeIcon||"×"));return p?p(W):W};function r3(){return r3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},r3.apply(this,arguments)}const Bde=(e,t)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:o,offsetLeft:i}=e,{width:s,height:l,left:u,top:d}=e.getBoundingClientRect();return Math.abs(s-n)<1?[s,l,u-t.left,d-t.top]:[n,r,i,o]},Kd=e=>{const{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){const{width:r,height:o}=e.current.getBoundingClientRect();if(Math.abs(r-t)<1)return [r,o]}return [t,n]},Tb=(e,t)=>e[t?0:1],FD=f.forwardRef((e,t)=>{const{className:n,style:r,id:o,animated:i,activeKey:s,rtl:l,extra:u,editable:d,locale:m,tabPosition:p,tabBarGutter:g,children:b,onTabClick:y,onTabScroll:S,indicator:C,classNames:w,styles:E}=e,{prefixCls:M,tabs:T}=f.useContext(pA),A=f.useRef(null),I=f.useRef(null),N=f.useRef(null),P=f.useRef(null),O=f.useRef(null),D=f.useRef(null),L=f.useRef(null),F=p==="top"||p==="bottom",[U,W]=DD(0,(he,Oe)=>{F&&S&&S({direction:he>Oe?"left":"right"});}),[z,k]=DD(0,(he,Oe)=>{!F&&S&&S({direction:he>Oe?"top":"bottom"});}),[G,j]=f.useState([0,0]),[K,Q]=f.useState([0,0]),[_,B]=f.useState([0,0]),[Y,J]=f.useState([0,0]),[ee,te]=Pde(new Map),re=Ade(T,ee,K[0]),ie=Tb(G,F),de=Tb(K,F),ne=Tb(_,F),ae=Tb(Y,F),ce=Math.floor(ie)<Math.floor(de+ne),se=ce?ie-ae:ie-ne,$e=`${M}-nav-operations-hidden`;let le=0,pe=0;F&&l?(le=0,pe=Math.max(0,de-se)):(le=Math.min(0,se-de),pe=0);function be(he){return he<le?le:he>pe?pe:he}const Ce=f.useRef(null),[Ae,Ye]=f.useState();function Re(){Ye(Date.now());}function fe(){Ce.current&&clearTimeout(Ce.current);}Nde(P,(he,Oe)=>{function xe(ke,Xe){ke(it=>be(it+Xe));}return ce?(F?xe(W,he):xe(k,Oe),fe(),Re(),true):false}),f.useEffect(()=>(fe(),Ae&&(Ce.current=setTimeout(()=>{Ye(0);},100)),fe),[Ae]);const[ve,Ne]=Ide(re,se,F?U:z,de,ne,ae,{...e,tabs:T}),He=Mt((he=s)=>{const Oe=re.get(he)||{width:0,height:0,left:0,right:0,top:0};if(F){let xe=U;l?Oe.right<U?xe=Oe.right:Oe.right+Oe.width>U+se&&(xe=Oe.right+Oe.width-se):Oe.left<-U?xe=-Oe.left:Oe.left+Oe.width>-U+se&&(xe=-(Oe.left+Oe.width-se)),k(0),W(be(xe));}else {let xe=z;Oe.top<-z?xe=-Oe.top:Oe.top+Oe.height>-z+se&&(xe=-(Oe.top+Oe.height-se)),W(0),k(be(xe));}}),[Ge,je]=f.useState(),[rt,ot]=f.useState(false),Ke=T.filter(he=>!he.disabled).map(he=>he.key),De=he=>{const Oe=Ke.indexOf(Ge||s),xe=Ke.length,ke=(Oe+he+xe)%xe,Xe=Ke[ke];je(Xe);},qe=(he,Oe)=>{const xe=Ke.indexOf(he),ke=T.find(it=>it.key===he);gA(ke?.closable,ke?.closeIcon,d,ke?.disabled)&&(Oe.preventDefault(),Oe.stopPropagation(),d.onEdit("remove",{key:he,event:Oe}),xe===Ke.length-1?De(-1):De(1));},Je=(he,Oe)=>{ot(true),Oe.button===1&&qe(he,Oe);},Be=he=>{const{code:Oe}=he,xe=l&&F,ke=Ke[0],Xe=Ke[Ke.length-1];switch(Oe){case "ArrowLeft":{F&&De(xe?1:-1);break}case "ArrowRight":{F&&De(xe?-1:1);break}case "ArrowUp":{he.preventDefault(),F||De(-1);break}case "ArrowDown":{he.preventDefault(),F||De(1);break}case "Home":{he.preventDefault(),je(ke);break}case "End":{he.preventDefault(),je(Xe);break}case "Enter":case "Space":{he.preventDefault(),y(Ge??s,he);break}case "Backspace":case "Delete":{qe(Ge,he);break}}},Ie={};F?Ie.marginInlineStart=g:Ie.marginTop=g;const lt=T.map((he,Oe)=>{const{key:xe}=he;return f.createElement(Lde,{id:o,prefixCls:M,key:xe,tab:he,className:w?.item,style:Oe===0?E?.item:{...Ie,...E?.item},closable:he.closable,editable:d,active:xe===s,focus:xe===Ge,renderWrapper:b,removeAriaLabel:m?.removeAriaLabel,tabCount:Ke.length,currentPosition:Oe+1,onClick:ke=>{y(xe,ke);},onKeyDown:Be,onFocus:()=>{rt||je(xe),He(xe),Re(),P.current&&(l||(P.current.scrollLeft=0),P.current.scrollTop=0);},onBlur:()=>{je(void 0);},onMouseDown:ke=>Je(xe,ke),onMouseUp:()=>{ot(false);}})}),Dt=()=>te(()=>{const he=new Map,Oe=O.current?.getBoundingClientRect();return T.forEach(({key:xe})=>{const ke=O.current?.querySelector(`[data-node-key="${sH(xe)}"]`);if(ke){const[Xe,it,dt,Et]=Bde(ke,Oe);he.set(xe,{width:Xe,height:it,left:dt,top:Et});}}),he});f.useEffect(()=>{Dt();},[T.map(he=>he.key).join("_")]);const pt=iH(()=>{const he=Kd(A),Oe=Kd(I),xe=Kd(N);j([he[0]-Oe[0]-xe[0],he[1]-Oe[1]-xe[1]]);const ke=Kd(L);B(ke);const Xe=Kd(D);J(Xe);const it=Kd(O);Q([it[0]-ke[0],it[1]-ke[1]]),Dt();}),Lt=T.slice(0,ve),xt=T.slice(Ne+1),Pt=[...Lt,...xt],ut=re.get(s),{style:ct}=Tde({activeTabOffset:ut,horizontal:F,indicator:C,rtl:l});f.useEffect(()=>{He();},[s,le,pe,kD(ut),kD(re),F]),f.useEffect(()=>{pt();},[l]);const bt=!!Pt.length,Fe=`${M}-nav-wrap`;let Ue,ye,Me,Se;return F?l?(ye=U>0,Ue=U!==pe):(Ue=U<0,ye=U!==le):(Me=z<0,Se=z!==le),f.createElement(ys,{onResize:pt},f.createElement("div",{ref:Ya(t,A),role:"tablist","aria-orientation":F?"horizontal":"vertical",className:X(`${M}-nav`,n,w?.header),style:{...E?.header,...r},onKeyDown:()=>{Re();}},f.createElement(zD,{ref:I,position:"left",extra:u,prefixCls:M}),f.createElement(ys,{onResize:pt},f.createElement("div",{className:X(Fe,{[`${Fe}-ping-left`]:Ue,[`${Fe}-ping-right`]:ye,[`${Fe}-ping-top`]:Me,[`${Fe}-ping-bottom`]:Se}),ref:P},f.createElement(ys,{onResize:pt},f.createElement("div",{ref:O,className:`${M}-nav-list`,style:{transform:`translate(${U}px, ${z}px)`,transition:Ae?"none":void 0}},lt,f.createElement(aH,{ref:L,prefixCls:M,locale:m,editable:d,style:{...lt.length===0?void 0:Ie,visibility:bt?"hidden":null}}),f.createElement("div",{className:X(`${M}-ink-bar`,w?.indicator,{[`${M}-ink-bar-animated`]:i.inkBar}),style:{...ct,...E?.indicator}}))))),f.createElement(_de,r3({},e,{removeAriaLabel:m?.removeAriaLabel,ref:D,prefixCls:M,tabs:Pt,className:!bt&&$e,popupStyle:E?.popup,tabMoving:!!Ae})),f.createElement(zD,{ref:N,position:"right",extra:u,prefixCls:M})))}),kde=({renderTabBar:e,...t})=>e?e(t,FD):f.createElement(FD,t),zde=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,id:i,active:s,tabKey:l,children:u}=e,d=f.Children.count(u)>0;return f.createElement("div",{id:i&&`${i}-panel-${l}`,role:"tabpanel",tabIndex:s&&d?0:-1,"aria-labelledby":i&&`${i}-tab-${l}`,"aria-hidden":!s,style:o,className:X(n,s&&`${n}-active`,r),ref:t},u)});function Sy(){return Sy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Sy.apply(this,arguments)}const Fde=e=>{const{id:t,activeKey:n,animated:r,tabPosition:o,destroyOnHidden:i,contentStyle:s,contentClassName:l}=e,{prefixCls:u,tabs:d}=f.useContext(pA),m=r.tabPane,p=`${u}-tabpane`;return f.createElement("div",{className:X(`${u}-content-holder`)},f.createElement("div",{className:X(`${u}-content`,`${u}-content-${o}`,{[`${u}-content-animated`]:m})},d.map(g=>{const{key:b,forceRender:y,style:S,className:C,destroyOnHidden:w,...E}=g,M=b===n;return f.createElement(To,Sy({key:b,visible:M,forceRender:y,removeOnLeave:!!(i??w),leavedClassName:`${p}-hidden`},r.tabPaneMotion),({style:T,className:A},I)=>f.createElement(zde,Sy({},E,{prefixCls:p,id:t,tabKey:b,animated:m,active:M,style:{...s,...S,...T},className:X(l,C,A),ref:I})))})))};function Hde(e={inkBar:true,tabPane:false}){let t;return e===false?t={inkBar:false,tabPane:false}:e===true?t={inkBar:true,tabPane:false}:t={inkBar:true,...typeof e=="object"?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=true),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=false),t}function Zh(){return Zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Zh.apply(this,arguments)}let HD=0;const Vde=f.forwardRef((e,t)=>{const{id:n,prefixCls:r="rc-tabs",className:o,items:i,direction:s,activeKey:l,defaultActiveKey:u,editable:d,animated:m,tabPosition:p="top",tabBarGutter:g,tabBarStyle:b,tabBarExtraContent:y,locale:S,more:C,destroyOnHidden:w,renderTabBar:E,onChange:M,onTabClick:T,onTabScroll:A,getPopupContainer:I,popupClassName:N,indicator:P,classNames:O,styles:D,...L}=e,F=f.useMemo(()=>(i||[]).filter(re=>re&&typeof re=="object"&&"key"in re),[i]),U=s==="rtl",W=Hde(m),[z,k]=f.useState(false);f.useEffect(()=>{k(Mde());},[]);const[G,j]=fn(u??F[0]?.key,l),[K,Q]=f.useState(()=>F.findIndex(re=>re.key===G));f.useEffect(()=>{let re=F.findIndex(ie=>ie.key===G);re===-1&&(re=Math.max(0,Math.min(K,F.length-1)),j(F[re]?.key)),Q(re);},[F.map(re=>re.key).join("_"),G,K]);const[_,B]=fn(null,n);f.useEffect(()=>{n||(B(`rc-tabs-${HD}`),HD+=1);},[]);function Y(re,ie){T?.(re,ie);const de=re!==G;j(re),de&&M?.(re);}const J={id:_,activeKey:G,animated:W,tabPosition:p,rtl:U,mobile:z},ee={...J,editable:d,locale:S,more:C,tabBarGutter:g,onTabClick:Y,onTabScroll:A,extra:y,style:b,getPopupContainer:I,popupClassName:X(N,O?.popup),indicator:P,styles:D,classNames:O},te=f.useMemo(()=>({tabs:F,prefixCls:r}),[F,r]);return f.createElement(pA.Provider,{value:te},f.createElement("div",Zh({ref:t,id:n,className:X(r,`${r}-${p}`,{[`${r}-mobile`]:z,[`${r}-editable`]:d,[`${r}-rtl`]:U},o)},L),f.createElement(kde,Zh({},ee,{renderTabBar:E})),f.createElement(Fde,Zh({destroyOnHidden:w},J,{contentStyle:D?.content,contentClassName:O?.content,animated:W}))))}),jde={motionAppear:false,motionEnter:true,motionLeave:true};function Ude(e,t={inkBar:true,tabPane:false}){let n;return t===false?n={inkBar:false,tabPane:false}:t===true?n={inkBar:true,tabPane:true}:n={inkBar:true,...typeof t=="object"?t:{}},n.tabPane&&(n.tabPaneMotion={...jde,motionName:nc(e,"switch")}),n}function Wde(e){return e.filter(t=>t)}function Gde(e,t){if(e)return e.map(r=>({...r,destroyOnHidden:r.destroyOnHidden??r.destroyInactiveTabPane}));const n=ri(t).map(r=>{if(f.isValidElement(r)){const{key:o,props:i}=r,{tab:s,...l}=i||{};return {key:String(o),...l,label:s}}return null});return Wde(n)}const qde=e=>{const{componentCls:t,motionDurationSlow:n}=e;return [{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[rc(e,"slide-up"),rc(e,"slide-down")]]},Kde=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:s}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${oe(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:s,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:$s(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:true,value:oe(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:oe(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:true,value:`${oe(e.borderRadiusLG)} 0 0 ${oe(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:true,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:true,value:`0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:true,value:e.colorBgContainer}}}}}}},Yde=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:{...mn(e),position:"absolute",top:-9999,left:{_skip_check_:true,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${oe(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:true,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...ra,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${oe(e.paddingXXS)} ${oe(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:true,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},Xde=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:s,motionDurationSlow:l,calc:u}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:true,value:0},left:{_skip_check_:true,value:0},borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(d=>`${d} ${l}`).join(", ")}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:true,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:true,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,
        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:u(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:s},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:true,value:0},left:{_skip_check_:true,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","top"].map(d=>`${d} ${l}`).join(", ")}},[`${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_:true,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:true,value:oe(u(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:true,value:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:true,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:true,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:true,value:u(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:true,value:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:true,value:e.paddingLG}}}}}},Qde=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:i,horizontalItemPaddingSM:s,horizontalItemPaddingLG:l}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${oe(e.borderRadius)} ${oe(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${oe(e.borderRadius)} ${oe(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:true,value:`0 ${oe(e.borderRadius)} ${oe(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:true,value:`${oe(e.borderRadius)} 0 0 ${oe(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},Zde=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:s,itemSelectedColor:l,itemColor:u}=e,d=`${t}-tab`;return {[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:u,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:true,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:true,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...Ai(e)},"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:l},[`&${d}-focus ${d}-btn:focus-visible`]:$s(e),[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:true,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:true,value:i}}}},Jde=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return {[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:true,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:true,value:0}},[r]:{marginRight:{_skip_check_:true,value:0},marginLeft:{_skip_check_:true,value:oe(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:true,value:oe(e.marginXS)},marginLeft:{_skip_check_:true,value:oe(i(e.marginXXS).mul(-1).equal())},[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_:true,value:o},marginLeft:{_skip_check_:true,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:true,value:"right"}}}}},efe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:s,colorBorderSecondary:l}=e;return {[t]:{...mn(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_:true,value:0},bottom:0,left:{_skip_check_:true,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:true,value:o},background:"transparent",border:`${oe(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:s},...Ai(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...Zde(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{...Ai(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},tfe=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:i}=e,s=t||i,l=n||o,u=r||i+8;return {zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:s,cardHeightSM:l,cardHeightLG:u,cardPadding:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(u-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},nfe=Wt("Tabs",e=>{const t=zt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${oe(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${oe(e.horizontalItemGutter)}`});return [Qde(t),Jde(t),Xde(t),Yde(t),Kde(t),efe(t),qde(t)]},tfe),rfe=()=>null,ofe=f.forwardRef((e,t)=>{const{type:n,className:r,rootClassName:o,size:i,onEdit:s,hideAdd:l,centered:u,addIcon:d,removeIcon:m,moreIcon:p,more:g,popupClassName:b,children:y,items:S,animated:C,style:w,indicatorSize:E,indicator:M,classNames:T,styles:A,destroyInactiveTabPane:I,destroyOnHidden:N,tabPlacement:P,tabPosition:O,...D}=e,{prefixCls:L}=D,{getPrefixCls:F,direction:U,getPopupContainer:W,className:z,style:k,classNames:G,styles:j}=jt("tabs"),{tabs:K}=f.useContext(wt),Q=F("tabs",L),_=Qn(Q),[B,Y]=nfe(Q,_),J=f.useRef(null);f.useImperativeHandle(t,()=>({nativeElement:J.current}));let ee;n==="editable-card"&&(ee={onEdit:(le,{key:pe,event:be})=>{s?.(le==="add"?be:pe,le);},removeIcon:m??K?.removeIcon??f.createElement(Xa,null),addIcon:(d??K?.addIcon)||f.createElement(oH,null),showAdd:l!==true});const te=F(),re=br(i),ie=Gde(S,y),de=Ude(Q,C),ne={align:M?.align??K?.indicator?.align,size:M?.size??E??K?.indicator?.size??K?.indicatorSize},ae=f.useMemo(()=>{const le=P??O??void 0,pe=U==="rtl";switch(le){case "start":return pe?"right":"left";case "end":return pe?"left":"right";default:return le}},[P,O,U]),ce={...e,size:re,tabPlacement:ae,items:ie},[se,$e]=qt([G,T],[j,A],{props:ce},{popup:{_default:"root"}});return f.createElement(Vde,{ref:J,direction:U,getPopupContainer:W,...D,items:ie,className:X({[`${Q}-large`]:re==="large",[`${Q}-small`]:re==="small",[`${Q}-card`]:["card","editable-card"].includes(n),[`${Q}-editable-card`]:n==="editable-card",[`${Q}-centered`]:u},z,r,o,se.root,B,Y,_),classNames:{...se,popup:X(b,B,Y,_,se.popup?.root)},styles:$e,style:{...$e.root,...k,...w},editable:ee,more:{icon:K?.more?.icon??K?.moreIcon??p??f.createElement(dA,null),transitionName:`${te}-slide-up`,...g},prefixCls:Q,animated:de,indicator:ne,destroyOnHidden:N??I,tabPosition:ae})}),vA=ofe;vA.TabPane=rfe;function ife(e,t){if(e==null)return {};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r];}return n}function lH(e,t){if(e==null)return {};var n,r,o=ife(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);}return o}function sfe(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?false:o,s=r.noLeading,l=s===void 0?false:s,u=r.debounceMode,d=u===void 0?void 0:u,m,p=false,g=0;function b(){m&&clearTimeout(m);}function y(C){var w=C||{},E=w.upcomingOnly,M=E===void 0?false:E;b(),p=!M;}function S(){for(var C=arguments.length,w=new Array(C),E=0;E<C;E++)w[E]=arguments[E];var M=this,T=Date.now()-g;if(p)return;function A(){g=Date.now(),t.apply(M,w);}function I(){m=void 0;}!l&&d&&!m&&A(),b(),d===void 0&&T>e?l?(g=Date.now(),i||(m=setTimeout(d?I:A,e))):A():i!==true&&(m=setTimeout(d?I:A,d===void 0?e-T:e));}return S.cancel=y,S}function afe(e,t,n){var r={},o=r.atBegin,i=o===void 0?false:o;return sfe(e,t,{debounceMode:i!==false})}const lfe=e=>{const{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,o=`${t}-wrapper`;return [{[`${t}-group`]:{...mn(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[o]:{...mn(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0},[`&${o}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[t]:{...mn(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:n,height:n,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${oe(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,flex:"none",...za(),"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:"table",width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${oe(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`,...za()},[`${t}-input`]:{position:"absolute",inset:`calc(-1 * (${r}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:$s(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
        ${o}:not(${o}-disabled),
        ${t}:not(${t}-disabled)
      `]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${o}:not(${o}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[`${t}-checked`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`,...za()},[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'},"&:hover":{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}},{[`${o}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function cfe(e,t){const n=zt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return lfe(n)}const cH=Wt("Checkbox",(e,{prefixCls:t})=>[cfe(t,e)]),uH=q.createContext(null),ufe=(e,t)=>{const{prefixCls:n,children:r,indeterminate:o=false,onMouseEnter:i,onMouseLeave:s,skipGroup:l=false,disabled:u,rootClassName:d,className:m,style:p,classNames:g,styles:b,name:y,value:S,checked:C,defaultChecked:w,onChange:E,...M}=e,{getPrefixCls:T,direction:A,className:I,style:N,classNames:P,styles:O}=jt("checkbox"),D=f.useContext(uH),{isFormItemInput:L}=f.useContext(Mo),F=f.useContext(fo),U=(D?.disabled||u)??F,[W,z]=fn(w,C);let k=W;const G=Mt(ce=>{z(ce.target.checked),E?.(ce),!l&&D?.toggleOption&&D.toggleOption({label:r,value:S});});D&&!l&&(k=D.value.includes(S));const j=f.useRef(null),K=Ya(t,j);f.useEffect(()=>{if(!(l||!D))return D.registerValue(S),()=>{D.cancelValue(S);}},[S,l]),f.useEffect(()=>{j.current?.input&&(j.current.input.indeterminate=o);},[o]);const Q=T("checkbox",n),_=Qn(Q),[B,Y]=cH(Q,_),J={...M},ee={...e,indeterminate:o,disabled:U,checked:k},[te,re]=qt([P,g],[O,b],{props:ee}),ie=X(`${Q}-wrapper`,{[`${Q}-rtl`]:A==="rtl",[`${Q}-wrapper-checked`]:k,[`${Q}-wrapper-disabled`]:U,[`${Q}-wrapper-in-form-item`]:L},I,m,te.root,d,Y,_,B),de=X(te.icon,{[`${Q}-indeterminate`]:o},A1,B),[ne,ae]=q7(J.onClick);return f.createElement(fg,{component:"Checkbox",disabled:U},f.createElement("label",{className:ie,style:{...re.root,...N,...p},onMouseEnter:i,onMouseLeave:s,onClick:ne},f.createElement(G7,{...J,name:!l&&D?D.name:y,checked:k,onClick:ae,onChange:G,prefixCls:Q,className:de,style:re.icon,disabled:U,ref:K,value:S}),Lr(r)&&f.createElement("span",{className:X(`${Q}-label`,te.label),style:re.label},r)))},dH=f.forwardRef(ufe),dfe=f.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:s,rootClassName:l,style:u,onChange:d,role:m="group",...p}=e,{getPrefixCls:g,direction:b}=f.useContext(wt),[y,S]=f.useState(p.value||n||[]),[C,w]=f.useState([]);f.useEffect(()=>{"value"in p&&S(p.value||[]);},[p.value]);const E=f.useMemo(()=>o.map(z=>typeof z=="string"||typeof z=="number"?{label:z,value:z}:z),[o]),M=z=>{w(k=>k.filter(G=>G!==z));},T=z=>{w(k=>[].concat(Zt(k),[z]));},A=z=>{const k=y.indexOf(z.value),G=Zt(y);k===-1?G.push(z.value):G.splice(k,1),"value"in p||S(G),d?.(G.filter(j=>C.includes(j)).sort((j,K)=>{const Q=E.findIndex(B=>B.value===j),_=E.findIndex(B=>B.value===K);return Q-_}));},I=g("checkbox",i),N=`${I}-group`,P=Qn(I),[O,D]=cH(I,P),L=kn(p,["value","disabled"]),F=o.length?E.map(z=>f.createElement(dH,{prefixCls:I,key:z.value.toString(),disabled:"disabled"in z?z.disabled:p.disabled,value:z.value,checked:y.includes(z.value),onChange:z.onChange,className:X(`${N}-item`,z.className),style:z.style,title:z.title,id:z.id,required:z.required},z.label)):r,U=f.useMemo(()=>({toggleOption:A,value:y,disabled:p.disabled,name:p.name,registerValue:T,cancelValue:M}),[A,y,p.disabled,p.name,T,M]),W=X(N,{[`${N}-rtl`]:b==="rtl"},s,l,D,P,O);return f.createElement("div",{className:W,style:u,role:m,...L,ref:t},f.createElement(uH.Provider,{value:U},F))}),Ri=dH;Ri.Group=dfe;Ri.__ANT_CHECKBOX=true;const ffe=e=>{const{componentCls:t}=e;return {[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},mfe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:s,verticalMarginInline:l}=e,u=`${t}-rail`;return {[t]:{...mn(e),borderBlockStart:`${oe(o)} solid ${r}`,[u]:{borderBlockStart:`${oe(o)} solid ${r}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${oe(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${oe(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${oe(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,[`${u}-start, ${u}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${u}-start`]:{width:`calc(${s} * 100%)`},[`${u}-end`]:{width:`calc(100% - ${s} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${u}-start`]:{width:`calc(100% - ${s} * 100%)`},[`${u}-end`]:{width:`calc(${s} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${oe(o)} 0 0`,[u]:{borderBlockStart:`${oe(o)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${u}-start, ${u}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${oe(o)} 0 0`,[u]:{borderBlockStart:`${oe(o)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${u}-start`]:{width:0},[`${u}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${u}-start`]:{width:"100%"},[`${u}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}}}},hfe=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),pfe=Wt("Divider",e=>{const t=zt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return [mfe(t),ffe(t)]},hfe,{unitless:{orientationMargin:true}}),gfe=["left","right","center","start","end"],sc=e=>{const{getPrefixCls:t,direction:n,className:r,style:o,classNames:i,styles:s}=jt("divider"),{prefixCls:l,type:u,orientation:d,vertical:m,titlePlacement:p,orientationMargin:g,className:b,rootClassName:y,children:S,dashed:C,variant:w="solid",plain:E,style:M,size:T,classNames:A,styles:I,...N}=e,P=t("divider",l),O=`${P}-rail`,[D,L]=pfe(P),F=br(T),U=!!S,W=gfe.includes(d||""),z=f.useMemo(()=>{const te=p??(W?d:"center");return te==="left"?n==="rtl"?"end":"start":te==="right"?n==="rtl"?"start":"end":te},[n,d,p,W]),k=z==="start"&&g!=null,G=z==="end"&&g!=null,[j,K]=Uu(d,m,u),Q={...e,orientation:j,titlePlacement:z,size:F},[_,B]=qt([i,A],[s,I],{props:Q}),Y=X(P,r,D,L,`${P}-${j}`,{[`${P}-with-text`]:U,[`${P}-with-text-${z}`]:U,[`${P}-dashed`]:!!C,[`${P}-${w}`]:w!=="solid",[`${P}-plain`]:!!E,[`${P}-rtl`]:n==="rtl",[`${P}-no-default-orientation-margin-start`]:k,[`${P}-no-default-orientation-margin-end`]:G,[`${P}-md`]:F==="medium"||F==="middle",[`${P}-sm`]:F==="small",[O]:!S,[_.rail]:_.rail&&!S},b,y,_.root),J=f.useMemo(()=>typeof g=="number"?g:/^\d+$/.test(g)?Number(g):g,[g]),ee={marginInlineStart:k?J:void 0,marginInlineEnd:G?J:void 0};return f.createElement("div",{className:Y,style:{...o,...B.root,...S?{}:B.rail,...M},...N,role:"separator"},S&&!K&&f.createElement(f.Fragment,null,f.createElement("div",{className:X(O,`${O}-start`,_.rail),style:B.rail}),f.createElement("span",{className:X(`${P}-inner-text`,_.content),style:{...ee,...B.content}},S),f.createElement("div",{className:X(O,`${O}-end`,_.rail),style:B.rail})))},VD=(e,t)=>{if(!e)return null;const n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},zs=e=>e!==void 0?`${e}px`:void 0;function vfe(e){const{prefixCls:t,containerRef:n,value:r,getValueIndex:o,motionName:i,onMotionStart:s,onMotionEnd:l,direction:u,vertical:d=false}=e,m=f.useRef(null),[p,g]=f.useState(r),b=N=>{const P=o(N),O=n.current?.querySelectorAll(`.${t}-item`)[P];return O?.offsetParent&&O},[y,S]=f.useState(null),[C,w]=f.useState(null);Rn(()=>{if(p!==r){const N=b(p),P=b(r),O=VD(N,d),D=VD(P,d);g(r),S(O),w(D),N&&P?s():l();}},[r]);const E=f.useMemo(()=>zs(d?y?.top??0:u==="rtl"?-y?.right:y?.left),[d,u,y]),M=f.useMemo(()=>zs(d?C?.top??0:u==="rtl"?-C?.right:C?.left),[d,u,C]),T=()=>d?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},A=()=>d?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},I=()=>{S(null),w(null),l();};return !y||!C?null:f.createElement(To,{visible:true,motionName:i,motionAppear:true,onAppearStart:T,onAppearActive:A,onVisibleChanged:I},({className:N,style:P},O)=>{const D={...P,"--thumb-start-left":E,"--thumb-start-width":zs(y?.width),"--thumb-active-left":M,"--thumb-active-width":zs(C?.width),"--thumb-start-top":E,"--thumb-start-height":zs(y?.height),"--thumb-active-top":M,"--thumb-active-height":zs(C?.height)},L={ref:Yr(m,O),style:D,className:X(`${t}-thumb`,N)};return f.createElement("div",L)})}function bfe(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}function yfe(e){return e.map(t=>{if(typeof t=="object"&&t!==null){const n=bfe(t);return {...t,title:n}}return {label:t?.toString(),title:t?.toString(),value:t}})}const Sfe=({prefixCls:e,className:t,style:n,styles:r,classNames:o,data:i,disabled:s,checked:l,label:u,title:d,value:m,name:p,onChange:g,onFocus:b,onBlur:y,onKeyDown:S,onKeyUp:C,onMouseDown:w,itemRender:E=M=>M})=>{const M=A=>{s||g(A,m);},T=f.createElement("label",{className:X(t,{[`${e}-item-disabled`]:s}),style:n,onMouseDown:w},f.createElement("input",{name:p,className:`${e}-item-input`,type:"radio",disabled:s,checked:l,onChange:M,onFocus:b,onBlur:y,onKeyDown:S,onKeyUp:C}),f.createElement("div",{className:X(`${e}-item-label`,o?.label),title:d,style:r?.label},u));return E(T,{item:i})},Cfe=f.forwardRef((e,t)=>{const{prefixCls:n="rc-segmented",direction:r,vertical:o,options:i=[],disabled:s,defaultValue:l,value:u,name:d,onChange:m,className:p="",style:g,styles:b,classNames:y,motionName:S="thumb-motion",itemRender:C,...w}=e,E=f.useRef(null),M=f.useMemo(()=>Yr(E,t),[E,t]),T=f.useMemo(()=>yfe(i),[i]),[A,I]=fn(l??T[0]?.value,u),[N,P]=f.useState(false),O=(B,Y)=>{I(Y),m?.(Y);},D=kn(w,["children"]),[L,F]=f.useState(false),[U,W]=f.useState(false),z=()=>{W(true);},k=()=>{W(false);},G=()=>{F(false);},j=B=>{B.key==="Tab"&&F(true);},K=B=>{const Y=T.findIndex(re=>re.value===A),J=T.length,ee=(Y+B+J)%J,te=T[ee];te&&(I(te.value),m?.(te.value));},Q=B=>{switch(B.key){case "ArrowLeft":case "ArrowUp":K(-1);break;case "ArrowRight":case "ArrowDown":K(1);break}},_=B=>{const{value:Y,disabled:J}=B;return f.createElement(Sfe,dr({},B,{name:d,data:B,itemRender:C,key:Y,prefixCls:n,className:X(B.className,`${n}-item`,y?.item,{[`${n}-item-selected`]:Y===A&&!N,[`${n}-item-focused`]:U&&L&&Y===A}),style:b?.item,classNames:y,styles:b,checked:Y===A,onChange:O,onFocus:z,onBlur:k,onKeyDown:Q,onKeyUp:j,onMouseDown:G,disabled:!!s||!!J}))};return f.createElement("div",dr({role:"radiogroup","aria-label":"segmented control",tabIndex:s?void 0:0,"aria-orientation":o?"vertical":"horizontal",style:g},D,{className:X(n,{[`${n}-rtl`]:r==="rtl",[`${n}-disabled`]:s,[`${n}-vertical`]:o},p),ref:M}),f.createElement("div",{className:`${n}-group`},f.createElement(vfe,{vertical:o,prefixCls:n,value:A,containerRef:E,motionName:`${n}-${S}`,direction:r,getValueIndex:B=>T.findIndex(Y=>Y.value===B),onMotionStart:()=>{P(true);},onMotionEnd:()=>{P(false);}}),T.map(_)))}),xfe=Cfe;function jD(e,t){return {[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}const UD=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),wfe={overflow:"hidden",...ra},Efe=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),l=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return {[t]:{...mn(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${o}`,...Ai(e),[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${oe(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${o}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...UD(e),color:e.itemSelectedColor},"&-focused":$s(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,pointerEvents:"none",transition:["opacity","background-color"].map(u=>`${u} ${o}`).join(", ")},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:i,lineHeight:oe(i),padding:`0 ${oe(e.segmentedPaddingHorizontal)}`,...wfe},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...UD(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${oe(e.paddingXXS)} 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:s,lineHeight:oe(s),padding:`0 ${oe(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:l,lineHeight:oe(l),padding:`0 ${oe(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...jD(`&-disabled ${t}-item`,e),...jD(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(u=>`${u} ${n} ${r}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},$fe=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i,lineWidthBold:s,colorBgLayout:l}=e;return {trackPadding:s,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}},Mfe=Wt("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=zt(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return Efe(r)},$fe);function Tfe(e){return typeof e=="object"&&!!e?.icon}const Afe=f.forwardRef((e,t)=>{const n=Qa(),{prefixCls:r,className:o,rootClassName:i,block:s,options:l=[],size:u,style:d,vertical:m,orientation:p,shape:g="default",name:b=n,styles:y,classNames:S,...C}=e,{getPrefixCls:w,direction:E,className:M,style:T,classNames:A,styles:I}=jt("segmented"),N={...e,options:l,size:u,shape:g},[P,O]=qt([A,S],[I,y],{props:N}),D=w("segmented",r),[L,F]=Mfe(D),U=br(u),W=f.useMemo(()=>l.map(K=>{if(Tfe(K)){const{icon:Q,label:_,...B}=K;return {...B,label:f.createElement(f.Fragment,null,f.createElement("span",{className:X(`${D}-item-icon`,P.icon),style:O.icon},Q),_&&f.createElement("span",null,_))}}return K}),[l,D,P.icon,O.icon]),[,z]=Uu(p,m),k=X(o,i,M,P.root,{[`${D}-block`]:s,[`${D}-sm`]:U==="small",[`${D}-lg`]:U==="large",[`${D}-vertical`]:z,[`${D}-shape-${g}`]:g==="round"},L,F),G={...O.root,...T,...d},j=(K,{item:Q})=>{if(!Q.tooltip)return K;const _=typeof Q.tooltip=="object"?Q.tooltip:{title:Q.tooltip};return f.createElement(gc,{..._},K)};return f.createElement(xfe,{...C,name:b,className:k,style:G,classNames:P,styles:O,itemRender:j,options:W,ref:t,prefixCls:D,direction:E,vertical:z})}),bA=Afe,fH=q.createContext({}),mH=q.createContext({}),hH=({prefixCls:e,value:t,onChange:n,className:r,style:o})=>{const i=()=>{if(n&&t&&!t.cleared){const s=t.toHsb();s.a=0;const l=mo(s);l.cleared=true,n(l);}};return q.createElement("div",{className:X(`${e}-clear`,r),style:o,onClick:i})},pH="hex",gH="rgb",vH="hsb";var Rfe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};function o3(){return o3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},o3.apply(this,arguments)}const Nfe=(e,t)=>f.createElement(Xn,o3({},e,{ref:t,icon:Rfe})),Pfe=f.forwardRef(Nfe);var Ife={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"};function i3(){return i3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},i3.apply(this,arguments)}const Ofe=(e,t)=>f.createElement(Xn,i3({},e,{ref:t,icon:Ife})),Dfe=f.forwardRef(Ofe);function s3(){return typeof BigInt=="function"}function bH(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function bu(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",s=o[1]||"0";i==="0"&&s==="0"&&(n=false);var l=n?"-":"";return {negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:s,fullStr:"".concat(l).concat(r)}}function yA(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function cu(e){var t=String(e);if(yA(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&SA(t)?t.length-t.indexOf(".")-1:0}function H1(e){var t=String(e);if(yA(e)){if(e>Number.MAX_SAFE_INTEGER)return String(s3()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(s3()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(cu(t));}return bu(t).fullStr}function SA(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):false}var _fe=(function(){function e(t){if(rs(this,e),Ct(this,"origin",""),Ct(this,"negative",void 0),Ct(this,"integer",void 0),Ct(this,"decimal",void 0),Ct(this,"decimalLen",void 0),Ct(this,"empty",void 0),Ct(this,"nan",void 0),bH(t)){this.empty=true;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=true;return}var n=t;if(yA(n)&&(n=Number(n)),n=typeof n=="string"?n:H1(n),SA(n)){var r=bu(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length;}else this.nan=true;}return os(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(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,o){var i=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),s=this.alignDecimal(i),l=n.alignDecimal(i),u=r(s,l).toString(),d=o(i),m=bu(u),p=m.negativeStr,g=m.trimStr,b="".concat(p).concat(g.padStart(d+1,"0"));return new e("".concat(b.slice(0,-d),".").concat(b.slice(-d)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(o,i){return o+i},function(o){return o})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(o,i){return o*i},function(o){return o*2})}},{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(n){return this.toString()===n?.toString()}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:true;return n?this.isInvalidate()?"":bu("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),Lfe=(function(){function e(t){if(rs(this,e),Ct(this,"origin",""),Ct(this,"number",void 0),Ct(this,"empty",void 0),bH(t)){this.empty=true;return}this.origin=String(t),this.number=Number(t);}return os(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(cu(this.number),cu(r));return new e(o.toFixed(i))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var o=this.number*r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(cu(this.number),cu(r));return new e(o.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===n?.toNumber()}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:true;return n?this.isInvalidate()?"":H1(this.number):this.origin}}]),e})();function us(e){return s3()?new _fe(e):new Lfe(e)}function b0(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:false;if(e==="")return "";var o=bu(e),i=o.negativeStr,s=o.integerStr,l=o.decimalStr,u="".concat(t).concat(l),d="".concat(i).concat(s);if(n>=0){var m=Number(l[n]);if(m>=5&&!r){var p=us(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-m));return b0(p.toString(),t,n,r)}return n===0?d:"".concat(d).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return u===".0"?d:"".concat(d).concat(u)}function Bfe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get(n,r){if(t[r])return t[r];const o=n[r];return typeof o=="function"?o.bind(n):o}}):e}function kfe(e,t){const n=f.useRef(null);function r(){try{const{selectionStart:i,selectionEnd:s,value:l}=e,u=l.substring(0,i),d=l.substring(s);n.current={start:i,end:s,value:l,beforeTxt:u,afterTxt:d};}catch{}}function o(){if(e&&n.current&&t)try{const{value:i}=e,{beforeTxt:s,afterTxt:l,start:u}=n.current;let d=i.length;if(i.startsWith(s))d=s.length;else if(i.endsWith(l))d=i.length-n.current.afterTxt.length;else {const m=s[u-1],p=i.indexOf(m,u-1);p!==-1&&(d=p+1);}e.setSelectionRange(d,d);}catch(i){Pr(false,`Something warning of cursor restore. Please fire issue about this: ${i.message}`);}}return [r,o]}const zfe=200,Ffe=600;function WD({prefixCls:e,action:t,children:n,disabled:r,className:o,style:i,onStep:s}){const l=t==="up",u=f.useRef(),d=f.useRef([]),m=()=>{clearTimeout(u.current);},p=S=>{S.preventDefault(),m(),s(l,"handler");function C(){s(l,"handler"),u.current=setTimeout(C,zfe);}u.current=setTimeout(C,Ffe);};f.useEffect(()=>()=>{m(),d.current.forEach(S=>{_t.cancel(S);});},[]);const g=`${e}-action`,b=X(g,`${g}-${t}`,{[`${g}-${t}-disabled`]:r},o),y=()=>d.current.push(_t(m));return f.createElement("span",{unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y,onMouseDown:S=>{p(S);},"aria-label":l?"Increase Value":"Decrease Value","aria-disabled":r,className:b,style:i},n||f.createElement("span",{unselectable:"on",className:`${e}-action-${t}-inner`}))}function GD(e){const t=typeof e=="number"?H1(e):bu(e).fullStr;return t.includes(".")?bu(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Hfe=(()=>{const e=f.useRef(0),t=()=>{_t.cancel(e.current);};return f.useEffect(()=>t,[]),n=>{t(),e.current=_t(()=>{n();});}});function Jh(){return Jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Jh.apply(this,arguments)}const qD=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),KD=e=>{const t=us(e);return t.isInvalidate()?null:t},Vfe=f.forwardRef((e,t)=>{const{mode:n="input",prefixCls:r="rc-input-number",className:o,style:i,classNames:s,styles:l,min:u,max:d,step:m=1,defaultValue:p,value:g,disabled:b,readOnly:y,upHandler:S,downHandler:C,keyboard:w,changeOnWheel:E=false,controls:M=true,prefix:T,suffix:A,stringMode:I,parser:N,formatter:P,precision:O,decimalSeparator:D,onChange:L,onInput:F,onPressEnter:U,onStep:W,onMouseDown:z,onClick:k,onMouseUp:G,onMouseLeave:j,onMouseMove:K,onMouseEnter:Q,onMouseOut:_,changeOnBlur:B=true,...Y}=e,[J,ee]=f.useState(false),te=f.useRef(false),re=f.useRef(false),ie=f.useRef(false),de=f.useRef(null),ne=f.useRef(null);f.useImperativeHandle(t,()=>Bfe(ne.current,{focus:Fe=>{jT(ne.current,Fe);},blur:()=>{ne.current?.blur();},nativeElement:de.current}));const[ae,ce]=f.useState(()=>us(g??p));function se(Fe){g===void 0&&ce(Fe);}const $e=f.useCallback((Fe,Ue)=>{if(!Ue)return O>=0?O:Math.max(cu(Fe),cu(m))},[O,m]),le=f.useCallback(Fe=>{const Ue=String(Fe);if(N)return N(Ue);let ye=Ue;return D&&(ye=ye.replace(D,".")),ye.replace(/[^\w.-]+/g,"")},[N,D]),pe=f.useRef(""),be=f.useCallback((Fe,Ue)=>{if(P)return P(Fe,{userTyping:Ue,input:String(pe.current)});let ye=typeof Fe=="number"?H1(Fe):Fe;if(!Ue){const Me=$e(ye,Ue);SA(ye)&&(D||Me>=0)&&(ye=b0(ye,D||".",Me));}return ye},[P,$e,D]),[Ce,Ae]=f.useState(()=>{const Fe=p??g;return ae.isInvalidate()&&["string","number"].includes(typeof Fe)?Number.isNaN(Fe)?"":Fe:be(ae.toString(),false)});pe.current=Ce;function Ye(Fe,Ue){Ae(be(Fe.isInvalidate()?Fe.toString(false):Fe.toString(!Ue),Ue));}const Re=f.useMemo(()=>KD(d),[d,O]),fe=f.useMemo(()=>KD(u),[u,O]),ve=f.useMemo(()=>!Re||!ae||ae.isInvalidate()?false:Re.lessEquals(ae),[Re,ae]),Ne=f.useMemo(()=>!fe||!ae||ae.isInvalidate()?false:ae.lessEquals(fe),[fe,ae]),[He,Ge]=kfe(ne.current,J),je=Fe=>Re&&!Fe.lessEquals(Re)?Re:fe&&!fe.lessEquals(Fe)?fe:null,rt=Fe=>!je(Fe),ot=(Fe,Ue)=>{let ye=Fe,Me=rt(ye)||ye.isEmpty();if(!ye.isEmpty()&&!Ue&&(ye=je(ye)||ye,Me=true),!y&&!b&&Me){const Se=ye.toString(),he=$e(Se,Ue);return he>=0&&(ye=us(b0(Se,".",he)),rt(ye)||(ye=us(b0(Se,".",he,true)))),ye.equals(ae)||(se(ye),L?.(ye.isEmpty()?null:qD(I,ye)),g===void 0&&Ye(ye,Ue)),ye}return ae},Ke=Hfe(),De=Fe=>{if(He(),pe.current=Fe,Ae(Fe),!re.current){const Ue=le(Fe),ye=us(Ue);ye.isNaN()||ot(ye,true);}F?.(Fe),Ke(()=>{let Ue=Fe;N||(Ue=Fe.replace(/。/g,".")),Ue!==Fe&&De(Ue);});},qe=()=>{re.current=true;},Je=()=>{re.current=false,De(ne.current.value);},Be=Fe=>{De(Fe.target.value);},Ie=Mt((Fe,Ue)=>{if(Fe&&ve||!Fe&&Ne)return;te.current=false;let ye=us(ie.current?GD(m):m);Fe||(ye=ye.negate());const Me=(ae||us(0)).add(ye.toString()),Se=ot(Me,false);W?.(qD(I,Se),{offset:ie.current?GD(m):m,type:Fe?"up":"down",emitter:Ue}),ne.current?.focus();}),lt=Fe=>{const Ue=us(le(Ce));let ye;Ue.isNaN()?ye=ot(ae,Fe):ye=ot(Ue,Fe),g!==void 0?Ye(ae,false):ye.isNaN()||Ye(ye,false);},Dt=()=>{te.current=true;},pt=Fe=>{const{key:Ue,shiftKey:ye}=Fe;te.current=true,ie.current=ye,Ue==="Enter"&&(re.current||(te.current=false),lt(false),U?.(Fe)),w!==false&&!re.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ue)&&(Ie(Ue==="Up"||Ue==="ArrowUp","keyboard"),Fe.preventDefault());},Lt=()=>{te.current=false,ie.current=false;};f.useEffect(()=>{if(E&&J){const Fe=ye=>{Ie(ye.deltaY<0,"wheel"),ye.preventDefault();},Ue=ne.current;if(Ue)return Ue.addEventListener("wheel",Fe,{passive:false}),()=>Ue.removeEventListener("wheel",Fe)}});const xt=()=>{B&&lt(false),ee(false),te.current=false;},Pt=Fe=>{ne.current&&Fe.target!==ne.current&&(ne.current.focus(),Fe.preventDefault()),z?.(Fe);};o0(()=>{ae.isInvalidate()||Ye(ae,false);},[O,P]),o0(()=>{const Fe=us(g);ce(Fe);const Ue=us(le(Ce));(!Fe.equals(Ue)||!te.current||P)&&Ye(Fe,te.current);},[g]),o0(()=>{P&&Ge();},[Ce]);const ut={prefixCls:r,onStep:Ie,className:s?.action,style:l?.action},ct=f.createElement(WD,Jh({},ut,{action:"up",disabled:ve}),S),bt=f.createElement(WD,Jh({},ut,{action:"down",disabled:Ne}),C);return f.createElement("div",{ref:de,className:X(r,`${r}-mode-${n}`,o,s?.root,{[`${r}-focused`]:J,[`${r}-disabled`]:b,[`${r}-readonly`]:y,[`${r}-not-a-number`]:ae.isNaN(),[`${r}-out-of-range`]:!ae.isInvalidate()&&!rt(ae)}),style:{...l?.root,...i},onMouseDown:Pt,onMouseUp:G,onMouseLeave:j,onMouseMove:K,onMouseEnter:Q,onMouseOut:_,onClick:k,onFocus:()=>{ee(true);},onBlur:xt,onKeyDown:pt,onKeyUp:Lt,onCompositionStart:qe,onCompositionEnd:Je,onBeforeInput:Dt},n==="spinner"&&M&&bt,T!==void 0&&f.createElement("div",{className:X(`${r}-prefix`,s?.prefix),style:l?.prefix},T),f.createElement("input",Jh({autoComplete:"off",role:"spinbutton","aria-valuemin":u,"aria-valuemax":d,"aria-valuenow":ae.isInvalidate()?null:ae.toString(),step:m,ref:ne,className:X(`${r}-input`,s?.input),style:l?.input,value:Ce,onChange:Be,disabled:b,readOnly:y},Y)),A!==void 0&&f.createElement("div",{className:X(`${r}-suffix`,s?.suffix),style:l?.suffix},A),n==="spinner"&&M&&ct,n==="input"&&M&&f.createElement("div",{className:X(`${r}-actions`,s?.actions),style:l?.actions},ct,bt))}),jfe=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:i,fontSizeLG:s,fontSizeSM:l,borderRadiusLG:u,borderRadiusSM:d,colorBgContainerDisabled:m,lineWidth:p,antCls:g}=e,[b,y]=nr(g,"space");return {[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,borderWidth:p,borderStyle:"solid",borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:s,borderRadius:u},"&-small":{paddingInline:i,borderRadius:d,fontSize:l},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[b("addon-border-color")]:o,[b("addon-background")]:m,[b("addon-border-color-outlined")]:o,[b("addon-background-filled")]:m,borderColor:y("addon-border-color"),background:y("addon-background"),"&-variant-outlined":{[b("addon-border-color")]:y("addon-border-color-outlined")},"&-variant-filled":{[b("addon-border-color")]:"transparent",[b("addon-background")]:y("addon-background-filled"),[`&${t}-disabled`]:{[b("addon-border-color")]:o,[b("addon-background")]:m}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[b("addon-border-color-outlined")]:e.colorError,[b("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[b("addon-border-color-outlined")]:e.colorWarning,[b("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},Ufe=Wt(["Space","Addon"],e=>[jfe(e),Qf(e,{focus:false})]),yH=q.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:i,variant:s="outlined",disabled:l,status:u,...d}=e,{getPrefixCls:m,direction:p}=q.useContext(wt),g=m("space-addon",i),[b,y]=Ufe(g),{compactItemClassnames:S,compactSize:C}=Za(g,p),w=ic(g,u),E=X(g,b,S,y,`${g}-variant-${s}`,w,{[`${g}-${C}`]:C,[`${g}-disabled`]:l},n);return q.createElement("div",{ref:t,className:E,style:o,...d},r)}),Wfe=e=>{const t=e.handleVisible??"auto",n=e.controlHeightSM-e.lineWidth*2;return {...rm(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new dn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:t===true?1:0,handleVisibleWidth:t===true?n:0}},Gfe=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:s,colorError:l,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:m,paddingInlineLG:p,colorIcon:g,motionDurationMid:b,handleHoverColor:y,handleOpacity:S,paddingInline:C,paddingBlock:w,handleBg:E,handleActiveBg:M,inputAffixPadding:T,borderRadiusSM:A,controlWidth:I,handleBorderColor:N,filledHandleBg:P,lineHeightLG:O,antCls:D}=e,L=`${oe(n)} ${r} ${N}`,[F,U]=nr(D,"input-number");return [{[t]:{...mn(e),...F1(e),[F("input-padding-block")]:oe(w),[F("input-padding-inline")]:oe(C),display:"inline-flex",width:I,margin:0,paddingBlock:0,borderRadius:o,...Y7(e,{[`${t}-actions`]:{background:E,[`${t}-action-down`]:{borderBlockStart:L}}}),...Z7(e,{[`${t}-actions`]:{background:P,[`${t}-action-down`]:{borderBlockStart:L}},"&:focus-within":{[`${t}-actions`]:{background:E}}}),...eH(e,{[`${t}-actions`]:{background:E,[`${t}-action-down`]:{borderBlockStart:L}}}),...X7(e),[`&${t}-borderless`]:{paddingBlock:0,[F("input-padding-block")]:oe(e.calc(w).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[F("input-padding-block")]:oe(e.calc(d).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[F("input-padding-block")]:oe(e.calc(m).add(n).equal())},"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:l}},[`${t}-input`]:{...mn(e),width:"100%",paddingBlock:U("input-padding-block"),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${b} linear`,appearance:"textfield",fontSize:"inherit",lineHeight:"inherit",...tH(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&-disabled ${t}-input`]:{cursor:"not-allowed",color:e.colorTextDisabled}}},{[t]:{[`
          ${t}-action-up-disabled,
          ${t}-action-down-disabled
        `]:{cursor:"not-allowed"},[`${t}-action`]:{...ju(),userSelect:"none",overflow:"hidden",fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",transition:`all ${b} linear`,"&:active":{background:M},"&:hover":{color:y}},"&-mode-input":{overflow:"hidden",[`${t}-actions`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:S,height:"100%",borderRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${b}`,overflow:"hidden",[`${t}-action`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:g,height:"50%",borderInlineStart:L,"&:hover":{height:"60%"}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:"none"}}},[`&${t}-mode-spinner`]:{padding:0,width:"auto",[`${t}-action`]:{flex:"none",paddingInline:U("input-padding-inline"),"&-up":{borderInlineStart:L},"&-down":{borderInlineEnd:L}},[`${t}-input`]:{textAlign:"center",paddingInline:U("input-padding-inline")}}}},{[t]:{"&-lg":{[F("input-padding-block")]:oe(m),[F("input-padding-inline")]:oe(p),paddingBlock:0,fontSize:s,lineHeight:O},"&-sm":{[F("input-padding-block")]:oe(d),[F("input-padding-inline")]:oe(u),paddingBlock:0,fontSize:i,borderRadius:A}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:"flex",flex:"none",alignItems:"center",alignSelf:"center",pointerEvents:"none"},[`${t}-prefix`]:{marginInlineEnd:T},[`${t}-suffix`]:{height:"100%",marginInlineStart:T,transition:`margin ${b}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},qfe=e=>{const{componentCls:t,antCls:n}=e;return {[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},Kfe=Wt("InputNumber",e=>{const t=zt(e,nm(e));return [Gfe(t),qfe(t),Qf(t)]},Wfe,{unitless:{handleOpacity:true},resetFont:false}),Yfe=f.forwardRef((e,t)=>{const n=f.useRef(null);f.useImperativeHandle(t,()=>n.current);const{rootClassName:r,size:o,disabled:i,prefixCls:s,addonBefore:l,addonAfter:u,prefix:d,suffix:m,bordered:p,readOnly:g,status:b,controls:y=true,variant:S,className:C,style:w,classNames:E,styles:M,mode:T,...A}=e,{direction:I,className:N,style:P,styles:O,classNames:D}=jt("inputNumber"),L=f.useContext(fo),F=i??L,U=f.useMemo(()=>!y||F||g?false:y,[y,F,g]),{compactSize:W,compactItemClassnames:z}=Za(s,I);let k=T==="spinner"?f.createElement(oH,null):f.createElement(Dfe,null),G=T==="spinner"?f.createElement(Pfe,null):f.createElement(eA,null);const j=typeof U=="boolean"?U:void 0;typeof U=="object"&&(k=U.upIcon||k,G=U.downIcon||G);const{hasFeedback:K,isFormItemInput:Q,feedbackIcon:_}=f.useContext(Mo),B=br(de=>o??W??de),[Y,J]=I1("inputNumber",S,p),ee=K&&f.createElement(f.Fragment,null,_),te={...e,size:B,disabled:F,controls:U},[re,ie]=qt([D,E],[O,M],{props:te});return f.createElement(Vfe,{ref:n,mode:T,disabled:F,className:X(C,r,re.root,N,z,ic(s,b,K),{[`${s}-${Y}`]:J,[`${s}-lg`]:B==="large",[`${s}-sm`]:B==="small",[`${s}-rtl`]:I==="rtl",[`${s}-in-form-item`]:Q,[`${s}-without-controls`]:!U}),style:{...ie.root,...P,...w},upHandler:k,downHandler:G,prefixCls:s,readOnly:g,controls:j,prefix:d,suffix:ee||m,classNames:re,styles:ie,...A})}),SH=f.forwardRef((e,t)=>{const{addonBefore:n,addonAfter:r,prefixCls:o,className:i,status:s,rootClassName:l,...u}=e,{getPrefixCls:d}=jt("inputNumber"),m=d("input-number",o),{status:p}=f.useContext(Mo),g=Jf(p,s),b=Qn(m),[y,S]=Kfe(m,b),C=n||r,w=f.createElement(Yfe,{ref:t,...u,prefixCls:m,status:g,className:X(S,b,y,i),rootClassName:C?void 0:l});if(C){const E=A=>A?f.createElement(yH,{className:X(`${m}-addon`,S,y),variant:e.variant,disabled:e.disabled,status:g},f.createElement(oc,{form:true},A)):null,M=E(n),T=E(r);return f.createElement(RT,{rootClassName:l},M,w,T)}return w}),yu=SH,Xfe=e=>f.createElement(Bo,{theme:{components:{InputNumber:{handleVisible:true}}}},f.createElement(SH,{...e}));yu._InternalPanelDoNotUseOrYouWillBeFired=Xfe;const Su=({prefixCls:e,min:t=0,max:n=100,value:r,onChange:o,className:i,formatter:s})=>{const l=`${e}-steppers`,[u,d]=f.useState(0),m=Number.isNaN(r)?u:r;return q.createElement(yu,{className:X(l,i),min:t,max:n,value:m,formatter:s,size:"small",onChange:p=>{d(p||0),o?.(p);}})},Qfe=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-alpha-input`,[o,i]=f.useState(()=>mo(t||"#000")),s=t||o,l=u=>{const d=s.toHsb();d.a=(u||0)/100;const m=mo(d);i(m),n?.(m);};return q.createElement(Su,{value:kT(s),prefixCls:e,formatter:u=>`${u}%`,className:r,onChange:l})};function Zfe(e){return !!(e.addonBefore||e.addonAfter)}function Jfe(e){return !!(e.prefix||e.suffix||e.allowClear)}function YD(e,t,n){const r=t.cloneNode(true),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...i)=>{t.setSelectionRange(...i);},o}function Cy(e,t,n,r){if(!n)return;let o=t;if(t.type==="click"){o=YD(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=YD(t,e,r),n(o);return}n(o);}function a3(){return a3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},a3.apply(this,arguments)}const CH=q.forwardRef((e,t)=>{const{inputElement:n,children:r,prefixCls:o,prefix:i,suffix:s,addonBefore:l,addonAfter:u,className:d,style:m,disabled:p,readOnly:g,focused:b,triggerFocus:y,allowClear:S,value:C,handleReset:w,hidden:E,classes:M,classNames:T,dataAttrs:A,styles:I,components:N,onClear:P}=e,O=r??n,D=N?.affixWrapper||"span",L=N?.groupWrapper||"span",F=N?.wrapper||"span",U=N?.groupAddon||"span",W=f.useRef(null),z=K=>{W.current?.contains(K.target)&&y?.();},k=Jfe(e);let G=f.cloneElement(O,{value:C,className:X(O.props?.className,!k&&T?.variant)||null});const j=f.useRef(null);if(q.useImperativeHandle(t,()=>({nativeElement:j.current||W.current})),k){let K=null;if(S){const Y=!p&&!g&&C,J=`${o}-clear-icon`,ee=typeof S=="object"&&S?.clearIcon?S.clearIcon:"✖";K=q.createElement("button",{type:"button",tabIndex:-1,onClick:te=>{w?.(te),P?.();},onMouseDown:te=>te.preventDefault(),className:X(J,{[`${J}-hidden`]:!Y,[`${J}-has-suffix`]:!!s})},ee);}const Q=`${o}-affix-wrapper`,_=X(Q,{[`${o}-disabled`]:p,[`${Q}-disabled`]:p,[`${Q}-focused`]:b,[`${Q}-readonly`]:g,[`${Q}-input-with-clear-btn`]:s&&S&&C},M?.affixWrapper,T?.affixWrapper,T?.variant),B=(s||S)&&q.createElement("span",{className:X(`${o}-suffix`,T?.suffix),style:I?.suffix},K,s);G=q.createElement(D,a3({className:_,style:I?.affixWrapper,onClick:z},A?.affixWrapper,{ref:W}),i&&q.createElement("span",{className:X(`${o}-prefix`,T?.prefix),style:I?.prefix},i),G,B);}if(Zfe(e)){const K=`${o}-group`,Q=`${K}-addon`,_=`${K}-wrapper`,B=X(`${o}-wrapper`,K,M?.wrapper,T?.wrapper),Y=X(_,{[`${_}-disabled`]:p},M?.group,T?.groupWrapper);G=q.createElement(L,{className:Y,ref:j},q.createElement(F,{className:B},l&&q.createElement(U,{className:Q},l),G,u&&q.createElement(U,{className:Q},u)));}return q.cloneElement(G,{className:X(G.props?.className,d)||null,style:{...G.props?.style,...m},hidden:E})});function xH(e,t){return f.useMemo(()=>{let n={};t&&(n.show=typeof t=="object"&&t.formatter?t.formatter:!!t),n={...n,...e};const{show:r,...o}=n;return {...o,show:!!r,showFormatter:typeof r=="function"?r:void 0,strategy:o.strategy||(i=>i.length)}},[e,t])}function xy(){return xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},xy.apply(this,arguments)}const eme=f.forwardRef((e,t)=>{const{autoComplete:n,onChange:r,onFocus:o,onBlur:i,onPressEnter:s,onKeyDown:l,onKeyUp:u,prefixCls:d="rc-input",disabled:m,htmlSize:p,className:g,maxLength:b,suffix:y,showCount:S,count:C,type:w="text",classes:E,classNames:M,styles:T,onCompositionStart:A,onCompositionEnd:I,...N}=e,[P,O]=f.useState(false),D=f.useRef(false),L=f.useRef(false),F=f.useRef(null),U=f.useRef(null),W=le=>{F.current&&jT(F.current,le);},[z,k]=fn(e.defaultValue,e.value),G=z==null?"":String(z),[j,K]=f.useState(null),Q=xH(C,S),_=Q.max||b,B=Q.strategy(G),Y=!!_&&B>_;f.useImperativeHandle(t,()=>({focus:W,blur:()=>{F.current?.blur();},setSelectionRange:(le,pe,be)=>{F.current?.setSelectionRange(le,pe,be);},select:()=>{F.current?.select();},input:F.current,nativeElement:U.current?.nativeElement||F.current})),f.useEffect(()=>{L.current&&(L.current=false),O(le=>le&&m?false:le);},[m]);const J=(le,pe,be)=>{let Ce=pe;if(!D.current&&Q.exceedFormatter&&Q.max&&Q.strategy(pe)>Q.max)Ce=Q.exceedFormatter(pe,{max:Q.max}),pe!==Ce&&K([F.current?.selectionStart||0,F.current?.selectionEnd||0]);else if(be.source==="compositionEnd")return;k(Ce),F.current&&Cy(F.current,le,r,Ce);};f.useEffect(()=>{j&&F.current?.setSelectionRange(...j);},[j]);const ee=le=>{J(le,le.target.value,{source:"change"});},te=le=>{D.current=false,J(le,le.currentTarget.value,{source:"compositionEnd"}),I?.(le);},re=le=>{s&&le.key==="Enter"&&!L.current&&!le.nativeEvent.isComposing&&(L.current=true,s(le)),l?.(le);},ie=le=>{le.key==="Enter"&&(L.current=false),u?.(le);},de=le=>{O(true),o?.(le);},ne=le=>{L.current&&(L.current=false),O(false),i?.(le);},ae=le=>{k(""),W(),F.current&&Cy(F.current,le,r);},ce=Y&&`${d}-out-of-range`,se=()=>{const le=kn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return q.createElement("input",xy({autoComplete:n},le,{onChange:ee,onFocus:de,onBlur:ne,onKeyDown:re,onKeyUp:ie,className:X(d,{[`${d}-disabled`]:m},M?.input),style:T?.input,ref:F,size:p,type:w,onCompositionStart:pe=>{D.current=true,A?.(pe);},onCompositionEnd:te}))},$e=()=>{const le=Number(_)>0;if(y||Q.show){const pe=Q.showFormatter?Q.showFormatter({value:G,count:B,maxLength:_}):`${B}${le?` / ${_}`:""}`;return q.createElement(q.Fragment,null,Q.show&&q.createElement("span",{className:X(`${d}-show-count-suffix`,{[`${d}-show-count-has-suffix`]:!!y},M?.count),style:{...T?.count}},pe),y)}return null};return q.createElement(CH,xy({},N,{prefixCls:d,className:X(g,ce),handleReset:ae,value:G,focused:P,triggerFocus:W,suffix:$e(),disabled:m,classes:E,classNames:M,styles:T,ref:U}),se())}),wH=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:q.createElement(cg,null)}),t};function EH(e,t){const n=f.useRef([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value");}));};return f.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function tme(e){return !!(e.prefix||e.suffix||e.allowClear||e.showCount)}const om=f.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=true,status:o,size:i,disabled:s,onBlur:l,onFocus:u,suffix:d,allowClear:m,addonAfter:p,addonBefore:g,className:b,style:y,styles:S,rootClassName:C,onChange:w,classNames:E,variant:M,...T}=e,{getPrefixCls:A,direction:I,allowClear:N,autoComplete:P,className:O,style:D,classNames:L,styles:F}=jt("input"),U=A("input",n),W=f.useRef(null),z=Qn(U),[k,G]=nH(U,C);rH(U,z);const{compactSize:j,compactItemClassnames:K}=Za(U,I),Q=br(Ae=>i??j??Ae),_=q.useContext(fo),B=s??_,Y={...e,size:Q,disabled:B},[J,ee]=qt([L,E],[F,S],{props:Y}),{status:te,hasFeedback:re,feedbackIcon:ie}=f.useContext(Mo),de=Jf(te,o),ne=tme(e)||!!re;f.useRef(ne);const ae=EH(W,true),ce=Ae=>{ae(),l?.(Ae);},se=Ae=>{ae(),u?.(Ae);},$e=Ae=>{ae(),w?.(Ae);},le=(re||d)&&q.createElement(q.Fragment,null,d,re&&ie),pe=wH(m??N),[be,Ce]=I1("input",M,r);return q.createElement(eme,{ref:Yr(t,W),prefixCls:U,autoComplete:P,...T,disabled:B,onBlur:ce,onFocus:se,style:{...ee.root,...D,...y},styles:ee,suffix:le,allowClear:pe,className:X(b,C,G,z,K,O,J.root),onChange:$e,addonBefore:g&&q.createElement(oc,{form:true,space:true},g),addonAfter:p&&q.createElement(oc,{form:true,space:true},p),classNames:{...J,input:X({[`${U}-sm`]:Q==="small",[`${U}-lg`]:Q==="large",[`${U}-rtl`]:I==="rtl"},J.input,k),variant:X({[`${U}-${be}`]:Ce},ic(U,de)),affixWrapper:X({[`${U}-affix-wrapper-sm`]:Q==="small",[`${U}-affix-wrapper-lg`]:Q==="large",[`${U}-affix-wrapper-rtl`]:I==="rtl"},k),wrapper:X({[`${U}-group-rtl`]:I==="rtl"},k),groupWrapper:X({[`${U}-group-wrapper-sm`]:Q==="small",[`${U}-group-wrapper-lg`]:Q==="large",[`${U}-group-wrapper-rtl`]:I==="rtl",[`${U}-group-wrapper-${be}`]:Ce},ic(`${U}-group-wrapper`,de,re),k)}})}),nme=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,rme=e=>nme.test(`#${e}`),ome=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hex-input`,[o,i]=f.useState(()=>t?_h(t.toHexString()):void 0);f.useEffect(()=>{t&&i(_h(t.toHexString()));},[t]);const s=l=>{const u=l.target.value;i(_h(u)),rme(_h(u,true))&&n?.(mo(u));};return q.createElement(om,{className:r,value:o,prefix:"#",onChange:s,size:"small"})},ime=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hsb-input`,[o,i]=f.useState(()=>mo(t||"#000")),s=t||o,l=(u,d)=>{const m=s.toHsb();m[d]=d==="h"?u:(u||0)/100;const p=mo(m);i(p),n?.(p);};return q.createElement("div",{className:r},q.createElement(Su,{max:360,min:0,value:Number(s.toHsb().h),prefixCls:e,className:r,formatter:u=>f0(u||0).toString(),onChange:u=>l(Number(u),"h")}),q.createElement(Su,{max:100,min:0,value:Number(s.toHsb().s)*100,prefixCls:e,className:r,formatter:u=>`${f0(u||0)}%`,onChange:u=>l(Number(u),"s")}),q.createElement(Su,{max:100,min:0,value:Number(s.toHsb().b)*100,prefixCls:e,className:r,formatter:u=>`${f0(u||0)}%`,onChange:u=>l(Number(u),"b")}))},sme=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-rgb-input`,[o,i]=f.useState(()=>mo(t||"#000")),s=t||o,l=(u,d)=>{const m=s.toRgb();m[d]=u||0;const p=mo(m);i(p),n?.(p);};return q.createElement("div",{className:r},q.createElement(Su,{max:255,min:0,value:Number(s.toRgb().r),prefixCls:e,className:r,onChange:u=>l(Number(u),"r")}),q.createElement(Su,{max:255,min:0,value:Number(s.toRgb().g),prefixCls:e,className:r,onChange:u=>l(Number(u),"g")}),q.createElement(Su,{max:255,min:0,value:Number(s.toRgb().b),prefixCls:e,className:r,onChange:u=>l(Number(u),"b")}))},ame=[pH,vH,gH].map(e=>({value:e,label:e.toUpperCase()})),lme=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:i,onChange:s,disabledFormat:l}=e,[u,d]=fn(pH,n),m=`${t}-input`,p=b=>{d(b),i?.(b);},g=f.useMemo(()=>{const b={value:r,prefixCls:t,onChange:s};switch(u){case vH:return q.createElement(ime,{...b});case gH:return q.createElement(sme,{...b});default:return q.createElement(ome,{...b})}},[u,t,r,s]);return q.createElement("div",{className:`${m}-container`},!l&&q.createElement(pc,{value:u,variant:"borderless",getPopupContainer:b=>b,popupMatchSelectWidth:68,placement:"bottomRight",onChange:p,className:`${t}-format-select`,size:"small",options:ame}),q.createElement("div",{className:m},g),!o&&q.createElement(Qfe,{prefixCls:t,value:r,onChange:s}))};function l3(e,t,n){return (e-t)/(n-t)}function CA(e,t,n,r){const o=l3(t,n,r),i={};switch(e){case "rtl":i.right=`${o*100}%`,i.transform="translateX(50%)";break;case "btt":i.bottom=`${o*100}%`,i.transform="translateY(50%)";break;case "ttb":i.top=`${o*100}%`,i.transform="translateY(-50%)";break;default:i.left=`${o*100}%`,i.transform="translateX(-50%)";break}return i}function ou(e,t){return Array.isArray(e)?e[t]:e}const qu=f.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:true,styles:{},classNames:{}}),$H=f.createContext({});function c3(){return c3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},c3.apply(this,arguments)}const XD=f.forwardRef((e,t)=>{const{prefixCls:n,value:r,valueIndex:o,onStartMove:i,onDelete:s,style:l,render:u,dragging:d,draggingDelete:m,onOffsetChange:p,onChangeComplete:g,onFocus:b,onMouseEnter:y,...S}=e,{min:C,max:w,direction:E,disabled:M,keyboard:T,range:A,tabIndex:I,ariaLabelForHandle:N,ariaLabelledByForHandle:P,ariaRequired:O,ariaValueTextFormatterForHandle:D,styles:L,classNames:F}=f.useContext(qu),U=`${n}-handle`,W=B=>{M||i(B,o);},z=B=>{b?.(B,o);},k=B=>{y(B,o);},G=B=>{if(!M&&T){let Y=null;switch(B.which||B.keyCode){case st.LEFT:Y=E==="ltr"||E==="btt"?-1:1;break;case st.RIGHT:Y=E==="ltr"||E==="btt"?1:-1;break;case st.UP:Y=E!=="ttb"?1:-1;break;case st.DOWN:Y=E!=="ttb"?-1:1;break;case st.HOME:Y="min";break;case st.END:Y="max";break;case st.PAGE_UP:Y=2;break;case st.PAGE_DOWN:Y=-2;break;case st.BACKSPACE:case st.DELETE:s?.(o);break}Y!==null&&(B.preventDefault(),p(Y,o));}},j=B=>{switch(B.which||B.keyCode){case st.LEFT:case st.RIGHT:case st.UP:case st.DOWN:case st.HOME:case st.END:case st.PAGE_UP:case st.PAGE_DOWN:g?.();break}},K=CA(E,r,C,w);let Q={};o!==null&&(Q={tabIndex:M?null:ou(I,o),role:"slider","aria-valuemin":C,"aria-valuemax":w,"aria-valuenow":r,"aria-disabled":M,"aria-label":ou(N,o),"aria-labelledby":ou(P,o),"aria-required":ou(O,o),"aria-valuetext":ou(D,o)?.(r),"aria-orientation":E==="ltr"||E==="rtl"?"horizontal":"vertical",onMouseDown:W,onTouchStart:W,onFocus:z,onMouseEnter:k,onKeyDown:G,onKeyUp:j});let _=f.createElement("div",c3({ref:t,className:X(U,{[`${U}-${o+1}`]:o!==null&&A,[`${U}-dragging`]:d,[`${U}-dragging-delete`]:m},F.handle),style:{...K,...l,...L.handle}},Q,S));return u&&(_=u(_,{index:o,prefixCls:n,value:r,dragging:d,draggingDelete:m})),_});function wy(){return wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},wy.apply(this,arguments)}const cme=f.forwardRef((e,t)=>{const{prefixCls:n,style:r,onStartMove:o,onOffsetChange:i,values:s,handleRender:l,activeHandleRender:u,draggingIndex:d,draggingDelete:m,onFocus:p,...g}=e,b=f.useRef({}),[y,S]=f.useState(false),[C,w]=f.useState(-1),E=I=>{w(I),S(true);},M=(I,N)=>{E(N),p?.(I);},T=(I,N)=>{E(N);};f.useImperativeHandle(t,()=>({focus:I=>{b.current[I]?.focus();},hideHelp:()=>{No.flushSync(()=>{S(false);});}}));const A={prefixCls:n,onStartMove:o,onOffsetChange:i,render:l,onFocus:M,onMouseEnter:T,...g};return f.createElement(f.Fragment,null,s.map((I,N)=>{const P=d===N;return f.createElement(XD,wy({ref:O=>{O?b.current[N]=O:delete b.current[N];},dragging:P,draggingDelete:P&&m,style:ou(r,N),key:N,value:I,valueIndex:N},A))}),u&&y&&f.createElement(XD,wy({key:"a11y"},A,{value:s[C],valueIndex:null,dragging:d!==-1,draggingDelete:m,render:u,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":true})))}),ume=e=>{const{prefixCls:t,style:n,children:r,value:o,onClick:i}=e,{min:s,max:l,direction:u,includedStart:d,includedEnd:m,included:p}=f.useContext(qu),g=`${t}-text`,b=CA(u,o,s,l);return f.createElement("span",{className:X(g,{[`${g}-active`]:p&&d<=o&&o<=m}),style:{...b,...n},onMouseDown:y=>{y.stopPropagation();},onClick:()=>{i(o);}},r)},dme=e=>{const{prefixCls:t,marks:n,onClick:r}=e,o=`${t}-mark`;return n.length?f.createElement("div",{className:o},n.map(({value:i,style:s,label:l})=>f.createElement(ume,{key:i,prefixCls:o,style:s,value:i,onClick:r},l))):null},fme=e=>{const{prefixCls:t,value:n,style:r,activeStyle:o}=e,{min:i,max:s,direction:l,included:u,includedStart:d,includedEnd:m}=f.useContext(qu),p=`${t}-dot`,g=u&&d<=n&&n<=m;let b={...CA(l,n,i,s),...typeof r=="function"?r(n):r};return g&&(b={...b,...typeof o=="function"?o(n):o}),f.createElement("span",{className:X(p,{[`${p}-active`]:g}),style:b})},mme=e=>{const{prefixCls:t,marks:n,dots:r,style:o,activeStyle:i}=e,{min:s,max:l,step:u}=f.useContext(qu),d=f.useMemo(()=>{const m=new Set;if(n.forEach(p=>{m.add(p.value);}),r&&u!==null){let p=s;for(;p<=l;)m.add(p),p+=u;}return Array.from(m)},[s,l,u,r,n]);return f.createElement("div",{className:`${t}-step`},d.map(m=>f.createElement(fme,{prefixCls:t,key:m,value:m,style:o,activeStyle:i})))},QD=e=>{const{prefixCls:t,style:n,start:r,end:o,index:i,onStartMove:s,replaceCls:l}=e,{direction:u,min:d,max:m,disabled:p,range:g,classNames:b}=f.useContext(qu),y=`${t}-track`,S=l3(r,d,m),C=l3(o,d,m),w=T=>{!p&&s&&s(T,-1);},E={};switch(u){case "rtl":E.right=`${S*100}%`,E.width=`${C*100-S*100}%`;break;case "btt":E.bottom=`${S*100}%`,E.height=`${C*100-S*100}%`;break;case "ttb":E.top=`${S*100}%`,E.height=`${C*100-S*100}%`;break;default:E.left=`${S*100}%`,E.width=`${C*100-S*100}%`;}const M=l||X(y,{[`${y}-${i+1}`]:i!==null&&g,[`${t}-track-draggable`]:s},b.track);return f.createElement("div",{className:M,style:{...E,...n},onMouseDown:w,onTouchStart:w})},hme=e=>{const{prefixCls:t,style:n,values:r,startPoint:o,onStartMove:i}=e,{included:s,range:l,min:u,styles:d,classNames:m}=f.useContext(qu),p=f.useMemo(()=>{if(!l){if(r.length===0)return [];const y=o??u,S=r[0];return [{start:Math.min(y,S),end:Math.max(y,S)}]}const b=[];for(let y=0;y<r.length-1;y+=1)b.push({start:r[y],end:r[y+1]});return b},[r,l,o,u]);if(!s)return null;const g=p?.length&&(m.tracks||d.tracks)?f.createElement(QD,{index:null,prefixCls:t,start:p[0].start,end:p[p.length-1].end,replaceCls:X(m.tracks,`${t}-tracks`),style:d.tracks}):null;return f.createElement(f.Fragment,null,g,p.map(({start:b,end:y},S)=>f.createElement(QD,{index:S,prefixCls:t,style:{...ou(n,S),...d.track},start:b,end:y,key:S,onStartMove:i})))},pme=130;function ZD(e){const t="targetTouches"in e?e.targetTouches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function gme(e,t,n,r,o,i,s,l,u,d,m){const[p,g]=f.useState(null),[b,y]=f.useState(-1),[S,C]=f.useState(false),[w,E]=f.useState(n),[M,T]=f.useState(n),A=f.useRef(null),I=f.useRef(null),N=f.useRef(null),{onDragStart:P,onDragChange:O}=f.useContext($H);Rn(()=>{b===-1&&E(n);},[n,b]),f.useEffect(()=>()=>{document.removeEventListener("mousemove",A.current),document.removeEventListener("mouseup",I.current),N.current&&(N.current.removeEventListener("touchmove",A.current),N.current.removeEventListener("touchend",I.current));},[]);const D=(W,z,k)=>{z!==void 0&&g(z),E(W);let G=W;k&&(G=W.filter((j,K)=>K!==b)),s(G),O&&O({rawValues:W,deleteIndex:k?b:-1,draggingIndex:b,draggingValue:z});},L=Mt((W,z,k)=>{if(W===-1){const G=M[0],j=M[M.length-1],K=r-G,Q=o-j;let _=z*(o-r);_=Math.max(_,K),_=Math.min(_,Q),_=i(G+_)-G;const Y=M.map(J=>J+_);D(Y);}else {const G=(o-r)*z,j=[...w];j[W]=M[W];const K=u(j,G,W,"dist");D(K.values,K.value,k);}}),F=(W,z,k)=>{W.stopPropagation();const G=k||n,j=G[z];y(z),g(j),T(G),E(G),C(false);const{pageX:K,pageY:Q}=ZD(W);let _=false;P&&P({rawValues:G,draggingIndex:z,draggingValue:j});const B=J=>{J.preventDefault();const{pageX:ee,pageY:te}=ZD(J),re=ee-K,ie=te-Q,{width:de,height:ne}=e.current.getBoundingClientRect();let ae,ce;switch(t){case "btt":ae=-ie/ne,ce=re;break;case "ttb":ae=ie/ne,ce=re;break;case "rtl":ae=-re/de,ce=ie;break;default:ae=re/de,ce=ie;}_=d?Math.abs(ce)>pme&&m<w.length:false,C(_),L(z,ae,_);},Y=J=>{J.preventDefault(),document.removeEventListener("mouseup",Y),document.removeEventListener("mousemove",B),N.current&&(N.current.removeEventListener("touchmove",A.current),N.current.removeEventListener("touchend",I.current)),A.current=null,I.current=null,N.current=null,l(_),y(-1),C(false);};document.addEventListener("mouseup",Y),document.addEventListener("mousemove",B),W.currentTarget.addEventListener("touchend",Y),W.currentTarget.addEventListener("touchmove",B),A.current=B,I.current=Y,N.current=W.currentTarget;},U=f.useMemo(()=>{const W=[...n].sort((K,Q)=>K-Q),z=[...w].sort((K,Q)=>K-Q),k={};z.forEach(K=>{k[K]=(k[K]||0)+1;}),W.forEach(K=>{k[K]=(k[K]||0)-1;});const G=d?1:0;return Object.values(k).reduce((K,Q)=>K+Math.abs(Q),0)<=G?w:n},[n,w,d]);return [b,p,S,U,F]}function vme(e,t,n,r,o,i){const s=f.useCallback(b=>Math.max(e,Math.min(t,b)),[e,t]),l=f.useCallback(b=>{if(n!==null){const y=e+Math.round((s(b)-e)/n)*n,S=E=>(String(E).split(".")[1]||"").length,C=Math.max(S(n),S(t),S(e)),w=Number(y.toFixed(C));return e<=w&&w<=t?w:null}return null},[n,e,t,s]),u=f.useCallback(b=>{const y=s(b),S=r.map(E=>E.value);n!==null&&S.push(l(b)),S.push(e,t);let C=S[0],w=t-e;return S.forEach(E=>{const M=Math.abs(y-E);M<=w&&(C=E,w=M);}),C},[e,t,r,n,s,l]),d=(b,y,S,C="unit")=>{if(typeof y=="number"){let w;const E=b[S],M=E+y;let T=[];r.forEach(P=>{T.push(P.value);}),T.push(e,t),T.push(l(E));const A=y>0?1:-1;C==="unit"?T.push(l(E+A*n)):T.push(l(M)),T=T.filter(P=>P!==null).filter(P=>y<0?P<=E:P>=E),C==="unit"&&(T=T.filter(P=>P!==E));const I=C==="unit"?E:M;w=T[0];let N=Math.abs(w-I);if(T.forEach(P=>{const O=Math.abs(P-I);O<N&&(w=P,N=O);}),w===void 0)return y<0?e:t;if(C==="dist")return w;if(Math.abs(y)>1){const P=[...b];return P[S]=w,d(P,y-A,S,C)}return w}else {if(y==="min")return e;if(y==="max")return t}},m=(b,y,S,C="unit")=>{const w=b[S],E=d(b,y,S,C);return {value:E,changed:E!==w}},p=b=>i===null&&b===0||typeof i=="number"&&b<i;return [u,(b,y,S,C="unit")=>{const w=b.map(u),E=w[S],M=d(w,y,S,C);if(w[S]=M,o===false){const T=i||0;S>0&&w[S-1]!==E&&(w[S]=Math.max(w[S],w[S-1]+T)),S<w.length-1&&w[S+1]!==E&&(w[S]=Math.min(w[S],w[S+1]-T));}else if(typeof i=="number"||i===null){for(let T=S+1;T<w.length;T+=1){let A=true;for(;p(w[T]-w[T-1])&&A;)({value:w[T],changed:A}=m(w,1,T));}for(let T=S;T>0;T-=1){let A=true;for(;p(w[T]-w[T-1])&&A;)({value:w[T-1],changed:A}=m(w,-1,T-1));}for(let T=w.length-1;T>0;T-=1){let A=true;for(;p(w[T]-w[T-1])&&A;)({value:w[T-1],changed:A}=m(w,-1,T-1));}for(let T=0;T<w.length-1;T+=1){let A=true;for(;p(w[T+1]-w[T])&&A;)({value:w[T+1],changed:A}=m(w,1,T+1));}}return {value:w[S],values:w}}]}function bme(e){return f.useMemo(()=>{if(e===true||!e)return [!!e,false,false,0];const{editable:t,draggableTrack:n,minCount:r,maxCount:o}=e;return [true,t,!t&&n,r||0,o]},[e])}const yme=f.forwardRef((e,t)=>{const{prefixCls:n="rc-slider",className:r,style:o,classNames:i,styles:s,id:l,disabled:u=false,keyboard:d=true,autoFocus:m,onFocus:p,onBlur:g,min:b=0,max:y=100,step:S=1,value:C,defaultValue:w,range:E,count:M,onChange:T,onBeforeChange:A,onAfterChange:I,onChangeComplete:N,allowCross:P=true,pushable:O=false,reverse:D,vertical:L,included:F=true,startPoint:U,trackStyle:W,handleStyle:z,railStyle:k,dotStyle:G,activeDotStyle:j,marks:K,dots:Q,handleRender:_,activeHandleRender:B,track:Y,tabIndex:J=0,ariaLabelForHandle:ee,ariaLabelledByForHandle:te,ariaRequired:re,ariaValueTextFormatterForHandle:ie}=e,de=f.useRef(null),ne=f.useRef(null),ae=f.useMemo(()=>L?D?"ttb":"btt":D?"rtl":"ltr",[D,L]),[ce,se,$e,le,pe]=bme(E),be=f.useMemo(()=>isFinite(b)?b:0,[b]),Ce=f.useMemo(()=>isFinite(y)?y:100,[y]),Ae=f.useMemo(()=>S!==null&&S<=0?1:S,[S]),Ye=f.useMemo(()=>typeof O=="boolean"?O?Ae:false:O>=0?O:false,[O,Ae]),Re=f.useMemo(()=>Object.keys(K||{}).map(Me=>{const Se=K[Me],he={value:Number(Me)};return Se&&typeof Se=="object"&&!f.isValidElement(Se)&&("label"in Se||"style"in Se)?(he.style=Se.style,he.label=Se.label):he.label=Se,he}).filter(({label:Me})=>Me||typeof Me=="number").sort((Me,Se)=>Me.value-Se.value),[K]),[fe,ve]=vme(be,Ce,Ae,Re,P,Ye),[Ne,He]=fn(w,C),Ge=f.useMemo(()=>{const Me=Ne==null?[]:Array.isArray(Ne)?Ne:[Ne],[Se=be]=Me;let he=Ne===null?[]:[Se];if(ce){if(he=[...Me],M||Ne===void 0){const Oe=M>=0?M+1:2;for(he=he.slice(0,Oe);he.length<Oe;)he.push(he[he.length-1]??be);}he.sort((Oe,xe)=>Oe-xe);}return he.forEach((Oe,xe)=>{he[xe]=fe(Oe);}),he},[Ne,ce,be,M,fe]),je=Me=>ce?Me:Me[0],rt=Mt(Me=>{const Se=[...Me].sort((he,Oe)=>he-Oe);T&&!ec(Se,Ge,true)&&T(je(Se)),He(Se);}),ot=Mt(Me=>{Me&&de.current.hideHelp();const Se=je(Ge);I?.(Se),Pr(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),N?.(Se);}),Ke=Me=>{if(u||!se||Ge.length<=le)return;const Se=[...Ge];Se.splice(Me,1),A?.(je(Se)),rt(Se);const he=Math.max(0,Me-1);de.current.hideHelp(),de.current.focus(he);},[De,qe,Je,Be,Ie]=gme(ne,ae,Ge,be,Ce,fe,rt,ot,ve,se,le),lt=(Me,Se)=>{if(!u){const he=[...Ge];let Oe=0,xe=0,ke=Ce-be;Ge.forEach((dt,Et)=>{const Tt=Math.abs(Me-dt);Tt<=ke&&(ke=Tt,Oe=Et),dt<Me&&(xe=Et);});let Xe=Oe;se&&ke!==0&&(!pe||Ge.length<pe)?(he.splice(xe+1,0,Me),Xe=xe+1):he[Oe]=Me,ce&&!Ge.length&&M===void 0&&he.push(Me);const it=je(he);A?.(it),rt(he),Se?(document.activeElement?.blur?.(),de.current.focus(Xe),Ie(Se,Xe,he)):(I?.(it),Pr(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),N?.(it));}},Dt=Me=>{Me.preventDefault();const{width:Se,height:he,left:Oe,top:xe,bottom:ke,right:Xe}=ne.current.getBoundingClientRect(),{clientX:it,clientY:dt}=Me;let Et;switch(ae){case "btt":Et=(ke-dt)/he;break;case "ttb":Et=(dt-xe)/he;break;case "rtl":Et=(Xe-it)/Se;break;default:Et=(it-Oe)/Se;}const Tt=be+Et*(Ce-be);lt(fe(Tt),Me);},[pt,Lt]=f.useState(null),xt=(Me,Se)=>{if(!u){const he=ve(Ge,Me,Se);A?.(je(Ge)),rt(he.values),Lt(he.value);}};f.useEffect(()=>{if(pt!==null){const Me=Ge.indexOf(pt);Me>=0&&de.current.focus(Me);}Lt(null);},[pt]);const Pt=f.useMemo(()=>$e&&Ae===null?false:$e,[$e,Ae]),ut=Mt((Me,Se)=>{Ie(Me,Se),A?.(je(Ge));}),ct=De!==-1;f.useEffect(()=>{if(!ct){const Me=Ge.lastIndexOf(qe);de.current.focus(Me);}},[ct]);const bt=f.useMemo(()=>[...Be].sort((Me,Se)=>Me-Se),[Be]),[Fe,Ue]=f.useMemo(()=>ce?[bt[0],bt[bt.length-1]]:[be,bt[0]],[bt,ce,be]);f.useImperativeHandle(t,()=>({focus:()=>{de.current.focus(0);},blur:()=>{const{activeElement:Me}=document;ne.current?.contains(Me)&&Me?.blur();}})),f.useEffect(()=>{m&&de.current.focus(0);},[]);const ye=f.useMemo(()=>({min:be,max:Ce,direction:ae,disabled:u,keyboard:d,step:Ae,included:F,includedStart:Fe,includedEnd:Ue,range:ce,tabIndex:J,ariaLabelForHandle:ee,ariaLabelledByForHandle:te,ariaRequired:re,ariaValueTextFormatterForHandle:ie,styles:s||{},classNames:i||{}}),[be,Ce,ae,u,d,Ae,F,Fe,Ue,ce,J,ee,te,re,ie,s,i]);return f.createElement(qu.Provider,{value:ye},f.createElement("div",{ref:ne,className:X(n,r,{[`${n}-disabled`]:u,[`${n}-vertical`]:L,[`${n}-horizontal`]:!L,[`${n}-with-marks`]:Re.length}),style:o,onMouseDown:Dt,id:l},f.createElement("div",{className:X(`${n}-rail`,i?.rail),style:{...k,...s?.rail}}),Y!==false&&f.createElement(hme,{prefixCls:n,style:W,values:Ge,startPoint:U,onStartMove:Pt?ut:void 0}),f.createElement(mme,{prefixCls:n,marks:Re,dots:Q,style:G,activeStyle:j}),f.createElement(cme,{ref:de,prefixCls:n,style:z,values:Be,draggingIndex:De,draggingDelete:Je,onStartMove:ut,onOffsetChange:xt,onFocus:p,onBlur:g,handleRender:_,activeHandleRender:B,onChangeComplete:ot,onDelete:se?Ke:void 0}),f.createElement(dme,{prefixCls:n,marks:Re,onClick:lt})))}),MH=f.createContext({}),JD=f.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:o}=e,i=f.useRef(null),s=n&&!r,l=f.useRef(null);function u(){_t.cancel(l.current),l.current=null;}function d(){l.current=_t(()=>{i.current?.forceAlign(),l.current=null;});}return f.useEffect(()=>(s?d():u(),u),[s,e.title,o]),f.createElement(gc,{ref:Yr(i,t),...e,open:s})}),Sme=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:s,colorFillContentHover:l,handleColorDisabled:u,calc:d,handleSize:m,handleSizeHover:p,handleActiveColor:g,handleActiveOutlineColor:b,handleLineWidth:y,handleLineWidthHover:S,motionDurationMid:C}=e;return {[t]:{...mn(e),position:"relative",height:r,margin:`${oe(s)} ${oe(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${oe(i)} ${oe(s)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${C}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${C}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${oe(y)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:m,height:m,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:d(y).mul(-1).equal(),insetBlockStart:d(y).mul(-1).equal(),width:d(m).add(d(y).mul(2)).equal(),height:d(m).add(d(y).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:m,height:m,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${oe(y)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:["inset-inline-start","inset-block-start","width","height","box-shadow","outline"].map(w=>`${w} ${C}`).join(", ")},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:d(p).sub(m).div(2).add(S).mul(-1).equal(),insetBlockStart:d(p).sub(m).div(2).add(S).mul(-1).equal(),width:d(p).add(d(S).mul(2)).equal(),height:d(p).add(d(S).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${oe(S)} ${g}`,outline:`6px solid ${b}`,width:p,height:p,insetInlineStart:e.calc(m).sub(p).div(2).equal(),insetBlockStart:e.calc(m).sub(p).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${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:`${oe(y)} 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`},[`
          ${t}-dot
        `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:m,height:m,boxShadow:`0 0 0 ${oe(y)} ${u}`,insetInlineStart:0,insetBlockStart:0},[`
          ${t}-mark-text,
          ${t}-dot
        `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-container`]:{minWidth:"unset"}}}},TH=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i,marginFull:s,calc:l}=e,u=t?"paddingBlock":"paddingInline",d=t?"width":"height",m=t?"height":"width",p=t?"insetBlockStart":"insetInlineStart",g=t?"top":"insetInlineStart",b=l(r).mul(3).sub(o).div(2).equal(),y=l(o).sub(r).div(2).equal(),S=t?{borderWidth:`${oe(y)} 0`,transform:`translateY(${oe(l(y).mul(-1).equal())})`}:{borderWidth:`0 ${oe(y)}`,transform:`translateX(${oe(e.calc(y).mul(-1).equal())})`};return {[u]:r,[m]:l(r).mul(3).equal(),[`${n}-rail`]:{[d]:"100%",[m]:r},[`${n}-track,${n}-tracks`]:{[m]:r},[`${n}-track-draggable`]:{...S},[`${n}-handle`]:{[p]:b},[`${n}-mark`]:{insetInlineStart:0,top:0,[g]:l(r).mul(3).add(t?0:s).equal(),[d]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[g]:r,[d]:"100%",[m]:r},[`${n}-dot`]:{position:"absolute",[p]:l(r).sub(i).div(2).equal()}}},Cme=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:{...TH(e,true),[`&${t}-with-marks`]:{marginBottom:n}}}},xme=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:{...TH(e,false),height:"100%"}}},wme=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*1.5,s=e.colorPrimary,l=new dn(s).setA(.2).toRgbString();return {controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:s,handleActiveOutlineColor:l,handleColorDisabled:new dn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},Eme=Wt("Slider",e=>{const t=zt(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return [Sme(t),Cme(t),xme(t)]},wme);function $w(){const[e,t]=f.useState(false),n=f.useRef(null),r=()=>{_t.cancel(n.current);},o=i=>{r(),i?t(i):n.current=_t(()=>{t(i);});};return f.useEffect(()=>r,[]),[e,o]}function $me(e){return e||e===null?e:t=>typeof t=="number"?t.toString():""}const xA=q.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,style:s,disabled:l,tooltip:u={},onChangeComplete:d,classNames:m,styles:p,vertical:g,orientation:b,...y}=e,[,S]=Uu(b,g),{getPrefixCls:C,direction:w,className:E,style:M,classNames:T,styles:A,getPopupContainer:I}=jt("slider"),N=q.useContext(fo),P=l??N,O={...e,disabled:P,vertical:S},[D,L]=qt([T,m],[A,p],{props:O}),{handleRender:F,direction:U}=q.useContext(MH),z=(U||w)==="rtl",[k,G]=$w(),[j,K]=$w(),Q={...u},{open:_,placement:B,getPopupContainer:Y,prefixCls:J,formatter:ee}=Q,te=_,re=(k||j)&&te!==false,ie=$me(ee),[de,ne]=$w(),ae=Re=>{d?.(Re),ne(false);},ce=(Re,fe)=>Re||(fe?z?"left":"right":"top"),se=C("slider",n),[$e,le]=Eme(se),pe=X(o,E,D.root,i,{[`${se}-rtl`]:z,[`${se}-lock`]:de},$e,le);z&&!S&&(y.reverse=!y.reverse),q.useEffect(()=>{const Re=()=>{_t(()=>{K(false);},1);};return document.addEventListener("mouseup",Re),()=>{document.removeEventListener("mouseup",Re);}},[]);const be=r&&!te,Ce=F||((Re,fe)=>{const{index:ve}=fe,Ne=Re.props;function He(ot,Ke,De){De&&y[ot]?.(Ke),Ne[ot]?.(Ke);}const Ge={...Ne,onMouseEnter:ot=>{G(true),He("onMouseEnter",ot);},onMouseLeave:ot=>{G(false),He("onMouseLeave",ot);},onMouseDown:ot=>{K(true),ne(true),He("onMouseDown",ot);},onFocus:ot=>{K(true),y.onFocus?.(ot),He("onFocus",ot,true);},onBlur:ot=>{K(false),y.onBlur?.(ot),He("onBlur",ot,true);}},je=q.cloneElement(Re,Ge),rt=(!!te||re)&&ie!==null;return be?je:q.createElement(JD,{...Q,prefixCls:C("tooltip",J),title:ie?ie(fe.value):"",value:fe.value,open:rt,placement:ce(B,S),key:ve,classNames:{root:`${se}-tooltip`},getPopupContainer:Y||I},je)}),Ae=be?(Re,fe)=>{const ve=q.cloneElement(Re,{style:{...Re.props.style,visibility:"hidden"}});return q.createElement(JD,{...Q,prefixCls:C("tooltip",J),title:ie?ie(fe.value):"",open:ie!==null&&re,placement:ce(B,S),key:"tooltip",classNames:{root:`${se}-tooltip`},getPopupContainer:Y||I,draggingDelete:fe.draggingDelete},ve)}:void 0,Ye={...L.root,...M,...s};return q.createElement(yme,{...y,classNames:D,styles:L,step:y.step,range:r,className:pe,style:Ye,disabled:P,vertical:S,ref:t,prefixCls:se,handleRender:Ce,activeHandleRender:Ae,onChangeComplete:ae})}),AH=e=>{const{prefixCls:t,colors:n,type:r,color:o,range:i=false,className:s,activeIndex:l,onActive:u,onDragStart:d,onDragChange:m,onKeyDelete:p,...g}=e,b={...g,track:false},y=f.useMemo(()=>`linear-gradient(90deg, ${n.map(I=>`${I.color} ${I.percent}%`).join(", ")})`,[n]),S=f.useMemo(()=>!o||!r?null:r==="alpha"?o.toRgbString():`hsl(${o.toHsb().h}, 100%, 50%)`,[o,r]),C=Mt(d),w=Mt(m),E=f.useMemo(()=>({onDragStart:C,onDragChange:w}),[]),M=Mt((A,I)=>{const{onFocus:N,style:P,className:O,onKeyDown:D}=A.props,L={...P};return r==="gradient"&&(L.background=mF(n,I.value)),f.cloneElement(A,{onFocus:F=>{u?.(I.index),N?.(F);},style:L,className:X(O,{[`${t}-slider-handle-active`]:l===I.index}),onKeyDown:F=>{(F.key==="Delete"||F.key==="Backspace")&&p&&p(I.index),D?.(F);}})}),T=f.useMemo(()=>({direction:"ltr",handleRender:M}),[]);return f.createElement(MH.Provider,{value:T},f.createElement($H.Provider,{value:E},f.createElement(xA,{...b,className:X(s,`${t}-slider`),tooltip:{open:false},range:{editable:i,minCount:2},styles:{rail:{background:y},handle:S?{background:S}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}})))},Mme=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,o=s=>n(s[0]),i=s=>r(s[0]);return f.createElement(AH,{...e,value:[t],onChange:o,onChangeComplete:i})};function e8(e){return Zt(e).sort((t,n)=>t.percent-n.percent)}const Tme=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:o,onActive:i,activeIndex:s,onGradientDragging:l,colors:u}=e,d=n==="gradient",m=f.useMemo(()=>u.map(w=>({percent:w.percent,color:w.color.toRgbString()})),[u]),p=f.useMemo(()=>m.map(w=>w.percent),[m]),g=f.useRef(m),b=({rawValues:w,draggingIndex:E,draggingValue:M})=>{if(w.length>m.length){const T=mF(m,M),A=Zt(m);A.splice(E,0,{percent:M,color:T}),g.current=A;}else g.current=m;l(true),r(new Qo(e8(g.current)),true);},y=({deleteIndex:w,draggingIndex:E,draggingValue:M})=>{let T=Zt(g.current);w!==-1?T.splice(w,1):(T[E]={...T[E],percent:M},T=e8(T)),r(new Qo(T),true);},S=w=>{const E=Zt(m);E.splice(w,1);const M=new Qo(E);r(M),o(M);},C=w=>{o(new Qo(m)),s>=w.length&&i(w.length-1),l(false);};return d?f.createElement(AH,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:m,color:null,value:p,range:true,onChangeComplete:C,disabled:false,type:"gradient",activeIndex:s,onActive:i,onDragStart:b,onDragChange:y,onKeyDelete:S}):null},Ame=f.memo(Tme),Rme={slider:Mme},t8=()=>{const e=f.useContext(fH),{mode:t,onModeChange:n,modeOptions:r,prefixCls:o,allowClear:i,value:s,disabledAlpha:l,onChange:u,onClear:d,onChangeComplete:m,activeIndex:p,gradientDragging:g,...b}=e,y=q.useMemo(()=>s.cleared?[{percent:0,color:new Qo("")},{percent:100,color:new Qo("")}]:s.getColors(),[s]),S=!s.isGradient(),[C,w]=q.useState(s);Rn(()=>{S||w(y[p]?.color);},[S,y,g,p]);const E=q.useMemo(()=>S?s:g?C:y[p]?.color,[y,s,p,S,C,g]),[M,T]=q.useState(E),[A,I]=$z(),N=M?.equals(E)?E:M;Rn(()=>{T(E);},[A,E?.toHexString()]);const P=(W,z)=>{let k=mo(W);if(s.cleared){const j=k.toRgb();if(!j.r&&!j.g&&!j.b&&z){const{type:K,value:Q=0}=z;k=new Qo({h:K==="hue"?Q:0,s:1,b:1,a:K==="alpha"?Q/100:1});}else k=m0(k);}if(t==="single")return k;const G=Zt(y);return G[p]={...G[p],color:k},new Qo(G)},O=(W,z,k)=>{const G=P(W,k);T(G.isGradient()?G.getColors()[p].color:G),u(G,z);},D=(W,z)=>{m(P(W,z)),I();},L=W=>{u(P(W));};let F=null;const U=r.length>1;return (i||U)&&(F=q.createElement("div",{className:`${o}-operation`},U&&q.createElement(bA,{size:"small",options:r,value:t,onChange:n}),q.createElement(hH,{prefixCls:o,value:s,onChange:W=>{u(W),d?.();},...b}))),q.createElement(q.Fragment,null,F,q.createElement(Ame,{...e,colors:y}),q.createElement(koe,{prefixCls:o,value:N?.toHsb(),disabledAlpha:l,onChange:(W,z)=>{O(W,true,z);},onChangeComplete:(W,z)=>{D(W,z);},components:Rme}),q.createElement(lme,{value:E,onChange:L,prefixCls:o,disabledAlpha:l,...b}))},n8=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=f.useContext(mH);return Array.isArray(n)?q.createElement(oie,{value:t,presets:n,prefixCls:e,onChange:r}):null},Nme=e=>{const{prefixCls:t,presets:n,panelRender:r,value:o,onChange:i,onClear:s,allowClear:l,disabledAlpha:u,mode:d,onModeChange:m,modeOptions:p,onChangeComplete:g,activeIndex:b,onActive:y,format:S,onFormatChange:C,gradientDragging:w,onGradientDragging:E,disabledFormat:M}=e,T=`${t}-inner`,A=q.useMemo(()=>({prefixCls:t,value:o,onChange:i,onClear:s,allowClear:l,disabledAlpha:u,mode:d,onModeChange:m,modeOptions:p,onChangeComplete:g,activeIndex:b,onActive:y,format:S,onFormatChange:C,gradientDragging:w,onGradientDragging:E,disabledFormat:M}),[t,o,i,s,l,u,d,m,p,g,b,y,S,C,w,E,M]),I=q.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:i}),[t,o,n,i]),N=q.createElement("div",{className:`${T}-content`},q.createElement(t8,null),Array.isArray(n)&&q.createElement(sc,null),q.createElement(n8,null));return q.createElement(fH.Provider,{value:A},q.createElement(mH.Provider,{value:I},q.createElement("div",{className:T},typeof r=="function"?r(N,{components:{Picker:t8,Presets:n8}}):N)))},Pme=f.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,disabled:i,format:s,className:l,style:u,classNames:d,styles:m,showText:p,activeIndex:g,...b}=e,y=`${r}-trigger`,S=`${y}-text`,C=`${S}-cell`,[w]=Lo("ColorPicker"),E=q.useMemo(()=>{if(!p)return "";if(typeof p=="function")return p(n);if(n.cleared)return w.transparent;if(n.isGradient())return n.getColors().map((I,N)=>{const P=g!==-1&&g!==N;return q.createElement("span",{key:N,className:X(C,P&&`${C}-inactive`)},I.color.toRgbString()," ",I.percent,"%")});const T=n.toHexString().toUpperCase(),A=kT(n);switch(s){case "rgb":return n.toRgbString();case "hsb":return n.toHsbString();default:return A<100?`${T.slice(0,7)},${A}%`:T}},[n,s,p,g,w.transparent,C]),M=f.useMemo(()=>n.cleared?q.createElement(hH,{prefixCls:r,className:d.body,style:m.body}):q.createElement(LT,{prefixCls:r,color:n.toCssString(),className:d.body,innerClassName:d.content,style:m.body,innerStyle:m.content}),[n,r,d.body,d.content,m.body,m.content]);return q.createElement("div",{ref:t,className:X(y,l,d.root,{[`${y}-active`]:o,[`${y}-disabled`]:i}),style:{...m.root,...u},...$o(b)},M,p&&q.createElement("div",{className:X(S,d.description),style:m.description},E))});function Ime(e,t,n){const[r]=Lo("ColorPicker"),[o,i]=fn(e,t),[s,l]=f.useState("single"),[u,d]=f.useMemo(()=>{const S=(Array.isArray(n)?n:[n]).filter(M=>M);S.length||S.push("single");const C=new Set(S),w=[],E=(M,T)=>{C.has(M)&&w.push({label:T,value:M});};return E("single",r.singleColor),E("gradient",r.gradientColor),[w,C]},[n,r.singleColor,r.gradientColor]),[m,p]=f.useState(null),g=Mt(S=>{p(S),i(S);}),b=f.useMemo(()=>{const S=mo(o||"");return S.equals(m)?m:S},[o,m]),y=f.useMemo(()=>d.has(s)?s:u[0]?.value,[d,s,u]);return f.useEffect(()=>{l(b.isGradient()?"gradient":"single");},[b]),[b,g,y,l,u]}const RH=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:`${e} ${e}`}),r8=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:s}=e;return {[`${n}-color-block`]:{position:"relative",borderRadius:r,width:t,height:t,boxShadow:o,flex:"none",...RH("50%",e.colorFillSecondary),[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${oe(i)} ${s}`,borderRadius:"inherit"}}}},Ome=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:s,paddingXXS:l,controlHeightSM:u,marginXS:d,fontSizeIcon:m,paddingXS:p,colorTextPlaceholder:g,colorPickerInputNumberHandleWidth:b,lineWidth:y}=e;return {[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,padding:0,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:b}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${oe(i)}`,marginInlineStart:s},[`${t}-format-select${n}-select`]:{marginInlineEnd:d,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(m).add(s).equal(),fontSize:r,lineHeight:oe(u)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:s,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{height:u,display:"flex",gap:s,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${oe(p)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:oe(e.calc(u).sub(e.calc(y).mul(2)).equal())},[`${n}-input-prefix`]:{color:g}}}}}},Dme=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:s,colorFillSecondary:l,lineWidthBold:u,colorPickerHandlerSize:d}=e;return {userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:d,height:d,border:`${oe(u)} solid ${s}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`}}},_me=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:s,colorText:l,lineHeightSM:u,lineWidth:d,borderRadius:m,colorFill:p,colorWhite:g,marginXXS:b,paddingXS:y,fontHeightSM:S}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:S,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:b},[`${n}-collapse-item > ${n}-collapse-panel > ${n}-collapse-body`]:{padding:`${oe(y)} 0`},"&-label":{fontSize:s,color:l,lineHeight:u},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(b).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(d).mul(4)).equal(),height:e.calc(i).add(e.calc(d).mul(4)).equal(),position:"absolute",top:e.calc(d).mul(-2).equal(),insetInlineStart:e.calc(d).mul(-2).equal(),borderRadius:m,border:`${oe(d)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:p},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${oe(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:g,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:s,color:r}}}},Lme=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:o,lineWidthBold:i,colorPickerHandlerSizeSM:s,colorPickerSliderHeight:l,marginSM:u,marginXS:d}=e,m=e.calc(s).sub(e.calc(i).mul(2).equal()).equal(),p=e.calc(s).add(e.calc(i).mul(2).equal()).equal(),g={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return {[`${t}-slider`]:[RH(oe(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:m,height:m,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:true,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:p,height:p,borderRadius:"100%"},"&:after":{width:s,height:s,border:`${oe(i)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":g}}],[`${t}-slider-container`]:{display:"flex",gap:u,marginBottom:u,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:d,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":g}}}},u3=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${oe(e.controlOutlineWidth)} ${n}`,outline:0}),Bme=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},o8=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:s,colorBorder:l,red6:u}=e;return {[`${r}-clear`]:{width:t,height:t,borderRadius:o,border:`${oe(i)} solid ${s}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`,...n,"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:u},"&:hover":{borderColor:l}}}},kme=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:i,colorErrorOutline:s,colorWarningOutline:l}=e;return {[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:{...u3(e,n,s)}},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:{...u3(e,r,l)}}}},zme=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,borderRadius:s,borderRadiusSM:l,borderRadiusXS:u,borderRadiusLG:d,fontSizeLG:m}=e;return {[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:d,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:s},[`${t}-trigger-text`]:{fontSize:m}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:u},[`${t}-trigger-text`]:{lineHeight:oe(i)}}}},Fme=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:i,colorBgElevated:s,colorTextDisabled:l,colorText:u,colorBgContainerDisabled:d,borderRadius:m,marginXS:p,marginSM:g,controlHeight:b,controlHeightSM:y,colorBgTextActive:S,colorPickerPresetColorSize:C,colorPickerPreviewSize:w,lineWidth:E,colorBorder:M,paddingXXS:T,fontSize:A,colorPrimaryHover:I,controlOutline:N}=e;return [{[n]:{[`${n}-inner`]:{"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${oe(g)} 0 ${oe(p)}`}},[`${n}-panel`]:{...Dme(e)},...Lme(e),...r8(e,w),...Ome(e),..._me(e),...o8(e,C,{marginInlineStart:"auto"}),[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:p}},"&-trigger":{minWidth:b,minHeight:b,borderRadius:m,border:`${oe(E)} solid ${M}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:s,padding:e.calc(T).sub(E).equal(),[`${n}-trigger-text`]:{marginInlineStart:p,marginInlineEnd:e.calc(p).sub(e.calc(T).sub(E)).equal(),fontSize:A,color:u,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:I},[`&${n}-trigger-active`]:{...u3(e,o,N)},"&-disabled":{color:l,background:d,cursor:"not-allowed","&:hover":{borderColor:S},[`${n}-trigger-text`]:{color:l}},...o8(e,y),...r8(e,y),...kme(e),...zme(e)},...Bme(e)}},Qf(e,{focusElCls:`${n}-trigger-active`})]},Hme=Wt("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=zt(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return Fme(o)}),wA=e=>{const{mode:t,value:n,defaultValue:r,format:o,defaultFormat:i,allowClear:s=false,presets:l,children:u,trigger:d="click",open:m,disabled:p,placement:g="bottomLeft",arrow:b,panelRender:y,showText:S,style:C,className:w,size:E,rootClassName:M,prefixCls:T,styles:A,classNames:I,disabledAlpha:N=false,onFormatChange:P,onChange:O,onClear:D,onOpenChange:L,onChangeComplete:F,getPopupContainer:U,autoAdjustOverflow:W=true,destroyTooltipOnHide:z,destroyOnHidden:k,disabledFormat:G,...j}=e,{getPrefixCls:K,direction:Q,className:_,style:B,classNames:Y,styles:J,arrow:ee}=jt("colorPicker"),te=f.useContext(fo),re=p??te,ie=K("color-picker",T),de=D1(b,ee),{compactSize:ne,compactItemClassnames:ae}=Za(ie,Q),ce=br(Me=>E??ne??Me),se={...e,trigger:d,allowClear:s,autoAdjustOverflow:W,disabledAlpha:N,arrow:de,placement:g,disabled:re,size:ce},[$e,le]=qt([Y,I],[J,A],{props:se},{popup:{_default:"root"}}),[pe,be]=fn(false,m),Ce=!re&&pe,[Ae,Ye]=fn(i,o),Re=Me=>{Ye(Me),Ae!==Me&&P?.(Me);},fe=Me=>{(!Me||!re)&&(be(Me),L?.(Me));},[ve,Ne,He,Ge,je]=Ime(r,n,t),rt=f.useMemo(()=>kT(ve)<100,[ve]),[ot,Ke]=q.useState(null),De=Me=>{if(F){let Se=mo(Me);N&&rt&&(Se=m0(Me)),F(Se);}},qe=(Me,Se)=>{let he=mo(Me);N&&rt&&(he=m0(he)),Ne(he),Ke(null),O&&O(he,he.toCssString()),Se||De(he);},[Je,Be]=q.useState(0),[Ie,lt]=q.useState(false),Dt=Me=>{if(Ge(Me),Me==="single"&&ve.isGradient())Be(0),qe(new Qo(ve.getColors()[0].color)),Ke(ve);else if(Me==="gradient"&&!ve.isGradient()){const Se=rt?m0(ve):ve;qe(new Qo(ot||[{percent:0,color:Se},{percent:100,color:Se}]));}},{status:pt}=q.useContext(Mo),Lt=Qn(ie),[xt,Pt]=Hme(ie,Lt),ut={[`${ie}-rtl`]:Q},ct=X(M,Pt,Lt,ut),bt=X(ic(ie,pt),{[`${ie}-sm`]:ce==="small",[`${ie}-lg`]:ce==="large"},ae,_,ct,w,xt),Fe=X(ie,ct,$e.popup?.root),Ue={open:Ce,trigger:d,placement:g,arrow:de,rootClassName:M,getPopupContainer:U,autoAdjustOverflow:W,destroyOnHidden:k??!!z},ye={...B,...C};return q.createElement(Ps,{classNames:{root:Fe},styles:{root:le.popup?.root,container:A?.popupOverlayInner},onOpenChange:fe,content:q.createElement(oc,{form:true},q.createElement(Nme,{mode:He,onModeChange:Dt,modeOptions:je,prefixCls:ie,value:ve,allowClear:s,disabled:re,disabledAlpha:N,presets:l,panelRender:y,format:Ae,onFormatChange:Re,onChange:qe,onChangeComplete:De,onClear:D,activeIndex:Je,onActive:Be,gradientDragging:Ie,onGradientDragging:lt,disabledFormat:G})),...Ue},u||q.createElement(Pme,{activeIndex:Ce?Je:-1,open:Ce,className:bt,style:ye,classNames:$e,styles:le,prefixCls:ie,disabled:re,showText:S,format:Ae,...j,color:ve}))},Vme=KT(wA,void 0,e=>({...e,placement:"bottom",autoAdjustOverflow:false}),"color-picker",e=>e);wA._InternalPanelDoNotUseOrYouWillBeFired=Vme;function Ey(e){return ["small","middle","medium","large"].includes(e)}function i8(e){return e?typeof e=="number"&&!Number.isNaN(e):false}const NH=q.createContext({latestIndex:0}),jme=NH.Provider,Ume=e=>{const{className:t,prefix:n,index:r,children:o,separator:i,style:s,classNames:l,styles:u}=e,{latestIndex:d}=f.useContext(NH);return Lr(o)?f.createElement(f.Fragment,null,f.createElement("div",{className:t,style:s},o),r<d&&i&&f.createElement("span",{className:X(`${n}-item-separator`,l?.separator),style:u?.separator},i)):null},Wme=e=>{const{componentCls:t,antCls:n}=e;return {[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Gme=e=>{const{componentCls:t}=e;return {[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},qme=Wt("Space",e=>{const t=zt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [Wme(t),Gme(t)]},()=>({}),{resetStyle:false}),Kme=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,size:o,className:i,style:s,classNames:l,styles:u}=jt("space"),{size:d=o??"small",align:m,className:p,rootClassName:g,children:b,direction:y,orientation:S,prefixCls:C,split:w,separator:E,style:M,vertical:T,wrap:A=false,classNames:I,styles:N,...P}=e,[O,D]=Array.isArray(d)?d:[d,d],L=Ey(D),F=Ey(O),U=i8(D),W=i8(O),z=ri(b,{keepEmpty:true}),[k,G]=Uu(S,T,y),j=m===void 0&&!G?"center":m,K=E??w,Q=n("space",C),[_,B]=qme(Q),Y={...e,size:d,orientation:k,align:j},[J,ee]=qt([l,I],[u,N],{props:Y}),te=X(Q,i,_,`${Q}-${k}`,{[`${Q}-rtl`]:r==="rtl",[`${Q}-align-${j}`]:j,[`${Q}-gap-row-${D}`]:L,[`${Q}-gap-col-${O}`]:F},p,g,B,J.root),re=X(`${Q}-item`,J.item),ie=z.map((ae,ce)=>{const se=ae?.key||`${re}-${ce}`;return f.createElement(Ume,{prefix:Q,classNames:J,styles:ee,className:re,key:se,index:ce,separator:K,style:ee.item},ae)}),de=f.useMemo(()=>({latestIndex:z.reduce((ce,se,$e)=>Lr(se)?$e:ce,0)}),[z]);if(z.length===0)return null;const ne={};return A&&(ne.flexWrap="wrap"),!F&&W&&(ne.columnGap=O),!L&&U&&(ne.rowGap=D),f.createElement("div",{ref:t,className:te,style:{...ne,...ee.root,...s,...M},...P},f.createElement(jme,{value:de},ie))}),Tr=Kme;Tr.Compact=RT;Tr.Addon=yH;const PH=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=f.useContext(wt),{prefixCls:o,type:i="default",danger:s,disabled:l,loading:u,onClick:d,htmlType:m,children:p,className:g,menu:b,arrow:y,autoFocus:S,trigger:C,align:w,open:E,onOpenChange:M,placement:T,getPopupContainer:A,href:I,icon:N=f.createElement(dA,null),title:P,buttonsRender:O=ne=>ne,mouseEnterDelay:D,mouseLeaveDelay:L,overlayClassName:F,overlayStyle:U,destroyOnHidden:W,destroyPopupOnHide:z,dropdownRender:k,popupRender:G,...j}=e,K=n("dropdown",o),Q=`${K}-button`,B={menu:b,arrow:y,autoFocus:S,align:w,disabled:l,trigger:l?[]:C,onOpenChange:M,getPopupContainer:A||t,mouseEnterDelay:D,mouseLeaveDelay:L,classNames:{root:F},styles:{root:U},destroyOnHidden:W,popupRender:G||k},{compactSize:Y,compactItemClassnames:J}=Za(K,r),ee=X(Q,J,g);"destroyPopupOnHide"in e&&(B.destroyPopupOnHide=z),"open"in e&&(B.open=E),"placement"in e?B.placement=T:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const te=f.createElement(ht,{type:i,danger:s,disabled:l,loading:u,onClick:d,htmlType:m,href:I,title:P},p),re=f.createElement(ht,{type:i,danger:s,icon:N}),[ie,de]=O([te,re]);return f.createElement(Tr.Compact,{className:ee,size:Y,block:true,...j},ie,f.createElement(k1,{...B},de))};PH.__ANT_BUTTON=true;const bc=k1;bc.Button=PH;const IH=["wrap","nowrap","wrap-reverse"],OH=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],DH=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Yme=(e,t)=>{const n=t.wrap===true?"wrap":t.wrap;return {[`${e}-wrap-${n}`]:n&&IH.includes(n)}},Xme=(e,t)=>{const n={};return DH.forEach(r=>{n[`${e}-align-${r}`]=t.align===r;}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},Qme=(e,t)=>{const n={};return OH.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r;}),n},Zme=(e,t)=>X({...Yme(e,t),...Xme(e,t),...Qme(e,t)}),Jme=e=>{const{componentCls:t}=e;return {[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},ehe=e=>{const{componentCls:t}=e;return {[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},the=e=>{const{componentCls:t}=e,n={};return IH.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r};}),n},nhe=e=>{const{componentCls:t}=e,n={};return DH.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r};}),n},rhe=e=>{const{componentCls:t}=e,n={};return OH.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r};}),n},ohe=()=>({}),ihe=Wt("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=zt(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return [Jme(o),ehe(o),the(o),nhe(o),rhe(o)]},ohe,{resetStyle:false}),she=q.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:o,style:i,flex:s,gap:l,vertical:u,orientation:d,component:m="div",children:p,...g}=e,{flex:b,direction:y,getPrefixCls:S}=q.useContext(wt),C=S("flex",n),[w,E]=ihe(C),[,M]=Uu(d,u??b?.vertical),T=X(o,r,b?.className,C,w,E,Zme(C,{...e,vertical:M}),{[`${C}-rtl`]:y==="rtl",[`${C}-gap-${l}`]:Ey(l),[`${C}-vertical`]:M}),A={...b?.style,...i};return Lr(s)&&(A.flex=s),Lr(l)&&!Ey(l)&&(A.gap=l),q.createElement(m,{ref:t,className:T,style:A,...kn(g,["justify","wrap","align"])},p)}),$y=q.createContext(null);var ahe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};function d3(){return d3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},d3.apply(this,arguments)}const lhe=(e,t)=>f.createElement(Xn,d3({},e,{ref:t,icon:ahe})),_H=f.forwardRef(lhe),che=(e,t)=>Lr(e)?typeof e=="object"&&!f.isValidElement(e)?{...t,...e}:{...t,title:e}:null,uhe=e=>{const{componentCls:t,floatButtonSize:n,iconCls:r,antCls:o,floatButtonIconSize:i}=e,[s,l]=nr(o,"float-btn"),u=`${t}-badge`,d=Math.SQRT2,m=(d-1)/d,p=e.calc(e.borderRadius).mul(m).equal(),g=e.calc(e.controlHeight).div(2).mul(m).equal();return {[t]:[{[s("size")]:oe(n)},{flexDirection:"column",margin:0,padding:`${oe(e.paddingXXS)} 0`,width:l("size"),minHeight:l("size"),height:"auto",wordBreak:"break-word",whiteSpace:"normal",gap:e.calc(e.paddingXXS).div(2).equal(),"&-rtl":{direction:"rtl"},[`&${t}-individual`]:{position:"fixed",zIndex:e.zIndexPopupBase,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary},[`&${t}-pure`]:{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-icon`]:{lineHeight:1},[`&${t}-icon-only`]:{[r]:{fontSize:i}},[`${t}-content`]:{fontSize:e.fontSizeSM},[u]:{position:"absolute",top:0,insetInlineEnd:0,[`&:not(${u}-dot)`]:{transform:"translate(50%, -50%)"}},[`&-rtl ${u}:not(${u}-dot)`]:{transform:"translate(-50%, -50%)"},"&-square":{[`${u}-dot`]:{marginTop:p,marginInlineEnd:p}},"&-circle":{[u]:{marginTop:g,marginInlineEnd:g}}}]}},dhe=e=>{const{componentCls:t,antCls:n,floatButtonSize:r,padding:o}=e,i=`${t}-group`,s=`${i}-list`,[l,u]=nr(n,"float-btn");return {[i]:[{[l("list-transform-start")]:`translate(0,${oe(r)})`,[l("list-trigger-offset")]:`calc(${oe(r)} + ${oe(o)})`},{...mn(e),position:"fixed",zIndex:e.zIndexPopupBase,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,gap:o,"&-rtl":{direction:"rtl"},[`&${t}-pure`]:{position:"relative",inset:"auto"},[t]:{position:"relative",inset:"auto"}},{[`&:not(${i}-individual) ${s}`]:{boxShadow:e.boxShadowSecondary},[`&${i}-individual ${s}`]:{gap:o},[`&-menu-mode ${s}`]:{position:"absolute"},[s]:{borderRadius:e.borderRadiusLG,"&-motion":{transition:`all ${e.motionDurationSlow}`,"&-enter, &-appear":{opacity:0,transform:u("list-transform-start"),"&-active":{opacity:1,transform:"translate(0, 0)"}},"&-leave":{"&-active":{opacity:0,transform:u("list-transform-start")}}}},"&-top":{[s]:{bottom:u("list-trigger-offset")}},"&-bottom":{[s]:{[l("list-transform-start")]:`translate(0, calc(${oe(r)} * -1))`,top:u("list-trigger-offset")}},"&-left":{[s]:{[l("list-transform-start")]:`translate(${oe(r)}, 0)`,right:u("list-trigger-offset")}},"&-right":{[s]:{[l("list-transform-start")]:`translate(calc(${oe(r)} * -1), 0)`,left:u("list-trigger-offset")}}}]}},fhe=()=>({}),LH=Wt("FloatButton",e=>{const{controlHeightLG:t,marginXXL:n,marginLG:r,fontSizeIcon:o,calc:i}=e,s=zt(e,{floatButtonIconSize:i(o).mul(1.5).equal(),floatButtonSize:t,floatButtonInsetBlockEnd:n,floatButtonInsetInlineEnd:r});return [uhe(s),dhe(s),PT(e)]},fhe,{order:-998}),V1="float-btn",mhe=q.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,type:s="default",shape:l="circle",icon:u,description:d,content:m,tooltip:p,badge:g={},classNames:b,styles:y,...S}=e,{getPrefixCls:C,direction:w}=q.useContext(wt),E=q.useContext($y),M=C(V1,n),T=Qn(M),{shape:A,individual:I,classNames:N,styles:P}=E||{},O=A||l,D=I??true,L=m??d,F={...e,type:s,shape:O},[U,W]=LH(M,T),z=q.useMemo(()=>({icon:`${M}-icon`,content:`${M}-content`}),[M]),[k,G]=qt([z,N,b],[P,y],{props:F}),j=!L&&!u?q.createElement(_H,null):u,[K]=Wu("FloatButton",i?.zIndex),Q={...i,zIndex:K},_=kn(g,["title","children","status","text"]),B="badge"in e&&q.createElement(Cg,{..._,className:X(_.className,`${M}-badge`,{[`${M}-badge-dot`]:_.dot})}),Y=che(p);let J=q.createElement(ht,{...S,ref:t,className:X(U,W,T,M,r,o,`${M}-${s}`,`${M}-${O}`,{[`${M}-rtl`]:w==="rtl",[`${M}-individual`]:D,[`${M}-icon-only`]:!L}),classNames:k,styles:G,style:Q,shape:O,type:s,size:"large",icon:j,_skipSemantic:true},L,B);return Y&&(J=q.createElement(gc,{...Y},J)),J}),Ku=mhe,hhe=q.createElement(Vce,null),BH=q.forwardRef((e,t)=>{const{backTopIcon:n}=jt("floatButton"),{prefixCls:r,className:o,type:i="default",shape:s="circle",visibilityHeight:l=400,icon:u,target:d,onClick:m,duration:p=450,...g}=e,b=u??n??hhe,[y,S]=f.useState(l===0),C=q.useRef(null);q.useImperativeHandle(t,()=>({nativeElement:C.current}));const w=()=>C.current?.ownerDocument||window,E=QJ(D=>{const L=Tz(D.target);S(L>=l);});f.useEffect(()=>{const L=(d||w)();return E({target:L}),L?.addEventListener("scroll",E),()=>{E.cancel(),L?.removeEventListener("scroll",E);}},[d]);const M=D=>{One(0,{getContainer:d||w,duration:p}),m?.(D);},{getPrefixCls:T}=f.useContext(wt),A=T(V1,r),I=T(),P=f.useContext($y)?.shape||s,O={prefixCls:A,icon:b,type:i,shape:P,...g};return q.createElement(To,{visible:y,motionName:`${I}-fade`},({className:D},L)=>q.createElement(Ku,{ref:Yr(C,L),...O,onClick:M,className:X(o,D)}))}),kH=e=>{const{prefixCls:t,className:n,style:r,classNames:o,styles:i,rootClassName:s,shape:l="circle",type:u="default",placement:d,icon:m=q.createElement(_H,null),closeIcon:p,trigger:g,children:b,onOpenChange:y,open:S,onClick:C,...w}=e,{direction:E,getPrefixCls:M,closeIcon:T,classNames:A,styles:I,className:N,style:P}=jt("floatButtonGroup"),O=p??T??q.createElement(Xa,null),D=M(V1,t),L=Qn(D),[F,U]=LH(D,L),W=`${D}-group`,z=g&&["click","hover"].includes(g),[k]=Wu("FloatButton",r?.zIndex),G=q.useRef(null),j=["top","left","right","bottom"].includes(d)?d:"top",[K,Q]=fn(false,S),_=g==="hover",B=g==="click",Y=Mt(pe=>{K!==pe&&(Q(pe),y?.(pe));}),J=()=>{_&&Y(true);},ee=()=>{_&&Y(false);},te=pe=>{B&&Y(!K),C?.(pe);};q.useEffect(()=>{if(B){const pe=be=>{G.current?.contains(be.target)||Y(false);};return document.addEventListener("click",pe,{capture:true}),()=>document.removeEventListener("click",pe,{capture:true})}},[B]);const re=l==="circle",ie={...e,shape:l,type:u,placement:j},[de,ne]=qt([A,o],[I,i],{props:ie}),ae=q.useMemo(()=>({shape:l,individual:re,classNames:{root:de.item,icon:de.itemIcon,content:de.itemContent},styles:{root:ne.item,icon:ne.itemIcon,content:ne.itemContent}}),[l,re,de,ne]),ce=q.useMemo(()=>({...ae,individual:true,classNames:{root:de.trigger,icon:de.triggerIcon,content:de.triggerContent},styles:{root:ne.trigger,icon:ne.triggerIcon,content:ne.triggerContent}}),[ae,de,ne]);let se;const $e=`${W}-list`,le=pe=>{const be=j==="top"||j==="bottom",Ce={className:X($e,de.list,pe),style:ne.list};return re?se=q.createElement(she,{vertical:be,...Ce},b):se=q.createElement(Tr.Compact,{vertical:be,...Ce},b),se};return q.createElement($y.Provider,{value:ae},q.createElement("div",{className:X(W,F,U,L,N,de.root,n,s,{[`${W}-rtl`]:E==="rtl",[`${W}-individual`]:re,[`${W}-${j}`]:z,[`${W}-menu-mode`]:z}),style:{...P,zIndex:k,...ne.root,...r},ref:G,onMouseEnter:J,onMouseLeave:ee},z?q.createElement(To,{visible:K,motionName:`${$e}-motion`},({className:pe})=>le(pe)):le(),z&&q.createElement($y.Provider,{value:ce},q.createElement(Ku,{type:u,icon:K?O:m,"aria-label":e["aria-label"],className:`${W}-trigger`,onClick:te,...w}))))},s8=({backTop:e,...t})=>e?f.createElement(BH,{...t,visibilityHeight:0}):f.createElement(Ku,{...t}),phe=({className:e,items:t,classNames:n,styles:r,prefixCls:o,...i})=>{const{getPrefixCls:s}=f.useContext(wt),u=`${s(V1,o)}-pure`;return t?f.createElement(kH,{className:X(e,u),classNames:n,styles:r,...i},t.map((d,m)=>f.createElement(s8,{key:m,...d}))):f.createElement(s8,{className:X(e,u),classNames:n,styles:r,...i})};Ku.BackTop=BH;Ku.Group=kH;Ku._InternalPanelDoNotUseOrYouWillBeFired=phe;const ghe=e=>{const{getPrefixCls:t,direction:n}=f.useContext(wt),{prefixCls:r,className:o}=e,i=t("input-group",r),s=t("input"),[l,u]=rH(s),d=X(i,u,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),m=f.useContext(Mo),p=f.useMemo(()=>({...m,isFormItemInput:false}),[m]);return f.createElement(Mo.Provider,{value:p},f.createElement(Tr.Compact,{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},vhe=e=>{const{componentCls:t,paddingXS:n}=e;return {[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},bhe=Wt(["Input","OTP"],e=>{const t=zt(e,nm(e));return vhe(t)},rm),yhe=f.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:i,index:s,mask:l,onFocus:u,...d}=e,{getPrefixCls:m}=f.useContext(wt),p=m("otp"),g=typeof l=="string"?l:r,b=f.useRef(null);f.useImperativeHandle(t,()=>b.current);const y=E=>{o(s,E.target.value);},S=()=>{_t(()=>{const E=b.current?.input;document.activeElement===E&&E&&E.select();});},C=E=>{u?.(E),S();},w=E=>{const{key:M,ctrlKey:T,metaKey:A}=E;M==="ArrowLeft"?i(s-1):M==="ArrowRight"?i(s+1):M==="z"&&(T||A)?E.preventDefault():M==="Backspace"&&!r&&i(s-1),S();};return f.createElement("span",{className:`${p}-input-wrapper`,role:"presentation"},l&&r!==""&&r!==void 0&&f.createElement("span",{className:`${p}-mask-icon`,"aria-hidden":"true"},g),f.createElement(om,{"aria-label":`OTP Input ${s+1}`,type:l===true?"password":"text",...d,ref:b,value:r,onInput:y,onFocus:C,onKeyDown:w,onMouseDown:S,onMouseUp:S,className:X(n,{[`${p}-mask-input`]:l})}))});function Ab(e){return (e||"").split("")}const She=e=>{const{index:t,prefixCls:n,separator:r,className:o,style:i}=e,s=typeof r=="function"?r(t):r;return s?f.createElement("span",{className:X(`${n}-separator`,o),style:i},s):null},Che=f.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:s,onChange:l,formatter:u,separator:d,variant:m,disabled:p,status:g,autoFocus:b,mask:y,type:S,autoComplete:C,onInput:w,onFocus:E,inputMode:M,classNames:T,styles:A,className:I,style:N,...P}=e,{classNames:O,styles:D,getPrefixCls:L,direction:F,style:U,className:W}=jt("otp"),z=L("otp",n),k={...e,length:r},[G,j]=qt([O,T],[D,A],{props:k}),K=$o(P,{aria:true,data:true,attr:true}),[Q,_]=bhe(z),B=br(be=>o??be),Y=f.useContext(Mo),J=Jf(Y.status,g),ee=f.useMemo(()=>({...Y,status:J,hasFeedback:false,feedbackIcon:null}),[Y,J]),te=f.useRef(null),re=f.useRef({});f.useImperativeHandle(t,()=>({focus:()=>{re.current[0]?.focus();},blur:()=>{for(let be=0;be<r;be+=1)re.current[be]?.blur();},nativeElement:te.current}));const ie=be=>u?u(be):be,[de,ne]=f.useState(()=>Ab(ie(i||"")));f.useEffect(()=>{s!==void 0&&ne(Ab(s));},[s]);const ae=Mt(be=>{ne(be),w&&w(be),l&&be.length===r&&be.every(Ce=>Ce)&&be.some((Ce,Ae)=>de[Ae]!==Ce)&&l(be.join(""));}),ce=Mt((be,Ce)=>{let Ae=Zt(de);for(let Re=0;Re<be;Re+=1)Ae[Re]||(Ae[Re]="");Ce.length<=1?Ae[be]=Ce:Ae=Ae.slice(0,be).concat(Ab(Ce)),Ae=Ae.slice(0,r);for(let Re=Ae.length-1;Re>=0&&!Ae[Re];Re-=1)Ae.pop();const Ye=ie(Ae.map(Re=>Re||" ").join(""));return Ae=Ab(Ye).map((Re,fe)=>Re===" "&&!Ae[fe]?Ae[fe]:Re),Ae}),se=(be,Ce)=>{const Ae=ce(be,Ce),Ye=Math.min(be+Ce.length,r-1);Ye!==be&&Ae[be]!==void 0&&re.current[Ye]?.focus(),ae(Ae);},$e=be=>{re.current[be]?.focus();},le=(be,Ce)=>{for(let Ae=0;Ae<Ce;Ae+=1)if(!re.current[Ae]?.input?.value){re.current[Ae]?.focus();break}E?.(be);},pe={variant:m,disabled:p,status:J,mask:y,type:S,inputMode:M,autoComplete:C};return f.createElement("div",{...K,ref:te,className:X(I,z,{[`${z}-sm`]:B==="small",[`${z}-lg`]:B==="large",[`${z}-rtl`]:F==="rtl"},_,Q,W,G.root),style:{...j.root,...U,...N},role:"group"},f.createElement(Mo.Provider,{value:ee},Array.from({length:r}).map((be,Ce)=>{const Ae=`otp-${Ce}`,Ye=de[Ce]||"";return f.createElement(f.Fragment,{key:Ae},f.createElement(yhe,{ref:Re=>{re.current[Ce]=Re;},index:Ce,size:B,htmlSize:1,className:X(G.input,`${z}-input`),style:j.input,onChange:se,value:Ye,onActiveChange:$e,autoFocus:Ce===0&&b,onFocus:Re=>le(Re,Ce),...pe}),Ce<r-1&&f.createElement(She,{separator:d,index:Ce,prefixCls:z,className:X(G.separator),style:j.separator}))})))});var xhe={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"};function f3(){return f3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},f3.apply(this,arguments)}const whe=(e,t)=>f.createElement(Xn,f3({},e,{ref:t,icon:xhe})),Ehe=f.forwardRef(whe);var $he={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"};function m3(){return m3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},m3.apply(this,arguments)}const Mhe=(e,t)=>f.createElement(Xn,m3({},e,{ref:t,icon:$he})),The=f.forwardRef(Mhe),Ahe=e=>e?f.createElement(The,null):f.createElement(Ehe,null),Rhe={click:"onClick",hover:"onMouseOver"},Nhe=f.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=true,iconRender:i=Ahe,suffix:s}=e,l=f.useContext(fo),u=n??l,d=typeof o=="object"&&o.visible!==void 0,[m,p]=f.useState(()=>d?o.visible:false),g=f.useRef(null);f.useEffect(()=>{d&&p(o.visible);},[d,o]);const b=EH(g),y=()=>{if(u)return;m&&b();const L=!m;p(L),typeof o=="object"&&o.onVisibleChange?.(L);},S=L=>{const F=Rhe[r]||"",U=i(m),W={[F]:y,className:`${L}-icon`,key:"passwordIcon",onMouseDown:z=>{z.preventDefault();},onMouseUp:z=>{z.preventDefault();}};return f.cloneElement(f.isValidElement(U)?U:f.createElement("span",null,U),W)},{className:C,prefixCls:w,inputPrefixCls:E,size:M,...T}=e,{getPrefixCls:A}=f.useContext(wt),I=A("input",E),N=A("input-password",w),P=o&&S(N),O=X(N,C,{[`${N}-${M}`]:!!M}),D={...kn(T,["suffix","iconRender","visibilityToggle"]),type:m?"text":"password",className:O,prefixCls:I,suffix:f.createElement(f.Fragment,null,P,s)};return M&&(D.size=M),f.createElement(om,{ref:Yr(t,g),...D})}),Phe=e=>{const{componentCls:t}=e,n=`${t}-btn`;return {[t]:{width:"100%",[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}},Ihe=Wt(["Input","Search"],Phe),Ohe=f.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,style:s,enterButton:l=false,addonAfter:u,loading:d,disabled:m,onSearch:p,onChange:g,onCompositionStart:b,onCompositionEnd:y,variant:S,onPressEnter:C,classNames:w,styles:E,hidden:M,...T}=e,{direction:A,getPrefixCls:I,classNames:N,styles:P}=jt("inputSearch"),O={...e,enterButton:l},[D,L]=qt([N,w],[P,E],{props:O},{button:{_default:"root"}}),F=f.useRef(false),U=I("input-search",n),W=I("input",r),[z,k]=Ihe(U),{compactSize:G}=Za(U,A),j=br(le=>i??G??le),K=f.useRef(null),Q=le=>{le?.target&&le.type==="click"&&p&&p(le.target.value,le,{source:"clear"}),g?.(le);},_=le=>{document.activeElement===K.current?.input&&le.preventDefault();},B=le=>{p&&p(K.current?.input?.value,le,{source:"input"});},Y=le=>{F.current||d||(C?.(le),B(le));},J=typeof l=="boolean"?f.createElement(tA,null):null,ee=`${U}-btn`,te=X(ee,{[`${ee}-${S}`]:S});let re;const ie=l||{},de=ie.type&&ie.type.__ANT_BUTTON===true;de||ie.type==="button"?re=qr(ie,{onMouseDown:_,onClick:le=>{ie?.props?.onClick?.(le),B(le);},key:"enterButton",...de?{className:te,size:j}:{}}):re=f.createElement(ht,{classNames:D.button,styles:L.button,className:te,color:l?"primary":"default",size:j,disabled:m,key:"enterButton",onMouseDown:_,onClick:B,loading:d,icon:J,variant:S==="borderless"||S==="filled"||S==="underlined"?"text":l?"solid":void 0},l),u&&(re=[re,qr(u,{key:"addonAfter"})]);const ne=X(U,k,{[`${U}-rtl`]:A==="rtl",[`${U}-${j}`]:!!j,[`${U}-with-button`]:!!l},o,z,D.root),ae=le=>{F.current=true,b?.(le);},ce=le=>{F.current=false,y?.(le);},se=$o(T,{data:true}),$e=kn({...T,classNames:kn(D,["button","root"]),styles:kn(L,["button","root"]),prefixCls:W,type:"search",size:j,variant:S,onPressEnter:Y,onCompositionStart:ae,onCompositionEnd:ce,onChange:Q,disabled:m},Object.keys(se));return f.createElement(RT,{className:ne,style:{...s,...L.root},...se,hidden:M},f.createElement(om,{ref:Yr(K,t),...$e}),re)}),Dhe=`
  min-height:0 !important;
  max-height:none !important;
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
  pointer-events: none !important;
`,_he=["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"],Mw={};let hi;function Lhe(e,t=false){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Mw[n])return Mw[n];const r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),s=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u={sizingStyle:_he.map(d=>`${d}:${r.getPropertyValue(d)}`).join(";"),paddingSize:i,borderSize:s,boxSizing:o};return t&&n&&(Mw[n]=u),u}function Bhe(e,t=false,n=null,r=null){hi||(hi=document.createElement("textarea"),hi.setAttribute("tab-index","-1"),hi.setAttribute("aria-hidden","true"),hi.setAttribute("name","hiddenTextarea"),document.body.appendChild(hi)),e.getAttribute("wrap")?hi.setAttribute("wrap",e.getAttribute("wrap")):hi.removeAttribute("wrap");const{paddingSize:o,borderSize:i,boxSizing:s,sizingStyle:l}=Lhe(e,t);hi.setAttribute("style",`${l};${Dhe}`),hi.value=e.value||e.placeholder||"";let u,d,m,p=hi.scrollHeight;if(s==="border-box"?p+=i:s==="content-box"&&(p-=o),n!==null||r!==null){hi.value=" ";const b=hi.scrollHeight-o;n!==null&&(u=b*n,s==="border-box"&&(u=u+o+i),p=Math.max(u,p)),r!==null&&(d=b*r,s==="border-box"&&(d=d+o+i),m=p>d?"":"hidden",p=Math.min(d,p));}const g={height:p,overflowY:m,resize:"none"};return u&&(g.minHeight=u),d&&(g.maxHeight=d),g}function h3(){return h3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},h3.apply(this,arguments)}const Tw=0,Aw=1,Rw=2,khe=f.forwardRef((e,t)=>{const{prefixCls:n,defaultValue:r,value:o,autoSize:i,onResize:s,className:l,style:u,disabled:d,onChange:m,onInternalAutoSize:p,...g}=e,[b,y]=fn(r,o),S=b??"",C=z=>{y(z.target.value),m?.(z);},w=f.useRef();f.useImperativeHandle(t,()=>({textArea:w.current}));const[E,M]=f.useMemo(()=>i&&typeof i=="object"?[i.minRows,i.maxRows]:[],[i]),T=!!i,[A,I]=f.useState(Rw),[N,P]=f.useState(),O=()=>{I(Tw);};Rn(()=>{T&&O();},[o,E,M,T]),Rn(()=>{if(A===Tw)I(Aw);else if(A===Aw){const z=Bhe(w.current,false,E,M);I(Rw),P(z);}},[A]);const D=f.useRef(),L=()=>{_t.cancel(D.current);},F=z=>{A===Rw&&(s?.(z),i&&(L(),D.current=_t(()=>{O();})));};f.useEffect(()=>L,[]);const W={...u,...T?N:null};return (A===Tw||A===Aw)&&(W.overflowY="hidden",W.overflowX="hidden"),f.createElement(ys,{onResize:F,disabled:!(i||s)},f.createElement("textarea",h3({},g,{ref:w,style:W,className:X(n,l,{[`${n}-disabled`]:d}),disabled:d,value:S,onChange:C})))});function p3(){return p3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},p3.apply(this,arguments)}const zhe=q.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:o,allowClear:i,maxLength:s,onCompositionStart:l,onCompositionEnd:u,suffix:d,prefixCls:m="rc-textarea",showCount:p,count:g,className:b,style:y,disabled:S,hidden:C,classNames:w,styles:E,onResize:M,onClear:T,onPressEnter:A,readOnly:I,autoSize:N,onKeyDown:P,...O},D)=>{const[L,F]=fn(e,t),U=L==null?"":String(L),[W,z]=q.useState(false),k=q.useRef(false),[G,j]=q.useState(null),K=f.useRef(null),Q=f.useRef(null),_=()=>Q.current?.textArea,B=()=>{_().focus();};f.useImperativeHandle(D,()=>({resizableTextArea:Q.current,focus:B,blur:()=>{_().blur();},nativeElement:K.current?.nativeElement||_()})),f.useEffect(()=>{z(fe=>!S&&fe);},[S]);const[Y,J]=q.useState(null);q.useEffect(()=>{Y&&_().setSelectionRange(...Y);},[Y]);const ee=xH(g,p),te=ee.max??s,re=Number(te)>0,ie=ee.strategy(U),de=!!te&&ie>te,ne=(fe,ve)=>{let Ne=ve;!k.current&&ee.exceedFormatter&&ee.max&&ee.strategy(ve)>ee.max&&(Ne=ee.exceedFormatter(ve,{max:ee.max}),ve!==Ne&&J([_().selectionStart||0,_().selectionEnd||0])),F(Ne),Cy(fe.currentTarget,fe,o,Ne);},ae=fe=>{k.current=true,l?.(fe);},ce=fe=>{k.current=false,ne(fe,fe.currentTarget.value),u?.(fe);},se=fe=>{ne(fe,fe.target.value);},$e=fe=>{fe.key==="Enter"&&A&&!fe.nativeEvent.isComposing&&A(fe),P?.(fe);},le=fe=>{z(true),n?.(fe);},pe=fe=>{z(false),r?.(fe);},be=fe=>{F(""),B(),Cy(_(),fe,o);};let Ce=d,Ae;ee.show&&(ee.showFormatter?Ae=ee.showFormatter({value:U,count:ie,maxLength:te}):Ae=`${ie}${re?` / ${te}`:""}`,Ce=q.createElement(q.Fragment,null,Ce,q.createElement("span",{className:X(`${m}-data-count`,w?.count),style:E?.count},Ae)));const Ye=fe=>{M?.(fe),_()?.style.height&&j(true);},Re=!N&&!p&&!i;return q.createElement(CH,{ref:K,value:U,allowClear:i,handleReset:be,suffix:Ce,prefixCls:m,classNames:{...w,affixWrapper:X(w?.affixWrapper,{[`${m}-show-count`]:p,[`${m}-textarea-allow-clear`]:i})},disabled:S,focused:W,className:X(b,de&&`${m}-out-of-range`),style:{...y,...G&&!Re?{height:"auto"}:{}},dataAttrs:{affixWrapper:{"data-count":typeof Ae=="string"?Ae:void 0}},hidden:C,readOnly:I,onClear:T},q.createElement(khe,p3({},O,{autoSize:N,maxLength:s,onKeyDown:$e,onChange:se,onFocus:le,onBlur:pe,onCompositionStart:ae,onCompositionEnd:ce,className:X(w?.textarea),style:{resize:y?.resize,...E?.textarea},disabled:S,prefixCls:m,onResize:Ye,ref:Q,readOnly:I})))}),Fhe=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return {[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
        &-allow-clear > ${t},
        &-affix-wrapper${r}-has-feedback ${t}
      `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Hhe=Wt(["Input","TextArea"],e=>{const t=zt(e,nm(e));return Fhe(t)},rm,{resetFont:false}),Vhe=f.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=true,size:o,disabled:i,status:s,allowClear:l,classNames:u,rootClassName:d,className:m,style:p,styles:g,variant:b,showCount:y,onMouseDown:S,onResize:C,...w}=e,{getPrefixCls:E,direction:M,allowClear:T,autoComplete:A,className:I,style:N,classNames:P,styles:O}=jt("textArea"),D=f.useContext(fo),L=i??D,{status:F,hasFeedback:U,feedbackIcon:W}=f.useContext(Mo),z=Jf(F,s),[k,G]=qt([P,u],[O,g],{props:e}),j=f.useRef(null);f.useImperativeHandle(t,()=>({resizableTextArea:j.current?.resizableTextArea,focus:le=>{jT(j.current?.resizableTextArea?.textArea,le);},blur:()=>j.current?.blur(),nativeElement:j.current?.nativeElement||null}));const K=E("input",n),Q=Qn(K),[_,B]=nH(K,d);Hhe(K,Q);const{compactSize:Y,compactItemClassnames:J}=Za(K,M),ee=br(le=>o??Y??le),[te,re]=I1("textArea",b,r),ie=wH(l??T),[de,ne]=f.useState(false),[ae,ce]=f.useState(false),se=le=>{ne(true),S?.(le);const pe=()=>{ne(false),document.removeEventListener("mouseup",pe);};document.addEventListener("mouseup",pe);},$e=le=>{if(C?.(le),de&&typeof getComputedStyle=="function"){const pe=j.current?.nativeElement?.querySelector("textarea");pe&&getComputedStyle(pe).resize==="both"&&ce(true);}};return f.createElement(zhe,{autoComplete:A,...w,style:{...G.root,...N,...p},styles:G,disabled:L,allowClear:ie,className:X(B,Q,m,d,J,I,k.root,{[`${K}-textarea-affix-wrapper-resize-dirty`]:ae}),classNames:{...k,textarea:X({[`${K}-sm`]:ee==="small",[`${K}-lg`]:ee==="large"},_,k.textarea,de&&`${K}-mouse-active`),variant:X({[`${K}-${te}`]:re},ic(K,z)),affixWrapper:X(`${K}-textarea-affix-wrapper`,{[`${K}-affix-wrapper-rtl`]:M==="rtl",[`${K}-affix-wrapper-sm`]:ee==="small",[`${K}-affix-wrapper-lg`]:ee==="large",[`${K}-textarea-show-count`]:y||e.count?.show},_)},prefixCls:K,suffix:U&&f.createElement("span",{className:`${K}-textarea-suffix`},W),showCount:y,ref:j,onResize:$e,onMouseDown:se})}),Ji=om;Ji.Group=ghe;Ji.Search=Ohe;Ji.TextArea=Vhe;Ji.Password=Nhe;Ji.OTP=Che;var jhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};function g3(){return g3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},g3.apply(this,arguments)}const Uhe=(e,t)=>f.createElement(Xn,g3({},e,{ref:t,icon:jhe})),a8=f.forwardRef(Uhe);var Whe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};function v3(){return v3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},v3.apply(this,arguments)}const Ghe=(e,t)=>f.createElement(Xn,v3({},e,{ref:t,icon:Whe})),l8=f.forwardRef(Ghe),qhe={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},Khe=[10,20,50,100],Yhe=e=>{const{pageSizeOptions:t=Khe,locale:n,changeSize:r,pageSize:o,goButton:i,quickGo:s,rootPrefixCls:l,disabled:u,buildOptionText:d,showSizeChanger:m,sizeChangerRender:p}=e,[g,b]=q.useState(""),y=q.useMemo(()=>!g||Number.isNaN(g)?void 0:Number(g),[g]),S=typeof d=="function"?d:P=>`${P} ${n.items_per_page}`,C=P=>{const O=P.target.value;/^\d*$/.test(O)&&b(O);},w=P=>{i||g===""||(b(""),!(P.relatedTarget&&(P.relatedTarget.className.includes(`${l}-item-link`)||P.relatedTarget.className.includes(`${l}-item`)))&&s?.(y));},E=P=>{g!==""&&(P.keyCode===st.ENTER||P.type==="click")&&(b(""),s?.(y));},M=()=>t.some(P=>P.toString()===o.toString())?t:t.concat([o]).sort((P,O)=>{const D=Number.isNaN(Number(P))?0:Number(P),L=Number.isNaN(Number(O))?0:Number(O);return D-L}),T=`${l}-options`;if(!m&&!s)return null;let A=null,I=null,N=null;return m&&p&&(A=p({disabled:u,size:o,onSizeChange:P=>{r?.(Number(P));},"aria-label":n.page_size,className:`${T}-size-changer`,options:M().map(P=>({label:S(P),value:P}))})),s&&(i&&(N=typeof i=="boolean"?q.createElement("button",{type:"button",onClick:E,onKeyUp:E,disabled:u,className:`${T}-quick-jumper-button`},n.jump_to_confirm):q.createElement("span",{onClick:E,onKeyUp:E},i)),I=q.createElement("div",{className:`${T}-quick-jumper`},n.jump_to,q.createElement("input",{disabled:u,type:"text",value:g,onChange:C,onKeyUp:E,onBlur:w,"aria-label":n.page}),n.page,N)),q.createElement("li",{className:T},A,I)},vh=e=>{const{rootPrefixCls:t,page:n,active:r,className:o,style:i,showTitle:s,onClick:l,onKeyPress:u,itemRender:d}=e,m=`${t}-item`,p=X(m,`${m}-${n}`,{[`${m}-active`]:r,[`${m}-disabled`]:!n},o),g=()=>{l(n);},b=S=>{u(S,l,n);},y=d(n,"page",q.createElement("a",{rel:"nofollow"},n));return y?q.createElement("li",{title:s?String(n):null,className:p,style:i,onClick:g,onKeyDown:b,tabIndex:0},y):null};function zl(){return zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},zl.apply(this,arguments)}const Xhe=(e,t,n)=>n;function c8(){}function u8(e){const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Gc(e,t,n){const r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}const Qhe=e=>{const{prefixCls:t="rc-pagination",selectPrefixCls:n="rc-select",className:r,classNames:o,styles:i,current:s,defaultCurrent:l=1,total:u=0,pageSize:d,defaultPageSize:m=10,onChange:p=c8,hideOnSinglePage:g,align:b,showPrevNextJumpers:y=true,showQuickJumper:S,showLessItems:C,showTitle:w=true,onShowSizeChange:E=c8,locale:M=qhe,style:T,totalBoundaryShowSizeChanger:A=50,disabled:I,simple:N,showTotal:P,showSizeChanger:O=u>A,sizeChangerRender:D,pageSizeOptions:L,itemRender:F=Xhe,jumpPrevIcon:U,jumpNextIcon:W,prevIcon:z,nextIcon:k}=e,G=q.useRef(null),[j,K]=fn(m,d),[Q,_]=fn(l,s),B=Math.max(1,Math.min(Q,Gc(void 0,j,u))),[Y,J]=q.useState(B);f.useEffect(()=>{J(B);},[B]);const ee=Math.max(1,B-(C?3:5)),te=Math.min(Gc(void 0,j,u),B+(C?3:5));function re(ye,Me){let Se=ye||q.createElement("button",{type:"button","aria-label":Me,className:`${t}-item-link`});return typeof ye=="function"&&(Se=q.createElement(ye,e)),Se}function ie(ye){const Me=ye.target.value,Se=Gc(void 0,j,u);let he;return Me===""?he=Me:Number.isNaN(Number(Me))?he=Y:Me>=Se?he=Se:he=Number(Me),he}function de(ye){return u8(ye)&&ye!==B&&u8(u)&&u>0}const ne=u>j?S:false;function ae(ye){(ye.keyCode===st.UP||ye.keyCode===st.DOWN)&&ye.preventDefault();}function ce(ye){const Me=ie(ye);switch(Me!==Y&&J(Me),ye.keyCode){case st.ENTER:le(Me);break;case st.UP:le(Me-1);break;case st.DOWN:le(Me+1);break}}function se(ye){le(ie(ye));}function $e(ye){const Me=Gc(ye,j,u),Se=B>Me&&Me!==0?Me:B;K(ye),J(Se),E?.(B,ye),_(Se),p?.(Se,ye);}function le(ye){if(de(ye)&&!I){const Me=Gc(void 0,j,u);let Se=ye;return ye>Me?Se=Me:ye<1&&(Se=1),Se!==Y&&J(Se),_(Se),p?.(Se,j),Se}return B}const pe=B>1,be=B<Gc(void 0,j,u);function Ce(){pe&&le(B-1);}function Ae(){be&&le(B+1);}function Ye(){le(ee);}function Re(){le(te);}function fe(ye,Me,...Se){(ye.key==="Enter"||ye.charCode===st.ENTER||ye.keyCode===st.ENTER)&&Me(...Se);}function ve(ye){fe(ye,Ce);}function Ne(ye){fe(ye,Ae);}function He(ye){fe(ye,Ye);}function Ge(ye){fe(ye,Re);}function je(ye){const Me=F(ye,"prev",re(z,"prev page"));return q.isValidElement(Me)?q.cloneElement(Me,{disabled:!pe}):Me}function rt(ye){const Me=F(ye,"next",re(k,"next page"));return q.isValidElement(Me)?q.cloneElement(Me,{disabled:!be}):Me}function ot(ye){(ye.type==="click"||ye.keyCode===st.ENTER)&&le(Y);}let Ke=null;const De=$o(e,{aria:true,data:true}),qe=P&&q.createElement("li",{className:`${t}-total-text`},P(u,[u===0?0:(B-1)*j+1,B*j>u?u:B*j]));let Je=null;const Be=Gc(void 0,j,u);if(g&&u<=j)return null;const Ie=[],lt={rootPrefixCls:t,onClick:le,onKeyPress:fe,showTitle:w,itemRender:F,page:-1,className:o?.item,style:i?.item},Dt=B-1>0?B-1:0,pt=B+1<Be?B+1:Be,Lt=S&&S.goButton,xt=typeof N=="object"?N.readOnly:!N;let Pt=Lt,ut=null;N&&(Lt&&(typeof Lt=="boolean"?Pt=q.createElement("button",{type:"button",onClick:ot,onKeyUp:ot},M.jump_to_confirm):Pt=q.createElement("span",{onClick:ot,onKeyUp:ot},Lt),Pt=q.createElement("li",{title:w?`${M.jump_to}${B}/${Be}`:null,className:`${t}-simple-pager`},Pt)),ut=q.createElement("li",{title:w?`${B}/${Be}`:null,className:X(`${t}-simple-pager`,o?.item),style:i?.item},xt?Y:q.createElement("input",{type:"text","aria-label":M.jump_to,value:Y,disabled:I,onKeyDown:ae,onKeyUp:ce,onChange:ce,onBlur:se,size:3}),q.createElement("span",{className:`${t}-slash`},"/"),Be));const ct=C?1:2;if(Be<=3+ct*2){Be||Ie.push(q.createElement(vh,zl({},lt,{key:"noPager",page:1,className:`${t}-item-disabled`})));for(let ye=1;ye<=Be;ye+=1)Ie.push(q.createElement(vh,zl({},lt,{key:ye,page:ye,active:B===ye})));}else {const ye=C?M.prev_3:M.prev_5,Me=C?M.next_3:M.next_5,Se=F(ee,"jump-prev",re(U,"prev page")),he=F(te,"jump-next",re(W,"next page"));y&&(Ke=Se?q.createElement("li",{title:w?ye:null,key:"prev",onClick:Ye,tabIndex:0,onKeyDown:He,className:X(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!U})},Se):null,Je=he?q.createElement("li",{title:w?Me:null,key:"next",onClick:Re,tabIndex:0,onKeyDown:Ge,className:X(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!W})},he):null);let Oe=Math.max(1,B-ct),xe=Math.min(B+ct,Be);B-1<=ct&&(xe=1+ct*2),Be-B<=ct&&(Oe=Be-ct*2);for(let ke=Oe;ke<=xe;ke+=1)Ie.push(q.createElement(vh,zl({},lt,{key:ke,page:ke,active:B===ke})));if(B-1>=ct*2&&B!==3&&(Ie[0]=q.cloneElement(Ie[0],{className:X(`${t}-item-after-jump-prev`,Ie[0].props.className)}),Ie.unshift(Ke)),Be-B>=ct*2&&B!==Be-2){const ke=Ie[Ie.length-1];Ie[Ie.length-1]=q.cloneElement(ke,{className:X(`${t}-item-before-jump-next`,ke.props.className)}),Ie.push(Je);}Oe!==1&&Ie.unshift(q.createElement(vh,zl({},lt,{key:1,page:1}))),xe!==Be&&Ie.push(q.createElement(vh,zl({},lt,{key:Be,page:Be})));}let bt=je(Dt);if(bt){const ye=!pe||!Be;bt=q.createElement("li",{title:w?M.prev_page:null,onClick:Ce,tabIndex:ye?null:0,onKeyDown:ve,className:X(`${t}-prev`,o?.item,{[`${t}-disabled`]:ye}),style:i?.item,"aria-disabled":ye},bt);}let Fe=rt(pt);if(Fe){let ye,Me;N?(ye=!be,Me=pe?0:null):(ye=!be||!Be,Me=ye?null:0),Fe=q.createElement("li",{title:w?M.next_page:null,onClick:Ae,tabIndex:Me,onKeyDown:Ne,className:X(`${t}-next`,o?.item,{[`${t}-disabled`]:ye}),style:i?.item,"aria-disabled":ye},Fe);}const Ue=X(t,r,{[`${t}-start`]:b==="start",[`${t}-center`]:b==="center",[`${t}-end`]:b==="end",[`${t}-simple`]:N,[`${t}-disabled`]:I});return q.createElement("ul",zl({className:Ue,style:T,ref:G},De),qe,bt,N?ut:Ie,Fe,q.createElement(Yhe,{locale:M,rootPrefixCls:t,disabled:I,selectPrefixCls:n,changeSize:$e,pageSize:j,pageSizeOptions:L,quickGo:ne?le:null,goButton:Pt,showSizeChanger:O,sizeChangerRender:D}))},Zhe=e=>{const{componentCls:t}=e;return {[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},Jhe=e=>{const{componentCls:t}=e;return {[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...hA(e),width:e.paginationMiniQuickJumperInputWidth}}}}},epe=e=>{const{componentCls:t}=e;return {[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...mA(e)}}}}},tpe=e=>{const{componentCls:t,antCls:n}=e,[,r]=nr(n,"pagination");return {[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r("item-size-actual"),lineHeight:r("item-size-actual"),verticalAlign:"top",[`${t}-item-link`]:{height:r("item-size-actual"),backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r("item-size-actual"),lineHeight:r("item-size-actual")}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${oe(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${oe(e.inputOutlineOffset)} 0 ${oe(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},npe=e=>{const{componentCls:t,antCls:n}=e,[,r]=nr(n,"pagination");return {[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
    ${t}-prev,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{marginInlineEnd:r("item-spacing-actual")},[`
    ${t}-prev,
    ${t}-next,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{display:"inline-block",minWidth:r("item-size-actual"),height:r("item-size-actual"),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r("item-size-actual"),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${oe(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{width:"auto"},"&-quick-jumper":{display:"inline-block",height:r("item-size-actual"),marginInlineStart:e.marginXS,lineHeight:r("item-size-actual"),verticalAlign:"baseline",input:{...F1(e),...fA(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...z1(e)},width:e.quickJumperInputWidth,height:r("item-size-actual"),boxSizing:"border-box",margin:0,marginInlineStart:r("item-spacing-actual"),marginInlineEnd:r("item-spacing-actual")}}}}},rpe=e=>{const{componentCls:t,antCls:n}=e,[,r]=nr(n,"pagination");return {[`${t}-item`]:{display:"inline-block",minWidth:r("item-size-actual"),height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),fontFamily:e.fontFamily,lineHeight:oe(e.calc(r("item-size-actual")).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${oe(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${oe(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},ope=e=>{const{componentCls:t,antCls:n}=e,[r,o]=nr(n,"pagination");return {[t]:{[r("item-size-actual")]:oe(e.itemSize),[r("item-spacing-actual")]:oe(e.marginXS),"&-small":{[r("item-size-actual")]:oe(e.itemSizeSM),[r("item-spacing-actual")]:oe(e.marginXXS)},"&-large":{[r("item-size-actual")]:oe(e.itemSizeLG),[r("item-spacing-actual")]:oe(e.marginSM)},...mn(e),display:"flex",alignItems:"center","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:o("item-size-actual"),marginInlineEnd:o("item-spacing-actual"),lineHeight:oe(e.calc(o("item-size-actual")).sub(2).equal()),verticalAlign:"middle"},...rpe(e),...npe(e),...tpe(e),...Jhe(e),...epe(e),...Zhe(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},ipe=e=>{const{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Ai(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...$s(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:$s(e)}}}},zH=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...rm(e)}),FH=e=>zt(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},nm(e)),spe=Wt("Pagination",e=>{const t=FH(e);return [ope(t),ipe(t)]},zH),ape=e=>{const{componentCls:t}=e;return {[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},lpe=Yf(["Pagination","bordered"],e=>{const t=FH(e);return ape(t)},zH);function d8(e){return f.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[true,e]:[void 0,void 0],[e])}const cpe=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:i,style:s,size:l,locale:u,responsive:d,showSizeChanger:m,selectComponentClass:p,pageSizeOptions:g,styles:b,classNames:y,...S}=e,{xs:C}=p7(d),[,w]=Xr(),{getPrefixCls:E,direction:M,showSizeChanger:T,className:A,style:I,classNames:N,styles:P,totalBoundaryShowSizeChanger:O}=jt("pagination"),D=E("pagination",n),[L,F]=spe(D),U=br(l),W=U==="small"||!!(C&&!U&&d),z={...e,size:U},[k,G]=qt([N,y],[P,b],{props:z}),[j]=Lo("Pagination",Sz),K={...j,...u},[Q,_]=d8(m),[B,Y]=d8(T),J=Q??B,ee=_??Y,te=p||pc,re=f.useMemo(()=>g?g.map(Number):void 0,[g]),ie=se=>{const{disabled:$e,size:le,onSizeChange:pe,"aria-label":be,className:Ce,options:Ae}=se,{className:Ye,onChange:Re}=ee||{},fe=Ae.find(ve=>String(ve.value)===String(le))?.value;return f.createElement(te,{disabled:$e,showSearch:true,popupMatchSelectWidth:false,getPopupContainer:ve=>ve.parentNode,"aria-label":be,options:Ae,...ee,value:fe,onChange:(ve,Ne)=>{pe?.(ve),Re?.(ve,Ne);},size:U,className:X(Ce,Ye)})},de=f.useMemo(()=>{const se=f.createElement("span",{className:`${D}-item-ellipsis`},"•••"),$e=f.createElement("button",{className:`${D}-item-link`,type:"button",tabIndex:-1},M==="rtl"?f.createElement(Nf,null):f.createElement(Np,null)),le=f.createElement("button",{className:`${D}-item-link`,type:"button",tabIndex:-1},M==="rtl"?f.createElement(Np,null):f.createElement(Nf,null)),pe=f.createElement("a",{className:`${D}-item-link`},f.createElement("div",{className:`${D}-item-container`},M==="rtl"?f.createElement(l8,{className:`${D}-item-link-icon`}):f.createElement(a8,{className:`${D}-item-link-icon`}),se)),be=f.createElement("a",{className:`${D}-item-link`},f.createElement("div",{className:`${D}-item-container`},M==="rtl"?f.createElement(a8,{className:`${D}-item-link-icon`}):f.createElement(l8,{className:`${D}-item-link-icon`}),se));return {prevIcon:$e,nextIcon:le,jumpPrevIcon:pe,jumpNextIcon:be}},[M,D]),ne=E("select",r),ae=X({[`${D}-${t}`]:!!t,[`${D}-${U}`]:U,[`${D}-mini`]:W,[`${D}-rtl`]:M==="rtl",[`${D}-bordered`]:w.wireframe},A,o,i,k.root,L,F),ce={...G.root,...I,...s};return f.createElement(f.Fragment,null,w.wireframe&&f.createElement(lpe,{prefixCls:D}),f.createElement(Qhe,{...de,...S,styles:G,classNames:k,style:ce,prefixCls:D,selectPrefixCls:ne,className:ae,locale:K,pageSizeOptions:re,showSizeChanger:J,totalBoundaryShowSizeChanger:S.totalBoundaryShowSizeChanger??O,sizeChangerRender:ie}))},My=100,HH=My/5,VH=My/2-HH/2,Nw=VH*2*Math.PI,f8=50,m8=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return f.createElement("circle",{className:X(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:VH,cx:f8,cy:f8,strokeWidth:HH,style:n})},upe=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[i,s]=f.useState(false);Rn(()=>{e!==0&&s(true);},[e!==0]);const l=Math.max(Math.min(e,100),0);if(!i)return null;const u={strokeDashoffset:`${Nw/4}`,strokeDasharray:`${Nw*l/100} ${Nw*(100-l)/100}`};return f.createElement("span",{className:X(r,`${n}-progress`,l<=0&&o)},f.createElement("svg",{viewBox:`0 0 ${My} ${My}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},f.createElement(m8,{dotClassName:n,hasCircleCls:true}),f.createElement(m8,{dotClassName:n,style:u})))};function dpe(e){const{prefixCls:t,percent:n=0,className:r,style:o}=e,i=`${t}-dot`,s=`${i}-holder`,l=`${s}-hidden`;return f.createElement(f.Fragment,null,f.createElement("span",{className:X(s,r,n>0&&l),style:o},f.createElement("span",{className:X(i,`${t}-dot-spin`)},[1,2,3,4].map(u=>f.createElement("i",{className:`${t}-dot-item`,key:u})))),f.createElement(upe,{prefixCls:t,percent:n}))}function fpe(e){const{prefixCls:t,indicator:n,percent:r,className:o,style:i}=e,s=`${t}-dot`;return n&&f.isValidElement(n)?qr(n,l=>({className:X(l.className,s,o),style:{...l.style,...i},percent:r})):f.createElement(dpe,{prefixCls:t,percent:r,className:o,style:i})}const mpe=new Bt("antSpinMove",{to:{opacity:1}}),hpe=new Bt("antRotate",{to:{transform:"rotate(405deg)"}}),ppe=e=>{const{componentCls:t}=e,n=`${t}-section`;return {[t]:{...mn(e),position:"relative","&-rtl":{direction:"rtl"},[`&${n}, ${n}`]:{display:"flex",alignItems:"center",flexDirection:"column",gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:"inline-flex"},[n]:{position:"absolute",top:"50%",left:{_skip_check_:true,value:"50%"},transform:"translate(-50%, -50%)",zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-fullscreen":{position:"fixed",inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:"none",transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:"auto"},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},gpe=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r}=e,[o,i]=nr(n,"spin");return {[t]:{[o("dot-holder-size")]:e.dotSize,[o("dot-item-size")]:`calc((${i("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:"1em",height:"1em",fontSize:i("dot-holder-size"),display:"inline-block",transition:["transform","opacity"].map(s=>`${s} ${r} ease`).join(", "),transformOrigin:"50% 50%",lineHeight:1,"&-hidden":{transform:"scale(0.3)",opacity:0}},position:"relative",display:"inline-block",fontSize:i("dot-holder-size"),width:"1em",height:"1em","&-spin":{transform:"rotate(45deg)",animationName:hpe,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-item":{position:"absolute",display:"block",width:i("dot-item-size"),height:i("dot-item-size"),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:mpe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-progress":{position:"absolute",left:"50%",top:0,transform:"translateX(-50%)"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(s=>`${s} ${r} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},vpe=e=>{const{componentCls:t}=e,[n]=nr(e.antCls,"spin");return {[t]:{"&-sm":{[n("dot-holder-size")]:e.dotSizeSM},"&-lg":{[n("dot-holder-size")]:e.dotSizeLG}}}},bpe=e=>{const{controlHeightLG:t,controlHeight:n}=e;return {contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},ype=Wt("Spin",e=>{const t=zt(e,{spinDotDefault:e.colorTextDescription});return [ppe(t),gpe(t),vpe(t)]},bpe),Spe=200,h8=[[30,.05],[70,.03],[96,.01]];function Cpe(e,t){const[n,r]=f.useState(0),o=f.useRef(null),i=t==="auto";return f.useEffect(()=>(i&&e&&(r(0),o.current=setInterval(()=>{r(s=>{const l=100-s;for(let u=0;u<h8.length;u+=1){const[d,m]=h8[u];if(s<=d)return s+l*m}return s});},Spe)),()=>{o.current&&(clearInterval(o.current),o.current=null);}),[i,e]),i?n:t}let jH;function xpe(e,t){return !!e&&!!t&&!Number.isNaN(Number(t))}const j1=e=>{const{prefixCls:t,spinning:n=true,delay:r=0,className:o,rootClassName:i,size:s,tip:l,description:u,wrapperClassName:d,style:m,children:p,fullscreen:g=false,indicator:b,percent:y,classNames:S,styles:C,...w}=e,{getPrefixCls:E,direction:M,indicator:T,className:A,style:I,classNames:N,styles:P}=jt("spin"),O=E("spin",t),[D,L]=ype(O),[F,U]=f.useState(()=>n&&!xpe(n,r)),W=Cpe(F,y);f.useEffect(()=>{if(n){const J=afe(r,()=>{U(true);});return J(),()=>{J?.cancel?.();}}U(false);},[r,n]);const z=br(J=>s??J),k=u??l,G={...e,size:z,spinning:F,tip:k,description:k,fullscreen:g,children:p,percent:W},[j,K]=qt([N,S],[P,C],{props:G}),Q=b??T??jH,_=typeof p<"u",B=_||g,Y=f.createElement(f.Fragment,null,f.createElement(fpe,{className:X(j.indicator),style:K.indicator,prefixCls:O,indicator:Q,percent:W}),k&&f.createElement("div",{className:X(`${O}-description`,j.tip,j.description),style:{...K.tip,...K.description}},k));return f.createElement("div",{className:X(O,{[`${O}-sm`]:z==="small",[`${O}-lg`]:z==="large",[`${O}-spinning`]:F,[`${O}-rtl`]:M==="rtl",[`${O}-fullscreen`]:g},i,j.root,g&&j.mask,B?d:[`${O}-section`,j.section],A,o,D,L),style:{...K.root,...B?{}:K.section,...g?K.mask:{},...I,...m},"aria-live":"polite","aria-busy":F,...w},F&&(B?f.createElement("div",{className:X(`${O}-section`,j.section),style:K.section},Y):Y),_&&f.createElement("div",{className:X(`${O}-container`,j.container),style:K.container},p))};j1.setDefaultIndicator=e=>{jH=e;};let Jc=null,uu=e=>e(),Dp=[],_p={};function p8(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=_p,i=e?.()||document.body;return {getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const wpe=q.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=f.useContext(wt),i=_p.prefixCls||o("message"),s=f.useContext(dy),[l,u]=Qz({...n,prefixCls:i,...s.message});return q.useImperativeHandle(t,()=>{const d={...l};return Object.keys(d).forEach(m=>{d[m]=(...p)=>(r(),l[m].apply(l,p));}),{instance:d,sync:r}}),u}),Epe=q.forwardRef((e,t)=>{const[n,r]=q.useState(p8),o=()=>{r(p8);};q.useEffect(o,[]);const i=MT(),s=i.getRootPrefixCls(),l=i.getIconPrefixCls(),u=i.getTheme(),d=q.createElement(wpe,{ref:t,sync:o,messageConfig:n});return q.createElement(Bo,{prefixCls:s,iconPrefixCls:l,theme:u},i.holderRender?i.holderRender(d):d)}),U1=()=>{if(!Jc){const e=document.createDocumentFragment(),t={fragment:e};Jc=t,uu(()=>{T1(q.createElement(Epe,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,U1());});}}),e);});return}Jc.instance&&(Dp.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case "open":{uu(()=>{const r=Jc.instance.open({..._p,...e.config});r?.then(e.resolve),e.setCloseFn(r);});break}case "destroy":uu(()=>{Jc?.instance.destroy(e.key);});break;default:uu(()=>{var r;const o=(r=Jc.instance)[t].apply(r,Zt(e.args));o?.then(e.resolve),e.setCloseFn(o);});}}),Dp=[]);};function $pe(e){_p={..._p,...e},uu(()=>{Jc?.sync?.();});}function Mpe(e){const t=AT(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i;}};return Dp.push(o),()=>{r?uu(()=>{r();}):o.skipped=true;}});return U1(),t}function Tpe(e,t){const n=AT(r=>{let o;const i={type:e,args:t,resolve:r,setCloseFn:s=>{o=s;}};return Dp.push(i),()=>{o?uu(()=>{o();}):i.skipped=true;}});return U1(),n}const Ape=e=>{Dp.push({type:"destroy",key:e}),U1();},Rpe=["success","info","warning","error","loading"],Npe={open:Mpe,destroy:Ape,config:$pe,useMessage:Zz,_InternalPanelDoNotUseOrYouWillBeFired:Are},EA=Npe;Rpe.forEach(e=>{EA[e]=(...t)=>Tpe(e,t);});const Ppe=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:s,children:l,footer:u,classNames:d,styles:m,...p}=e,{getPrefixCls:g}=f.useContext(wt),{className:b,style:y,classNames:S,styles:C}=jt("modal"),w=g(),E=t||g("modal"),M=Qn(w),[T,A]=NF(E,M),[I,N]=qt([S,d],[C,m],{props:e}),P=`${E}-confirm`;let O={};return i?O={closable:o??false,title:"",footer:"",children:f.createElement(IF,{...e,prefixCls:E,confirmPrefixCls:P,rootPrefixCls:w,content:l})}:O={closable:o??true,title:s,footer:u!==null&&f.createElement(MF,{...e}),children:l},f.createElement(bF,{prefixCls:E,className:X(T,`${E}-pure-panel`,i&&P,i&&`${P}-${i}`,n,b,A,M,I.root),style:{...y,...N.root},...p,closeIcon:$F(E,r),closable:o,classNames:I,styles:N,...O})},Ipe=XF(Ppe);function UH(e){return bg(LF(e))}const Is=PF;Is.useModal=HF;Is.info=function(t){return bg(BF(t))};Is.success=function(t){return bg(kF(t))};Is.error=function(t){return bg(zF(t))};Is.warning=UH;Is.warn=UH;Is.confirm=function(t){return bg(FF(t))};Is.destroyAll=function(){for(;lu.length;){const t=lu.pop();t&&t();}};Is.config=hae;Is._InternalPanelDoNotUseOrYouWillBeFired=Ipe;let Xd=null,y0=e=>e(),Ty=[],Lp={};function g8(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:s}=Lp,l=e?.()||document.body;return {getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:s}}const Ope=q.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=f.useContext(wt),i=Lp.prefixCls||o("notification"),s=f.useContext(dy),[l,u]=qF({...n,prefixCls:i,...s.notification});return q.useEffect(r,[]),q.useImperativeHandle(t,()=>{const d={...l};return Object.keys(d).forEach(m=>{d[m]=(...p)=>(r(),l[m].apply(l,p));}),{instance:d,sync:r}}),u}),Dpe=q.forwardRef((e,t)=>{const[n,r]=q.useState(g8),o=()=>{r(g8);};q.useEffect(o,[]);const i=MT(),s=i.getRootPrefixCls(),l=i.getIconPrefixCls(),u=i.getTheme(),d=q.createElement(Ope,{ref:t,sync:o,notificationConfig:n});return q.createElement(Bo,{prefixCls:s,iconPrefixCls:l,theme:u},i.holderRender?i.holderRender(d):d)}),$A=()=>{if(!Xd){const e=document.createDocumentFragment(),t={fragment:e};Xd=t,y0(()=>{T1(q.createElement(Dpe,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,$A());});}}),e);});return}Xd.instance&&(Ty.forEach(e=>{switch(e.type){case "open":{y0(()=>{Xd.instance.open({...Lp,...e.config});});break}case "destroy":y0(()=>{Xd?.instance?.destroy(e.key);});break}}),Ty=[]);};function _pe(e){Lp={...Lp,...e},y0(()=>{Xd?.sync?.();});}function WH(e){Ty.push({type:"open",config:e}),$A();}const Lpe=e=>{Ty.push({type:"destroy",key:e}),$A();},Bpe=["success","info","warning","error"],kpe={open:WH,destroy:Lpe,config:_pe,useNotification:KF,_InternalPanelDoNotUseOrYouWillBeFired:Tae},GH=kpe;Bpe.forEach(e=>{GH[e]=t=>WH({...t,type:e});});const zpe=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:s,marginXXS:l,marginXS:u,fontSize:d,fontWeightStrong:m,colorTextHeading:p}=e;return {[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:d},[`${t}-message`]:{marginBottom:u,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:s,fontSize:d,lineHeight:1,marginInlineEnd:u},[`${t}-title`]:{fontWeight:m,color:p,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:u}}}}},Fpe=e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},qH=Wt("Popconfirm",zpe,Fpe,{resetStyle:false}),KH=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:s,okText:l,okType:u="primary",icon:d=f.createElement(ug,null),showCancel:m=true,close:p,onConfirm:g,onCancel:b,onPopupClick:y,classNames:S,styles:C}=e,{getPrefixCls:w}=f.useContext(wt),[E]=Lo("Popconfirm",Ms.Popconfirm),M=If(o),T=If(i);return f.createElement("div",{className:`${t}-inner-content`,onClick:y},f.createElement("div",{className:`${t}-message`},d&&f.createElement("span",{className:`${t}-message-icon`},d),f.createElement("div",{className:`${t}-message-text`},M&&f.createElement("div",{className:X(`${t}-title`,S?.title),style:C?.title},M),T&&f.createElement("div",{className:X(`${t}-description`,S?.content),style:C?.content},T))),f.createElement("div",{className:`${t}-buttons`},m&&f.createElement(ht,{onClick:b,size:"small",...r},s||E?.cancelText),f.createElement(HT,{buttonProps:{size:"small",...NT(u),...n},actionFn:g,close:p,prefixCls:w("btn"),quitOnNullishReturnValue:true,emitEvent:true},l||E?.okText)))},Hpe=e=>{const{prefixCls:t,placement:n,className:r,style:o,...i}=e,{getPrefixCls:s}=f.useContext(wt),l=s("popconfirm",t);return qH(l),f.createElement(E7,{placement:n,className:X(l,r),style:o,content:f.createElement(KH,{prefixCls:l,...i})})},Vpe=f.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o,okType:i="primary",icon:s=f.createElement(ug,null),children:l,overlayClassName:u,onOpenChange:d,overlayStyle:m,styles:p,arrow:g,classNames:b,...y}=e,{getPrefixCls:S,className:C,style:w,classNames:E,styles:M,arrow:T,trigger:A}=jt("popconfirm"),[I,N]=fn(e.defaultOpen??false,e.open),P=D1(g,T),O=o||A||"click",D=Q=>{N(Q),d?.(Q);},L=()=>{D(false);},F=Q=>e.onConfirm?.call(void 0,Q),U=Q=>{D(false),e.onCancel?.call(void 0,Q);},W=Q=>{const{disabled:_=false}=e;_||D(Q);},z=S("popconfirm",n),k={...e,placement:r,trigger:O,okType:i,overlayStyle:m,styles:p,classNames:b},[G,j]=qt([E,b],[M,p],{props:k}),K=X(z,C,u,G.root);return qH(z),f.createElement(Ps,{arrow:P,...kn(y,["title"]),trigger:O,placement:r,onOpenChange:W,open:I,ref:t,classNames:{root:K,container:G.container,arrow:G.arrow},styles:{root:{...w,...j.root,...m},container:j.container,arrow:j.arrow},content:f.createElement(KH,{okType:i,icon:s,...e,prefixCls:z,close:L,onConfirm:F,onCancel:U,classNames:G,styles:j}),"data-popover-inject":true},l)}),Bp=Vpe;Bp._InternalPanelDoNotUseOrYouWillBeFired=Hpe;function of(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=rT(e))||t){n&&(e=n);var r=0,o=function(){};return {s:o,n:function(){return r>=e.length?{done:true}:{done:false,value:e[r++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,s=true,l=false;return {s:function(){n=n.call(e);},n:function(){var d=n.next();return s=d.done,d},e:function(d){l=true,i=d;},f:function(){try{s||n.return==null||n.return();}finally{if(l)throw i}}}}var im,wg;function qo(e,t,n){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1);}function Ta(e,t){return (e>>>t&1)!=0}function pi(e){if(!e)throw new Error("Assertion error")}var Qs=(function(){function e(t,n){rs(this,e),Ct(this,"modeBits",void 0),Ct(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n;}return os(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e})();im=Qs;Ct(Qs,"NUMERIC",new im(1,[10,12,14]));Ct(Qs,"ALPHANUMERIC",new im(2,[9,11,13]));Ct(Qs,"BYTE",new im(4,[8,16,16]));Ct(Qs,"KANJI",new im(8,[8,10,12]));Ct(Qs,"ECI",new im(7,[0,0,0]));var Ki=os(function e(t,n){rs(this,e),Ct(this,"ordinal",void 0),Ct(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n;});wg=Ki;Ct(Ki,"LOW",new wg(0,1));Ct(Ki,"MEDIUM",new wg(1,0));Ct(Ki,"QUARTILE",new wg(2,3));Ct(Ki,"HIGH",new wg(3,2));var Cu=(function(){function e(t,n,r){if(rs(this,e),Ct(this,"mode",void 0),Ct(this,"numChars",void 0),Ct(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice();}return os(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],o=of(n),i;try{for(o.s();!(i=o.n()).done;){var s=i.value;qo(s,8,r);}}catch(l){o.e(l);}finally{o.f();}return new e(Qs.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],o=0;o<n.length;){var i=Math.min(n.length-o,3);qo(parseInt(n.substring(o,o+i),10),i*3+1,r),o+=i;}return new e(Qs.NUMERIC,n.length,r)}},{key:"makeAlphanumeric",value:function(n){if(!e.isAlphanumeric(n))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r=[],o;for(o=0;o+2<=n.length;o+=2){var i=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(o))*45;i+=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(o+1)),qo(i,11,r);}return o<n.length&&qo(e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(o)),6,r),new e(Qs.ALPHANUMERIC,n.length,r)}},{key:"makeSegments",value:function(n){return n==""?[]:e.isNumeric(n)?[e.makeNumeric(n)]:e.isAlphanumeric(n)?[e.makeAlphanumeric(n)]:[e.makeBytes(e.toUtf8ByteArray(n))]}},{key:"makeEci",value:function(n){var r=[];if(n<0)throw new RangeError("ECI assignment value out of range");if(n<128)qo(n,8,r);else if(n<16384)qo(2,2,r),qo(n,14,r);else if(n<1e6)qo(6,3,r),qo(n,21,r);else throw new RangeError("ECI assignment value out of range");return new e(Qs.ECI,0,r)}},{key:"isNumeric",value:function(n){return e.NUMERIC_REGEX.test(n)}},{key:"isAlphanumeric",value:function(n){return e.ALPHANUMERIC_REGEX.test(n)}},{key:"getTotalBits",value:function(n,r){var o=0,i=of(n),s;try{for(i.s();!(s=i.n()).done;){var l=s.value,u=l.mode.numCharCountBits(r);if(l.numChars>=1<<u)return 1/0;o+=4+u+l.bitData.length;}}catch(d){i.e(d);}finally{i.f();}return o}},{key:"toUtf8ByteArray",value:function(n){for(var r=encodeURI(n),o=[],i=0;i<r.length;i++)r.charAt(i)!="%"?o.push(r.charCodeAt(i)):(o.push(parseInt(r.substring(i+1,i+3),16)),i+=2);return o}}]),e})();Ct(Cu,"NUMERIC_REGEX",/^[0-9]*$/);Ct(Cu,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/);Ct(Cu,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var Ja=(function(){function e(t,n,r,o){rs(this,e),Ct(this,"size",void 0),Ct(this,"mask",void 0),Ct(this,"modules",[]),Ct(this,"isFunction",[]),Ct(this,"version",void 0),Ct(this,"errorCorrectionLevel",void 0);var i=o;if(this.version=t,this.errorCorrectionLevel=n,t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var s=[],l=0;l<this.size;l++)s.push(false);for(var u=0;u<this.size;u++)this.modules.push(s.slice()),this.isFunction.push(s.slice());this.drawFunctionPatterns();var d=this.addEccAndInterleave(r);if(this.drawCodewords(d),i==-1)for(var m=1e9,p=0;p<8;p++){this.applyMask(p),this.drawFormatBits(p);var g=this.getPenaltyScore();g<m&&(i=p,m=g),this.applyMask(p);}pi(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[];}return os(e,[{key:"getModule",value:function(n,r){return 0<=n&&n<this.size&&0<=r&&r<this.size&&this.modules[r][n]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var n=0;n<this.size;n++)this.setFunctionModule(6,n,n%2==0),this.setFunctionModule(n,6,n%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var r=this.getAlignmentPatternPositions(),o=r.length,i=0;i<o;i++)for(var s=0;s<o;s++)i==0&&s==0||i==0&&s==o-1||i==o-1&&s==0||this.drawAlignmentPattern(r[i],r[s]);this.drawFormatBits(0),this.drawVersion();}},{key:"drawFormatBits",value:function(n){for(var r=this.errorCorrectionLevel.formatBits<<3|n,o=r,i=0;i<10;i++)o=o<<1^(o>>>9)*1335;var s=(r<<10|o)^21522;pi(s>>>15==0);for(var l=0;l<=5;l++)this.setFunctionModule(8,l,Ta(s,l));this.setFunctionModule(8,7,Ta(s,6)),this.setFunctionModule(8,8,Ta(s,7)),this.setFunctionModule(7,8,Ta(s,8));for(var u=9;u<15;u++)this.setFunctionModule(14-u,8,Ta(s,u));for(var d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,Ta(s,d));for(var m=8;m<15;m++)this.setFunctionModule(8,this.size-15+m,Ta(s,m));this.setFunctionModule(8,this.size-8,true);}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var n=this.version,r=0;r<12;r++)n=n<<1^(n>>>11)*7973;var o=this.version<<12|n;pi(o>>>18==0);for(var i=0;i<18;i++){var s=Ta(o,i),l=this.size-11+i%3,u=Math.floor(i/3);this.setFunctionModule(l,u,s),this.setFunctionModule(u,l,s);}}}},{key:"drawFinderPattern",value:function(n,r){for(var o=-4;o<=4;o++)for(var i=-4;i<=4;i++){var s=Math.max(Math.abs(i),Math.abs(o)),l=n+i,u=r+o;0<=l&&l<this.size&&0<=u&&u<this.size&&this.setFunctionModule(l,u,s!=2&&s!=4);}}},{key:"drawAlignmentPattern",value:function(n,r){for(var o=-2;o<=2;o++)for(var i=-2;i<=2;i++)this.setFunctionModule(n+i,r+o,Math.max(Math.abs(i),Math.abs(o))!=1);}},{key:"setFunctionModule",value:function(n,r,o){this.modules[r][n]=o,this.isFunction[r][n]=true;}},{key:"addEccAndInterleave",value:function(n){var r=this.version,o=this.errorCorrectionLevel;if(n.length!=e.getNumDataCodewords(r,o))throw new RangeError("Invalid argument");for(var i=e.NUM_ERROR_CORRECTION_BLOCKS[o.ordinal][r],s=e.ECC_CODEWORDS_PER_BLOCK[o.ordinal][r],l=Math.floor(e.getNumRawDataModules(r)/8),u=i-l%i,d=Math.floor(l/i),m=[],p=e.reedSolomonComputeDivisor(s),g=0,b=0;g<i;g++){var y=n.slice(b,b+d-s+(g<u?0:1));b+=y.length;var S=e.reedSolomonComputeRemainder(y,p);g<u&&y.push(0),m.push(y.concat(S));}for(var C=[],w=function(T){m.forEach(function(A,I){(T!=d-s||I>=u)&&C.push(A[T]);});},E=0;E<m[0].length;E++)w(E);return pi(C.length==l),C}},{key:"drawCodewords",value:function(n){if(n.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var r=0,o=this.size-1;o>=1;o-=2){o==6&&(o=5);for(var i=0;i<this.size;i++)for(var s=0;s<2;s++){var l=o-s,u=(o+1&2)==0,d=u?this.size-1-i:i;!this.isFunction[d][l]&&r<n.length*8&&(this.modules[d][l]=Ta(n[r>>>3],7-(r&7)),r++);}}pi(r==n.length*8);}},{key:"applyMask",value:function(n){if(n<0||n>7)throw new RangeError("Mask value out of range");for(var r=0;r<this.size;r++)for(var o=0;o<this.size;o++){var i=void 0;switch(n){case 0:i=(o+r)%2==0;break;case 1:i=r%2==0;break;case 2:i=o%3==0;break;case 3:i=(o+r)%3==0;break;case 4:i=(Math.floor(o/3)+Math.floor(r/2))%2==0;break;case 5:i=o*r%2+o*r%3==0;break;case 6:i=(o*r%2+o*r%3)%2==0;break;case 7:i=((o+r)%2+o*r%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[r][o]&&i&&(this.modules[r][o]=!this.modules[r][o]);}}},{key:"getPenaltyScore",value:function(){for(var n=0,r=0;r<this.size;r++){for(var o=false,i=0,s=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[r][l]==o?(i++,i==5?n+=e.PENALTY_N1:i>5&&n++):(this.finderPenaltyAddHistory(i,s),o||(n+=this.finderPenaltyCountPatterns(s)*e.PENALTY_N3),o=this.modules[r][l],i=1);n+=this.finderPenaltyTerminateAndCount(o,i,s)*e.PENALTY_N3;}for(var u=0;u<this.size;u++){for(var d=false,m=0,p=[0,0,0,0,0,0,0],g=0;g<this.size;g++)this.modules[g][u]==d?(m++,m==5?n+=e.PENALTY_N1:m>5&&n++):(this.finderPenaltyAddHistory(m,p),d||(n+=this.finderPenaltyCountPatterns(p)*e.PENALTY_N3),d=this.modules[g][u],m=1);n+=this.finderPenaltyTerminateAndCount(d,m,p)*e.PENALTY_N3;}for(var b=0;b<this.size-1;b++)for(var y=0;y<this.size-1;y++){var S=this.modules[b][y];S==this.modules[b][y+1]&&S==this.modules[b+1][y]&&S==this.modules[b+1][y+1]&&(n+=e.PENALTY_N2);}var C=0,w=of(this.modules),E;try{for(w.s();!(E=w.n()).done;){var M=E.value;C=M.reduce(function(I,N){return I+(N?1:0)},C);}}catch(I){w.e(I);}finally{w.f();}var T=this.size*this.size,A=Math.ceil(Math.abs(C*20-T*10)/T)-1;return pi(0<=A&&A<=9),n+=A*e.PENALTY_N4,pi(0<=n&&n<=2568888),n}},{key:"getAlignmentPatternPositions",value:function(){if(this.version==1)return [];for(var n=Math.floor(this.version/7)+2,r=this.version==32?26:Math.ceil((this.version*4+4)/(n*2-2))*2,o=[6],i=this.size-7;o.length<n;i-=r)o.splice(1,0,i);return o}},{key:"finderPenaltyCountPatterns",value:function(n){var r=n[1];pi(r<=this.size*3);var o=r>0&&n[2]==r&&n[3]==r*3&&n[4]==r&&n[5]==r;return (o&&n[0]>=r*4&&n[6]>=r?1:0)+(o&&n[6]>=r*4&&n[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(n,r,o){var i=r;return n&&(this.finderPenaltyAddHistory(i,o),i=0),i+=this.size,this.finderPenaltyAddHistory(i,o),this.finderPenaltyCountPatterns(o)}},{key:"finderPenaltyAddHistory",value:function(n,r){var o=n;r[0]==0&&(o+=this.size),r.pop(),r.unshift(o);}}],[{key:"encodeText",value:function(n,r){var o=Cu.makeSegments(n);return e.encodeSegments(o,r)}},{key:"encodeBinary",value:function(n,r){var o=Cu.makeBytes(n);return e.encodeSegments([o],r)}},{key:"encodeSegments",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:true;if(!(e.MIN_VERSION<=o&&o<=i&&i<=e.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");var u,d;for(u=o;;u++){var m=e.getNumDataCodewords(u,r)*8,p=Cu.getTotalBits(n,u);if(p<=m){d=p;break}if(u>=i)throw new RangeError("Data too long")}for(var g=r,b=0,y=[Ki.MEDIUM,Ki.QUARTILE,Ki.HIGH];b<y.length;b++){var S=y[b];l&&d<=e.getNumDataCodewords(u,S)*8&&(g=S);}var C=[],w=of(n),E;try{for(w.s();!(E=w.n()).done;){var M=E.value;qo(M.mode.modeBits,4,C),qo(M.numChars,M.mode.numCharCountBits(u),C);var T=of(M.getData()),A;try{for(T.s();!(A=T.n()).done;){var I=A.value;C.push(I);}}catch(D){T.e(D);}finally{T.f();}}}catch(D){w.e(D);}finally{w.f();}pi(C.length==d);var N=e.getNumDataCodewords(u,g)*8;pi(C.length<=N),qo(0,Math.min(4,N-C.length),C),qo(0,(8-C.length%8)%8,C),pi(C.length%8==0);for(var P=236;C.length<N;P^=253)qo(P,8,C);for(var O=[];O.length*8<C.length;)O.push(0);return C.forEach(function(D,L){O[L>>>3]|=D<<7-(L&7);}),new e(u,g,O,s)}},{key:"getNumRawDataModules",value:function(n){if(n<e.MIN_VERSION||n>e.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var o=Math.floor(n/7)+2;r-=(25*o-10)*o-55,n>=7&&(r-=36);}return pi(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(n,r){return Math.floor(e.getNumRawDataModules(n)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n]}},{key:"reedSolomonComputeDivisor",value:function(n){if(n<1||n>255)throw new RangeError("Degree out of range");for(var r=[],o=0;o<n-1;o++)r.push(0);r.push(1);for(var i=1,s=0;s<n;s++){for(var l=0;l<r.length;l++)r[l]=e.reedSolomonMultiply(r[l],i),l+1<r.length&&(r[l]^=r[l+1]);i=e.reedSolomonMultiply(i,2);}return r}},{key:"reedSolomonComputeRemainder",value:function(n,r){var o=r.map(function(){return 0}),i=of(n),s;try{var l=function(){var d=s.value,m=d^o.shift();o.push(0),r.forEach(function(p,g){o[g]^=e.reedSolomonMultiply(p,m);});};for(i.s();!(s=i.n()).done;)l();}catch(u){i.e(u);}finally{i.f();}return o}},{key:"reedSolomonMultiply",value:function(n,r){if(n>>>8||r>>>8)throw new RangeError("Byte out of range");for(var o=0,i=7;i>=0;i--)o=o<<1^(o>>>7)*285,o^=(r>>>i&1)*n;return pi(o>>>8==0),o}}]),e})();Ct(Ja,"MIN_VERSION",1);Ct(Ja,"MAX_VERSION",40);Ct(Ja,"PENALTY_N1",3);Ct(Ja,"PENALTY_N2",3);Ct(Ja,"PENALTY_N3",40);Ct(Ja,"PENALTY_N4",10);Ct(Ja,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);Ct(Ja,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var jpe={L:Ki.LOW,M:Ki.MEDIUM,Q:Ki.QUARTILE,H:Ki.HIGH},YH=128,XH="L",QH="#FFFFFF",ZH="#000000",JH=false,eV=1,Upe=4,Wpe=0,Gpe=.1,tV=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[];return t.forEach(function(o,i){var s=null;o.forEach(function(l,u){if(!l&&s!==null){r.push("M".concat(s+n," ").concat(i+n,"h").concat(u-s,"v1H").concat(s+n,"z")),s=null;return}if(u===o.length-1){if(!l)return;s===null?r.push("M".concat(u+n,",").concat(i+n," h1v1H").concat(u+n,"z")):r.push("M".concat(s+n,",").concat(i+n," h").concat(u+1-s,"v1H").concat(s+n,"z"));return}l&&s===null&&(s=u);});}),r.join("")},nV=function(t,n){return t.slice().map(function(r,o){return o<n.y||o>=n.y+n.h?r:r.map(function(i,s){return s<n.x||s>=n.x+n.w?i:false})})},qpe=function(t,n,r,o){if(o==null)return null;var i=t.length+r*2,s=Math.floor(n*Gpe),l=i/n,u=(o.width||s)*l,d=(o.height||s)*l,m=o.x==null?t.length/2-u/2:o.x*l,p=o.y==null?t.length/2-d/2:o.y*l,g=o.opacity==null?1:o.opacity,b=null;if(o.excavate){var y=Math.floor(m),S=Math.floor(p),C=Math.ceil(u+m-y),w=Math.ceil(d+p-S);b={x:y,y:S,w:C,h:w};}var E=o.crossOrigin;return {x:m,y:p,h:d,w:u,excavation:b,opacity:g,crossOrigin:E}},Kpe=function(t,n){return n!=null?Math.max(Math.floor(n),0):t?Upe:Wpe},Ype=(function(){try{new Path2D().addPath(new Path2D);}catch{return  false}return  true})(),rV=function(t){var n=t.value,r=t.level,o=t.minVersion,i=t.includeMargin,s=t.marginSize,l=t.imageSettings,u=t.size,d=t.boostLevel,m=q.useMemo(function(){var p=Array.isArray(n)?n:[n],g=p.reduce(function(b,y){return b.push.apply(b,Zt(Cu.makeSegments(y))),b},[]);return Ja.encodeSegments(g,jpe[r],o,void 0,void 0,d)},[n,r,o,d]);return q.useMemo(function(){var p=m.getModules(),g=Kpe(i,s),b=p.length+g*2,y=qpe(p,u,g,l);return {cells:p,margin:g,numCells:b,calculatedImageSettings:y,qrcode:m}},[m,u,l,i,s])},Xpe=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings","boostLevel"],Qpe=q.forwardRef(function(e,t){var n=e.value,r=e.size,o=r===void 0?YH:r,i=e.level,s=i===void 0?XH:i,l=e.bgColor,u=l===void 0?QH:l,d=e.fgColor,m=d===void 0?ZH:d,p=e.includeMargin,g=p===void 0?JH:p,b=e.minVersion,y=b===void 0?eV:b,S=e.marginSize,C=e.style,w=e.imageSettings,E=e.boostLevel,M=lH(e,Xpe),T=w?.src,A=q.useRef(null),I=q.useRef(null),N=q.useCallback(function(j){A.current=j,typeof t=="function"?t(j):t&&(t.current=j);},[t]),P=q.useState(false),O=fT(P,2),D=O[1],L=rV({value:n,level:s,minVersion:y,includeMargin:g,marginSize:S,imageSettings:w,size:o,boostLevel:E}),F=L.margin,U=L.cells,W=L.numCells,z=L.calculatedImageSettings;q.useEffect(function(){if(A.current){var j=A.current,K=j.getContext("2d");if(!K)return;var Q=U,_=I.current,B=z!=null&&_!==null&&_.complete&&_.naturalHeight!==0&&_.naturalWidth!==0;B&&z.excavation!=null&&(Q=nV(U,z.excavation));var Y=window.devicePixelRatio||1;j.height=j.width=o*Y;var J=o/W*Y;K.scale(J,J),K.fillStyle=u,K.fillRect(0,0,W,W),K.fillStyle=m,Ype?K.fill(new Path2D(tV(Q,F))):U.forEach(function(ee,te){ee.forEach(function(re,ie){re&&K.fillRect(ie+F,te+F,1,1);});}),z&&(K.globalAlpha=z.opacity),B&&K.drawImage(_,z.x+F,z.y+F,z.w,z.h);}}),q.useEffect(function(){D(false);},[T]);var k=rr({height:o,width:o},C),G=null;return T!=null&&(G=q.createElement("img",{alt:"QR-Code",src:T,key:T,style:{display:"none"},onLoad:function(){D(true);},ref:I,crossOrigin:z?.crossOrigin})),q.createElement(q.Fragment,null,q.createElement("canvas",dr({style:k,height:o,width:o,ref:N,role:"img"},M)),G)}),Zpe=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings","boostLevel"],Jpe=q.forwardRef(function(e,t){var n=e.value,r=e.size,o=r===void 0?YH:r,i=e.level,s=i===void 0?XH:i,l=e.bgColor,u=l===void 0?QH:l,d=e.fgColor,m=d===void 0?ZH:d,p=e.includeMargin,g=p===void 0?JH:p,b=e.minVersion,y=b===void 0?eV:b,S=e.title,C=e.marginSize,w=e.imageSettings,E=e.boostLevel,M=lH(e,Zpe),T=rV({value:n,level:s,minVersion:y,includeMargin:g,marginSize:C,imageSettings:w,size:o,boostLevel:E}),A=T.margin,I=T.cells,N=T.numCells,P=T.calculatedImageSettings,O=I,D=null;w!=null&&P!=null&&(P.excavation!=null&&(O=nV(I,P.excavation)),D=q.createElement("image",{href:w.src,height:P.h,width:P.w,x:P.x+A,y:P.y+A,preserveAspectRatio:"none",opacity:P.opacity,crossOrigin:P.crossOrigin}));var L=tV(O,A);return q.createElement("svg",dr({height:o,width:o,viewBox:"0 0 ".concat(N," ").concat(N),ref:t,role:"img"},M),!!S&&q.createElement("title",null,S),q.createElement("path",{fill:u,d:"M0,0 h".concat(N,"v").concat(N,"H0z"),shapeRendering:"crispEdges"}),q.createElement("path",{fill:m,d:L,shapeRendering:"crispEdges"}),D)}),ege={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};function b3(){return b3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},b3.apply(this,arguments)}const tge=(e,t)=>f.createElement(Xn,b3({},e,{ref:t,icon:ege})),nge=f.forwardRef(tge),rge=q.createElement(j1,null);function oge({prefixCls:e,locale:t,onRefresh:n,statusRender:r,status:o}){const i=q.createElement(q.Fragment,null,q.createElement("p",{className:`${e}-expired`},t?.expired),n&&q.createElement(ht,{type:"link",icon:q.createElement(nge,null),onClick:n},t?.refresh)),s=q.createElement("p",{className:`${e}-scanned`},t?.scanned),l={expired:i,loading:rge,scanned:s};return (r??(m=>l[m.status]))({status:o,locale:t,onRefresh:n})}const ige=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o}=e;return {[t]:{...mn(e),display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${oe(n)} ${r} ${o}`,position:"relative",overflow:"hidden",[`& > ${t}-cover`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeCoverBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}},[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},sge=e=>({QRCodeCoverBackgroundColor:new dn(e.colorBgContainer).setA(.96).toRgbString()}),age=Wt("QRCode",e=>{const t=zt(e,{QRCodeTextColor:e.colorText});return ige(t)},sge),lge=e=>{const[,t]=Xr(),{value:n,type:r="canvas",icon:o="",size:i=160,iconSize:s,color:l=t.colorText,errorLevel:u="M",status:d="active",bordered:m=true,onRefresh:p,style:g,className:b,rootClassName:y,prefixCls:S,bgColor:C="transparent",marginSize:w,statusRender:E,classNames:M,styles:T,boostLevel:A,...I}=e,{getPrefixCls:N,className:P,style:O,classNames:D,styles:L}=jt("qrcode"),F={...e,bgColor:C,type:r,size:i,status:d,bordered:m,errorLevel:u},[U,W]=qt([D,M],[L,T],{props:F}),z=N("qrcode",S),[k,G]=age(z),j={src:o,x:void 0,y:void 0,height:typeof s=="number"?s:s?.height??40,width:typeof s=="number"?s:s?.width??40,excavate:true,crossOrigin:"anonymous"},K=$o(I,true),Q=kn(I,Object.keys(K)),_={value:n,size:i,level:u,bgColor:C,fgColor:l,style:{width:g?.width,height:g?.height},imageSettings:o?j:void 0,marginSize:w,boostLevel:A,...K},[B]=Lo("QRCode");if(!n)return null;const Y=X(z,b,y,k,G,P,U.root,{[`${z}-borderless`]:!m}),J={backgroundColor:C,...W.root,...O,...g,width:g?.width??i,height:g?.height??i};return q.createElement("div",{...Q,className:Y,style:J},d!=="active"&&q.createElement("div",{className:X(`${z}-cover`,U.cover),style:W.cover},q.createElement(oge,{prefixCls:z,locale:B,status:d,onRefresh:p,statusRender:E})),r==="canvas"?q.createElement(Qpe,{..._}):q.createElement(Jpe,{..._}))};function y3(){return y3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},y3.apply(this,arguments)}const oV=f.forwardRef(({prefixCls:e="rc-switch",className:t,checked:n,defaultChecked:r,disabled:o,loadingIcon:i,checkedChildren:s,unCheckedChildren:l,onClick:u,onChange:d,onKeyDown:m,styles:p,classNames:g,...b},y)=>{const[S,C]=fn(r??false,n);function w(A,I){let N=S;return o||(N=A,C(N),d?.(N,I)),N}function E(A){A.which===st.LEFT?w(false,A):A.which===st.RIGHT&&w(true,A),m?.(A);}function M(A){const I=w(!S,A);u?.(I,A);}const T=X(e,t,{[`${e}-checked`]:S,[`${e}-disabled`]:o});return f.createElement("button",y3({},b,{type:"button",role:"switch","aria-checked":S,disabled:o,className:T,ref:y,onKeyDown:E,onClick:M}),i,f.createElement("span",{className:`${e}-inner`},f.createElement("span",{className:X(`${e}-inner-checked`,g?.content),style:p?.content},s),f.createElement("span",{className:X(`${e}-inner-unchecked`,g?.content),style:p?.content},l)))});oV.displayName="Switch";const cge=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:s,handleSizeSM:l,calc:u}=e,d=`${t}-inner`,m=oe(u(l).add(u(r).mul(2)).equal()),p=oe(u(s).mul(2).equal());return {[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:oe(n),[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:i,[`${d}-checked, ${d}-unchecked`]:{minHeight:n},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${m} - ${p})`,marginInlineEnd:`calc(100% - ${m} + ${p})`},[`${d}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:u(u(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:s,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${m} + ${p})`,marginInlineEnd:`calc(-100% + ${m} - ${p})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${oe(u(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:u(e.marginXXS).div(2).equal(),marginInlineEnd:u(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:u(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:u(e.marginXXS).div(2).equal()}}}}}}},uge=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return {[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},dge=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:s}=e,l=`${t}-handle`;return {[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,...za(),"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:s(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""',...za()}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${oe(s(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},fge=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:s,switchDuration:l,calc:u}=e,d=`${t}-inner`,m=oe(u(s).add(u(r).mul(2)).equal()),p=oe(u(i).mul(2).equal());return {[t]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:["padding-inline-start","padding-inline-end"].map(g=>`${g} ${l} ease-in-out`).join(", "),...za(),[`${d}-checked, ${d}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:"none",minHeight:n,transition:["margin-inline-start","margin-inline-end"].map(g=>`${g} ${l} ease-in-out`).join(", "),...za()},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${m} - ${p})`,marginInlineEnd:`calc(100% - ${m} + ${p})`},[`${d}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${d}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${m} + ${p})`,marginInlineEnd:`calc(-100% + ${m} - ${p})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:u(r).mul(2).equal(),marginInlineEnd:u(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:u(r).mul(-1).mul(2).equal(),marginInlineEnd:u(r).mul(2).equal()}}}}}},mge=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return {[t]:{...mn(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:oe(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",...za(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...Ai(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"}}}},hge=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,s=r/2,l=2,u=i-l*2,d=s-l*2;return {trackHeight:i,trackHeightSM:s,trackMinWidth:u*2+l*4,trackMinWidthSM:d*2+l*2,trackPadding:l,handleBg:o,handleSize:u,handleSizeSM:d,handleShadow:`0 2px 4px 0 ${new dn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:u/2,innerMaxMargin:u+l+l*2,innerMinMarginSM:d/2,innerMaxMarginSM:d+l+l*2}},pge=Wt("Switch",e=>{const t=zt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [mge(t),fge(t),dge(t),uge(t),cge(t)]},hge),gge=f.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:s,rootClassName:l,style:u,checked:d,value:m,defaultChecked:p,defaultValue:g,onChange:b,styles:y,classNames:S,...C}=e,[w,E]=fn(p??g??false,d??m),{getPrefixCls:M,direction:T,className:A,style:I,classNames:N,styles:P}=jt("switch"),O=f.useContext(fo),D=(o??O)||i,L=M("switch",n),[F,U]=pge(L),W=br(r),z={...e,size:W,disabled:D},[k,G]=qt([N,S],[P,y],{props:z}),j=f.createElement("div",{className:X(`${L}-handle`,k.indicator),style:G.indicator},i&&f.createElement(M1,{className:`${L}-loading-icon`})),K=X(A,{[`${L}-small`]:W==="small",[`${L}-loading`]:i,[`${L}-rtl`]:T==="rtl"},s,l,k.root,F,U),Q={...G.root,...I,...u},_=(...B)=>{E(B[0]),b?.(...B);};return f.createElement(fg,{component:"Switch",disabled:D},f.createElement(oV,{...C,classNames:k,styles:G,checked:w,onChange:_,prefixCls:L,className:K,style:Q,disabled:D,ref:t,loadingIcon:j}))}),iV=gge;iV.__ANT_SWITCH=true;const vge=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,s=i(r).sub(n).equal(),l=i(t).sub(n).equal();return {[o]:{...mn(e),display:"inline-block",height:"auto",paddingInline:s,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${oe(e.lineWidth)} ${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:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-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},"&-disabled":{cursor:"not-allowed",[`&:not(${o}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${o}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${o}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:s}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${o}-default`]:{color:e.solidTextColor}},[`${o}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${o}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${o}-solid, &${o}-filled`]:{color:e.colorTextDisabled,[`${o}-close-icon`]:{color:e.colorTextDisabled}},[`${o}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},MA=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return zt(e,{tagFontSize:o,tagLineHeight:oe(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},TA=e=>{const t=zT(new Qo(e.colorBgSolid),"#fff")?"#000":"#fff";return {defaultBg:new dn(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},AA=Wt("Tag",e=>{const t=MA(e);return vge(t)},TA),sV=f.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,children:s,icon:l,onChange:u,onClick:d,disabled:m,...p}=e,{getPrefixCls:g,tag:b}=f.useContext(wt),y=f.useContext(fo),S=m??y,C=A=>{S||(u?.(!i),d?.(A));},w=g("tag",n),[E,M]=AA(w),T=X(w,`${w}-checkable`,{[`${w}-checkable-checked`]:i,[`${w}-checkable-disabled`]:S},b?.className,o,E,M);return f.createElement("span",{...p,ref:t,style:{...r,...b?.style},className:T,onClick:C},l,f.createElement("span",null,s))}),bge=q.forwardRef((e,t)=>{const{id:n,prefixCls:r,rootClassName:o,className:i,style:s,classNames:l,styles:u,disabled:d,options:m,value:p,defaultValue:g,onChange:b,multiple:y,...S}=e,{getPrefixCls:C,direction:w,className:E,style:M,classNames:T,styles:A}=jt("tag"),I=C("tag",r),N=`${I}-checkable-group`,P=Qn(I),[O,D]=AA(I,P),[L,F]=qt([T,l],[A,u],{props:e}),U=f.useMemo(()=>Array.isArray(m)?m.map(K=>K&&typeof K=="object"?K:{value:K,label:K}):[],[m]),[W,z]=fn(g,p),k=(K,Q)=>{let _=null;if(y){const B=W||[];_=K?[].concat(Zt(B),[Q.value]):B.filter(Y=>Y!==Q.value);}else _=K?Q.value:null;z(_),b?.(_);},G=q.useRef(null);f.useImperativeHandle(t,()=>({nativeElement:G.current}));const j=$o(S,{aria:true,data:true});return q.createElement("div",{...j,className:X(N,E,o,{[`${N}-disabled`]:d,[`${N}-rtl`]:w==="rtl"},O,D,i,L.root),style:{...M,...F.root,...s},id:n,ref:G},U.map(K=>q.createElement(sV,{key:K.value,className:X(`${N}-item`,L.item),style:F.item,checked:y?(W||[]).includes(K.value):W===K.value,onChange:Q=>k(Q,K),disabled:d},K.label)))});function yge(e,t){const{color:n,variant:r,bordered:o}=e;return f.useMemo(()=>{const i=n?.endsWith("-inverse");let s;r?s=r:i?s="solid":o===false?s="filled":s=t||"filled";const l=i?n?.replace("-inverse",""):n,u=_1(n),d=Pce(n),m={};if(!u&&!d&&l)if(s==="solid")m.backgroundColor=n;else {const p=new dn(l).toHsl();p.l=.95,m.backgroundColor=new dn(p).toHexString(),m.color=n,s==="outlined"&&(m.borderColor=n);}return [s,l,u,d,m]},[n,r,o,t])}const Sge=e=>C1(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:o,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:i,borderColor:i,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:o,color:n}}})),Cge=Yf(["Tag","preset"],e=>{const t=MA(e);return Sge(t)},TA);function xge(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Rb=(e,t,n)=>{const r=xge(n);return {[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},wge=Yf(["Tag","status"],e=>{const t=MA(e);return [Rb(t,"success","Success"),Rb(t,"processing","Info"),Rb(t,"error","Error"),Rb(t,"warning","Warning")]},TA),Ege=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:s,icon:l,color:u,variant:d,onClose:m,bordered:p,disabled:g,href:b,target:y,styles:S,classNames:C,...w}=e,{getPrefixCls:E,direction:M,className:T,variant:A,style:I,classNames:N,styles:P}=jt("tag"),[O,D,L,F,U]=yge(e,A),W=L||F,z=f.useContext(fo),k=g??z,{tag:G}=f.useContext(wt),[j,K]=f.useState(true),Q=kn(w,["closeIcon","closable"]),_={...e,color:D,variant:O,disabled:k,href:b,target:y,icon:l},[B,Y]=qt([N,C],[P,S],{props:_}),J=f.useMemo(()=>{let pe={...Y.root,...I,...i};return k||(pe={...U,...pe}),pe},[Y.root,I,i,U,k]),ee=E("tag",n),[te,re]=AA(ee),ie=X(ee,T,B.root,`${ee}-${O}`,{[`${ee}-${D}`]:W,[`${ee}-hidden`]:!j,[`${ee}-rtl`]:M==="rtl",[`${ee}-disabled`]:k},r,o,te,re),de=pe=>{k||(pe.stopPropagation(),m?.(pe),!pe.defaultPrevented&&K(false));},[,ne]=xT(tc(e),tc(G),{closable:false,closeIconRender:pe=>{const be=f.createElement("span",{className:`${ee}-close-icon`,onClick:de},pe);return Fz(pe,be,Ce=>({onClick:Ae=>{Ce?.onClick?.(Ae),de(Ae);},className:X(Ce?.className,`${ee}-close-icon`)}))}}),ae=typeof w.onClick=="function"||s&&s.type==="a",ce=qr(l,{className:X(f.isValidElement(l)?l.props?.className:void 0,B.icon),style:Y.icon}),se=ce?f.createElement(f.Fragment,null,ce,s&&f.createElement("span",{className:B.content,style:Y.content},s)):s,$e=b?"a":"span",le=f.createElement($e,{...Q,ref:t,className:ie,style:J,href:k?void 0:b,target:y,onClick:k?void 0:Q.onClick,...b&&k?{"aria-disabled":true}:{}},se,ne,L&&f.createElement(Cge,{key:"preset",prefixCls:ee}),F&&f.createElement(wge,{key:"status",prefixCls:ee}));return ae?f.createElement(fg,{component:"Tag"},le):le}),Cs=Ege;Cs.CheckableTag=sV;Cs.CheckableTagGroup=bge;const $ge=e=>{const t=e?.algorithm?Z0(e.algorithm):pT,n={...Af,...e?.token};return _k(n,{override:e?.token},t,rz)};function Mge(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)}}const Tge=(e,t)=>{const n=t??S1(e),r=n.fontSizeSM,o=n.controlHeight-4;return {...n,...Mge(t??e),...nz(r),controlHeight:o,...tz({...n,controlHeight:o})}},Vi=(e,t)=>new dn(e).setA(t).toRgbString(),qc=(e,t)=>new dn(e).lighten(t).toHexString(),v8=e=>{const t=lg(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]}},Age=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:Vi(r,.85),colorTextSecondary:Vi(r,.65),colorTextTertiary:Vi(r,.45),colorTextQuaternary:Vi(r,.25),colorFill:Vi(r,.18),colorFillSecondary:Vi(r,.12),colorFillTertiary:Vi(r,.08),colorFillQuaternary:Vi(r,.04),colorBgSolid:Vi(r,.95),colorBgSolidHover:Vi(r,1),colorBgSolidActive:Vi(r,.9),colorBgElevated:qc(n,12),colorBgContainer:qc(n,8),colorBgLayout:qc(n,0),colorBgSpotlight:qc(n,26),colorBgBlur:Vi(r,.04),colorBorder:qc(n,26),colorBorderDisabled:qc(n,26),colorBorderSecondary:qc(n,19)}},Rge=(e,t)=>{const n=Object.keys(hT).map(s=>{const l=lg(e[s],{theme:"dark"});return Array.from({length:10},()=>1).reduce((u,d,m)=>(u[`${s}-${m+1}`]=l[m],u[`${s}${m+1}`]=l[m],u),{})}).reduce((s,l)=>(s={...s,...l},s),{}),r=t??S1(e),o=ez(e,{generateColorPalettes:v8,generateNeutralColorPalettes:Age}),i=na.reduce((s,l)=>{const u=e[l];if(u){const d=v8(u);s[`${l}Hover`]=d[7],s[`${l}Active`]=d[5];}return s},{});return {...r,...n,...o,...i,colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover}};function Nge(){const[e,t,n,r]=Xr();return {theme:e,token:t,hashId:n,cssVar:r}}const Ay={defaultSeed:Tp.token,useToken:Nge,defaultAlgorithm:S1,darkAlgorithm:Rge,compactAlgorithm:Tge,getDesignToken:$ge,defaultConfig:Tp,_internalContext:gT},Ry=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},Pge=e=>{const t=new Map;return e.forEach(({disabled:n,key:r},o)=>{n&&t.set(r,o);}),t};function Ige(e,t){const n=e==="right";return t!=="rtl"?n?q.createElement(Nf,null):q.createElement(Np,null):n?q.createElement(Np,null):q.createElement(Nf,null)}const b8=({type:e,actions:t,moveToLeft:n,moveToRight:r,leftActive:o,rightActive:i,direction:s,disabled:l})=>{const u=e==="right",d=u?t[0]:t[1],m=u?r:n,p=u?i:o,g=Ige(e,s);if(q.isValidElement(d)){const b=d,y=S=>{b?.props?.onClick?.(S),m?.(S);};return q.cloneElement(b,{disabled:l||!p,onClick:y})}return q.createElement(ht,{type:"primary",size:"small",disabled:l||!p,onClick:b=>m?.(b),icon:g},d)},aV=e=>{const{className:t,style:n,oneWay:r,actions:o,...i}=e;return q.createElement("div",{className:t,style:n},q.createElement(b8,{type:"right",actions:o,...i}),!r&&q.createElement(b8,{type:"left",actions:o,...i}),o.slice(r?1:2))},Oge=(e,t,n)=>{const r=f.useMemo(()=>(e||[]).map(s=>t?{...s,key:t(s)}:s),[e,t]),[o,i]=f.useMemo(()=>{const s=[],l=Array.from({length:n?.length??0}),u=Ry(n||[]);return r.forEach(d=>{if(u.has(d.key)){const m=u.get(d.key);l[m]=d;}else s.push(d);}),[s,l]},[r,n]);return [r,o.filter(Boolean),i.filter(Boolean)]},Dge=[];function Nb(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function y8(e){return Array.from(e).join(";")}function _ge(e,t,n){const[r,o]=f.useMemo(()=>[new Set(e.map(p=>p?.key)),new Set(t.map(p=>p?.key))],[e,t]),[i,s]=fn(Dge,n),l=f.useMemo(()=>Nb(i,r),[i,r]),u=f.useMemo(()=>Nb(i,o),[i,o]);f.useEffect(()=>{s([].concat(Zt(Nb(i,r)),Zt(Nb(i,o))));},[y8(r),y8(o)]);const d=Mt(p=>{s([].concat(Zt(p),Zt(u)));}),m=Mt(p=>{s([].concat(Zt(l),Zt(p)));});return [l,u,d,m]}const lV=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:i,handleClear:s}=e,l=f.useCallback(u=>{i?.(u),u.target.value===""&&s?.();},[i]);return f.createElement(om,{placeholder:t,className:r,value:n,onChange:l,disabled:o,allowClear:true,prefix:f.createElement(tA,null)})};var Lge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function S3(){return S3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},S3.apply(this,arguments)}const Bge=(e,t)=>f.createElement(Xn,S3({},e,{ref:t,icon:Lge})),kge=f.forwardRef(Bge),zge=e=>{const{prefixCls:t,classNames:n,styles:r,renderedText:o,renderedEl:i,item:s,checked:l,disabled:u,onClick:d,onRemove:m,showRemove:p}=e,g=u||s?.disabled,b=X(`${t}-content-item`,n.item,{[`${t}-content-item-disabled`]:g,[`${t}-content-item-checked`]:l&&!g});let y;(typeof o=="string"||typeof o=="number")&&(y=String(o));const[S]=Lo("Transfer",Ms.Transfer),C={className:b,style:r.item,title:y},w=f.createElement("span",{className:X(`${t}-content-item-text`,n.itemContent),style:r.itemContent},i);return p?f.createElement("li",{...C},w,f.createElement("button",{type:"button",disabled:g,className:`${t}-content-item-remove`,"aria-label":S?.remove,onClick:()=>m?.(s)},f.createElement(kge,null))):(C.onClick=g?void 0:E=>d(s,E),f.createElement("li",{...C},f.createElement(Ri,{className:X(`${t}-checkbox`,n.itemIcon),style:r.itemIcon,checked:l,disabled:g}),w))},Fge=f.memo(zge),Hge=["handleFilter","handleClear","checkedKeys"],Vge=e=>({...{simple:true,showSizeChanger:false,showLessItems:false},...e}),jge=(e,t)=>{const{prefixCls:n,classNames:r,styles:o,filteredRenderItems:i,selectedKeys:s,disabled:l,showRemove:u,pagination:d,onScroll:m,onItemSelect:p,onItemRemove:g}=e,[b,y]=f.useState(1),S=f.useMemo(()=>d?Vge(typeof d=="object"?d:{}):null,[d]),[C,w]=fn(10,S?.pageSize);f.useEffect(()=>{if(S){const P=Math.ceil(i.length/C);y(Math.min(b,P));}},[i,S,C]);const E=(P,O)=>{p(P.key,!s.includes(P.key),O);},M=P=>{g?.([P.key]);},T=P=>{y(P);},A=(P,O)=>{y(P),w(O);},I=f.useMemo(()=>S?i.slice((b-1)*C,b*C):i,[b,i,S,C]);f.useImperativeHandle(t,()=>({items:I}));const N=S?f.createElement(cpe,{size:"small",disabled:l,simple:S.simple,pageSize:C,showLessItems:S.showLessItems,showSizeChanger:S.showSizeChanger,className:`${n}-pagination`,total:i.length,current:b,onChange:T,onShowSizeChange:A}):null;return f.createElement(f.Fragment,null,f.createElement("ul",{className:X(`${n}-content`,r.list,{[`${n}-content-show-remove`]:u}),style:o.list,onScroll:m},(I||[]).map(({renderedEl:P,renderedText:O,item:D})=>f.createElement(Fge,{key:D.key,prefixCls:n,classNames:r,styles:o,item:D,renderedText:O,renderedEl:P,showRemove:u,onClick:E,onRemove:M,checked:s.includes(D.key),disabled:l}))),N)},Uge=f.forwardRef(jge),Wge=()=>null;function Gge(e){return !!(e&&!q.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function bh(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const qge=e=>e!==void 0,Kge=e=>e&&typeof e=="object"?{...e,defaultValue:e.defaultValue||""}:{defaultValue:"",placeholder:""},C3=e=>{const{prefixCls:t,style:n,classNames:r,styles:o,dataSource:i=[],titleText:s="",checkedKeys:l,disabled:u,showSearch:d=false,searchPlaceholder:m,notFoundContent:p,selectAll:g,deselectAll:b,selectCurrent:y,selectInvert:S,removeAll:C,removeCurrent:w,showSelectAll:E=true,showRemove:M,pagination:T,direction:A,itemsUnit:I,itemUnit:N,selectAllLabel:P,selectionsIcon:O,footer:D,renderList:L,onItemSelectAll:F,onItemRemove:U,handleFilter:W,handleClear:z,filterOption:k,render:G=Wge}=e,j=`${t}-section`,K=`${t}-list`,Q=Kge(d),[_,B]=f.useState(Q.defaultValue),Y=f.useRef({}),J=fe=>{B(fe.target.value),W(fe);},ee=()=>{B(""),z();},te=(fe,ve)=>typeof k=="function"?k(_,ve,A):fe.includes(_),re=fe=>{let ve=L?L({...fe,onItemSelect:(He,Ge)=>fe.onItemSelect(He,Ge)}):null;const Ne=!!ve;return Ne||(ve=q.createElement(Uge,{ref:Y,...fe,prefixCls:K})),{customize:Ne,bodyContent:ve}},ie=fe=>{const ve=G(fe),Ne=Gge(ve);return {item:fe,renderedEl:Ne?ve.label:ve,renderedText:Ne?ve.value:ve}},de=f.useMemo(()=>Array.isArray(p)?p[A==="left"?0:1]:p,[p,A]),[ne,ae]=f.useMemo(()=>{const fe=[],ve=[];return i.forEach(Ne=>{const He=ie(Ne);_&&!te(He.renderedText,Ne)||(fe.push(Ne),ve.push(He));}),[fe,ve]},[i,_]),ce=f.useMemo(()=>ne.filter(fe=>l.includes(fe.key)&&!fe.disabled),[l,ne]),se=f.useMemo(()=>{if(ce.length===0)return "none";const fe=Ry(l);return ne.every(ve=>fe.has(ve.key)||!!ve.disabled)?"all":"part"},[ce.length,l,ne]),$e=()=>{const fe=d?q.createElement("div",{className:`${K}-body-search-wrapper`},q.createElement(lV,{prefixCls:`${K}-search`,onChange:J,handleClear:ee,placeholder:Q.placeholder||m,value:_,disabled:u})):null,{customize:ve,bodyContent:Ne}=re({...kn(e,Hge),filteredItems:ne,filteredRenderItems:ae,selectedKeys:l,classNames:r,styles:o});let He;return ve?He=q.createElement("div",{className:`${K}-body-customize-wrapper`},Ne):He=ne.length?Ne:q.createElement("div",{className:`${K}-body-not-found`},de),q.createElement("div",{className:X(`${K}-body`,{[`${K}-body-with-search`]:d},r.body),style:o.body},fe,He)},le=q.createElement(Ri,{disabled:i.filter(fe=>!fe.disabled).length===0||u,checked:se==="all",indeterminate:se==="part",className:`${K}-checkbox`,onChange:()=>{F?.(ne.filter(fe=>!fe.disabled).map(({key:fe})=>fe),se!=="all");}}),pe=(fe,ve)=>{if(P)return typeof P=="function"?P({selectedCount:fe,totalCount:ve}):P;const Ne=ve>1?I:N;return q.createElement(q.Fragment,null,(fe>0?`${fe}/`:"")+ve," ",Ne)},be=D&&(D.length<2?D(e):D(e,{direction:A})),Ce=be?q.createElement("div",{className:X(`${K}-footer`,r.footer),style:o.footer},be):null,Ae=!M&&!T&&le;let Ye;M?Ye=[T?{key:"removeCurrent",label:w,onClick(){const fe=bh((Y.current?.items||[]).map(ve=>ve.item));U?.(fe);}}:null,{key:"removeAll",label:C,onClick(){U?.(bh(ne));}}].filter(Boolean):Ye=[{key:"selectAll",label:se==="all"?b:g,onClick(){const fe=bh(ne);F?.(fe,fe.length!==l.length);}},T?{key:"selectCurrent",label:y,onClick(){const fe=Y.current?.items||[];F?.(bh(fe.map(ve=>ve.item)),true);}}:null,{key:"selectInvert",label:S,onClick(){const fe=bh((Y.current?.items||[]).map(He=>He.item)),ve=new Set(l),Ne=new Set(ve);fe.forEach(He=>{ve.has(He)?Ne.delete(He):Ne.add(He);}),F?.(Array.from(Ne),"replace");}}];const Re=q.createElement(bc,{className:`${K}-header-dropdown`,menu:{items:Ye},disabled:u},qge(O)?O:q.createElement(eA,null));return q.createElement("div",{className:X(j,r.section,{[`${j}-with-pagination`]:!!T,[`${j}-with-footer`]:!!be}),style:{...n,...o.section}},q.createElement("div",{className:X(`${K}-header`,r.header),style:o.header},E?q.createElement(q.Fragment,null,Ae,Re):null,q.createElement("span",{className:`${K}-header-selected`},pe(ce.length,ne.length)),q.createElement("span",{className:X(`${K}-header-title`,r.title),style:o.title},s)),$e(),Ce)},Yge=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o}=e,i=`${t}-table`,s=`${t}-input`;return {[`${n}-customize-list`]:{[`${n}-section`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${i}-wrapper`]:{[`${i}-small`]:{border:0,borderRadius:0,[`${i}-selection-column`]:{width:o,minWidth:o}},[`${i}-pagination${i}-pagination`]:{margin:0,padding:e.paddingXS}},[`${s}[disabled]`]:{backgroundColor:"transparent"}}}},S8=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-section`]:{borderColor:t,[`${n}-list-search:not([disabled])`]:{borderColor:r}}}},Xge=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:{...S8(e,e.colorError)},[`${t}-status-warning`]:{...S8(e,e.colorWarning)}}},Qge=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:i,headerHeight:s,transferHeaderVerticalPadding:l,itemPaddingBlock:u,controlItemBgActive:d,colorTextDisabled:m,colorTextSecondary:p,listHeight:g,listWidth:b,listWidthLG:y,fontSizeIcon:S,marginXS:C,paddingSM:w,lineType:E,antCls:M,iconCls:T,motionDurationSlow:A,controlItemBgHover:I,borderRadiusLG:N,colorBgContainer:P,colorText:O,controlItemBgActiveHover:D}=e,L=oe(e.calc(N).sub(o).equal());return {display:"flex",flexDirection:"column",width:b,height:g,border:`${oe(o)} ${E} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:y,height:"auto"},[`${t}-list`]:{"&-search":{[`${T}-search`]:{color:m}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:s,padding:`${oe(e.calc(l).sub(o).equal())} ${oe(w)} ${oe(l)}`,color:O,background:P,borderBottom:`${oe(o)} ${E} ${r}`,borderRadius:`${oe(N)} ${oe(N)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":{...ra,flex:"0 1 auto",textAlign:"end",marginInlineStart:"auto"},"&-dropdown":{...ju(),fontSize:S,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}}},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:w}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${L} ${L}`,"&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${oe(u)} ${oe(w)}`,transition:`all ${A}`,"> *:not(:last-child)":{marginInlineEnd:C},"> *":{flex:"none"},"&-text":{...ra,flex:"auto"},"&-remove":{...$te(e),color:n,"&:hover, &:focus":{color:p}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:I,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:D}},"&-checked":{backgroundColor:d},"&-disabled":{color:m,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${oe(o)} ${E} ${r}`,[`${M}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:m,textAlign:"center"},"&-footer":{borderTop:`${oe(o)} ${E} ${r}`},"&-checkbox":{lineHeight:1}}}},Zge=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:o,marginXXS:i,fontSizeIcon:s,colorBgContainerDisabled:l}=e;return {[r]:{...mn(e),position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-section`]:{background:l}},[`${r}-section`]:Qge(e),[`${r}-actions`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${oe(o)}`,verticalAlign:"middle",gap:i,[`${t}-btn ${n}`]:{fontSize:s}}}}},Jge=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},eve=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o,lineWidth:i}=e,s=Math.round(t*n);return {listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-s)/2,transferHeaderVerticalPadding:Math.ceil((o-i-s)/2)}},tve=Wt("Transfer",e=>{const t=zt(e);return [Zge(t),Yge(t),Xge(t),Jge(t)]},eve),W1=e=>{const{prefixCls:t,className:n,rootClassName:r,classNames:o,styles:i,style:s,listStyle:l,operationStyle:u,operations:d,actions:m,dataSource:p,targetKeys:g=[],selectedKeys:b,selectAllLabels:y=[],locale:S={},titles:C,disabled:w,showSearch:E=false,showSelectAll:M,oneWay:T,pagination:A,status:I,selectionsIcon:N,filterOption:P,render:O,footer:D,children:L,rowKey:F,onScroll:U,onChange:W,onSearch:z,onSelectChange:k}=e,{getPrefixCls:G,renderEmpty:j,direction:K,className:Q,style:_,classNames:B,styles:Y,selectionsIcon:J}=jt("transfer"),ee=f.useContext(fo),te=w??ee,re={...e,disabled:te},ie=G("transfer",t),[de,ne]=tve(ie),ae=m||d||[],ce=K==="rtl",[se,$e,le]=Oge(p,F,g),[pe,be,Ce,Ae]=_ge($e,le,b),[Ye,Re]=Q5(Qe=>Qe.key),[fe,ve]=Q5(Qe=>Qe.key),Ne=f.useCallback((Qe,We)=>{if(Qe==="left"){const ft=typeof We=="function"?We(pe||[]):We;Ce(ft);}else {const ft=typeof We=="function"?We(be||[]):We;Ae(ft);}},[pe,be]),He=(Qe,We)=>{(Qe==="left"?Re:ve)(We);},Ge=f.useCallback((Qe,We)=>{Qe==="left"?k?.(We,be):k?.(pe,We);},[pe,be]),je=Qe=>C??Qe.titles??[],rt=Qe=>{U?.("left",Qe);},ot=Qe=>{U?.("right",Qe);},Ke=Qe=>{const We=Qe==="right"?pe:be,ft=Pge(se),Rt=We.filter(Nn=>!ft.has(Nn)),Ut=Ry(Rt),en=Qe==="right"?Rt.concat(g):g.filter(Nn=>!Ut.has(Nn)),nn=Qe==="right"?"left":"right";Ne(nn,[]),Ge(nn,[]),W?.(en,Qe,Rt);},De=()=>{Ke("left"),He("left",null);},qe=()=>{Ke("right"),He("right",null);},Je=(Qe,We,ft)=>{Ne(Qe,Rt=>{let Ut=[];if(ft==="replace")Ut=We;else if(ft)Ut=Array.from(new Set([].concat(Zt(Rt),Zt(We))));else {const en=Ry(We);Ut=Rt.filter(nn=>!en.has(nn));}return Ge(Qe,Ut),Ut}),He(Qe,null);},Be=(Qe,We)=>Je("left",Qe,We),Ie=(Qe,We)=>Je("right",Qe,We),lt=Qe=>z?.("left",Qe.target.value),Dt=Qe=>z?.("right",Qe.target.value),pt=()=>z?.("left",""),Lt=()=>z?.("right",""),xt=(Qe,We,ft,Rt,Ut)=>{We.has(ft)&&(We.delete(ft),He(Qe,null)),Rt&&(We.add(ft),He(Qe,Ut));},Pt=(Qe,We,ft,Rt)=>{(Qe==="left"?Ye:fe)(Rt,We,ft);},ut=(Qe,We,ft,Rt)=>{const Ut=Qe==="left",en=Ut?pe:be,nn=new Set(en),Nn=(Ut?$e:le).filter(vo=>!vo.disabled),ir=Nn.findIndex(vo=>vo.key===We);Rt&&en.length>0?Pt(Qe,Nn,nn,ir):xt(Qe,nn,We,ft,ir);const Sn=Array.from(nn);Ge(Qe,Sn),e.selectedKeys||Ne(Qe,Sn);},ct=(Qe,We,ft)=>{ut("left",Qe,We,ft?.shiftKey);},bt=(Qe,We,ft)=>ut("right",Qe,We,ft?.shiftKey),Fe=Qe=>{Ne("right",[]),W?.(g.filter(We=>!Qe.includes(We)),"left",Zt(Qe));},Ue=Qe=>typeof l=="function"?l({direction:Qe}):l||{},ye=f.useContext(Mo),{hasFeedback:Me,status:Se}=ye,he=Qe=>({...Qe,notFoundContent:j?.("Transfer")||q.createElement(m7,{componentName:"Transfer"}),...S}),Oe=Jf(Se,I),xe=!L&&A,ke=le.filter(Qe=>be.includes(Qe.key)&&!Qe.disabled).length>0,Xe=$e.filter(Qe=>pe.includes(Qe.key)&&!Qe.disabled).length>0,[it,dt]=qt([B,o],[Y,i],{props:re}),Et=X(ie,{[`${ie}-disabled`]:te,[`${ie}-customize-list`]:!!L,[`${ie}-rtl`]:ce},ic(ie,Oe,Me),Q,n,r,de,ne,it.root),[Tt]=Lo("Transfer",Ms.Transfer),At=he(Tt),[yn,Un]=je(At),et=N??J;return q.createElement("div",{className:Et,style:{..._,...dt.root,...s}},q.createElement(C3,{prefixCls:ie,style:Ue("left"),classNames:it,styles:dt,titleText:yn,dataSource:$e,filterOption:P,checkedKeys:pe,handleFilter:lt,handleClear:pt,onItemSelect:ct,onItemSelectAll:Be,render:O,showSearch:E,renderList:L,footer:D,onScroll:rt,disabled:te,direction:ce?"right":"left",showSelectAll:M,selectAllLabel:y[0],pagination:xe,selectionsIcon:et,...At}),q.createElement(aV,{className:X(`${ie}-actions`,it.actions),rightActive:Xe,moveToRight:qe,leftActive:ke,actions:ae,moveToLeft:De,style:{...u,...dt.actions},disabled:te,direction:K,oneWay:T}),q.createElement(C3,{prefixCls:ie,style:Ue("right"),classNames:it,styles:dt,titleText:Un,dataSource:le,filterOption:P,checkedKeys:be,handleFilter:Dt,handleClear:Lt,onItemSelect:bt,onItemSelectAll:Ie,onItemRemove:Fe,render:O,showSearch:E,renderList:L,footer:D,onScroll:ot,disabled:te,direction:ce?"left":"right",showSelectAll:M,selectAllLabel:y[1],showRemove:T,pagination:xe,selectionsIcon:et,...At}))};W1.List=C3;W1.Search=lV;W1.Operation=aV;const{proxyStateMap:nve}=jM(),rve=e=>nve.has(e),x3=new Set;iZ("createHandler",e=>(...t)=>{const n=e(...t),r=n.get||((o,i,s)=>Reflect.get(o,i,s));return n.get=(o,i,s)=>{for(const l of x3)l(o,i,s);return r(o,i,s)},n});const Pw=[],ove=e=>{Pw.length?Pw[Pw.length-1].add(e):e();};function ive(e){const t=new Map,n=new Map,r=(u,d)=>Array.from(d).some(([m,p])=>{const g=u[m],b=n.get(g);if(b)return r(g,b);if(!Object.is(g,p[0]))return  true;const y=BI(g),S=p[1];return typeof y=="number"&&typeof S=="number"?y!==S:false}),o=()=>{Array.from(n).some(([u,d])=>r(u,d))&&s();},i=()=>{for(const[u,d]of t)n.has(u)||(d(),t.delete(u));for(const u of n.keys())if(!t.has(u)){const d=sa(u,()=>ove(o),true);t.set(u,d);}},s=()=>{n.clear();const u=(d,m,p)=>{if(!rve(p))return;let g=n.get(p);g||(g=new Map,n.set(p,g));const b=Reflect.get(d,m,p);g.set(m,[b,BI(b)]);};x3.add(u);try{e();}finally{x3.delete(u),i();}};return s(),()=>{for(const u of t.values())u();t.clear(),n.clear();}}function sve(e,t){const n=ive(e);return ()=>{n();}}function Of(e,t,n){return e<t?t:e>n?n:e}function ave(e){return e.value}var RA=class cV{static fromConcurrency(t,n=""){if(!isFinite(t))throw new Error("concurrency must be finite");if(!(t>0))throw new Error("concurrency must be greater than 0");const r=new Array(t).fill(0).map((o,i)=>[n,`executors(${t})`,i].map(s=>s&&s.toString().trim()).filter(Boolean).join("."));return new cV(r)}executorRefs;idleState;constructor(t){if(!t.length)throw new Error("executors can not be empty");this.executorRefs=t.map(n=>({value:n})),this.idleState=new WeakMap,this.executorRefs.forEach(n=>this.idleState.set(n,true));}aborted=false;abort(){this.aborted=true,this.pendingResolves=[];}pendingResolves=[];replenish=t=>{this.aborted||this.pendingResolves.length&&this.pendingResolves.shift()?.();};async getExecutorRef(){const t=()=>this.executorRefs.find(r=>this.idleState.get(r));let n=t();for(;!n;){const{promise:r,resolve:o}=Promise.withResolvers();this.pendingResolves.push(o),await r,n=t();}return this.idleState.set(n,false),n}async dispatch(t){const n=await this.getExecutorRef(),r=ave(n);try{return await t(r)}finally{this.idleState.set(n,true),setTimeout(()=>this.replenish(n));}}};async function ac(e,t,n){if(!e.length)return [];n=Math.min(n,e.length);const r=RA.fromConcurrency(n,"pmap");try{return await Promise.all(e.map((o,i)=>r.dispatch(()=>t(o,i,e))))}catch(o){throw r.abort(),o}}function NA(e){const t=RA.fromConcurrency(e,"pLimit");return function(r,...o){return t.dispatch(()=>r(...o))}}var lve=cve;function cve(e,t){const n=RA.fromConcurrency(t,"createLimitedVersionOfFn");return function(...o){return n.dispatch(()=>e(...o))}}function PA(e,t,n,r){let o=e[t];return sa(e,()=>{const i=e[t];Object.is(o,i)||n(o=i);},r)}const{proxyStateMap:uve,snapCache:dve}=jM(),Pb=e=>uve.has(e);function uV(e){const t=[];let n=0;const r=new Map,o=new WeakMap,i=()=>{const d=dve.get(l),m=d?.[1];if(m&&!o.has(m)){const p=new Map(r);o.set(m,p);}},s=d=>o.get(d)||r;if(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError(`proxyMap:
	initial state must be iterable
		tip: structure should be [[key, value]]`);for(const[d,m]of e)r.set(d,n),t[n++]=m;}const l={data:t,index:n,epoch:0,get size(){return Pb(this)||i(),s(this).size},get(d){const p=s(this).get(d);if(p===void 0){this.epoch;return}return this.data[p]},has(d){const m=s(this);return this.epoch,m.has(d)},set(d,m){if(!Pb(this))throw new Error("Cannot perform mutations on a snapshot");const p=r.get(d);return p===void 0?(r.set(d,this.index),this.data[this.index++]=m):this.data[p]=m,this.epoch++,this},delete(d){if(!Pb(this))throw new Error("Cannot perform mutations on a snapshot");const m=r.get(d);return m===void 0?false:(delete this.data[m],r.delete(d),this.epoch++,true)},clear(){if(!Pb(this))throw new Error("Cannot perform mutations on a snapshot");this.data.length=0,this.index=0,this.epoch++,r.clear();},forEach(d){this.epoch,s(this).forEach((p,g)=>{d(this.data[p],g,this);});},*entries(){this.epoch;const d=s(this);for(const[m,p]of d)yield [m,this.data[p]];},*keys(){this.epoch;const d=s(this);for(const m of d.keys())yield m;},*values(){this.epoch;const d=s(this);for(const m of d.values())yield this.data[m];},[Symbol.iterator](){return this.entries()},get[Symbol.toStringTag](){return "Map"},toJSON(){return new Map(this.entries())}},u=zn(l);return Object.defineProperties(u,{size:{enumerable:false},index:{enumerable:false},epoch:{enumerable:false},data:{enumerable:false},toJSON:{enumerable:false}}),Object.seal(u),u}const{proxyStateMap:fve,snapCache:mve}=jM(),Ib=e=>typeof e=="object"?zn({x:e}).x:e,Ob=e=>fve.has(e);function Or(e){const t=[],n=new Map;let r=0;const o=new WeakMap,i=()=>{const C=mve.get(y),w=C?.[1];if(w&&!o.has(w)){const E=new Map(n);o.set(w,E);}},s=C=>o.get(C)||n;if(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("not iterable");for(const C of e)if(!n.has(C)){const w=Ib(C);n.set(w,r),t[r++]=w;}}const l=C=>typeof C=="object"&&C!==null&&Symbol.iterator in C,u=C=>typeof C.forEach=="function",d=C=>{if(l(C))return C;if(u(C)){const w=[];return C.forEach(E=>w.push(E)),w}throw new TypeError("Expected an iterable")};function m(C){this.epoch;const w=Or(d(C)),E=Or();for(const M of this.values())w.has(M)&&E.add(M);return Or(E)}function p(C){this.epoch;const w=Or(d(C)),E=Or();for(const M of this.values())E.add(M);for(const M of w.values())E.add(M);return Or(E)}function g(C){this.epoch;const w=Or(d(C)),E=Or();for(const M of this.values())w.has(M)||E.add(M);return Or(E)}function b(C){this.epoch;const w=Or(d(C)),E=Or();for(const M of this.values())w.has(M)||E.add(M);for(const M of w.values())this.has(M)||E.add(M);return Or(E)}const y={data:t,index:r,epoch:0,get size(){return Ob(this)||i(),n.size},has(C){const w=s(this),E=Ib(C);return this.epoch,w.has(E)},add(C){if(!Ob(this))throw new Error("Cannot perform mutations on a snapshot");const w=Ib(C);return n.has(w)||(n.set(w,this.index),this.data[this.index++]=w,this.epoch++),this},delete(C){if(!Ob(this))throw new Error("Cannot perform mutations on a snapshot");const w=Ib(C),E=n.get(w);return E===void 0?false:(delete this.data[E],n.delete(w),this.epoch++,true)},clear(){if(!Ob(this))throw new Error("Cannot perform mutations on a snapshot");this.data.length=0,this.index=0,this.epoch++,n.clear();},forEach(C){this.epoch,s(this).forEach(E=>{C(this.data[E],this.data[E],this);});},*values(){this.epoch;const C=s(this);for(const w of C.values())yield this.data[w];},keys(){return this.epoch,this.values()},*entries(){this.epoch;const C=s(this);for(const w of C.values()){const E=this.data[w];yield [E,E];}},toJSON(){return new Set(this.values())},[Symbol.iterator](){return this.values()},get[Symbol.toStringTag](){return "Set"},intersection:m,union:p,difference:g,symmetricDifference:b,isSubsetOf(C){this.epoch;for(const w of this.values())if(!C.has(w))return  false;return  true},isSupersetOf(C){this.epoch;const w=d(C);for(const E of w)if(!this.has(E))return  false;return  true},isDisjointFrom(C){this.epoch;for(const w of this.values())if(C.has(w))return  false;return  true}},S=zn(y);return Object.defineProperties(S,{size:{enumerable:false},data:{enumerable:false},index:{enumerable:false},epoch:{enumerable:false},toJSON:{enumerable:false}}),Object.seal(S),S}const hve=typeof GM_info<"u"&&GM_info.scriptHandler==="Userscripts";function vi(e,t=true){if(e.startsWith("/")&&(e=location.origin+e),hve){GM.openInTab(e,!t);return}GM.openInTab(e,{active:t,insert:true,setParent:true});}function IA({storageKey:e,onUpdate:t,setPersist:n}){if(typeof GM_addValueChangeListener>"u")return;const r=NA(1);GM_addValueChangeListener(e,(o,i,s,l)=>{l&&s&&r(async()=>{n(false);try{t(s);}finally{await Promise.resolve().then(()=>{n(true);});}});});}function yc(e){const t=zn({value:e()});function n(){return gt(t).value}function r(){return t.value}function o(){return t.value=e()}const i=qa(o,100,{edges:["leading","trailing"]});return {state:t,use:n,get:r,update:o,updateThrottled:i}}function dV(e,t,n){let r=Nu(Gr(e),t);sa(e,()=>{const o=Gr(e),i=Nu(o,t);Ei(r,i)||n(o),r=i;});}function OA(e,t){t.startsWith(Zo)||(t=`${Kr}:${t}`);const n=Object.keys(e),[r,o]=Pu(()=>{const s=localStorage.getItem(t);if(!s)return;const l=JSON.parse(s);return Nu(l,n)});r&&ti("failed to load from localStorage key=",t,"error=",r);const i=zn({...e,...o});return setTimeout(()=>{sa(i,()=>{const s=Gr(i);localStorage.setItem(t,JSON.stringify(s));});}),i}async function DA(e,t){async function n(){const o=Object.keys(e);return Nu(await GM.getValue(t)||{},o)}const r=zn({...e,...await n()});return setTimeout(()=>{const o=NA(1);sa(r,()=>o(async()=>{const i=await n(),s=OQ(i,Gr(r));GM.setValue(t,s);}));}),r}async function fV(e){const n=Or(await(async()=>await GM.getValue(e)||[])()),r=s=>{const l=new Set(s);for(const u of [...n,...l])l.has(u)?n.add(u):n.delete(u);};setTimeout(i);let o=true;function i(){sa(n,()=>{o&&GM.setValue(e,Array.from(Gr(n)));}),IA({storageKey:e,setPersist:s=>o=s,onUpdate:r});}return {set:n,replaceAllWith:r}}async function _A(e,t){const r=uV(await(async()=>await GM.getValue(e)||[])()),o=l=>{const u=new Map(l);for(const[d,m]of [...r,...u])u.has(d)?r.set(d,m):r.delete(d);};setTimeout(s);let i=true;function s(){sa(r,()=>{if(!i)return;let l=Array.from(Gr(r));GM.setValue(e,l);}),IA({storageKey:e,setPersist:l=>i=l,onUpdate:o});}return {map:r,replaceAllWith:o}}const pve=()=>document.querySelector(".bili-header__bar"),LA=yc(mV);function mV(){const e=pve();return !!(e&&window.getComputedStyle(e).display==="none")}const _u=yc(function(){if(!mV())return 64;if(!document.body.classList.contains("fixed-navbar"))return 0;const n=document.documentElement.style.getPropertyValue("--navbar-height");if(!n)return 50;const r=Number(n.replace("px",""));return Number.isNaN(r)?50:r}),BA=yc(function(){const t=document.documentElement.style.getPropertyValue("--navbar-bounds-padding");return !t||!/^\d+%$/.test(t)?void 0:100-Of(Number(t.replace("%","")),2,10)*2});function gve(){const e=BA.use(),{pureRecommend:t,grid:{useCustomGrid:n}}=Ft();if(!t||!n||!e)return;const r=(1-e/100)/2*window.innerWidth+10,o=40;return r>o+24+5?void 0:r<o?0:Math.floor((r-o)/2)}const Eg=yc(function(){return window.getComputedStyle(document.documentElement).getPropertyValue("--theme-color")}),hV=`${Kr}:evolved-theme-color-hex`;sve(()=>{const e=Eg.get();e&&localStorage.setItem(hV,e);});function pV(){return localStorage.getItem(hV)||Wf.Pink}function vve(){LA.updateThrottled(),_u.updateThrottled(),BA.updateThrottled(),Eg.updateThrottled();}const gV=new MutationObserver(()=>vve());gV.observe(document.documentElement,{attributes:true,attributeFilter:["style"]});gV.observe(document.body,{attributes:true,attributeFilter:["class"]});document.body.addEventListener("click",e=>{const t=e.target,n=r=>!!r?.matches(".be-button.ok");!n(t)&&!n(t.parentElement)||t.closest(".be-popup.picker.open")&&setTimeout(Eg.updateThrottled,1e3);},{capture:true,passive:true});const vV={maxCount:5,top:_u.get()-4};EA.config(vV);function bve(){const e=_u.use();return x(yg,{message:{...vV,top:e-4},children:x(yve,{})})}let Db,Qt=EA,vs=GH,kA=Is;function yve(){return Db=yg.useApp(),Qt=Db.message,vs=Db.notification,kA=Db.modal,null}function yi(e){return e.filter(Boolean).filter(t=>t.test===void 0?true:typeof t.test=="boolean"?t.test:t.test()).map(t=>D9(t,["test"]))}const Sve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.793 3.693a1 1 0 0 1 1.414 0l2.5 2.5a1 1 0 0 1 0 1.414l-2.5 2.5a1 1 0 1 1-1.414-1.414L19.586 6.9l-1.793-1.793a1 1 0 0 1 0-1.414m0 10.15a1 1 0 0 1 1.414 0l2.5 2.5a1 1 0 0 1 0 1.414l-2.5 2.5a1 1 0 1 1-1.414-1.414l1.793-1.793l-1.793-1.793a1 1 0 0 1 0-1.414",clipRule:"evenodd"}),x("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.054 5.913c.352.023.657.043.946.043a1 1 0 1 1 0 2c-.346 0-.776-.028-1.184-.054a37 37 0 0 0-.606-.037c-.614-.03-1.118-.02-1.482.065c-1.456.341-3.07 1.481-4.394 4.117c1.304 2.555 2.9 3.529 4.394 3.879c.364.085.868.094 1.482.064c.186-.009.393-.022.606-.036A19 19 0 0 1 20 15.899a1 1 0 1 1 0 2c-.289 0-.594.02-.946.044c-.227.015-.473.032-.747.045c-.63.03-1.377.04-2.035-.115c-1.812-.424-3.549-1.493-4.972-3.634c-.553 1.02-1.177 1.822-1.927 2.427c-.978.788-2.12 1.106-3.213 1.24c-.882.108-1.81.102-2.64.096L3 18a1 1 0 1 1 0-2l.582.002c.824.005 1.593.01 2.335-.08c.892-.11 1.624-.348 2.201-.813c.687-.554 1.323-1.447 1.962-2.95l.046-.109l-.046-.109c-.651-1.53-1.303-2.495-2.015-3.103c-.56-.477-1.277-.726-2.161-.845c-.763-.102-1.562-.099-2.42-.095L3 7.899a1 1 0 1 1 0-2l.445-.001c.853-.004 1.813-.01 2.724.113c1.094.146 2.234.486 3.194 1.305c.75.64 1.375 1.481 1.93 2.52c1.408-2.187 3.136-3.421 4.979-3.853c.658-.154 1.405-.145 2.035-.115c.274.013.52.03.747.045",clipRule:"evenodd"})]}),Cve=f.forwardRef(Sve);function $g(e){return t=>e({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",...t})}const xve=$g(e=>x("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",...e,children:x("path",{d:"M550 470q10-36 34-62.5t56.5-41Q673 352 709 352q35 0 67.5 14t57 40.5Q858 433 869 470q1 4-1 7t-9 3H560q-4 0-8-2t-2-8zm-64-11q-7 27 3.5 46t28.5 29q18 10 36 10h310q19 0 37.5-10.5t28-30Q939 484 931 456q-14-51-46.5-88.5T807 309q-45-21-98-21-57 0-103 23.5t-77 62Q498 412 486 459zm-17 15q-35-10-61.5-34t-41-56.5Q352 351 352 315q0-35 14-67.5t40.5-57Q433 166 470 155q3-1 6.5 1t3.5 9v299q0 4-2 8t-9 2zm-11 64q28 7 47-3t29-28.5q10-18.5 10-36.5V160q0-19-10.5-37.5t-30.5-28Q483 85 455 93q-50 14-88 46.5T308.5 217Q288 262 288 315q0 57 23 103t62 77q39 31 85 43zm16 16q-10 36-34 62.5t-57 41Q350 672 314 672q-35 0-67.5-14T190 617.5Q166 591 155 554q-1-3 1-6.5t9-3.5h298q5 0 9 2t2 8zm63 11q7-27-3-46t-28-29q-18-10-36-10H160q-19 0-37.5 10.5t-28 30Q85 540 93 569q14 50 46.5 87.5T217 715q45 21 97 21 57 0 103.5-23.5t77.5-62q31-38.5 42-85.5zm17-15q36 10 62.5 34t41 57q14.5 33 14.5 69 0 35-14 67t-40.5 56.5Q591 858 554 869q-3 1-6.5-1t-3.5-9V560q0-4 2-8t8-2zm11-63q-27-7-46 3t-29 28q-10 18-10 36v310q0 19 10.5 37.5t30 28Q540 939 568 931q51-14 88.5-46.5T715 807q21-45 21-97 0-57-23.5-103.5t-62-77.5Q612 498 565 487z"})})),wve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{children:[x("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.14}),x("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.29,transform:"rotate(30 12 12)"}),x("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.43,transform:"rotate(60 12 12)"}),x("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.57,transform:"rotate(90 12 12)"}),x("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.71,transform:"rotate(120 12 12)"}),x("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.86,transform:"rotate(150 12 12)"}),x("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",transform:"rotate(180 12 12)"}),x("animateTransform",{attributeName:"transform",calcMode:"discrete",dur:"0.75s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;30 12 12;60 12 12;90 12 12;120 12 12;150 12 12;180 12 12;210 12 12;240 12 12;270 12 12;300 12 12;330 12 12;360 12 12"})]})]}),zA=f.forwardRef(wve),Eve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 256 256",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"currentColor",children:[x("path",{d:"M80 104v104H32a8 8 0 0 1-8-8v-88a8 8 0 0 1 8-8Z",opacity:.2}),x("path",{d:"M234 80.12A24 24 0 0 0 216 72h-56V56a40 40 0 0 0-40-40a8 8 0 0 0-7.16 4.42L75.06 96H32a16 16 0 0 0-16 16v88a16 16 0 0 0 16 16h172a24 24 0 0 0 23.82-21l12-96A24 24 0 0 0 234 80.12M32 112h40v88H32Zm191.94-15l-12 96a8 8 0 0 1-7.94 7H88v-94.11l36.71-73.43A24 24 0 0 1 144 56v24a8 8 0 0 0 8 8h64a8 8 0 0 1 7.94 9"})]})]}),$ve=f.forwardRef(Eve),Mve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 256 256",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"currentColor",children:[x("path",{d:"M80 48v104H32a8 8 0 0 1-8-8V56a8 8 0 0 1 8-8Z",opacity:.2}),x("path",{d:"m239.82 157l-12-96A24 24 0 0 0 204 40H32a16 16 0 0 0-16 16v88a16 16 0 0 0 16 16h43.06l37.78 75.58A8 8 0 0 0 120 240a40 40 0 0 0 40-40v-16h56a24 24 0 0 0 23.82-27M72 144H32V56h40Zm150 21.29a7.88 7.88 0 0 1-6 2.71h-64a8 8 0 0 0-8 8v24a24 24 0 0 1-19.29 23.54L88 150.11V56h116a8 8 0 0 1 7.94 7l12 96a7.87 7.87 0 0 1-1.94 6.29"})]})]}),Tve=f.forwardRef(Mve),Ave=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"m24 4l-6 6h-8v8l-6 6l6 6v8h8l6 6l6-6h8v-8l6-6l-6-6v-8h-8z"}),x("path",{d:"M24 30a6 6 0 1 0 0-12a6 6 0 0 0 0 12Z"})]})]}),Rve=f.forwardRef(Ave),Nve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("rect",{width:36,height:36,x:6,y:6,strokeLinecap:"round",rx:3}),x("path",{d:"M18.5 24v-7.794l6.75 3.897L32 24l-6.75 3.897l-6.75 3.897z"})]})]}),Pve=f.forwardRef(Nve),Ive=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M5.616 20q-.691 0-1.153-.462T4 18.384V5.616q0-.691.463-1.153T5.616 4h5.615v1H5.616q-.231 0-.424.192T5 5.616v12.769q0 .23.192.423t.423.192h12.77q.23 0 .423-.192t.192-.423v-5.616h1v5.616q0 .69-.462 1.152T18.384 20zm4.123-5.03l-.708-.709L18.292 5H14V4h6v6h-1V5.708z"})]}),Ove=f.forwardRef(Ive),Dve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M18 7h-3l4-4l4 4h-3v14h-2zM8 5c-3.86 0-7 3.13-7 7s3.13 7 7 7c3.86 0 7-3.13 7-7s-3.13-7-7-7m2.19 9.53L7 12.69V9h1.5v2.82l2.44 1.41z"})]}),_ve=f.forwardRef(Dve),Lve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M20 17h3l-4 4l-4-4h3V3h2zM8 5c-3.86 0-7 3.13-7 7s3.13 7 7 7c3.86 0 7-3.13 7-7s-3.13-7-7-7m2.19 9.53L7 12.69V9h1.5v2.82l2.44 1.41z"})]}),Bve=f.forwardRef(Lve),kve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h7m-7 6h7m-7 6h9m2-9l3-3l3 3m-3-3v12"})]}),zve=f.forwardRef(kve),Fve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h9m-9 6h7m-7 6h7m4-3l3 3l3-3m-3-9v12"})]}),Hve=f.forwardRef(Fve),Vve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",children:[x("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M24 44a19.94 19.94 0 0 0 14.142-5.858A19.94 19.94 0 0 0 44 24a19.94 19.94 0 0 0-5.858-14.142A19.94 19.94 0 0 0 24 4A19.94 19.94 0 0 0 9.858 9.858A19.94 19.94 0 0 0 4 24a19.94 19.94 0 0 0 5.858 14.142A19.94 19.94 0 0 0 24 44Z"}),x("path",{fill:"currentColor",fillRule:"evenodd",d:"M24 11a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5",clipRule:"evenodd"}),x("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M24.5 34V20h-2M21 34h7"})]})]}),jve=f.forwardRef(Vve),Uve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M16 4.5V7H5v2h11v2.5L19.5 8M16 12.5V15H5v2h11v2.5l3.5-3.5"})]}),Wve=f.forwardRef(Uve),Gve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4S4 12.954 4 24s8.954 20 20 20Z"}),x("path",{strokeLinecap:"round",d:"M24.008 12v12.01l8.479 8.48"})]})]}),qve=f.forwardRef(Gve),Kve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeWidth:4,children:[x("rect",{width:26,height:40,x:11,y:4,rx:3}),x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M22 10h4m-6 28h8"})]})]}),Yve=f.forwardRef(Kve),Xve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeWidth:4,children:[x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 32h10v9H19z"}),x("rect",{width:38,height:24,x:5,y:8,rx:2}),x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M22 27h4M14 41h20"})]})]}),Qve=f.forwardRef(Xve),Zve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",children:[x("path",{strokeLinecap:"round",strokeWidth:4,d:"M10.858 9.858A19.94 19.94 0 0 0 5 24a19.94 19.94 0 0 0 5.858 14.142m28.284 0A19.94 19.94 0 0 0 45 24a19.94 19.94 0 0 0-5.858-14.142M34.9 33.9A13.96 13.96 0 0 0 39 24a13.96 13.96 0 0 0-4.1-9.9m-19.8 0A13.96 13.96 0 0 0 11 24a13.96 13.96 0 0 0 4.1 9.9"}),x("path",{strokeLinejoin:"round",strokeWidth:3.5,d:"M28.182 20C30.29 20 32 21.612 32 23.6c0 2.588-2.546 4.8-3.818 6Q26.908 30.8 25 32q-1.909-1.2-3.182-2.4C20.545 28.4 18 26.188 18 23.6c0-1.988 1.71-3.6 3.818-3.6c1.328 0 2.498.64 3.182 1.61c.684-.97 1.854-1.61 3.182-1.61Z"})]})]}),Jve=f.forwardRef(Zve),ebe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 32 32",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"m16 6.52l2.76 5.58l.46 1l1 .15l6.16.89l-4.38 4.3l-.75.73l.18 1l1.05 6.13l-5.51-2.89L16 23l-.93.49l-5.51 2.85l1-6.13l.18-1l-.74-.77l-4.42-4.35l6.16-.89l1-.15l.46-1zM16 2l-4.55 9.22l-10.17 1.47l7.36 7.18L6.9 30l9.1-4.78L25.1 30l-1.74-10.13l7.36-7.17l-10.17-1.48Z"})]}),tbe=f.forwardRef(ebe),nbe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 32 32",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"m16 2l-4.55 9.22l-10.17 1.47l7.36 7.18L6.9 30l9.1-4.78L25.1 30l-1.74-10.13l7.36-7.17l-10.17-1.48Z"})]}),rbe=f.forwardRef(nbe),obe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M24 44c8.235 0 15-6.526 15-14.902c0-2.056-.105-4.26-1.245-7.686s-1.369-3.868-2.574-5.984c-.515 4.317-3.27 6.117-3.97 6.655c0-.56-1.666-6.747-4.193-10.45C24.537 8 21.163 5.617 19.185 4c0 3.07-.863 7.634-2.1 9.96c-1.236 2.325-1.468 2.41-3.013 4.14s-2.253 2.265-3.545 4.365S9 27.362 9 29.418C9 37.794 15.765 44 24 44Z"})]}),ibe=f.forwardRef(obe),sbe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("path",{strokeDasharray:32,d:"M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9",children:x("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.6s",values:"32;0"})}),H("path",{strokeDasharray:"2 4",strokeDashoffset:6,d:"M12 21c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9",opacity:0,children:[x("set",{fill:"freeze",attributeName:"opacity",begin:"0.45s",to:1}),x("animateTransform",{fill:"freeze",attributeName:"transform",begin:"0.45s",dur:"0.6s",type:"rotate",values:"-180 12 12;0 12 12"}),x("animate",{attributeName:"stroke-dashoffset",begin:"0.85s",dur:"0.6s",repeatCount:"indefinite",to:0})]}),x("path",{strokeDasharray:10,strokeDashoffset:10,d:"M12 16v-7.5",children:x("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.85s",dur:"0.2s",to:0})}),x("path",{strokeDasharray:8,strokeDashoffset:8,d:"M12 8.5l3.5 3.5M12 8.5l-3.5 3.5",children:x("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"1.05s",dur:"0.2s",to:0})})]})]}),abe=f.forwardRef(sbe),lbe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M19 20a7 7 0 1 0 0-14a7 7 0 0 0 0 14Z"}),x("path",{strokeLinecap:"round",d:"m33 31l8 8m-8 0l8-8m-14-3h-8.2c-4.48 0-6.72 0-8.432.872a8 8 0 0 0-3.496 3.496C6 34.08 6 36.32 6 40.8V42h21"})]})]}),cbe=f.forwardRef(lbe),ube=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"m13 8l-7 6l7 7"}),x("path",{d:"M6 14h22.994c6.883 0 12.728 5.62 12.996 12.5c.284 7.27-5.723 13.5-12.996 13.5H11.998"})]})]}),bV=f.forwardRef(ube),dbe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{strokeLinecap:"round",d:"M13 12.432v-4.62A2.813 2.813 0 0 1 15.813 5h24.374A2.813 2.813 0 0 1 43 7.813v24.375A2.813 2.813 0 0 1 40.188 35h-4.672"}),x("path",{d:"M32.188 13H7.811A2.813 2.813 0 0 0 5 15.813v24.374A2.813 2.813 0 0 0 7.813 43h24.375A2.813 2.813 0 0 0 35 40.188V15.811A2.813 2.813 0 0 0 32.188 13Z"})]})]}),fbe=f.forwardRef(dbe),mbe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M7 21q-.825 0-1.412-.587T5 19V6q-.425 0-.712-.288T4 5t.288-.712T5 4h4q0-.425.288-.712T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5t-.288.713T19 6v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zm-6.287 10.713Q11 16.425 11 16V9q0-.425-.288-.712T10 8t-.712.288T9 9v7q0 .425.288.713T10 17t.713-.288m4 0Q15 16.426 15 16V9q0-.425-.288-.712T14 8t-.712.288T13 9v7q0 .425.288.713T14 17t.713-.288M7 6v13z"})]}),hbe=f.forwardRef(mbe),pbe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"m10 8l-6 6l6 6m28 8l6 6l-6 6M4 14h40M4 34h40"})]}),yV=f.forwardRef(pbe),gbe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M5.325 43.5h8.485l31.113-31.113l-8.486-8.485L5.325 35.015z"}),x("path",{strokeLinecap:"round",d:"m27.952 12.387l8.485 8.485"})]})]}),vbe=f.forwardRef(gbe),bbe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M16 20v-7h4v7zm-6 0V4h4v16zm-6 0V9h4v11z"})]}),ybe=f.forwardRef(bbe),FA=f.createContext({});function G1(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const Sbe=typeof window<"u",SV=Sbe?f.useLayoutEffect:f.useEffect,q1=f.createContext(null);function HA(e,t){e.indexOf(t)===-1&&e.push(t);}function Df(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1);}const oa=(e,t,n)=>n>t?t:n<e?e:n;let VA=()=>{};const lc={},CV=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function xV(e){return typeof e=="object"&&e!==null}const wV=e=>/^0[^.\s]+$/u.test(e);function EV(e){let t;return ()=>(t===void 0&&(t=e()),t)}const Qi=e=>e,Cbe=(e,t)=>n=>t(e(n)),Mg=(...e)=>e.reduce(Cbe),_f=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class jA{constructor(){this.subscriptions=[];}add(t){return HA(this.subscriptions,t),()=>Df(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r);}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0;}}const ei=e=>e*1e3,Yi=e=>e/1e3;function $V(e,t){return t?e*(1e3/t):0}const xbe=(e,t,n)=>{const r=t-e;return ((n-e)%r+r)%r+e},MV=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,wbe=1e-7,Ebe=12;function $be(e,t,n,r,o){let i,s,l=0;do s=t+(n-t)/2,i=MV(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>wbe&&++l<Ebe);return s}function Tg(e,t,n,r){if(e===t&&n===r)return Qi;const o=i=>$be(i,0,1,e,n);return i=>i===0||i===1?i:MV(o(i),t,r)}const TV=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,AV=e=>t=>1-e(1-t),RV=Tg(.33,1.53,.69,.99),UA=AV(RV),NV=TV(UA),PV=e=>e>=1?1:(e*=2)<1?.5*UA(e):.5*(2-Math.pow(2,-10*(e-1))),WA=e=>1-Math.sin(Math.acos(e)),IV=AV(WA),OV=TV(WA),Mbe=Tg(.42,0,1,1),Tbe=Tg(0,0,.58,1),DV=Tg(.42,0,.58,1),_V=e=>Array.isArray(e)&&typeof e[0]!="number";function LV(e,t){return _V(e)?e[xbe(0,e.length,t)]:e}const BV=e=>Array.isArray(e)&&typeof e[0]=="number",Abe={linear:Qi,easeIn:Mbe,easeInOut:DV,easeOut:Tbe,circIn:WA,circInOut:OV,circOut:IV,backIn:UA,backInOut:NV,backOut:RV,anticipate:PV},Rbe=e=>typeof e=="string",C8=e=>{if(BV(e)){VA(e.length===4);const[t,n,r,o]=e;return Tg(t,n,r,o)}else if(Rbe(e))return Abe[e];return e},_b=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Nbe(e,t){let n=new Set,r=new Set,o=false,i=false;const s=new WeakSet;let l={delta:0,timestamp:0,isProcessing:false};function u(m){s.has(m)&&(d.schedule(m),e()),m(l);}const d={schedule:(m,p=false,g=false)=>{const y=g&&o?n:r;return p&&s.add(m),y.add(m),m},cancel:m=>{r.delete(m),s.delete(m);},process:m=>{if(l=m,o){i=true;return}o=true;const p=n;n=r,r=p,n.forEach(u),n.clear(),o=false,i&&(i=false,d.process(m));}};return d}const Pbe=40;function kV(e,t){let n=false,r=true;const o={delta:0,timestamp:0,isProcessing:false},i=()=>n=true,s=_b.reduce((M,T)=>(M[T]=Nbe(i),M),{}),{setup:l,read:u,resolveKeyframes:d,preUpdate:m,update:p,preRender:g,render:b,postRender:y}=s,S=()=>{const M=lc.useManualTiming,T=M?o.timestamp:performance.now();n=false,M||(o.delta=r?1e3/60:Math.max(Math.min(T-o.timestamp,Pbe),1)),o.timestamp=T,o.isProcessing=true,l.process(o),u.process(o),d.process(o),m.process(o),p.process(o),g.process(o),b.process(o),y.process(o),o.isProcessing=false,n&&t&&(r=false,e(S));},C=()=>{n=true,r=true,o.isProcessing||e(S);};return {schedule:_b.reduce((M,T)=>{const A=s[T];return M[T]=(I,N=false,P=false)=>(n||C(),A.schedule(I,N,P)),M},{}),cancel:M=>{for(let T=0;T<_b.length;T++)s[_b[T]].cancel(M);},state:o,steps:s}}const{schedule:jn,cancel:cc,state:oo,steps:Iw}=kV(typeof requestAnimationFrame<"u"?requestAnimationFrame:Qi,true);let S0;function Ibe(){S0=void 0;}const Po={now:()=>(S0===void 0&&Po.set(oo.isProcessing||lc.useManualTiming?oo.timestamp:performance.now()),S0),set:e=>{S0=e,queueMicrotask(Ibe);}},zV=e=>t=>typeof t=="string"&&t.startsWith(e),FV=zV("--"),Obe=zV("var(--"),GA=e=>Obe(e)?Dbe.test(e.split("/*")[0].trim()):false,Dbe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function x8(e){return typeof e!="string"?false:e.split("/*")[0].includes("var(--")}const sm={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},kp={...sm,transform:e=>oa(0,1,e)},Lb={...sm,default:1},ep=e=>Math.round(e*1e5)/1e5,qA=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _be(e){return e==null}const Lbe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,KA=(e,t)=>n=>!!(typeof n=="string"&&Lbe.test(n)&&n.startsWith(e)||t&&!_be(n)&&Object.prototype.hasOwnProperty.call(n,t)),HV=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,l]=r.match(qA);return {[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},Bbe=e=>oa(0,255,e),Ow={...sm,transform:e=>Math.round(Bbe(e))},du={test:KA("rgb","red"),parse:HV("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ow.transform(e)+", "+Ow.transform(t)+", "+Ow.transform(n)+", "+ep(kp.transform(r))+")"};function kbe(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const w3={test:KA("#"),parse:kbe,transform:du.transform},Ag=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ll=Ag("deg"),ta=Ag("%"),yt=Ag("px"),zbe=Ag("vh"),Fbe=Ag("vw"),w8={...ta,parse:e=>ta.parse(e)/100,transform:e=>ta.transform(e*100)},sf={test:KA("hsl","hue"),parse:HV("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ta.transform(ep(t))+", "+ta.transform(ep(n))+", "+ep(kp.transform(r))+")"},Er={test:e=>du.test(e)||w3.test(e)||sf.test(e),parse:e=>du.test(e)?du.parse(e):sf.test(e)?sf.parse(e):w3.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?du.transform(e):sf.transform(e),getAnimatableNone:e=>{const t=Er.parse(e);return t.alpha=0,Er.transform(t)}},Hbe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Vbe(e){return isNaN(e)&&typeof e=="string"&&(e.match(qA)?.length||0)+(e.match(Hbe)?.length||0)>0}const VV="number",jV="color",jbe="var",Ube="var(",E8="${}",Wbe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Lf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const l=t.replace(Wbe,u=>(Er.test(u)?(r.color.push(i),o.push(jV),n.push(Er.parse(u))):u.startsWith(Ube)?(r.var.push(i),o.push(jbe),n.push(u)):(r.number.push(i),o.push(VV),n.push(parseFloat(u))),++i,E8)).split(E8);return {values:n,split:l,indexes:r,types:o}}function Gbe(e){return Lf(e).values}function UV({split:e,types:t}){const n=e.length;return r=>{let o="";for(let i=0;i<n;i++)if(o+=e[i],r[i]!==void 0){const s=t[i];s===VV?o+=ep(r[i]):s===jV?o+=Er.transform(r[i]):o+=r[i];}return o}}function qbe(e){return UV(Lf(e))}const Kbe=e=>typeof e=="number"?0:Er.test(e)?Er.getAnimatableNone(e):e,Ybe=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:Kbe(e);function Xbe(e){const t=Lf(e);return UV(t)(t.values.map((r,o)=>Ybe(r,t.split[o])))}const xs={test:Vbe,parse:Gbe,createTransformer:qbe,getAnimatableNone:Xbe};function Dw(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Qbe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else {const l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;o=Dw(u,l,e+1/3),i=Dw(u,l,e),s=Dw(u,l,e-1/3);}return {red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Ny(e,t){return n=>n>0?t:e}const tr=(e,t,n)=>e+(t-e)*n,_w=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Zbe=[w3,du,sf],Jbe=e=>Zbe.find(t=>t.test(e));function $8(e){const t=Jbe(e);if(!t)return  false;let n=t.parse(e);return t===sf&&(n=Qbe(n)),n}const M8=(e,t)=>{const n=$8(e),r=$8(t);if(!n||!r)return Ny(e,t);const o={...n};return i=>(o.red=_w(n.red,r.red,i),o.green=_w(n.green,r.green,i),o.blue=_w(n.blue,r.blue,i),o.alpha=tr(n.alpha,r.alpha,i),du.transform(o))},E3=new Set(["none","hidden"]);function e0e(e,t){return E3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function t0e(e,t){return n=>tr(e,t,n)}function YA(e){return typeof e=="number"?t0e:typeof e=="string"?GA(e)?Ny:Er.test(e)?M8:o0e:Array.isArray(e)?WV:typeof e=="object"?Er.test(e)?M8:n0e:Ny}function WV(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>YA(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function n0e(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=YA(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function r0e(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],l=e.values[s]??0;n[o]=l,r[i]++;}return n}const o0e=(e,t)=>{const n=xs.createTransformer(t),r=Lf(e),o=Lf(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?E3.has(e)&&!o.values.length||E3.has(t)&&!r.values.length?e0e(e,t):Mg(WV(r0e(r,o),o.values),n):Ny(e,t)};function GV(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tr(e,t,n):YA(e)(e,t)}const i0e=e=>{const t=({timestamp:n})=>e(n);return {start:(n=true)=>jn.update(t,n),stop:()=>cc(t),now:()=>oo.isProcessing?oo.timestamp:Po.now()}},qV=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return `linear(${r.substring(0,r.length-2)})`},Py=2e4;function XA(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Py;)t+=n,r=e.next(t);return t>=Py?1/0:t}function KV(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(XA(r),Py);return {type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Yi(o)}}const ur={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function $3(e,t){return e*Math.sqrt(1-t*t)}const s0e=12;function a0e(e,t,n){let r=n;for(let o=1;o<s0e;o++)r=r-e(r)/t(r);return r}const Lw=.001;function l0e({duration:e=ur.duration,bounce:t=ur.bounce,velocity:n=ur.velocity,mass:r=ur.mass}){let o,i,s=1-t;s=oa(ur.minDamping,ur.maxDamping,s),e=oa(ur.minDuration,ur.maxDuration,Yi(e)),s<1?(o=d=>{const m=d*s,p=m*e,g=m-n,b=$3(d,s),y=Math.exp(-p);return Lw-g/b*y},i=d=>{const p=d*s*e,g=p*n+n,b=Math.pow(s,2)*Math.pow(d,2)*e,y=Math.exp(-p),S=$3(Math.pow(d,2),s);return (-o(d)+Lw>0?-1:1)*((g-b)*y)/S}):(o=d=>{const m=Math.exp(-d*e),p=(d-n)*e+1;return -Lw+m*p},i=d=>{const m=Math.exp(-d*e),p=(n-d)*(e*e);return m*p});const l=5/e,u=a0e(o,i,l);if(e=ei(e),isNaN(u))return {stiffness:ur.stiffness,damping:ur.damping,duration:e};{const d=Math.pow(u,2)*r;return {stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const c0e=["duration","bounce"],u0e=["stiffness","damping","mass"];function T8(e,t){return t.some(n=>e[n]!==void 0)}function d0e(e){let t={velocity:ur.velocity,stiffness:ur.stiffness,damping:ur.damping,mass:ur.mass,isResolvedFromDuration:false,...e};if(!T8(e,u0e)&&T8(e,c0e))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*oa(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ur.mass,stiffness:o,damping:i};}else {const n=l0e({...e,velocity:0});t={...t,...n,mass:ur.mass},t.isResolvedFromDuration=true;}return t}function zp(e=ur.visualDuration,t=ur.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],l={done:false,value:i},{stiffness:u,damping:d,mass:m,duration:p,velocity:g,isResolvedFromDuration:b}=d0e({...n,velocity:-Yi(n.velocity||0)}),y=g||0,S=d/(2*Math.sqrt(u*m)),C=s-i,w=Yi(Math.sqrt(u/m)),E=Math.abs(C)<5;r||(r=E?ur.restSpeed.granular:ur.restSpeed.default),o||(o=E?ur.restDelta.granular:ur.restDelta.default);let M,T,A,I,N,P;if(S<1)A=$3(w,S),I=(y+S*w*C)/A,M=D=>{const L=Math.exp(-S*w*D);return s-L*(I*Math.sin(A*D)+C*Math.cos(A*D))},N=S*w*I+C*A,P=S*w*C-I*A,T=D=>Math.exp(-S*w*D)*(N*Math.sin(A*D)+P*Math.cos(A*D));else if(S===1){M=L=>s-Math.exp(-w*L)*(C+(y+w*C)*L);const D=y+w*C;T=L=>Math.exp(-w*L)*(w*D*L-y);}else {const D=w*Math.sqrt(S*S-1);M=W=>{const z=Math.exp(-S*w*W),k=Math.min(D*W,300);return s-z*((y+S*w*C)*Math.sinh(k)+D*C*Math.cosh(k))/D};const L=(y+S*w*C)/D,F=S*w*L-C*D,U=S*w*C-L*D;T=W=>{const z=Math.exp(-S*w*W),k=Math.min(D*W,300);return z*(F*Math.sinh(k)+U*Math.cosh(k))};}const O={calculatedDuration:b&&p||null,velocity:D=>ei(T(D)),next:D=>{if(!b&&S<1){const F=Math.exp(-S*w*D),U=Math.sin(A*D),W=Math.cos(A*D),z=s-F*(I*U+C*W),k=ei(F*(N*U+P*W));return l.done=Math.abs(k)<=r&&Math.abs(s-z)<=o,l.value=l.done?s:z,l}const L=M(D);if(b)l.done=D>=p;else {const F=ei(T(D));l.done=Math.abs(F)<=r&&Math.abs(s-L)<=o;}return l.value=l.done?s:L,l},toString:()=>{const D=Math.min(XA(O),Py),L=qV(F=>O.next(D*F).value,D,30);return D+"ms "+L},toTransition:()=>{}};return O}zp.applyToOptions=e=>{const t=KV(e,100,zp);return e.ease=t.ease,e.duration=ei(t.duration),e.type="keyframes",e};const f0e=5;function YV(e,t,n){const r=Math.max(t-f0e,0);return $V(n-e(r),t-r)}function M3({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:l,max:u,restDelta:d=.5,restSpeed:m}){const p=e[0],g={done:false,value:p},b=P=>l!==void 0&&P<l||u!==void 0&&P>u,y=P=>l===void 0?u:u===void 0||Math.abs(l-P)<Math.abs(u-P)?l:u;let S=n*t;const C=p+S,w=s===void 0?C:s(C);w!==C&&(S=w-p);const E=P=>-S*Math.exp(-P/r),M=P=>w+E(P),T=P=>{const O=E(P),D=M(P);g.done=Math.abs(O)<=d,g.value=g.done?w:D;};let A,I;const N=P=>{b(g.value)&&(A=P,I=zp({keyframes:[g.value,y(g.value)],velocity:YV(M,P,g.value),damping:o,stiffness:i,restDelta:d,restSpeed:m}));};return N(0),{calculatedDuration:null,next:P=>{let O=false;return !I&&A===void 0&&(O=true,T(P),N(P)),A!==void 0&&P>=A?I.next(P-A):(!O&&T(P),g)}}}function m0e(e,t,n){const r=[],o=n||lc.mix||GV,i=e.length-1;for(let s=0;s<i;s++){let l=o(e[s],e[s+1]);if(t){const u=Array.isArray(t)?t[s]||Qi:t;l=Mg(u,l);}r.push(l);}return r}function h0e(e,t,{clamp:n=true,ease:r,mixer:o}={}){const i=e.length;if(VA(i===t.length),i===1)return ()=>t[0];if(i===2&&t[0]===t[1])return ()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=m0e(t,r,o),u=l.length,d=m=>{if(s&&m<e[0])return t[0];let p=0;if(u>1)for(;p<e.length-2&&!(m<e[p+1]);p++);const g=_f(e[p],e[p+1],m);return l[p](g)};return n?m=>d(oa(e[0],e[i-1],m)):d}function XV(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=_f(0,t,r);e.push(tr(n,1,o));}}function QV(e){const t=[0];return XV(t,e.length-1),t}function p0e(e,t){return e.map(n=>n*t)}function g0e(e,t){return e.map(()=>t||DV).splice(0,e.length-1)}function tp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=_V(r)?r.map(C8):C8(r),i={done:false,value:t[0]},s=p0e(n&&n.length===t.length?n:QV(t),e),l=h0e(s,t,{ease:Array.isArray(o)?o:g0e(t,o)});return {calculatedDuration:e,next:u=>(i.value=l(u),i.done=u>=e,i)}}const v0e=e=>e!==null;function QA(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(v0e),l=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return !l||r===void 0?i[l]:r}const b0e={decay:M3,inertia:M3,tween:tp,keyframes:tp,spring:zp};function ZV(e){typeof e.type=="string"&&(e.type=b0e[e.type]);}class ZA{constructor(){this.updateFinished();}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t;});}notifyFinished(){this.resolve();}then(t,n){return this.finished.then(t,n)}}const y0e=e=>e/100;class JA extends ZA{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=false,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Po.now()&&this.tick(Po.now()),this.isStopped=true,this.state!=="idle"&&(this.teardown(),this.options.onStop?.());},this.options=t,this.initAnimation(),this.play(),t.autoplay===false&&this.pause();}initAnimation(){const{options:t}=this;ZV(t);const{type:n=tp,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:l}=t;const u=n||tp;u!==tp&&typeof l[0]!="number"&&(this.mixKeyframes=Mg(y0e,GV(l[0],l[1])),l=[0,100]);const d=u({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...l].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=XA(d));const{calculatedDuration:m}=d;this.calculatedDuration=m,this.resolvedDuration=m+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=d;}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n;}tick(t,n=false){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:l,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:m,repeat:p,repeatType:g,repeatDelay:b,type:y,onUpdate:S,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-d*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?w<0:w>o;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let M=this.currentTime,T=r;if(p){const P=Math.min(this.currentTime,o)/l;let O=Math.floor(P),D=P%1;!D&&P>=1&&(D=1),D===1&&O--,O=Math.min(O,p+1),O%2&&(g==="reverse"?(D=1-D,b&&(D-=b/l)):g==="mirror"&&(T=s)),M=oa(0,1,D)*l;}const A=E?{done:false,value:m[0]}:T.next(M);i&&!E&&(A.value=i(A.value));let{done:I}=A;!E&&u!==null&&(I=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return N&&y!==M3&&(A.value=QA(m,this.options,C,this.speed)),S&&S(A.value),N&&this.finish(),A}then(t,n){return this.finished.then(t,n)}get duration(){return Yi(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Yi(t)}get time(){return Yi(this.currentTime)}set time(t){t=ei(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(false):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t));}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return YV(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Po.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Yi(this.currentTime));}play(){if(this.isStopped)return;const{driver:t=i0e,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start();}pause(){this.state="paused",this.updateTime(Po.now()),this.holdTime=this.currentTime;}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null;}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.();}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.();}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null;}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0);}sample(t){return this.startTime=0,this.tick(t,true)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function S0e(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1]);}const fu=e=>e*180/Math.PI,T3=e=>{const t=fu(Math.atan2(e[1],e[0]));return A3(t)},C0e={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:T3,rotateZ:T3,skewX:e=>fu(Math.atan(e[1])),skewY:e=>fu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},A3=e=>(e=e%360,e<0&&(e+=360),e),A8=T3,R8=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),N8=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),x0e={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:R8,scaleY:N8,scale:e=>(R8(e)+N8(e))/2,rotateX:e=>A3(fu(Math.atan2(e[6],e[5]))),rotateY:e=>A3(fu(Math.atan2(-e[2],e[0]))),rotateZ:A8,rotate:A8,skewX:e=>fu(Math.atan(e[4])),skewY:e=>fu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function R3(e){return e.includes("scale")?1:0}function N3(e,t){if(!e||e==="none")return R3(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=x0e,o=n;else {const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=C0e,o=l;}if(!o)return R3(t);const i=r[t],s=o[1].split(",").map(E0e);return typeof i=="function"?i(s):s[i]}const w0e=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return N3(n,t)};function E0e(e){return parseFloat(e.trim())}const am=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],lm=new Set(am),P8=e=>e===sm||e===yt,$0e=new Set(["x","y","z"]),M0e=am.filter(e=>!$0e.has(e));function T0e(e){const t=[];return M0e.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0));}),t}const Gl={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const o=e.max-e.min;return r==="border-box"?o:o-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const o=e.max-e.min;return r==="border-box"?o:o-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>N3(t,"x"),y:(e,{transform:t})=>N3(t,"y")};Gl.translateX=Gl.x;Gl.translateY=Gl.y;const xu=new Set;let P3=false,I3=false,O3=false;function JV(){if(I3){const e=Array.from(xu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=T0e(r);o.length&&(n.set(r,o),r.render());}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{r.getValue(i)?.set(s);});}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY);});}I3=false,P3=false,xu.forEach(e=>e.complete(O3)),xu.clear();}function ej(){xu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(I3=true);});}function A0e(){O3=true,ej(),JV(),O3=false;}class eR{constructor(t,n,r,o,i,s=false){this.state="pending",this.isAsync=false,this.needsMeasurement=false,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s;}scheduleResolve(){this.state="scheduled",this.isAsync?(xu.add(this),P3||(P3=true,jn.read(ej),jn.resolveKeyframes(JV))):(this.readKeyframes(),this.complete());}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const l=r.readValue(n,s);l!=null&&(t[0]=l);}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0]);}S0e(t);}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=false){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),xu.delete(this);}cancel(){this.state==="scheduled"&&(xu.delete(this),this.state="pending");}resume(){this.state==="pending"&&this.scheduleResolve();}}const R0e=e=>e.startsWith("--");function tj(e,t,n){R0e(t)?e.style.setProperty(t,n):e.style[t]=n;}const N0e={};function nj(e,t){const n=EV(e);return ()=>N0e[t]??n()}const P0e=nj(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),rj=nj(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"});}catch{return  false}return  true},"linearEasing"),zh=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,I8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zh([0,.65,.55,1]),circOut:zh([.55,0,1,.45]),backIn:zh([.31,.01,.66,-0.59]),backOut:zh([.33,1.53,.69,.99])};function oj(e,t){if(e)return typeof e=="function"?rj()?qV(e,t):"ease-out":BV(e)?zh(e):Array.isArray(e)?e.map(n=>oj(n,t)||I8.easeOut):I8[e]}function I0e(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:l="easeOut",times:u}={},d=void 0){const m={[t]:n};u&&(m.offset=u);const p=oj(l,o);Array.isArray(p)&&(m.easing=p);const g={delay:r,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(m,g)}function tR(e){return typeof e=="function"&&"applyToOptions"in e}function O0e({type:e,...t}){return tR(e)&&rj()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class ij extends ZA{constructor(t){if(super(),this.finishedTime=null,this.isStopped=false,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=false,finalKeyframe:l,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,VA(typeof t.type!="string");const d=O0e(t);this.animation=I0e(n,r,o,d,i),d.autoplay===false&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const m=QA(o,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(m),tj(n,r,m),this.animation.cancel();}u?.(),this.notifyFinished();};}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished());}pause(){this.animation.pause();}complete(){this.animation.finish?.();}cancel(){try{this.animation.cancel();}catch{}}stop(){if(this.isStopped)return;this.isStopped=true;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel());}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.();}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Yi(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Yi(t)}get time(){return Yi(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ei(t),n&&this.animation.pause();}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t;}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t;}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&P0e()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Qi):o(this)}}const sj={anticipate:PV,backInOut:NV,circInOut:OV};function D0e(e){return e in sj}function _0e(e){typeof e.ease=="string"&&D0e(e.ease)&&(e.ease=sj[e.ease]);}const Bw=10;class L0e extends ij{constructor(t){_0e(t),ZV(t),super(t),t.startTime!==void 0&&t.autoplay!==false&&(this.startTime=t.startTime),this.options=t;}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new JA({...s,autoplay:false}),u=Math.max(Bw,Po.now()-this.startTime),d=oa(0,Bw,u-Bw),m=l.sample(u).value,{name:p}=this.options;i&&p&&tj(i,p,m),n.setWithVelocity(l.sample(Math.max(0,u-d)).value,m,d),l.stop();}}const O8=(e,t)=>t==="zIndex"?false:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xs.test(e)||e==="0")&&!e.startsWith("url("));function B0e(e){const t=e[0];if(e.length===1)return  true;for(let n=0;n<e.length;n++)if(e[n]!==t)return  true}function k0e(e,t,n,r){const o=e[0];if(o===null)return  false;if(t==="display"||t==="visibility")return  true;const i=e[e.length-1],s=O8(o,t),l=O8(i,t);return !s||!l?false:B0e(e)||(n==="spring"||tR(n))&&r}function D3(e){e.duration=0,e.type="keyframes";}const z0e=new Set(["opacity","clipPath","filter","transform"]),F0e=EV(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function H0e(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return  false;const{onUpdate:u,transformTemplate:d}=t.owner.getProps();return F0e()&&n&&z0e.has(n)&&(n!=="transform"||!d)&&!u&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const V0e=40;class j0e extends ZA{constructor({autoplay:t=true,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:l,name:u,motionValue:d,element:m,...p}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel();},this.createdAt=Po.now();const g={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:u,motionValue:d,element:m,...p},b=m?.KeyframeResolver||eR;this.keyframeResolver=new b(l,(y,S,C)=>this.onKeyframesResolved(y,S,g,!C),u,d,m),this.keyframeResolver?.scheduleResolve();}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:l,delay:u,isHandoff:d,onUpdate:m}=r;this.resolvedAt=Po.now();let p=true;k0e(t,i,s,l)||(p=false,(lc.instantAnimations||!u)&&m?.(QA(t,r,n)),t[0]=t[t.length-1],D3(r),r.repeat=0);const b={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>V0e?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=p&&!d&&H0e(b),S=b.motionValue?.owner?.current,C=y?new L0e({...b,element:S}):new JA(b);C.finished.then(()=>{this.notifyFinished();}).catch(Qi),this.pendingTimeline&&(this.stopTimeline=C.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=C;}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),A0e()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t;}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t;}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play();}pause(){this.animation.pause();}complete(){this.animation.complete();}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel();}}class U0e{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean);}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n;}attachTimeline(t){const n=this.animations.map(r=>r.attachTimeline(t));return ()=>{n.forEach((r,o)=>{r&&r(),this.animations[o].stop();});}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t);}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t);}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return D8(this.animations,"duration")}get iterationDuration(){return D8(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]());}play(){this.runAll("play");}pause(){this.runAll("pause");}cancel(){this.runAll("cancel");}complete(){this.runAll("complete");}}function D8(e,t){let n=0;for(let r=0;r<e.length;r++){const o=e[r][t];o!==null&&o>n&&(n=o);}return n}class W0e extends U0e{then(t,n){return this.finished.finally(t).then(()=>{})}}function aj(e,t,n,r=0,o=1){const i=Array.from(e).sort((d,m)=>d.sortNodePosition(m)).indexOf(t),s=e.size,l=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:l-i*r}const G0e=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function q0e(e){const t=G0e.exec(e);if(!t)return [,];const[,n,r,o]=t;return [`--${n??r}`,o]}function lj(e,t,n=1){const[r,o]=q0e(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return CV(s)?parseFloat(s):s}return GA(o)?lj(o,t,n+1):o}const K0e={type:"spring",stiffness:500,damping:25,restSpeed:10},Y0e=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),X0e={type:"keyframes",duration:.8},Q0e={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Z0e=(e,{keyframes:t})=>t.length>2?X0e:lm.has(e)?e.startsWith("scale")?Y0e(t[1]):K0e:Q0e,J0e=e=>e!==null;function eye(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(J0e),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}function cj(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return {...t,...r}}return e}function nR(e,t){const n=e?.[t]??e?.default??e;return n!==e?cj(n,e):n}function tye({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:l,from:u,elapsed:d,...m}){return !!Object.keys(m).length}const rR=(e,t,n,r={},o,i)=>s=>{const l=nR(r,e)||{},u=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-ei(u);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:g=>{t.set(g),l.onUpdate&&l.onUpdate(g);},onComplete:()=>{s(),l.onComplete&&l.onComplete();},name:e,motionValue:t,element:i?void 0:o};tye(l)||Object.assign(m,Z0e(e,m)),m.duration&&(m.duration=ei(m.duration)),m.repeatDelay&&(m.repeatDelay=ei(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let p=false;if((m.type===false||m.duration===0&&!m.repeatDelay)&&(D3(m),m.delay===0&&(p=true)),(lc.instantAnimations||lc.skipAnimations||o?.shouldSkipAnimations)&&(p=true,D3(m),m.delay=0),m.allowFlatten=!l.type&&!l.ease,p&&!i&&t.get()!==void 0){const g=eye(m.keyframes,l);if(g!==void 0){jn.update(()=>{m.onUpdate(g),m.onComplete();});return}}return l.isSync?new JA(m):new j0e(m)};function _8(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity();}),t}function oR(e,t,n,r){if(typeof t=="function"){const[o,i]=_8(r);t=t(n!==void 0?n:e.custom,o,i);}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=_8(r);t=t(n!==void 0?n:e.custom,o,i);}return t}function wu(e,t,n){const r=e.getProps();return oR(r,t,n!==void 0?n:r.custom,e)}const uj=new Set(["width","height","top","left","right","bottom",...am]),L8=30,nye=e=>!isNaN(parseFloat(e));class rye{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=Po.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty();},this.hasAnimated=false,this.setCurrent(t),this.owner=n.owner;}setCurrent(t){this.current=t,this.updatedAt=Po.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=nye(this.current));}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt;}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new jA);const r=this.events[t].add(n);return t==="change"?()=>{r(),jn.read(()=>{this.events.change.getSize()||this.stop();});}:r}clearListeners(){for(const t in this.events)this.events[t].clear();}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n;}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t);}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r;}jump(t,n=true){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}dirty(){this.events.change?.notify(this.current);}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t);}removeDependent(t){this.dependents&&this.dependents.delete(t);}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Po.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>L8)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,L8);return $V(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=true,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify();}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation();})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation();}isAnimating(){return !!this.animation}clearAnimation(){delete this.animation;}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}}function Lu(e,t){return new rye(e,t)}const _3=e=>Array.isArray(e);function oye(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Lu(n));}function iye(e){return _3(e)?e[e.length-1]||0:e}function sye(e,t){const n=wu(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const l=iye(i[s]);oye(e,s,l);}}const Br=e=>!!(e&&e.getVelocity);function aye(e){return !!(Br(e)&&e.add)}function L3(e,t){const n=e.getValue("willChange");if(aye(n))return n.add(t);if(!n&&lc.WillChange){const r=new lc.WillChange("auto");e.addValue("willChange",r),r.add(t);}}function iR(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const lye="framerAppearId",dj="data-"+iR(lye);function fj(e){return e.props[dj]}function cye({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==true;return t[n]=false,r}function sR(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i,transitionEnd:s,...l}=t;const u=e.getDefaultTransition();i=i?cj(i,u):u;const d=i?.reduceMotion;r&&(i=r);const m=[],p=o&&e.animationState&&e.animationState.getState()[o];for(const g in l){const b=e.getValue(g,e.latestValues[g]??null),y=l[g];if(y===void 0||p&&cye(p,g))continue;const S={delay:n,...nR(i||{},g)},C=b.get();if(C!==void 0&&!b.isAnimating&&!Array.isArray(y)&&y===C&&!S.velocity)continue;let w=false;if(window.MotionHandoffAnimation){const T=fj(e);if(T){const A=window.MotionHandoffAnimation(T,g,jn);A!==null&&(S.startTime=A,w=true);}}L3(e,g);const E=d??e.shouldReduceMotion;b.start(rR(g,b,y,E&&uj.has(g)?{type:false}:S,e,w));const M=b.animation;M&&m.push(M);}if(s){const g=()=>jn.update(()=>{s&&sye(e,s);});m.length?Promise.all(m).then(g):g();}return m}function B3(e,t,n={}){const r=wu(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(sR(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:m,staggerDirection:p}=o;return uye(e,t,u,d,m,p,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,d]=l==="beforeChildren"?[i,s]:[s,i];return u().then(()=>d())}else return Promise.all([i(),s(n.delay)])}function uye(e,t,n=0,r=0,o=0,i=1,s){const l=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),l.push(B3(u,t,{...s,delay:n+(typeof r=="function"?0:r)+aj(e.variantChildren,u,r,o,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(l)}function dye(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>B3(e,i,n));r=Promise.all(o);}else if(typeof t=="string")r=B3(e,t,n);else {const o=typeof t=="function"?wu(e,t,n.custom):t;r=Promise.all(sR(e,o,n));}return r.then(()=>{e.notify("AnimationComplete",t);})}const fye={test:e=>e==="auto",parse:e=>e},mj=e=>t=>t.test(e),hj=[sm,yt,ta,Ll,Fbe,zbe,fye],B8=e=>hj.find(mj(e));function mye(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||wV(e):true}const hye=new Set(["brightness","contrast","saturate","opacity"]);function pye(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qA)||[];if(!r)return e;const o=n.replace(r,"");let i=hye.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const gye=/\b([a-z-]*)\(.*?\)/gu,k3={...xs,getAnimatableNone:e=>{const t=e.match(gye);return t?t.map(pye).join(" "):e}},z3={...xs,getAnimatableNone:e=>{const t=xs.parse(e);return xs.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},k8={...sm,transform:Math.round},vye={rotate:Ll,rotateX:Ll,rotateY:Ll,rotateZ:Ll,scale:Lb,scaleX:Lb,scaleY:Lb,scaleZ:Lb,skew:Ll,skewX:Ll,skewY:Ll,distance:yt,translateX:yt,translateY:yt,translateZ:yt,x:yt,y:yt,z:yt,perspective:yt,transformPerspective:yt,opacity:kp,originX:w8,originY:w8,originZ:yt},aR={borderWidth:yt,borderTopWidth:yt,borderRightWidth:yt,borderBottomWidth:yt,borderLeftWidth:yt,borderRadius:yt,borderTopLeftRadius:yt,borderTopRightRadius:yt,borderBottomRightRadius:yt,borderBottomLeftRadius:yt,width:yt,maxWidth:yt,height:yt,maxHeight:yt,top:yt,right:yt,bottom:yt,left:yt,inset:yt,insetBlock:yt,insetBlockStart:yt,insetBlockEnd:yt,insetInline:yt,insetInlineStart:yt,insetInlineEnd:yt,padding:yt,paddingTop:yt,paddingRight:yt,paddingBottom:yt,paddingLeft:yt,paddingBlock:yt,paddingBlockStart:yt,paddingBlockEnd:yt,paddingInline:yt,paddingInlineStart:yt,paddingInlineEnd:yt,margin:yt,marginTop:yt,marginRight:yt,marginBottom:yt,marginLeft:yt,marginBlock:yt,marginBlockStart:yt,marginBlockEnd:yt,marginInline:yt,marginInlineStart:yt,marginInlineEnd:yt,fontSize:yt,backgroundPositionX:yt,backgroundPositionY:yt,...vye,zIndex:k8,fillOpacity:kp,strokeOpacity:kp,numOctaves:k8},bye={...aR,color:Er,backgroundColor:Er,outlineColor:Er,fill:Er,stroke:Er,borderColor:Er,borderTopColor:Er,borderRightColor:Er,borderBottomColor:Er,borderLeftColor:Er,filter:k3,WebkitFilter:k3,mask:z3,WebkitMask:z3},pj=e=>bye[e],yye=new Set([k3,z3]);function gj(e,t){let n=pj(e);return yye.has(n)||(n=xs),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Sye=new Set(["auto","none","0"]);function Cye(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!Sye.has(i)&&Lf(i).values.length&&(o=e[r]),r++;}if(o&&n)for(const i of t)e[i]=gj(n,o);}class xye extends eR{constructor(t,n,r,o,i){super(t,n,r,o,i,true);}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let p=t[m];if(typeof p=="string"&&(p=p.trim(),GA(p))){const g=lj(p,n.current);g!==void 0&&(t[m]=g),m===t.length-1&&(this.finalKeyframe=p);}}if(this.resolveNoneKeyframes(),!uj.has(r)||t.length!==2)return;const[o,i]=t,s=B8(o),l=B8(i),u=x8(o),d=x8(i);if(u!==d&&Gl[r]){this.needsMeasurement=true;return}if(s!==l)if(P8(s)&&P8(l))for(let m=0;m<t.length;m++){const p=t[m];typeof p=="string"&&(t[m]=parseFloat(p));}else Gl[r]&&(this.needsMeasurement=true);}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||mye(t[o]))&&r.push(o);r.length&&Cye(t,r,n);}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Gl[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,false);}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,false);const i=r.length-1,s=r[i];r[i]=Gl[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u);}),this.resolveNoneKeyframes();}}const wye=new Set(["opacity","clipPath","filter","transform"]);function lR(e,t,n){if(e==null)return [];if(e instanceof EventTarget)return [e];if(typeof e=="string"){let r=document;t&&(r=t.current);const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(r=>r!=null)}const vj=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function C0(e){return xV(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:cR}=kV(queueMicrotask,false),ds={x:false,y:false};function bj(){return ds.x||ds.y}function Eye(e){return e==="x"||e==="y"?ds[e]?null:(ds[e]=true,()=>{ds[e]=false;}):ds.x||ds.y?null:(ds.x=ds.y=true,()=>{ds.x=ds.y=false;})}function yj(e,t){const n=lR(e),r=new AbortController,o={passive:true,...t,signal:r.signal};return [n,o,()=>r.abort()]}function $ye(e){return !(e.pointerType==="touch"||bj())}function Mye(e,t,n={}){const[r,o,i]=yj(e,n);return r.forEach(s=>{let l=false,u=false,d;const m=()=>{s.removeEventListener("pointerleave",y);},p=C=>{d&&(d(C),d=void 0),m();},g=C=>{l=false,window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g),u&&(u=false,p(C));},b=()=>{l=true,window.addEventListener("pointerup",g,o),window.addEventListener("pointercancel",g,o);},y=C=>{if(C.pointerType!=="touch"){if(l){u=true;return}p(C);}},S=C=>{if(!$ye(C))return;u=false;const w=t(s,C);typeof w=="function"&&(d=w,s.addEventListener("pointerleave",y,o));};s.addEventListener("pointerenter",S,o),s.addEventListener("pointerdown",b,o);}),i}const Sj=(e,t)=>t?e===t?true:Sj(e,t.parentElement):false,uR=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==false,Tye=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Aye(e){return Tye.has(e.tagName)||e.isContentEditable===true}const Rye=new Set(["INPUT","SELECT","TEXTAREA"]);function Nye(e){return Rye.has(e.tagName)||e.isContentEditable===true}const x0=new WeakSet;function z8(e){return t=>{t.key==="Enter"&&e(t);}}function kw(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:true,bubbles:true}));}const Pye=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=z8(()=>{if(x0.has(n))return;kw(n,"down");const o=z8(()=>{kw(n,"up");}),i=()=>kw(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t);});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t);};function F8(e){return uR(e)&&!bj()}const H8=new WeakSet;function Iye(e,t,n={}){const[r,o,i]=yj(e,n),s=l=>{const u=l.currentTarget;if(!F8(l)||H8.has(l))return;x0.add(u),n.stopPropagation&&H8.add(l);const d=t(u,l),m=(b,y)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",g),x0.has(u)&&x0.delete(u),F8(b)&&typeof d=="function"&&d(b,{success:y});},p=b=>{m(b,u===window||u===document||n.useGlobalTarget||Sj(u,b.target));},g=b=>{m(b,false);};window.addEventListener("pointerup",p,o),window.addEventListener("pointercancel",g,o);};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",s,o),C0(l)&&(l.addEventListener("focus",d=>Pye(d,o)),!Aye(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0));}),i}function K1(e){return xV(e)&&"ownerSVGElement"in e}const w0=new WeakMap;let E0;const Cj=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:K1(r)&&"getBBox"in r?r.getBBox()[t]:r[n],Oye=Cj("inline","width","offsetWidth"),Dye=Cj("block","height","offsetHeight");function _ye({target:e,borderBoxSize:t}){w0.get(e)?.forEach(n=>{n(e,{get width(){return Oye(e,t)},get height(){return Dye(e,t)}});});}function Lye(e){e.forEach(_ye);}function Bye(){typeof ResizeObserver>"u"||(E0=new ResizeObserver(Lye));}function kye(e,t){E0||Bye();const n=lR(e);return n.forEach(r=>{let o=w0.get(r);o||(o=new Set,w0.set(r,o)),o.add(t),E0?.observe(r);}),()=>{n.forEach(r=>{const o=w0.get(r);o?.delete(t),o?.size||E0?.unobserve(r);});}}const $0=new Set;let af;function zye(){af=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};$0.forEach(t=>t(e));},window.addEventListener("resize",af);}function Fye(e){return $0.add(e),af||zye(),()=>{$0.delete(e),!$0.size&&typeof af=="function"&&(window.removeEventListener("resize",af),af=void 0);}}function V8(e,t){return typeof e=="function"?Fye(e):kye(e,t)}function xj(e){return K1(e)&&e.tagName==="svg"}const Hye=[...hj,Er,xs],Vye=e=>Hye.find(mj(e)),j8=()=>({translate:0,scale:1,origin:0,originPoint:0}),lf=()=>({x:j8(),y:j8()}),U8=()=>({min:0,max:0}),wr=()=>({x:U8(),y:U8()}),Fp=new WeakMap;function Y1(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Hp(e){return typeof e=="string"||Array.isArray(e)}const dR=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],fR=["initial",...dR];function X1(e){return Y1(e.animate)||fR.some(t=>Hp(e[t]))}function wj(e){return !!(X1(e)||e.variants)}function jye(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Br(o))e.addValue(r,o);else if(Br(i))e.addValue(r,Lu(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===true?s.jump(o):s.hasAnimated||s.set(o);}else {const s=e.getStaticValue(r);e.addValue(r,Lu(s!==void 0?s:o,{owner:e}));}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Iy={current:null},mR={current:false},Uye=typeof window<"u";function Ej(){if(mR.current=true,!!Uye)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Iy.current=e.matches;e.addEventListener("change",t),t();}else Iy.current=false;}const W8=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Oy={};function $j(e){Oy=e;}function Wye(){return Oy}class Mj{scrapeMotionValuesFromProps(t,n,r){return {}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,skipAnimations:i,blockInitialAnimation:s,visualState:l},u={}){this.current=null,this.children=new Set,this.isVariantNode=false,this.isControllingVariants=false,this.shouldReduceMotion=null,this.shouldSkipAnimations=false,this.values=new Map,this.KeyframeResolver=eR,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=false,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection));},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=Po.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,jn.render(this.render,false,true));};const{latestValues:d,renderState:m}=l;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=i,this.options=u,this.blockInitialAnimation=!!s,this.isControllingVariants=X1(n),this.isVariantNode=wj(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in g){const y=g[b];d[b]!==void 0&&Br(y)&&y.set(d[b]);}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,Fp.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=false:this.reducedMotionConfig==="always"?this.shouldReduceMotion=true:(mR.current||Ej(),this.shouldReduceMotion=Iy.current),this.shouldSkipAnimations=this.skipAnimationsConfig??false,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=true;}unmount(){this.projection&&this.projection.unmount(),cc(this.notifyUpdate),cc(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=false);}this.current=null;}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t);}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t);}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&wye.has(t)&&this.current instanceof HTMLElement){const{factory:s,keyframes:l,times:u,ease:d,duration:m}=n.accelerate,p=new ij({element:this.current,name:t,keyframes:l,times:u,ease:d,duration:ei(m)}),g=s(p);this.valueSubscriptions.set(t,()=>{g(),p.cancel();});return}const r=lm.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&jn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=true),this.scheduleRender();});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop();});}sortNodePosition(t){return !this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Oy){const n=Oy[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=true);}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props);}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):wr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n;}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<W8.length;r++){const o=W8[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s));}this.prevMotionValues=jye(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue();}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get());}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState);}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Lu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(CV(r)||wV(r))?r=parseFloat(r):!Vye(r)&&xs.test(n)&&(r=gj(t,n)),this.setBaseTarget(t,Br(r)?r.get():r)),Br(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n;}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=oR(this.props,n,this.presenceContext?.custom);i&&(r=i[t]);}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Br(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new jA),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n);}scheduleRenderMicrotask(){cR.render(this.render);}}class Tj extends Mj{constructor(){super(...arguments),this.KeyframeResolver=xye;}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t];}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Br(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`);}));}}class Sc{constructor(t){this.isMounted=false,this.node=t;}update(){}}function Aj({top:e,left:t,right:n,bottom:r}){return {x:{min:t,max:n},y:{min:e,max:r}}}function Gye({x:e,y:t}){return {top:t.min,right:e.max,bottom:t.max,left:e.min}}function qye(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return {top:n.y,left:n.x,bottom:r.y,right:r.x}}function zw(e){return e===void 0||e===1}function F3({scale:e,scaleX:t,scaleY:n}){return !zw(e)||!zw(t)||!zw(n)}function eu(e){return F3(e)||Rj(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Rj(e){return G8(e.x)||G8(e.y)}function G8(e){return e&&e!=="0%"}function Dy(e,t,n){const r=e-n,o=t*r;return n+o}function q8(e,t,n,r,o){return o!==void 0&&(e=Dy(e,o,r)),Dy(e,n,r)+t}function H3(e,t=0,n=1,r,o){e.min=q8(e.min,t,n,r,o),e.max=q8(e.max,t,n,r,o);}function Nj(e,{x:t,y:n}){H3(e.x,t.translate,t.scale,t.originPoint),H3(e.y,n.translate,n.scale,n.originPoint);}const K8=.999999999999,Y8=1.0000000000001;function Kye(e,t,n,r=false){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let l=0;l<o;l++){i=n[l],s=i.projectionDelta;const{visualElement:u}=i.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&uf(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Nj(e,s)),r&&eu(i.latestValues)&&uf(e,i.latestValues,i.layout?.layoutBox));}t.x<Y8&&t.x>K8&&(t.x=1),t.y<Y8&&t.y>K8&&(t.y=1);}function cf(e,t){e.min=e.min+t,e.max=e.max+t;}function X8(e,t,n,r,o=.5){const i=tr(e.min,e.max,o);H3(e,t,n,i,r);}function Q8(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function uf(e,t,n){const r=n??e;X8(e.x,Q8(t.x,r.x),t.scaleX,t.scale,t.originX),X8(e.y,Q8(t.y,r.y),t.scaleY,t.scale,t.originY);}function Pj(e,t){return Aj(qye(e.getBoundingClientRect(),t))}function Yye(e,t,n){const r=Pj(e,n),{scroll:o}=t;return o&&(cf(r.x,o.offset.x),cf(r.y,o.offset.y)),r}const Xye={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Qye=am.length;function Zye(e,t,n){let r="",o=true;for(let i=0;i<Qye;i++){const s=am[i],l=e[s];if(l===void 0)continue;let u=true;if(typeof l=="number")u=l===(s.startsWith("scale")?1:0);else {const d=parseFloat(l);u=s.startsWith("scale")?d===1:d===0;}if(!u||n){const d=vj(l,aR[s]);if(!u){o=false;const m=Xye[s]||s;r+=`${m}(${d}) `;}n&&(t[s]=d);}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function hR(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=false,l=false;for(const u in t){const d=t[u];if(lm.has(u)){s=true;continue}else if(FV(u)){o[u]=d;continue}else {const m=vj(d,aR[u]);u.startsWith("origin")?(l=true,i[u]=m):r[u]=m;}}if(t.transform||(s||n?r.transform=Zye(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:u="50%",originY:d="50%",originZ:m=0}=i;r.transformOrigin=`${u} ${d} ${m}`;}}function Ij(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s]);}function Z8(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const yh={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(yt.test(e))e=parseFloat(e);else return e;const n=Z8(e,t.target.x),r=Z8(e,t.target.y);return `${n}% ${r}%`}},Jye={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=xs.parse(e);if(o.length>5)return r;const i=xs.createTransformer(e),s=typeof o[0]!="number"?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;o[0+s]/=l,o[1+s]/=u;const d=tr(l,u,.5);return typeof o[2+s]=="number"&&(o[2+s]/=d),typeof o[3+s]=="number"&&(o[3+s]/=d),i(o)}},V3={borderRadius:{...yh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yh,borderTopRightRadius:yh,borderBottomLeftRadius:yh,borderBottomRightRadius:yh,boxShadow:Jye};function Oj(e,{layout:t,layoutId:n}){return lm.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!V3[e]||e==="opacity")}function pR(e,t,n){const r=e.style,o=t?.style,i={};if(!r)return i;for(const s in r)(Br(r[s])||o&&Br(o[s])||Oj(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}function e1e(e){return window.getComputedStyle(e)}class Dj extends Tj{constructor(){super(...arguments),this.type="html",this.renderInstance=Ij;}readValueFromInstance(t,n){if(lm.has(n))return this.projection?.isProjecting?R3(n):w0e(t,n);{const r=e1e(t),o=(FV(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Pj(t,n)}build(t,n,r){hR(t,n,r.transformTemplate);}scrapeMotionValuesFromProps(t,n,r){return pR(t,n,r)}}function t1e(e,t){return e in t}class n1e extends Mj{constructor(){super(...arguments),this.type="object";}readValueFromInstance(t,n){if(t1e(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t];}measureInstanceViewportBox(){return wr()}build(t,n){Object.assign(t.output,n);}renderInstance(t,{output:n}){Object.assign(t,n);}sortInstanceNodePosition(){return 0}}const r1e={offset:"stroke-dashoffset",array:"stroke-dasharray"},o1e={offset:"strokeDashoffset",array:"strokeDasharray"};function i1e(e,t,n=1,r=0,o=true){e.pathLength=1;const i=o?r1e:o1e;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`;}const s1e=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function _j(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...l},u,d,m){if(hR(e,l,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g}=e;p.transform&&(g.transform=p.transform,delete p.transform),(g.transform||p.transformOrigin)&&(g.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),g.transform&&(g.transformBox=m?.transformBox??"fill-box",delete p.transformBox);for(const b of s1e)p[b]!==void 0&&(g[b]=p[b],delete p[b]);t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),o!==void 0&&i1e(p,o,i,s,false);}const Lj=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Bj=e=>typeof e=="string"&&e.toLowerCase()==="svg";function a1e(e,t,n,r){Ij(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Lj.has(o)?o:iR(o),t.attrs[o]);}function kj(e,t,n){const r=pR(e,t,n);for(const o in e)if(Br(e[o])||Br(t[o])){const i=am.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o];}return r}class zj extends Tj{constructor(){super(...arguments),this.type="svg",this.isSVGTag=false,this.measureInstanceViewportBox=wr;}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(lm.has(n)){const r=pj(n);return r&&r.default||0}return n=Lj.has(n)?n:iR(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return kj(t,n,r)}build(t,n,r){_j(t,n,this.isSVGTag,r.transformTemplate,r.style);}renderInstance(t,n,r,o){a1e(t,n,r,o);}mount(t){this.isSVGTag=Bj(t.tagName),super.mount(t);}}const l1e=fR.length;function Fj(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Fj(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<l1e;n++){const r=fR[n],o=e.props[r];(Hp(o)||o===false)&&(t[r]=o);}return t}function Hj(e,t){if(!Array.isArray(t))return  false;const n=t.length;if(n!==e.length)return  false;for(let r=0;r<n;r++)if(t[r]!==e[r])return  false;return  true}const c1e=[...dR].reverse(),u1e=dR.length;function d1e(e){return t=>Promise.all(t.map(({animation:n,options:r})=>dye(e,n,r)))}function f1e(e){let t=d1e(e),n=J8(),r=true,o=false;const i=d=>(m,p)=>{const g=wu(e,p,d==="exit"?e.presenceContext?.custom:void 0);if(g){const{transition:b,transitionEnd:y,...S}=g;m={...m,...S,...y};}return m};function s(d){t=d(e);}function l(d){const{props:m}=e,p=Fj(e.parent)||{},g=[],b=new Set;let y={},S=1/0;for(let w=0;w<u1e;w++){const E=c1e[w],M=n[E],T=m[E]!==void 0?m[E]:p[E],A=Hp(T),I=E===d?M.isActive:null;I===false&&(S=w);let N=T===p[E]&&T!==m[E]&&A;if(N&&(r||o)&&e.manuallyAnimateOnMount&&(N=false),M.protectedKeys={...y},!M.isActive&&I===null||!T&&!M.prevProp||Y1(T)||typeof T=="boolean")continue;if(E==="exit"&&M.isActive&&I!==true){M.prevResolvedValues&&(y={...y,...M.prevResolvedValues});continue}const P=m1e(M.prevProp,T);let O=P||E===d&&M.isActive&&!N&&A||w>S&&A,D=false;const L=Array.isArray(T)?T:[T];let F=L.reduce(i(E),{});I===false&&(F={});const{prevResolvedValues:U={}}=M,W={...U,...F},z=j=>{O=true,b.has(j)&&(D=true,b.delete(j)),M.needsAnimating[j]=true;const K=e.getValue(j);K&&(K.liveStyle=false);};for(const j in W){const K=F[j],Q=U[j];if(y.hasOwnProperty(j))continue;let _=false;_3(K)&&_3(Q)?_=!Hj(K,Q):_=K!==Q,_?K!=null?z(j):b.add(j):K!==void 0&&b.has(j)?z(j):M.protectedKeys[j]=true;}M.prevProp=T,M.prevResolvedValues=F,M.isActive&&(y={...y,...F}),(r||o)&&e.blockInitialAnimation&&(O=false);const k=N&&P;O&&(!k||D)&&g.push(...L.map(j=>{const K={type:E};if(typeof j=="string"&&(r||o)&&!k&&e.manuallyAnimateOnMount&&e.parent){const{parent:Q}=e,_=wu(Q,j);if(Q.enteringChildren&&_){const{delayChildren:B}=_.transition||{};K.delay=aj(Q.enteringChildren,e,B);}}return {animation:j,options:K}}));}if(b.size){const w={};if(typeof m.initial!="boolean"){const E=wu(e,Array.isArray(m.initial)?m.initial[0]:m.initial);E&&E.transition&&(w.transition=E.transition);}b.forEach(E=>{const M=e.getBaseTarget(E),T=e.getValue(E);T&&(T.liveStyle=true),w[E]=M??null;}),g.push({animation:w});}let C=!!g.length;return r&&(m.initial===false||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(C=false),r=false,o=false,C?t(g):Promise.resolve()}function u(d,m){if(n[d].isActive===m)return Promise.resolve();e.variantChildren?.forEach(g=>g.animationState?.setActive(d,m)),n[d].isActive=m;const p=l(d);for(const g in n)n[g].protectedKeys={};return p}return {animateChanges:l,setActive:u,setAnimateFunction:s,getState:()=>n,reset:()=>{n=J8(),o=true;}}}function m1e(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Hj(t,e):false}function Kc(e=false){return {isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function J8(){return {animate:Kc(true),whileInView:Kc(),whileHover:Kc(),whileTap:Kc(),whileDrag:Kc(),whileFocus:Kc(),exit:Kc()}}function j3(e,t){e.min=t.min,e.max=t.max;}function ls(e,t){j3(e.x,t.x),j3(e.y,t.y);}function e_(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin;}const Vj=1e-4,h1e=1-Vj,p1e=1+Vj,jj=.01,g1e=0-jj,v1e=0+jj;function Io(e){return e.max-e.min}function b1e(e,t,n){return Math.abs(e-t)<=n}function t_(e,t,n,r=.5){e.origin=r,e.originPoint=tr(t.min,t.max,e.origin),e.scale=Io(n)/Io(t),e.translate=tr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=h1e&&e.scale<=p1e||isNaN(e.scale))&&(e.scale=1),(e.translate>=g1e&&e.translate<=v1e||isNaN(e.translate))&&(e.translate=0);}function np(e,t,n,r){t_(e.x,t.x,n.x,r?r.originX:void 0),t_(e.y,t.y,n.y,r?r.originY:void 0);}function n_(e,t,n){e.min=n.min+t.min,e.max=e.min+Io(t);}function y1e(e,t,n){n_(e.x,t.x,n.x),n_(e.y,t.y,n.y);}function r_(e,t,n){e.min=t.min-n.min,e.max=e.min+Io(t);}function _y(e,t,n){r_(e.x,t.x,n.x),r_(e.y,t.y,n.y);}function o_(e,t,n,r,o){return e-=t,e=Dy(e,1/n,r),o!==void 0&&(e=Dy(e,1/o,r)),e}function S1e(e,t=0,n=1,r=.5,o,i=e,s=e){if(ta.test(t)&&(t=parseFloat(t),t=tr(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=tr(i.min,i.max,r);e===i&&(l-=t),e.min=o_(e.min,t,n,l,o),e.max=o_(e.max,t,n,l,o);}function i_(e,t,[n,r,o],i,s){S1e(e,t[n],t[r],t[o],t.scale,i,s);}const C1e=["x","scaleX","originX"],x1e=["y","scaleY","originY"];function s_(e,t,n,r){i_(e.x,t,C1e,n?n.x:void 0,r?r.x:void 0),i_(e.y,t,x1e,n?n.y:void 0,r?r.y:void 0);}function a_(e){return e.translate===0&&e.scale===1}function Uj(e){return a_(e.x)&&a_(e.y)}function l_(e,t){return e.min===t.min&&e.max===t.max}function w1e(e,t){return l_(e.x,t.x)&&l_(e.y,t.y)}function c_(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Wj(e,t){return c_(e.x,t.x)&&c_(e.y,t.y)}function u_(e){return Io(e.x)/Io(e.y)}function d_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Vs(e){return [e("x"),e("y")]}function E1e(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:m,rotateX:p,rotateY:g,skewX:b,skewY:y}=n;d&&(r=`perspective(${d}px) ${r}`),m&&(r+=`rotate(${m}deg) `),p&&(r+=`rotateX(${p}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),y&&(r+=`skewY(${y}deg) `);}const l=e.x.scale*t.x,u=e.y.scale*t.y;return (l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const Gj=["TopLeft","TopRight","BottomLeft","BottomRight"],$1e=Gj.length,f_=e=>typeof e=="string"?parseFloat(e):e,m_=e=>typeof e=="number"||yt.test(e);function M1e(e,t,n,r,o,i){o?(e.opacity=tr(0,n.opacity??1,T1e(r)),e.opacityExit=tr(t.opacity??1,0,A1e(r))):i&&(e.opacity=tr(t.opacity??1,n.opacity??1,r));for(let s=0;s<$1e;s++){const l=`border${Gj[s]}Radius`;let u=h_(t,l),d=h_(n,l);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||m_(u)===m_(d)?(e[l]=Math.max(tr(f_(u),f_(d),r),0),(ta.test(d)||ta.test(u))&&(e[l]+="%")):e[l]=d;}(t.rotate||n.rotate)&&(e.rotate=tr(t.rotate||0,n.rotate||0,r));}function h_(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const T1e=qj(0,.5,IV),A1e=qj(.5,.95,Qi);function qj(e,t,n){return r=>r<e?0:r>t?1:n(_f(e,t,r))}function Kj(e,t,n){const r=Br(e)?e:Lu(e);return r.start(rR("",r,t,n)),r.animation}function Vp(e,t,n,r={passive:true}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const R1e=(e,t)=>e.depth-t.depth;class N1e{constructor(){this.children=[],this.isDirty=false;}add(t){HA(this.children,t),this.isDirty=true;}remove(t){Df(this.children,t),this.isDirty=true;}forEach(t){this.isDirty&&this.children.sort(R1e),this.isDirty=false,this.children.forEach(t);}}function P1e(e,t){const n=Po.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(cc(r),e(i-t));};return jn.setup(r,true),()=>cc(r)}function M0(e){return Br(e)?e.get():e}class I1e{constructor(){this.members=[];}add(t){HA(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const o=r.instance;(!o||o.isConnected===false)&&!r.snapshot&&(Df(this.members,r),r.unmount());}t.scheduleRender();}remove(t){if(Df(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n);}}relegate(t){for(let n=this.members.indexOf(t)-1;n>=0;n--){const r=this.members[n];if(r.isPresent!==false&&r.instance?.isConnected!==false)return this.promote(r),true}return  false}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=r.options,{layoutDependency:i}=t.options;(o===void 0||o!==i)&&(t.resumeFrom=r,n&&(r.preserveOpacity=true),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=true)),t.options.crossfade===false&&r.hide();}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.();});}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(false));}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0);}}const T0={hasAnimatedSinceResize:true,hasEverUpdated:false},Fw=["","X","Y","Z"],O1e=1e3;let D1e=0;function Hw(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0));}function Yj(e){if(e.hasCheckedOptimisedAppear=true,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=fj(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",jn,!(o||i));}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Yj(r);}function Xj({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},l=t?.()){this.id=D1e++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=false,this.isAnimationBlocked=false,this.isLayoutDirty=false,this.isProjectionDirty=false,this.isSharedProjectionDirty=false,this.isTransformDirty=false,this.updateManuallyBlocked=false,this.updateBlockedByResize=false,this.isUpdating=false,this.isSVG=false,this.needsReset=false,this.shouldResetTransform=false,this.hasCheckedOptimisedAppear=false,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=false,this.layoutVersion=0,this.updateScheduled=false,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=false,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=false,this.clearAllSnapshots());},this.updateProjection=()=>{this.projectionUpdateScheduled=false,this.nodes.forEach(B1e),this.nodes.forEach(H1e),this.nodes.forEach(V1e),this.nodes.forEach(k1e);},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=false,this.isVisible=true,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=true;this.root===this&&(this.nodes=new N1e);}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new jA),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const u=this.eventHandlers.get(s);u&&u.notify(...l);}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=K1(s)&&!xj(s),this.instance=s;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||l)&&(this.isLayoutDirty=true),e){let m,p=0;const g=()=>this.root.updateBlockedByResize=false;jn.read(()=>{p=window.innerWidth;}),e(s,()=>{const b=window.innerWidth;b!==p&&(p=b,this.root.updateBlockedByResize=true,m&&m(),m=P1e(g,250),T0.hasAnimatedSinceResize&&(T0.hasAnimatedSinceResize=false,this.nodes.forEach(v_)));});}l&&this.root.registerSharedNode(l,this),this.options.animate!==false&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||d.getDefaultTransition()||q1e,{onLayoutAnimationStart:S,onLayoutAnimationComplete:C}=d.getProps(),w=!this.targetLayout||!Wj(this.targetLayout,b),E=!p&&g;if(this.options.layoutRoot||this.resumeFrom||E||p&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const M={...nR(y,"layout"),onPlay:S,onComplete:C};(d.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=false),this.startAnimation(M),this.setAnimationOrigin(m,E);}else p||v_(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b;});}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),cc(this.updateProjection);}blockUpdate(){this.updateManuallyBlocked=true;}unblockUpdate(){this.updateManuallyBlocked=false;}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||false}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=true,this.nodes&&this.nodes.forEach(j1e),this.animationId++);}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=true){if(this.root.hasTreeAnimated=true,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Yj(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=true;for(let m=0;m<this.path.length;m++){const p=this.path[m];p.shouldResetTransform=true,(typeof p.latestValues.x=="string"||typeof p.latestValues.y=="string")&&(p.isLayoutDirty=true),p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(false);}const{layoutId:l,layout:u}=this.options;if(l===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate");}update(){if(this.updateScheduled=false,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(p_);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(g_);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=false,this.nodes.forEach(F1e),this.nodes.forEach(_1e),this.nodes.forEach(L1e)):this.nodes.forEach(g_),this.clearAllSnapshots();const l=Po.now();oo.delta=oa(0,1e3/60,l-oo.timestamp),oo.timestamp=l,oo.isProcessing=true,Iw.update.process(oo),Iw.preRender.process(oo),Iw.render.process(oo),oo.isProcessing=false;}didUpdate(){this.updateScheduled||(this.updateScheduled=true,cR.read(this.scheduleUpdate));}clearAllSnapshots(){this.nodes.forEach(z1e),this.sharedNodes.forEach(U1e);}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=true,jn.preRender(this.updateProjection,false,true));}scheduleCheckAfterUnmount(){jn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed();});}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Io(this.snapshot.measuredBox.x)&&!Io(this.snapshot.measuredBox.y)&&(this.snapshot=void 0));}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const s=this.layout;this.layout=this.measure(false),this.layoutVersion++,this.layoutCorrected=wr(),this.isLayoutDirty=false,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0);}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=false),l&&this.instance){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u};}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Uj(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,m=d!==this.prevTransformTemplateValue;s&&this.instance&&(l||eu(this.latestValues)||m)&&(o(this.instance,d),this.shouldResetTransform=false,this.scheduleRender());}measure(s=true){const l=this.measurePageBox();let u=this.removeElementScroll(l);return s&&(u=this.removeTransform(u)),K1e(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return wr();const l=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Y1e))){const{scroll:d}=this.root;d&&(cf(l.x,d.offset.x),cf(l.y,d.offset.y));}return l}removeElementScroll(s){const l=wr();if(ls(l,s),this.scroll?.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:m,options:p}=d;d!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&ls(l,s),cf(l.x,m.offset.x),cf(l.y,m.offset.y));}return l}applyTransform(s,l=false){const u=wr();ls(u,s);for(let d=0;d<this.path.length;d++){const m=this.path[d];!l&&m.options.layoutScroll&&m.scroll&&m!==m.root&&uf(u,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),eu(m.latestValues)&&uf(u,m.latestValues,m.layout?.layoutBox);}return eu(this.latestValues)&&uf(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(s){const l=wr();ls(l,s);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!eu(d.latestValues))continue;let m;d.instance&&(F3(d.latestValues)&&d.updateSnapshot(),m=wr(),ls(m,d.measurePageBox())),s_(l,d.latestValues,d.snapshot?.layoutBox,m);}return eu(this.latestValues)&&s_(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=true;}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:true};}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=false;}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==oo.timestamp&&this.relativeParent.resolveTargetDelta(true);}resolveTargetDelta(s=false){const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!this.layout||!(m||p))return;this.resolvedRelativeTargetAt=oo.timestamp;const g=this.getClosestProjectingParent();g&&this.linkedParentVersion!==g.layoutVersion&&!g.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(g&&g.layout?this.createRelativeTarget(g,this.layout.layoutBox,g.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=wr(),this.targetWithTransforms=wr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),y1e(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ls(this.target,this.layout.layoutBox),Nj(this.target,this.targetDelta)):ls(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=false,g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?this.createRelativeTarget(g,this.target,g.target):this.relativeParent=this.relativeTarget=void 0));}getClosestProjectingParent(){if(!(!this.parent||F3(this.parent.latestValues)||Rj(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return !!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,l,u){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=wr(),this.relativeTargetOrigin=wr(),_y(this.relativeTargetOrigin,l,u),ls(this.relativeTarget,this.relativeTargetOrigin);}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0;}calcProjection(){const s=this.getLead(),l=!!this.resumingFrom||this!==s;let u=true;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=false),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=false),this.resolvedRelativeTargetAt===oo.timestamp&&(u=false),u)return;const{layout:d,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||m))return;ls(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,g=this.treeScale.y;Kye(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=wr());const{target:b}=s;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(e_(this.prevProjectionDelta.x,this.projectionDelta.x),e_(this.prevProjectionDelta.y,this.projectionDelta.y)),np(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==g||!d_(this.projectionDelta.x,this.prevProjectionDelta.x)||!d_(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=true,this.scheduleRender(),this.notifyListeners("projectionUpdate",b));}hide(){this.isVisible=false;}show(){this.isVisible=true;}scheduleRender(s=true){if(this.options.visualElement?.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender();}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0);}createProjectionDeltas(){this.prevProjectionDelta=lf(),this.projectionDelta=lf(),this.projectionDeltaWithTransform=lf();}setAnimationOrigin(s,l=false){const u=this.snapshot,d=u?u.latestValues:{},m={...this.latestValues},p=lf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const g=wr(),b=u?u.source:void 0,y=this.layout?this.layout.source:void 0,S=b!==y,C=this.getStack(),w=!C||C.members.length<=1,E=!!(S&&!w&&this.options.crossfade===true&&!this.path.some(G1e));this.animationProgress=0;let M;this.mixTargetDelta=T=>{const A=T/1e3;b_(p.x,s.x,A),b_(p.y,s.y,A),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_y(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),W1e(this.relativeTarget,this.relativeTargetOrigin,g,A),M&&w1e(this.relativeTarget,M)&&(this.isProjectionDirty=false),M||(M=wr()),ls(M,this.relativeTarget)),S&&(this.animationValues=m,M1e(m,d,this.latestValues,A,E,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A;},this.mixTargetDelta(this.options.layoutRoot?1e3:0);}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(cc(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jn.update(()=>{T0.hasAnimatedSinceResize=true,this.motionValue||(this.motionValue=Lu(0)),this.motionValue.jump(0,false),this.currentAnimation=Kj(this.motionValue,[0,1e3],{...s,velocity:0,isSync:true,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l);},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation();}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0;});}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete");}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(O1e),this.currentAnimation.stop()),this.completeAnimation();}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:u,layout:d,latestValues:m}=s;if(!(!l||!u||!d)){if(this!==s&&this.layout&&d&&Qj(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||wr();const p=Io(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+p;const g=Io(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+g;}ls(l,u),uf(l,m),np(this.projectionDeltaWithTransform,this.layoutCorrected,l,m);}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new I1e),this.sharedNodes.get(s).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0});}isLead(){const s=this.getStack();return s?s.lead===this:true}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=true),l&&this.setOptions({transition:l});}relegate(){const s=this.getStack();return s?s.relegate(this):false}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let l=false;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=true),!l)return;const d={};u.z&&Hw("z",s,d,this.animationValues);for(let m=0;m<Fw.length;m++)Hw(`rotate${Fw[m]}`,s,d,this.animationValues),Hw(`skew${Fw[m]}`,s,d,this.animationValues);s.render();for(const m in d)s.setStaticValue(m,d[m]),this.animationValues&&(this.animationValues[m]=d[m]);s.scheduleRender();}applyProjectionStyles(s,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=false,s.visibility="",s.opacity="",s.pointerEvents=M0(l?.pointerEvents)||"",s.transform=u?u(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=M0(l?.pointerEvents)||""),this.hasProjected&&!eu(this.latestValues)&&(s.transform=u?u({},""):"none",this.hasProjected=false);return}s.visibility="";const m=d.animationValues||d.latestValues;this.applyTransformsToTarget();let p=E1e(this.projectionDeltaWithTransform,this.treeScale,m);u&&(p=u(m,p)),s.transform=p;const{x:g,y:b}=this.projectionDelta;s.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,d.animationValues?s.opacity=d===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:s.opacity=d===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const y in V3){if(m[y]===void 0)continue;const{correct:S,applyTo:C,isCSSVariable:w}=V3[y],E=p==="none"?m[y]:S(m[y],d);if(C){const M=C.length;for(let T=0;T<M;T++)s[C[T]]=E;}else w?this.options.visualElement.renderState.vars[y]=E:s[y]=E;}this.options.layoutId&&(s.pointerEvents=d===this?M0(l?.pointerEvents)||"":"none");}clearSnapshot(){this.resumeFrom=this.snapshot=void 0;}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(p_),this.root.sharedNodes.clear();}}}function _1e(e){e.updateLayout();}function L1e(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;if(o==="size")Vs(m=>{const p=i?t.measuredBox[m]:t.layoutBox[m],g=Io(p);p.min=n[m].min,p.max=p.min+g;});else if(o==="x"||o==="y"){const m=o==="x"?"y":"x";j3(i?t.measuredBox[m]:t.layoutBox[m],n[m]);}else Qj(o,t.layoutBox,n)&&Vs(m=>{const p=i?t.measuredBox[m]:t.layoutBox[m],g=Io(n[m]);p.max=p.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=true,e.relativeTarget[m].max=e.relativeTarget[m].min+g);});const s=lf();np(s,n,t.layoutBox);const l=lf();i?np(l,e.applyTransform(r,true),t.measuredBox):np(l,n,t.layoutBox);const u=!Uj(s);let d=false;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:g}=m;if(p&&g){const b=wr();_y(b,t.layoutBox,p.layoutBox);const y=wr();_y(y,n,g.layoutBox),Wj(b,y)||(d=true),m.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=b,e.relativeParent=m);}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:d});}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n();}e.options.transition=void 0;}function B1e(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty));}function k1e(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=false;}function z1e(e){e.clearSnapshot();}function p_(e){e.clearMeasurements();}function g_(e){e.isLayoutDirty=false;}function F1e(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform();}function v_(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=true;}function H1e(e){e.resolveTargetDelta();}function V1e(e){e.calcProjection();}function j1e(e){e.resetSkewAndRotation();}function U1e(e){e.removeLeadSnapshot();}function b_(e,t,n){e.translate=tr(t.translate,0,n),e.scale=tr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint;}function y_(e,t,n,r){e.min=tr(t.min,n.min,r),e.max=tr(t.max,n.max,r);}function W1e(e,t,n,r){y_(e.x,t.x,n.x,r),y_(e.y,t.y,n.y,r);}function G1e(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const q1e={duration:.45,ease:[.4,0,.1,1]},S_=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),C_=S_("applewebkit/")&&!S_("chrome/")?Math.round:Qi;function x_(e){e.min=C_(e.min),e.max=C_(e.max);}function K1e(e){x_(e.x),x_(e.y);}function Qj(e,t,n){return e==="position"||e==="preserve-aspect"&&!b1e(u_(t),u_(n),.2)}function Y1e(e){return e!==e.root&&e.scroll?.wasRoot}const X1e=Xj({attachResizeListener:(e,t)=>Vp(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>true}),Vw={current:void 0},Zj=Xj({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Vw.current){const e=new X1e({});e.mount(window),e.setOptions({layoutScroll:true}),Vw.current=e;}return Vw.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none";},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Q1=f.createContext({transformPagePoint:e=>e,isStatic:false,reducedMotion:"never"});function w_(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t);}function Q1e(...e){return t=>{let n=false;const r=e.map(o=>{const i=w_(o,t);return !n&&typeof i=="function"&&(n=true),i});if(n)return ()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():w_(e[o],null);}}}}function Z1e(...e){return f.useCallback(Q1e(...e),e)}class J1e extends f.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(C0(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==false){const r=n.offsetParent,o=C0(r)&&r.offsetWidth||0,i=C0(r)&&r.offsetHeight||0,s=getComputedStyle(n),l=this.props.sizeRef.current;l.height=parseFloat(s.height),l.width=parseFloat(s.width),l.top=n.offsetTop,l.left=n.offsetLeft,l.right=o-l.width-l.left,l.bottom=i-l.height-l.top;}return null}componentDidUpdate(){}render(){return this.props.children}}function eSe({children:e,isPresent:t,anchorX:n,anchorY:r,root:o,pop:i}){const s=f.useId(),l=f.useRef(null),u=f.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:d}=f.useContext(Q1),m=e.props?.ref??e?.ref,p=Z1e(l,m);return f.useInsertionEffect(()=>{const{width:g,height:b,top:y,left:S,right:C,bottom:w}=u.current;if(t||i===false||!l.current||!g||!b)return;const E=n==="left"?`left: ${S}`:`right: ${C}`,M=r==="bottom"?`bottom: ${w}`:`top: ${y}`;l.current.dataset.motionPopId=s;const T=document.createElement("style");d&&(T.nonce=d);const A=o??document.head;return A.appendChild(T),T.sheet&&T.sheet.insertRule(`
          [data-motion-pop-id="${s}"] {
            position: absolute !important;
            width: ${g}px !important;
            height: ${b}px !important;
            ${E}px !important;
            ${M}px !important;
          }
        `),()=>{l.current?.removeAttribute("data-motion-pop-id"),A.contains(T)&&A.removeChild(T);}},[t]),Jo.jsx(J1e,{isPresent:t,childRef:l,sizeRef:u,pop:i,children:i===false?e:f.cloneElement(e,{ref:p})})}const tSe=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:l,anchorY:u,root:d})=>{const m=G1(nSe),p=f.useId();let g=true,b=f.useMemo(()=>(g=false,{id:p,initial:t,isPresent:n,custom:o,onExitComplete:y=>{m.set(y,true);for(const S of m.values())if(!S)return;r&&r();},register:y=>(m.set(y,false),()=>m.delete(y))}),[n,m,r]);return i&&g&&(b={...b}),f.useMemo(()=>{m.forEach((y,S)=>m.set(S,false));},[n]),f.useEffect(()=>{!n&&!m.size&&r&&r();},[n]),e=Jo.jsx(eSe,{pop:s==="popLayout",isPresent:n,anchorX:l,anchorY:u,root:d,children:e}),Jo.jsx(q1.Provider,{value:b,children:e})};function nSe(){return new Map}function Jj(e=true){const t=f.useContext(q1);if(t===null)return [true,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=f.useId();f.useEffect(()=>{if(e)return o(i)},[e]);const s=f.useCallback(()=>e&&r&&r(i),[i,r,e]);return !n&&r?[false,s]:[true]}const Bb=e=>e.key||"";function E_(e){const t=[];return f.Children.forEach(e,n=>{f.isValidElement(n)&&t.push(n);}),t}const rSe=({children:e,custom:t,initial:n=true,onExitComplete:r,presenceAffectsLayout:o=true,mode:i="sync",propagate:s=false,anchorX:l="left",anchorY:u="top",root:d})=>{const[m,p]=Jj(s),g=f.useMemo(()=>E_(e),[e]),b=s&&!m?[]:g.map(Bb),y=f.useRef(true),S=f.useRef(g),C=G1(()=>new Map),w=f.useRef(new Set),[E,M]=f.useState(g),[T,A]=f.useState(g);SV(()=>{y.current=false,S.current=g;for(let P=0;P<T.length;P++){const O=Bb(T[P]);b.includes(O)?(C.delete(O),w.current.delete(O)):C.get(O)!==true&&C.set(O,false);}},[T,b.length,b.join("-")]);const I=[];if(g!==E){let P=[...g];for(let O=0;O<T.length;O++){const D=T[O],L=Bb(D);b.includes(L)||(P.splice(O,0,D),I.push(D));}return i==="wait"&&I.length&&(P=I),A(E_(P)),M(g),null}const{forceRender:N}=f.useContext(FA);return Jo.jsx(Jo.Fragment,{children:T.map(P=>{const O=Bb(P),D=s&&!m?false:g===T||b.includes(O),L=()=>{if(w.current.has(O))return;if(C.has(O))w.current.add(O),C.set(O,true);else return;let F=true;C.forEach(U=>{U||(F=false);}),F&&(N?.(),A(S.current),s&&p?.(),r&&r());};return Jo.jsx(tSe,{isPresent:D,initial:!y.current||n?void 0:false,custom:t,presenceAffectsLayout:o,mode:i,root:d,onExitComplete:D?void 0:L,anchorX:l,anchorY:u,children:P},O)})})},eU=f.createContext({strict:false}),$_={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let M_=false;function oSe(){if(M_)return;const e={};for(const t in $_)e[t]={isEnabled:n=>$_[t].some(r=>!!n[r])};$j(e),M_=true;}function tU(){return oSe(),Wye()}function iSe(e){const t=tU();for(const n in e)t[n]={...t[n],...e[n]};$j(t);}const sSe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Ly(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||sSe.has(e)}let nU=e=>!Ly(e);function aSe(e){typeof e=="function"&&(nU=t=>t.startsWith("on")?!Ly(t):e(t));}try{aSe(require("@emotion/is-prop-valid").default);}catch{}function lSe(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||Br(e[o])||(nU(o)||n===true&&Ly(o)||!t&&!Ly(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Z1=f.createContext({});function cSe(e,t){if(X1(e)){const{initial:n,animate:r}=e;return {initial:n===false||Hp(n)?n:void 0,animate:Hp(r)?r:void 0}}return e.inherit!==false?t:{}}function uSe(e){const{initial:t,animate:n}=cSe(e,f.useContext(Z1));return f.useMemo(()=>({initial:t,animate:n}),[T_(t),T_(n)])}function T_(e){return Array.isArray(e)?e.join(" "):e}const gR=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rU(e,t,n){for(const r in t)!Br(t[r])&&!Oj(r,n)&&(e[r]=t[r]);}function dSe({transformTemplate:e},t){return f.useMemo(()=>{const n=gR();return hR(n,t,e),Object.assign({},n.vars,n.style)},[t])}function fSe(e,t){const n=e.style||{},r={};return rU(r,n,e),Object.assign(r,dSe(e,t)),r}function mSe(e,t){const n={},r=fSe(e,t);return e.drag&&e.dragListener!==false&&(n.draggable=false,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===true?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const oU=()=>({...gR(),attrs:{}});function hSe(e,t,n,r){const o=f.useMemo(()=>{const i=oU();return _j(i,t,Bj(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};rU(i,e.style,e),o.style={...i,...o.style};}return o}const pSe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function vR(e){return typeof e!="string"||e.includes("-")?false:!!(pSe.indexOf(e)>-1||/[A-Z]/u.test(e))}function gSe(e,t,n,{latestValues:r},o,i=false,s){const u=(s??vR(e)?hSe:mSe)(t,r,o,e),d=lSe(t,typeof e=="string",i),m=e!==f.Fragment?{...d,...u,ref:n}:{},{children:p}=t,g=f.useMemo(()=>Br(p)?p.get():p,[p]);return f.createElement(e,{...m,children:g})}function vSe({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return {latestValues:bSe(n,r,o,e),renderState:t()}}function bSe(e,t,n,r){const o={},i=r(e,{});for(const g in i)o[g]=M0(i[g]);let{initial:s,animate:l}=e;const u=X1(e),d=wj(e);t&&d&&!u&&e.inherit!==false&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let m=n?n.initial===false:false;m=m||s===false;const p=m?l:s;if(p&&typeof p!="boolean"&&!Y1(p)){const g=Array.isArray(p)?p:[p];for(let b=0;b<g.length;b++){const y=oR(e,g[b]);if(y){const{transitionEnd:S,transition:C,...w}=y;for(const E in w){let M=w[E];if(Array.isArray(M)){const T=m?M.length-1:0;M=M[T];}M!==null&&(o[E]=M);}for(const E in S)o[E]=S[E];}}}return o}const iU=e=>(t,n)=>{const r=f.useContext(Z1),o=f.useContext(q1),i=()=>vSe(e,t,r,o);return n?i():G1(i)},ySe=iU({scrapeMotionValuesFromProps:pR,createRenderState:gR}),SSe=iU({scrapeMotionValuesFromProps:kj,createRenderState:oU}),CSe=Symbol.for("motionComponentSymbol");function xSe(e,t,n){const r=f.useRef(n);f.useInsertionEffect(()=>{r.current=n;});const o=f.useRef(null);return f.useCallback(i=>{i&&e.onMount?.(i);const s=r.current;if(typeof s=="function")if(i){const l=s(i);typeof l=="function"&&(o.current=l);}else o.current?(o.current(),o.current=null):s(i);else s&&(s.current=i);t&&(i?t.mount(i):t.unmount());},[t])}const sU=f.createContext({});function Qd(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wSe(e,t,n,r,o,i){const{visualElement:s}=f.useContext(Z1),l=f.useContext(eU),u=f.useContext(q1),d=f.useContext(Q1),m=d.reducedMotion,p=d.skipAnimations,g=f.useRef(null),b=f.useRef(false);r=r||l.renderer,!g.current&&r&&(g.current=r(e,{visualState:t,parent:s,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===false:false,reducedMotionConfig:m,skipAnimations:p,isSVG:i}),b.current&&g.current&&(g.current.manuallyAnimateOnMount=true));const y=g.current,S=f.useContext(sU);y&&!y.projection&&o&&(y.type==="html"||y.type==="svg")&&ESe(g.current,n,o,S);const C=f.useRef(false);f.useInsertionEffect(()=>{y&&C.current&&y.update(n,u);});const w=n[dj],E=f.useRef(!!w&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return SV(()=>{b.current=true,y&&(C.current=true,window.MotionIsMounted=true,y.updateFeatures(),y.scheduleRenderMicrotask(),E.current&&y.animationState&&y.animationState.animateChanges());}),f.useEffect(()=>{y&&(!E.current&&y.animationState&&y.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w);}),E.current=false),y.enteringChildren=void 0);}),y}function ESe(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:l,layoutScroll:u,layoutRoot:d,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:aU(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||l&&Qd(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:m,layoutScroll:u,layoutRoot:d});}function aU(e){if(e)return e.options.allowProjection!==false?e.projection:aU(e.parent)}function jw(e,{forwardMotionProps:t=false,type:n}={},r,o){r&&iSe(r);const i=n?n==="svg":vR(e),s=i?SSe:ySe;function l(d,m){let p;const g={...f.useContext(Q1),...d,layoutId:$Se(d)},{isStatic:b}=g,y=uSe(d),S=s(d,b);if(!b&&typeof window<"u"){MSe();const C=TSe(g);p=C.MeasureLayout,y.visualElement=wSe(e,S,g,o,C.ProjectionNode,i);}return Jo.jsxs(Z1.Provider,{value:y,children:[p&&y.visualElement?Jo.jsx(p,{visualElement:y.visualElement,...g}):null,gSe(e,d,xSe(S,y.visualElement,m),S,b,t,i)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=f.forwardRef(l);return u[CSe]=e,u}function $Se({layoutId:e}){const t=f.useContext(FA).id;return t&&e!==void 0?t+"-"+e:e}function MSe(e,t){f.useContext(eU).strict;}function TSe(e){const t=tU(),{drag:n,layout:r}=t;if(!n&&!r)return {};const o={...n,...r};return {MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function ASe(e,t){if(typeof Proxy>"u")return jw;const n=new Map,r=(i,s)=>jw(i,s,e,t),o=(i,s)=>r(i,s);return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,jw(s,void 0,e,t)),n.get(s))})}const RSe=(e,t)=>t.isSVG??vR(e)?new zj(t):new Dj(t,{allowProjection:e!==f.Fragment});class NSe extends Sc{constructor(t){super(t),t.animationState||(t.animationState=f1e(t));}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Y1(t)&&(this.unmountControls=t.subscribe(this.node));}mount(){this.updateAnimationControlsSubscription();}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription();}unmount(){this.node.animationState.reset(),this.unmountControls?.();}}let PSe=0;class ISe extends Sc{constructor(){super(...arguments),this.id=PSe++,this.isExitComplete=false;}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===false){if(this.isExitComplete){const{initial:i,custom:s}=this.node.getProps();if(typeof i=="string"){const l=wu(this.node,i,s);if(l){const{transition:u,transitionEnd:d,...m}=l;for(const p in m)this.node.getValue(p)?.jump(m[p]);}}this.node.animationState.reset(),this.node.animationState.animateChanges();}else this.node.animationState.setActive("exit",false);this.isExitComplete=false;return}const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{this.isExitComplete=true,n(this.id);});}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id));}unmount(){}}const OSe={animation:{Feature:NSe},exit:{Feature:ISe}};function Rg(e){return {point:{x:e.pageX,y:e.pageY}}}const DSe=e=>t=>uR(t)&&e(t,Rg(t));function rp(e,t,n,r){return Vp(e,t,DSe(n),r)}const lU=({current:e})=>e?e.ownerDocument.defaultView:null,A_=(e,t)=>Math.abs(e-t);function _Se(e,t){const n=A_(e.x,t.x),r=A_(e.y,t.y);return Math.sqrt(n**2+r**2)}const R_=new Set(["auto","scroll"]);class cU{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=false,distanceThreshold:s=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=b=>{this.handleScroll(b.target);},this.onWindowScroll=()=>{this.handleScroll(window);},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=kb(this.lastRawMoveEventInfo,this.transformPagePoint));const b=Uw(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,S=_Se(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!S)return;const{point:C}=b,{timestamp:w}=oo;this.history.push({...C,timestamp:w});const{onStart:E,onMove:M}=this.handlers;y||(E&&E(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,b);},this.handlePointerMove=(b,y)=>{this.lastMoveEvent=b,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=kb(y,this.transformPagePoint),jn.update(this.updatePoint,true);},this.handlePointerUp=(b,y)=>{this.end();const{onEnd:S,onSessionEnd:C,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=Uw(b.type==="pointercancel"?this.lastMoveEventInfo:kb(y,this.transformPagePoint),this.history);this.startEvent&&S&&S(b,E),C&&C(b,E);},!uR(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const u=Rg(t),d=kb(u,this.transformPagePoint),{point:m}=d,{timestamp:p}=oo;this.history=[{...m,timestamp:p}];const{onSessionStart:g}=n;g&&g(t,Uw(d,this.history)),this.removeListeners=Mg(rp(this.contextWindow,"pointermove",this.handlePointerMove),rp(this.contextWindow,"pointerup",this.handlePointerUp),rp(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l);}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(R_.has(r.overflowX)||R_.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement;}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:true}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:true}),window.removeEventListener("scroll",this.onWindowScroll);};}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-n.x,y:o.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),jn.update(this.updatePoint,true));}updateHandlers(t){this.handlers=t;}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),cc(this.updatePoint);}}function kb(e,t){return t?{point:t(e.point)}:e}function N_(e,t){return {x:e.x-t.x,y:e.y-t.y}}function Uw({point:e},t){return {point:e,delta:N_(e,uU(t)),offset:N_(e,LSe(t)),velocity:BSe(t,.1)}}function LSe(e){return e[0]}function uU(e){return e[e.length-1]}function BSe(e,t){if(e.length<2)return {x:0,y:0};let n=e.length-1,r=null;const o=uU(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ei(t)));)n--;if(!r)return {x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>ei(t)*2&&(r=e[1]);const i=Yi(o.timestamp-r.timestamp);if(i===0)return {x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function kSe(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tr(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tr(n,e,r.max):Math.min(e,n)),e}function P_(e,t,n){return {min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function zSe(e,{top:t,left:n,bottom:r,right:o}){return {x:P_(e.x,n,o),y:P_(e.y,t,r)}}function I_(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function FSe(e,t){return {x:I_(e.x,t.x),y:I_(e.y,t.y)}}function HSe(e,t){let n=.5;const r=Io(e),o=Io(t);return o>r?n=_f(t.min,t.max-r,e.min):r>o&&(n=_f(e.min,e.max-o,t.min)),oa(0,1,n)}function VSe(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const U3=.35;function jSe(e=U3){return e===false?e=0:e===true&&(e=U3),{x:O_(e,"left","right"),y:O_(e,"top","bottom")}}function O_(e,t,n){return {min:D_(e,t),max:D_(e,n)}}function D_(e,t){return typeof e=="number"?e:e[t]||0}const USe=new WeakMap;class WSe{constructor(t){this.openDragLock=null,this.isDragging=false,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=false,this.hasMutatedConstraints=false,this.elastic=wr(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t;}start(t,{snapToCursor:n=false,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===false)return;const i=p=>{n&&this.snapToCursor(Rg(p).point),this.stopAnimation();},s=(p,g)=>{const{drag:b,dragPropagation:y,onDragStart:S}=this.getProps();if(b&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Eye(b),!this.openDragLock))return;this.latestPointerEvent=p,this.latestPanInfo=g,this.isDragging=true,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=true,this.visualElement.projection.target=void 0),Vs(w=>{let E=this.getAxisMotionValue(w).get()||0;if(ta.test(E)){const{projection:M}=this.visualElement;if(M&&M.layout){const T=M.layout.layoutBox[w];T&&(E=Io(T)*(parseFloat(E)/100));}}this.originPoint[w]=E;}),S&&jn.update(()=>S(p,g),false,true),L3(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",true);},l=(p,g)=>{this.latestPointerEvent=p,this.latestPanInfo=g;const{dragPropagation:b,dragDirectionLock:y,onDirectionLock:S,onDrag:C}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:w}=g;if(y&&this.currentDirection===null){this.currentDirection=qSe(w),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",g.point,w),this.updateAxis("y",g.point,w),this.visualElement.render(),C&&jn.update(()=>C(p,g),false,true);},u=(p,g)=>{this.latestPointerEvent=p,this.latestPanInfo=g,this.stop(p,g),this.latestPointerEvent=null,this.latestPanInfo=null;},d=()=>{const{dragSnapToOrigin:p}=this.getProps();(p||this.constraints)&&this.startAnimation({x:0,y:0});},{dragSnapToOrigin:m}=this.getProps();this.panSession=new cU(t,{onSessionStart:i,onStart:s,onMove:l,onSessionEnd:u,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:lU(this.visualElement),element:this.visualElement.current});}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:l}=this.getProps();l&&jn.postRender(()=>l(r,o));}cancel(){this.isDragging=false;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=false),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",false);}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0;}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!zb(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=kSe(s,this.constraints[t],this.elastic[t])),i.set(s);}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(false):this.visualElement.projection?.layout,o=this.constraints;t&&Qd(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=zSe(r.layoutBox,t):this.constraints=false,this.elastic=jSe(n),o!==this.constraints&&!Qd(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Vs(i=>{this.constraints!==false&&this.getAxisMotionValue(i)&&(this.constraints[i]=VSe(r.layoutBox[i],this.constraints[i]));});}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Qd(t))return  false;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return  false;const i=Yye(r,o.root,this.visualElement.getTransformPagePoint());let s=FSe(o.layout.layoutBox,i);if(n){const l=n(Gye(s));this.hasMutatedConstraints=!!l,l&&(s=Aj(l));}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},d=Vs(m=>{if(!zb(m,n,this.currentDirection))return;let p=u&&u[m]||{};(s===true||s===m)&&(p={min:0,max:0});const g=o?200:1e6,b=o?40:1e7,y={type:"inertia",velocity:r?t[m]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...i,...p};return this.startAxisValueAnimation(m,y)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return L3(this.visualElement,t),r.start(rR(t,r,0,n,this.visualElement,false))}stopAnimation(){Vs(t=>this.getAxisMotionValue(t).stop());}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Vs(n=>{const{drag:r}=this.getProps();if(!zb(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:l}=o.layout.layoutBox[n],u=i.get()||0;i.set(t[n]-tr(s,l,.5)+u);}});}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Qd(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Vs(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==false){const u=l.get();o[s]=HSe({min:u,max:u},this.constraints[s]);}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=false,this.resolveConstraints(),Vs(s=>{if(!zb(s,t,null))return;const l=this.getAxisMotionValue(s),{min:u,max:d}=this.constraints[s];l.set(tr(u,d,o[s]));}),this.visualElement.render();}addListeners(){if(!this.visualElement.current)return;USe.set(this.visualElement,this);const t=this.visualElement.current,n=rp(t,"pointerdown",d=>{const{drag:m,dragListener:p=true}=this.getProps(),g=d.target,b=g!==t&&Nye(g);m&&p&&!b&&this.start(d);});let r;const o=()=>{const{dragConstraints:d}=this.getProps();Qd(d)&&d.current&&(this.constraints=this.resolveRefConstraints(),r||(r=GSe(t,d.current,()=>this.scalePositionWithinConstraints())));},{projection:i}=this.visualElement,s=i.addEventListener("measure",o);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),jn.read(o);const l=Vp(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:m})=>{this.isDragging&&m&&(Vs(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=d[p].translate,g.set(g.get()+d[p].translate));}),this.visualElement.render());}));return ()=>{l(),n(),s(),u&&u(),r&&r();}}getProps(){const t=this.visualElement.getProps(),{drag:n=false,dragDirectionLock:r=false,dragPropagation:o=false,dragConstraints:i=false,dragElastic:s=U3,dragMomentum:l=true}=t;return {...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:l}}}function __(e){let t=true;return ()=>{if(t){t=false;return}e();}}function GSe(e,t,n){const r=V8(e,__(n)),o=V8(t,__(n));return ()=>{r(),o();}}function zb(e,t,n){return (t===true||t===e)&&(n===null||n===e)}function qSe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class KSe extends Sc{constructor(t){super(t),this.removeGroupControls=Qi,this.removeListeners=Qi,this.controls=new WSe(t);}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qi;}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)));}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession();}}const Ww=e=>(t,n)=>{e&&jn.update(()=>e(t,n),false,true);};class YSe extends Sc{constructor(){super(...arguments),this.removePointerDownListener=Qi;}onPointerDown(t){this.session=new cU(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lU(this.node)});}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return {onSessionStart:Ww(t),onStart:Ww(n),onMove:Ww(r),onEnd:(i,s)=>{delete this.session,o&&jn.postRender(()=>o(i,s));}}}mount(){this.removePointerDownListener=rp(this.node.current,"pointerdown",t=>this.onPointerDown(t));}update(){this.session&&this.session.updateHandlers(this.createPanHandlers());}unmount(){this.removePointerDownListener(),this.session&&this.session.end();}}let Gw=false;class XSe extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Gw&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove();}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),T0.hasEverUpdated=true;}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,t.layoutDependency!==n&&s.setOptions({...s.options,layoutDependency:n}),Gw=true,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||jn.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove();}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),cR.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove();}));}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Gw=true,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o));}safeToRemove(){const{safeToRemove:t}=this.props;t&&t();}render(){return null}}function dU(e){const[t,n]=Jj(),r=f.useContext(FA);return Jo.jsx(XSe,{...e,layoutGroup:r,switchLayoutGroup:f.useContext(sU),isPresent:t,safeToRemove:n})}const QSe={pan:{Feature:YSe},drag:{Feature:KSe,ProjectionNode:Zj,MeasureLayout:dU}};function L_(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&jn.postRender(()=>i(t,Rg(t)));}class ZSe extends Sc{mount(){const{current:t}=this.node;t&&(this.unmount=Mye(t,(n,r)=>(L_(this.node,r,"Start"),o=>L_(this.node,o,"End"))));}unmount(){}}class JSe extends Sc{constructor(){super(...arguments),this.isActive=false;}onFocus(){let t=false;try{t=this.node.current.matches(":focus-visible");}catch{t=true;}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",true),this.isActive=true);}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",false),this.isActive=false);}mount(){this.unmount=Mg(Vp(this.node.current,"focus",()=>this.onFocus()),Vp(this.node.current,"blur",()=>this.onBlur()));}unmount(){}}function B_(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&jn.postRender(()=>i(t,Rg(t)));}class eCe extends Sc{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=Iye(t,(o,i)=>(B_(this.node,i,"Start"),(s,{success:l})=>B_(this.node,s,l?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:r?.tap===false});}unmount(){}}const W3=new WeakMap,qw=new WeakMap,tCe=e=>{const t=W3.get(e.target);t&&t(e);},nCe=e=>{e.forEach(tCe);};function rCe({root:e,...t}){const n=e||document;qw.has(n)||qw.set(n,{});const r=qw.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(nCe,{root:e,...t})),r[o]}function oCe(e,t,n){const r=rCe(t);return W3.set(e,n),r.observe(e),()=>{W3.delete(e),r.unobserve(e);}}const iCe={some:0,all:1};class sCe extends Sc{constructor(){super(...arguments),this.hasEnteredView=false,this.isInView=false;}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:iCe[o]},l=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=true),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:m,onViewportLeave:p}=this.node.getProps(),g=d?m:p;g&&g(u);};return oCe(this.node.current,s,l)}mount(){this.startObserver();}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(aCe(t,n))&&this.startObserver();}unmount(){}}function aCe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const lCe={inView:{Feature:sCe},tap:{Feature:eCe},focus:{Feature:JSe},hover:{Feature:ZSe}},cCe={layout:{ProjectionNode:Zj,MeasureLayout:dU}},uCe={...OSe,...lCe,...QSe,...cCe},bR=ASe(uCe,RSe);function dCe(e){return f.useEffect(()=>()=>e(),[])}function fCe(){!mR.current&&Ej();const[e]=f.useState(Iy.current);return e}function mCe(){const e=fCe(),{reducedMotion:t}=f.useContext(Q1);return t==="never"?false:t==="always"?true:e}function yR(e){return typeof e=="object"&&!Array.isArray(e)}function fU(e,t,n,r){return e==null?[]:typeof e=="string"&&yR(t)?lR(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(o=>o!=null):[e]}function hCe(e,t,n){return e*(t+1)}function k_(e,t,n,r){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function pCe(e,t,n){for(let r=0;r<e.length;r++){const o=e[r];o.at>t&&o.at<n&&(Df(e,o),r--);}}function gCe(e,t,n,r,o,i){pCe(e,o,i);for(let s=0;s<t.length;s++)e.push({value:t[s],at:tr(o,i,r[s]),easing:LV(n,s)});}function vCe(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1);}function bCe(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const yCe="easeInOut";function SCe(e,{defaultTransition:t={},...n}={},r,o){const i=t.duration||.3,s=new Map,l=new Map,u={},d=new Map;let m=0,p=0,g=0;for(let b=0;b<e.length;b++){const y=e[b];if(typeof y=="string"){d.set(y,p);continue}else if(!Array.isArray(y)){d.set(y.name,k_(p,y.at,m,d));continue}let[S,C,w={}]=y;w.at!==void 0&&(p=k_(p,w.at,m,d));let E=0;const M=(T,A,I,N=0,P=0)=>{const O=CCe(T),{delay:D=0,times:L=QV(O),type:F=t.type||"keyframes",repeat:U,repeatType:W,repeatDelay:z=0,...k}=A;let{ease:G=t.ease||"easeOut",duration:j}=A;const K=typeof D=="function"?D(N,P):D,Q=O.length,_=tR(F)?F:o?.[F||"keyframes"];if(Q<=2&&_){let ee=100;if(Q===2&&ECe(O)){const ie=O[1]-O[0];ee=Math.abs(ie);}const te={...t,...k};j!==void 0&&(te.duration=ei(j));const re=KV(te,ee,_);G=re.ease,j=re.duration;}j??(j=i);const B=p+K;L.length===1&&L[0]===0&&(L[1]=1);const Y=L.length-O.length;if(Y>0&&XV(L,Y),O.length===1&&O.unshift(null),U){j=hCe(j,U);const ee=[...O],te=[...L];G=Array.isArray(G)?[...G]:[G];const re=[...G];for(let ie=0;ie<U;ie++){O.push(...ee);for(let de=0;de<ee.length;de++)L.push(te[de]+(ie+1)),G.push(de===0?"linear":LV(re,de-1));}vCe(L,U);}const J=B+j;gCe(I,O,G,L,B,J),E=Math.max(K+j,E),g=Math.max(J,g);};if(Br(S)){const T=z_(S,l);M(C,w,F_("default",T));}else {const T=fU(S,C,r,u),A=T.length;for(let I=0;I<A;I++){C=C,w=w;const N=T[I],P=z_(N,l);for(const O in C)M(C[O],xCe(w,O),F_(O,P),I,A);}}m=p,p+=E;}return l.forEach((b,y)=>{for(const S in b){const C=b[S];C.sort(bCe);const w=[],E=[],M=[];for(let N=0;N<C.length;N++){const{at:P,value:O,easing:D}=C[N];w.push(O),E.push(_f(0,g,P)),M.push(D||"easeOut");}E[0]!==0&&(E.unshift(0),w.unshift(w[0]),M.unshift(yCe)),E[E.length-1]!==1&&(E.push(1),w.push(null)),s.has(y)||s.set(y,{keyframes:{},transition:{}});const T=s.get(y);T.keyframes[S]=w;const{type:A,...I}=t;T.transition[S]={...I,duration:g,ease:M,times:E,...n};}}),s}function z_(e,t){return !t.has(e)&&t.set(e,{}),t.get(e)}function F_(e,t){return t[e]||(t[e]=[]),t[e]}function CCe(e){return Array.isArray(e)?e:[e]}function xCe(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const wCe=e=>typeof e=="number",ECe=e=>e.every(wCe);function $Ce(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=K1(e)&&!xj(e)?new zj(t):new Dj(t);n.mount(e),Fp.set(e,n);}function MCe(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new n1e(t);n.mount(e),Fp.set(e,n);}function TCe(e,t){return Br(e)||typeof e=="number"||typeof e=="string"&&!yR(t)}function mU(e,t,n,r){const o=[];if(TCe(e,t))o.push(Kj(e,yR(t)&&t.default||t,n&&(n.default||n)));else {if(e==null)return o;const i=fU(e,t,r),s=i.length;for(let l=0;l<s;l++){const u=i[l],d=u instanceof Element?$Ce:MCe;Fp.has(u)||d(u);const m=Fp.get(u),p={...n};"delay"in p&&typeof p.delay=="function"&&(p.delay=p.delay(l,s)),o.push(...sR(m,{...t,transition:p},{}));}}return o}function ACe(e,t,n){const r=[],o=e.map(s=>{if(Array.isArray(s)&&typeof s[0]=="function"){const l=s[0],u=Lu(0);return u.on("change",l),s.length===1?[u,[0,1]]:s.length===2?[u,[0,1],s[1]]:[u,s[1],s[2]]}return s});return SCe(o,t,n,{spring:zp}).forEach(({keyframes:s,transition:l},u)=>{r.push(...mU(u,s,l));}),r}function RCe(e){return Array.isArray(e)&&e.some(Array.isArray)}function hU(e={}){const{scope:t,reduceMotion:n}=e;function r(o,i,s){let l=[],u;if(RCe(o)){const{onComplete:m,...p}=i||{};typeof m=="function"&&(u=m),l=ACe(o,n!==void 0?{reduceMotion:n,...p}:p,t);}else {const{onComplete:m,...p}=s||{};typeof m=="function"&&(u=m),l=mU(o,i,n!==void 0?{reduceMotion:n,...p}:p,t);}const d=new W0e(l);return u&&d.finished.then(u),t&&(t.animations.push(d),d.finished.then(()=>{Df(t.animations,d);})),d}return r}hU();function NCe(){const e=G1(()=>({current:null,animations:[]})),t=mCe()??void 0,n=f.useMemo(()=>hU({scope:e,reduceMotion:t}),[e,t]);return dCe(()=>{e.animations.forEach(r=>r.stop()),e.animations.length=0;}),[e,n]}function jp({size:e=18,useAnimation:t=false,color:n="currentColor",...r}){return x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:e,height:e,...r,children:x(bR.path,{fill:"transparent",stroke:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 11L11 17L21 7",...t&&{initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.2,ease:"easeInOut"}}})})}const pU=$ve,SR=Tve,CR=Rve,Ng=Pve,Oo=Ove,G3=_ve,q3=Bve,PCe=zve,H_=Hve,gU=jve,ICe=Wve,vU=Cve,OCe=qve,DCe=Yve,_Ce=Qve,LCe=Jve,By=xve,Bf=tbe,BCe=rbe,kCe=ibe,ky=abe,K3=cbe,zy=bV,Eu=fbe,bU=zA,cm=hbe,zCe=yV,xR=vbe,FCe="data:image/gif;base64,R0lGODlhGAAYAJECAP7+/v///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QTI2NTYzMDc2RTNDMTFFREJENEJEMzUxOTQzQjMxMkQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QTI2NTYzMDg2RTNDMTFFREJENEJEMzUxOTQzQjMxMkQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpBMjY1NjMwNTZFM0MxMUVEQkQ0QkQzNTE5NDNCMzEyRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpBMjY1NjMwNjZFM0MxMUVEQkQ0QkQzNTE5NDNCMzEyRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAkEAAIALAAAAAAYABgAAAI5lI+py+0Po2QhTFXrRdlu031gJgqhpI0pdJ4sacJv6j6trABeTOMcfFslgp7ar4fcDVcyX+kJjToKACH5BAkEAAIALAAAAAAYABgAAAI2lI+py+0Po5xUhFDRvdls3H0T522SaJkRikKs6qptAr+kYoOzJvc37dPBgKQco3YbdpbM5qQAACH5BAkEAAIALAAAAAAYABgAAAI3lI+py+0Po5y02hhykHqLzmkGiImfCZHkkh0qmrztOSuyt8bmzfC0Z9sJa7qZLwhEwS7MpnNSAAAh+QQJBAACACwAAAAAGAAYAAACPJSPqcvtD6OctJoQ7MFYC55dYQSKHcmZo3J+qdsmJRzO7DvbMs7HSN5b/YIqBvCkGyKJixds4/NIp1RHAQAh+QQJBAACACwAAAAAGAAYAAACOpSPqcvtD6OcLwSarMVHXy54YKhJIrmhn3K25eKmJ/vGa1bnKS3rN2IzzHC94q/jE754yNVyBI1KIQUAIfkECQQAAgAsAAAAABgAGAAAAjmUj6nL7Q+jnLSaEOzBePbLSVwmjGJYopCZfmnDxmoif6xSkzeN5ozfIuF6RBfPVhQeN66Z5gmNTgoAIfkECQQAAgAsAAAAABgAGAAAAjmUj6nL7Q+jnLRaETLSMnMfdJ4Bit8YlRgKqerauOibyCen2OGK1/Pf2wB3NOGNyPLteIfk5QmNTgoAIfkECQQAAgAsAAAAABgAGAAAAjeUj6nL7Q+jnCkEWu3FRm/uHdYUCiVUnk+qSewYvd/amrWKyF2t6DbcuwmBGZgv+OHxOMyms1kAACH5BAkEAAIALAAAAAAYABgAAAI5lI+py+0PowtBLkptwlUf7n1YaIBlF5kmpI6puz5t9tLxBLsCgCpzdxPZcjQfEajbFHVJkvMJtRQAACH5BAkEAAIALAAAAAAYABgAAAI1lI+py+0Po5wpBFrtxUZv7nGdJgqheJ5QSkasJb2bmsFmSyPyaCv73avNcC1fr1gsKZdMSAEAIfkECQQAAgAsAAAAABgAGAAAAjWUj6nL7Q+jnLRaEfI1Wd8ebKDYkR4WHqcyol7Llm4KJ+0tx69cI/i+8vGGQdUpl9sol0xIAQAh+QQJBAACACwAAAAAGAAYAAACNJSPqcvtD6OctNq7QsBCa+xtV9h8DJl5p5qaCtqJsZugNvuyN43sIlzTCXkHnJHISSqXiQIAIfkECQQAAgAsAAAAABgAGAAAAjKUj6nL7Q+jnLTai3MMPLDuLeDXkZwZKqNYsqebJqva0u86yy1e6/feQ9SGL43xiEwUAAAh+QQJBAACACwAAAAAGAAYAAACM5SPqcvtD6OctNp7Q8BCa+xtzDd6JamEp5iai2qgcEvCc2K7N5LXLi3qsXCy4pCDTCoXBQAh+QQJBAACACwAAAAAGAAYAAACNJSPqcvtD6OctNoYcrhC7+txIag1mVkuY/exp5qOayLHqVK/M5J/+9Ez/IQvF7DISSqXkAIAIfkEBQQAAgAsAAAAABgAGAAAAjKUj6nL7Q+jnFSEUNG92WzcfZ21jWJYRucJranyutwig2xSey+e5nQPnMGEMeHoiExCCgA7";function wR({active:e=false,...t}){return e?x("img",{...t,src:FCe}):x(ybe,{...t})}const ER=$g(e=>H("svg",{viewBox:"0 0 20 20",fill:"currentColor",...e,children:[x("path",{className:"circle",d:"M10 3.1248000000000005C6.20305 3.1248000000000005 3.1250083333333336 6.202841666666667 3.1250083333333336 9.999833333333335C3.1250083333333336 13.796750000000001 6.20305 16.874833333333335 10 16.874833333333335C11.898291666666667 16.874833333333335 13.615833333333333 16.106291666666667 14.860625 14.861916666666666C15.104708333333335 14.617916666666666 15.500416666666668 14.617958333333334 15.7445 14.862041666666668C15.9885 15.106166666666669 15.988416666666668 15.501916666666666 15.744333333333334 15.745958333333334C14.274750000000001 17.215041666666668 12.243041666666667 18.124833333333335 10 18.124833333333335C5.512691666666667 18.124833333333335 1.8750083333333334 14.487125 1.8750083333333334 9.999833333333335C1.8750083333333334 5.512483333333334 5.512691666666667 1.8748000000000002 10 1.8748000000000002C14.487291666666668 1.8748000000000002 18.125 5.512483333333334 18.125 9.999833333333335C18.125 10.304458333333333 18.108208333333334 10.605458333333333 18.075458333333337 10.901791666666668C18.0375 11.244916666666667 17.728625 11.492291666666667 17.385583333333333 11.454333333333334C17.0425 11.416416666666667 16.795083333333334 11.107541666666668 16.833000000000002 10.764458333333334C16.860750000000003 10.513625000000001 16.875 10.2585 16.875 9.999833333333335C16.875 6.202841666666667 13.796958333333333 3.1248000000000005 10 3.1248000000000005z",fill:"currentColor"}),x("path",{d:"M15.391416666666666 9.141166666666667C15.635458333333334 8.897083333333335 16.031208333333332 8.897083333333335 16.275291666666668 9.141166666666667L17.5 10.365875L18.72475 9.141166666666667C18.968791666666668 8.897083333333335 19.364541666666668 8.897083333333335 19.608625 9.141166666666667C19.852666666666668 9.385291666666667 19.852666666666668 9.780958333333334 19.608625 10.025083333333333L18.08925 11.544416666666669C17.763833333333334 11.869833333333334 17.236208333333334 11.869833333333334 16.91075 11.544416666666669L15.391416666666666 10.025083333333333C15.147333333333334 9.780958333333334 15.147333333333334 9.385291666666667 15.391416666666666 9.141166666666667z",fill:"currentColor"}),x("path",{d:"M12.499333333333334 9.278375C13.05475 9.599 13.05475 10.400666666666668 12.499333333333334 10.721291666666668L9.373916666666666 12.525791666666668C8.818541666666667 12.846416666666666 8.124274999999999 12.445583333333333 8.124274999999999 11.804291666666668L8.124274999999999 8.1954C8.124274999999999 7.554066666666667 8.818541666666667 7.153233333333334 9.373916666666666 7.473900000000001L12.499333333333334 9.278375z",fill:"currentColor"})]})),yU=lQ(),$R=yU.os.name?.toLowerCase()==="mac os",HCe=yU.browser.name||"",MR=e=>new RegExp(String.raw`\b${e}\b`,"i").test(HCe),Pg=MR("safari");MR("firefox");MR("edge");const VCe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"m19.833 21.26l-1.298-1.298q-.096.019-.173.029q-.077.009-.173.009H5.616q-.691 0-1.153-.462T4 18.384V5.813q0-.096.01-.173t.029-.173l-1.299-1.3l.713-.713l17.092 17.092zM5.616 19h11.957l-5.933-5.933l-1.902 1.902l-.707-.708l1.902-1.902L5 6.427v11.958q0 .23.192.423t.423.192M7.813 5l-1-1h4.419v1zm5.948 5.948l-.708-.707L18.292 5H14V4h6v6h-1V5.708zm6.24 6.24l-1-1V12.77h1z"})]}),jCe=f.forwardRef(VCe),UCe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M16 3h6v6h-2V5h-4zM2 3h6v2H4v4H2zm18 16v-4h2v6h-6v-2zM4 19h4v2H2v-6h2z"})]}),WCe=f.forwardRef(UCe),GCe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("rect",{width:20,height:16,x:2,y:4,rx:2}),x("rect",{width:9,height:7,x:13,y:13,rx:2})]})]}),qCe=f.forwardRef(GCe),KCe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M6 3h8.99v1.5H6zM2.99 6h1.5v1.5h-1.5zm0-3h1.5v1.5h-1.5zm0 6.01H4.5v1.5H2.99z"}),x("path",{fill:"currentColor",d:"M4.5 12h-3V1.49h15V6H18V2a2 2 0 0 0-2-2H2a2 2 0 0 0-2 2v9.48a2 2 0 0 0 2 2h2.5Z"}),x("path",{fill:"currentColor",d:"M22 7.5H8a2 2 0 0 0-2 2V19a2 2 0 0 0 2 2h5.53v1.53H12V24h6v-1.49h-1.5V21H22a2 2 0 0 0 2-2V9.5a2 2 0 0 0-2-2m.51 12h-15V9h15Z"})]}),YCe=f.forwardRef(KCe),V_="0";function $u(e,t){GM.setClipboard(e),Qt.success(`已复制: ${e}`,t);}var uc=(e=>(e.PlayerScreenMode=`${VI}-player-screen-mode`,e.ForceAutoPlay=`${VI}-force-auto-play`,e))(uc||{}),Vl=(e=>(e.Normal="normal",e.Wide="wide",e.WebFullscreen="web",e.Fullscreen="full",e))(Vl||{}),TR=(e=>(e.ON="on",e.OFF="off",e))(TR||{}),cr=(e=>(e.Normal="Normal",e.CurrentPage="CurrentPage",e.NormalWebFullscreen="NormalWebFullscreen",e.Popup="Popup",e.Background="Background",e.Iina="Iina",e))(cr||{});const j_=Object.entries(cr).reduce((e,[t,n])=>({...e,[n]:`LinkOpenMode.${t}`}),{}),gi={Normal:{icon:x(Oo,{className:"size-16px"}),label:"打开",desc:"默认在新标签页中打开"},CurrentPage:{icon:x(jCe,{className:"size-16px"}),label:"当前页中打开",desc:"不打开新标签页, 使用当前标签页打开, 适用于将网站作为应用安装场景"},NormalWebFullscreen:{icon:x(WCe,{className:"size-15px"}),label:"打开-网页全屏",desc:x(_e,{children:"默认在新标签页中打开, 打开后自动网页全屏"})},Popup:{icon:x(qCe,{className:"size-15px"}),label:"小窗打开",desc:H(_e,{children:["当"," ",x("a",{href:"https://developer.chrome.com/docs/web-platform/document-picture-in-picture",target:"_blank",children:"「文档画中画」API"})," ","可用时, 会使用「文档画中画」的形式: 窗口置顶 + 播放页网页全屏.",x("br",{}),"当该 API 不可用时, 会使用 popup window + 播放页网页全屏 的形式."]})},Background:{icon:x(YCe,{className:"size-15px"}),label:"后台打开"},Iina:{icon:x(Ng,{className:"size-15px"}),label:"在 IINA 中打开",enabled:$R,desc:x(_e,{children:x("a",{href:"https://github.com/magicdawn/Bilibili-Gate/blob/main/notes/iina.md",target:"_blank",children:"macOS IINA 设置教程"})})}};function XCe(){return new uo}const SU=XCe(),Y3={card:{name:"18iuzk9",styles:"grid-column:1/-1"},cardWrap:{name:"k9oiqw",styles:"display:flex;column-gap:20px"},cover:{name:"1t7agkb",styles:"width:clamp(250px, 20%, 400px);flex-shrink:0"}},QCe="z-2",ZCe="z-3",JCe="z-4",exe="z-5",txe="z-6";var nt=(e=>(e.AppRecommend="app-recommend",e.PcRecommend="pc-recommend",e.KeepFollowOnly="keep-follow-only",e.DynamicFeed="dynamic-feed",e.Watchlater="watchlater",e.Fav="fav",e.Hot="hot",e.Live="live",e.SpaceUpload="space-upload",e.Liked="liked",e))(nt||{}),pr=(e=>(e.PopularGeneral="popular-general",e.PopularWeekly="popular-weekly",e.Rank="ranking",e))(pr||{}),Ze=(e=>(e.Separator="separator",e.AppRecommend="app-recommend",e.PcRecommend="pc-recommend",e.DynamicFeed="dynamic-feed",e.Watchlater="watchlater",e.Fav="fav",e.PopularGeneral="popular-general",e.PopularWeekly="popular-weekly",e.Rank="ranking",e.Live="live",e.SpaceUpload="space-upload",e.Liked="liked",e))(Ze||{}),Wr=(e=>(e.NormalGrid="grid",e.List="list",e.TwoColumnGrid="two-column-grid",e.CenterEmptyGrid="center-empty-grid",e))(Wr||{}),Mu=(e=>(e.Center="center",e.Left="left",e.Right="right",e))(Mu||{}),kf=(e=>(e.Left="left",e.Right="right",e))(kf||{}),Ks=(e=>(e[e.Offline=0]="Offline",e[e.Streaming=1]="Streaming",e[e.Rolling=2]="Rolling",e))(Ks||{}),Eo=(e=>(e.AddTimeDesc="add-time-desc",e.AddTimeAsc="add-time-asc",e.Shuffle="shuffle",e))(Eo||{});function CU(e,t="",n=[]){t&&n.push(t);for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const o=e[r],i=t?`${t}.${r}`:r;n.push(i),o&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp)&&CU(o,i,n);}return [...new Set(n)]}function xU(e,t=""){const n=[];t&&n.push(t);for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const o=e[r],i=t?`${t}.${r}`:r;o&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp)&&Object.getPrototypeOf(o)===Object.prototype&&(n.push(i),n.push(...xU(o,i)));}return [...new Set(n)]}function nxe(e){const t=CU(e),n=xU(e);return t.filter(r=>!n.includes(r))}const wU=f.createContext(null),rxe={};function oxe({children:e,defaultOptions:t=rxe}){const n=f.useMemo(()=>({defaultOptions:t}),[t]);return q.createElement(wU.Provider,{value:n},e)}function ixe(){return f.useContext(wU)?.defaultOptions??{}}function Yu(){if(typeof navigator>"u")return "linux";const e=navigator.platform?.toLowerCase()??"",t=navigator.userAgent?.toLowerCase()??"";return e.includes("mac")||t.includes("mac")?"mac":e.includes("win")||t.includes("win")?"windows":"linux"}const um=["Control","Alt","Shift","Meta"];new Set(um);const U_={Control:"Control",Ctrl:"Control",control:"Control",ctrl:"Control",Shift:"Shift",shift:"Shift",Alt:"Alt",Option:"Alt",alt:"Alt",option:"Alt",Command:"Meta",Cmd:"Meta",Meta:"Meta",command:"Meta",cmd:"Meta",meta:"Meta",CommandOrControl:"Mod",Mod:"Mod",commandorcontrol:"Mod",mod:"Mod"};function EU(e,t=Yu()){return e==="Mod"?t==="mac"?"Meta":"Control":e}const sxe=new Set(["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]),axe=new Set(["0","1","2","3","4","5","6","7","8","9"]),lxe=new Set(["F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]),cxe=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),uxe=new Set(["Enter","Escape","Space","Tab","Backspace","Delete"]),dxe=new Set(["/","[","]","\\","=","-",",",".","`"]);[...sxe,...axe,...lxe,...cxe,...uxe,...dxe];const W_={Esc:"Escape",esc:"Escape",escape:"Escape",Return:"Enter",return:"Enter",enter:"Enter"," ":"Space",space:"Space",Spacebar:"Space",spacebar:"Space",tab:"Tab",backspace:"Backspace",Del:"Delete",del:"Delete",delete:"Delete",Up:"ArrowUp",up:"ArrowUp",arrowup:"ArrowUp",Down:"ArrowDown",down:"ArrowDown",arrowdown:"ArrowDown",Left:"ArrowLeft",left:"ArrowLeft",arrowleft:"ArrowLeft",Right:"ArrowRight",right:"ArrowRight",arrowright:"ArrowRight",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",PgUp:"PageUp",PgDn:"PageDown",pgup:"PageUp",pgdn:"PageDown"};function $U(e){return new RegExp("^\\p{Letter}$","u").test(e)}function op(e){if(e in W_)return W_[e];if($U(e)){const n=e.toUpperCase();return n.length===1?n:e}const t=e.toUpperCase();return /^F([1-9]|1[0-2])$/.test(t)?t:e}const fxe={Control:"⌃",Alt:"⌥",Shift:"⇧",Meta:"⌘"},mxe={Control:"Ctrl",Alt:"Alt",Shift:"Shift",Meta:"Win"},MU={ArrowUp:"↑",ArrowDown:"↓",ArrowLeft:"←",ArrowRight:"→",Enter:"↵",Escape:"Esc",Backspace:"⌫",Delete:"⌦",Tab:"⇥",Space:"␣"};function AR(e,t=Yu()){const n=e.split("+"),r=new Set;let o="";for(let i=0;i<n.length;i++){const s=n[i].trim();if(i===n.length-1)o=op(s);else {const l=U_[s]??U_[s.toLowerCase()];if(l){const u=EU(l,t);r.add(u);}else n.length===1&&(o=op(s));}}return !o&&n.length>0&&(o=op(n[n.length-1].trim())),{key:o,ctrl:r.has("Control"),shift:r.has("Shift"),alt:r.has("Alt"),meta:r.has("Meta"),modifiers:um.filter(i=>r.has(i))}}function TU(e,t=Yu()){let n=e.ctrl??false;const r=e.shift??false,o=e.alt??false;let i=e.meta??false;e.mod&&(EU("Mod",t)==="Control"?n=true:i=true);const s=um.filter(l=>{switch(l){case "Control":return n;case "Shift":return r;case "Alt":return o;case "Meta":return i;default:return  false}});return {key:e.key,ctrl:n,shift:r,alt:o,meta:i,modifiers:s}}function AU(e){const t=[];for(const n of um)e.modifiers.includes(n)&&t.push(n);return t.push(e.key),t.join("+")}function hxe(e,t={}){const n=t.platform??Yu(),r=typeof e=="string"?AR(e,n):e;return n==="mac"?pxe(r):gxe(r)}function pxe(e){const t=[];for(const r of um)e.modifiers.includes(r)&&t.push(fxe[r]);const n=MU[e.key]??e.key;return t.push(n),t.join("")}function gxe(e){const t=[];for(const r of um)e.modifiers.includes(r)&&t.push(mxe[r]);const n=MU[e.key]??e.key;return t.push(n),t.join("+")}function Fy(e,t,n=Yu()){const r=typeof t=="string"?AR(t,n):t;if(e.ctrlKey!==r.ctrl||e.shiftKey!==r.shift||e.altKey!==r.alt||e.metaKey!==r.meta)return  false;const o=op(e.key),i=r.key;if(o!=="Dead"&&o.length===1&&i.length===1){if(o.toUpperCase()===i.toUpperCase())return  true;if($U(o)&&(/^[A-Za-z]$/.test(o)||!e.altKey))return  false}if(o==="Dead"||o.length===1&&i.length===1){if(e.code?.startsWith("Key")){const s=e.code.slice(3);if(s.length===1&&/^[A-Za-z]$/.test(s))return s.toUpperCase()===i.toUpperCase()}if(e.code?.startsWith("Digit")){const s=e.code.slice(5);if(s.length===1&&/^[0-9]$/.test(s))return s===i}return  false}return o===i}const vxe={preventDefault:true,stopPropagation:true,eventType:"keydown",enabled:true,ignoreInputs:true,conflictBehavior:"warn"};function bxe(e){return !(e.ctrl||e.meta||e.key==="Escape")}function yxe(e){if(!e)return  false;if(e instanceof HTMLInputElement){const t=e.type.toLowerCase();return !(t==="button"||t==="submit"||t==="reset")}return !!(e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||e instanceof HTMLElement&&e.isContentEditable)}function Sxe(e,t){return t===document||t===window?e.currentTarget===t||e.currentTarget===document.documentElement:t===window?e.currentTarget===window||e.currentTarget===document||e.currentTarget===document.documentElement:!!(t instanceof HTMLElement&&(e.currentTarget===t||e.target instanceof Node&&t.contains(e.target)))}function Cxe(e,t,n,r){if(n!=="allow"){if(n==="warn"){console.warn(`'${t}' is already registered. Multiple handlers will be triggered. Use conflictBehavior: 'replace' to replace the existing handler, or conflictBehavior: 'allow' to suppress this warning.`);return}if(n==="error")throw new Error(`'${t}' is already registered. Use conflictBehavior: 'replace' to replace the existing handler, or conflictBehavior: 'allow' to allow multiple registrations.`);r(e);}}var Jn=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(Jn||{});function RU({update:e,notify:t,unwatched:n}){return {link:r,unlink:o,propagate:i,checkDirty:s,shallowPropagate:l};function r(d,m,p){const g=m.depsTail;if(g!==void 0&&g.dep===d)return;const b=g!==void 0?g.nextDep:m.deps;if(b!==void 0&&b.dep===d){b.version=p,m.depsTail=b;return}const y=d.subsTail;if(y!==void 0&&y.version===p&&y.sub===m)return;const S=m.depsTail=d.subsTail={version:p,dep:d,sub:m,prevDep:g,nextDep:b,prevSub:y,nextSub:void 0};b!==void 0&&(b.prevDep=S),g!==void 0?g.nextDep=S:m.deps=S,y!==void 0?y.nextSub=S:d.subs=S;}function o(d,m=d.sub){const p=d.dep,g=d.prevDep,b=d.nextDep,y=d.nextSub,S=d.prevSub;return b!==void 0?b.prevDep=g:m.depsTail=g,g!==void 0?g.nextDep=b:m.deps=b,y!==void 0?y.prevSub=S:p.subsTail=S,S!==void 0?S.nextSub=y:(p.subs=y)===void 0&&n(p),b}function i(d){let m=d.nextSub,p;e:do{const g=d.sub;let b=g.flags;if(b&60?b&12?b&4?!(b&48)&&u(d,g)?(g.flags=b|40,b&=1):b=0:g.flags=b&-9|32:b=0:g.flags=b|32,b&2&&t(g),b&1){const y=g.subs;if(y!==void 0){const S=(d=y).nextSub;S!==void 0&&(p={value:m,prev:p},m=S);continue}}if((d=m)!==void 0){m=d.nextSub;continue}for(;p!==void 0;)if(d=p.value,p=p.prev,d!==void 0){m=d.nextSub;continue e}break}while(true)}function s(d,m){let p,g=0,b=false;e:do{const y=d.dep,S=y.flags;if(m.flags&16)b=true;else if((S&17)===17){if(e(y)){const C=y.subs;C.nextSub!==void 0&&l(C),b=true;}}else if((S&33)===33){(d.nextSub!==void 0||d.prevSub!==void 0)&&(p={value:d,prev:p}),d=y.deps,m=y,++g;continue}if(!b){const C=d.nextDep;if(C!==void 0){d=C;continue}}for(;g--;){const C=m.subs,w=C.nextSub!==void 0;if(w?(d=p.value,p=p.prev):d=C,b){if(e(m)){w&&l(C),m=d.sub;continue}b=false;}else m.flags&=-33;m=d.sub;const E=d.nextDep;if(E!==void 0){d=E;continue e}}return b}while(true)}function l(d){do{const m=d.sub,p=m.flags;(p&48)===32&&(m.flags=p|16,(p&6)===2&&t(m));}while((d=d.nextSub)!==void 0)}function u(d,m){let p=m.depsTail;for(;p!==void 0;){if(p===d)return  true;p=p.prevDep;}return  false}}const{link:jIe,unlink:NU,propagate:UIe,checkDirty:WIe,shallowPropagate:GIe}=RU({update(e){return e.depsTail!==void 0?xxe(e):wxe(e)},notify(e){do if(e.flags&=-3,e=e.subs?.sub,e===void 0||!(e.flags&2))break;while(true)},unwatched(e){e.flags&1?e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,RR(e)):Exe.call(e);}});function xxe(e){e.depsTail=void 0,e.flags=5;try{const t=e.value;return t!==(e.value=e.getter(t))}finally{e.flags&=-5,RR(e);}}function wxe(e){return e.flags=1,e.currentValue!==(e.currentValue=e.pendingValue)}function Exe(){this.depsTail=void 0,this.flags=0,RR(this);const e=this.subs;e!==void 0&&NU(e);}function RR(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=NU(n,e);}function PU(e,t,n){const r=typeof e=="object",o=r?e:void 0;return {next:(r?e.next:e)?.bind(o),error:(r?e.error:t)?.bind(o),complete:(r?e.complete:n)?.bind(o)}}const X3=[];let A0=0;const{link:G_,unlink:$xe,propagate:Mxe,checkDirty:IU,shallowPropagate:q_}=RU({update(e){return e._update()},notify(e){X3[Q3++]=e,e.flags&=~Jn.Watching;},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Jn.Mutable|Jn.Dirty,Hy(e));}});let Fb=0,Q3=0,Us;function Hy(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=$xe(n,e);}function Txe(){for(;Fb<Q3;){const e=X3[Fb];X3[Fb++]=void 0,e.notify();}Fb=0,Q3=0;}function Axe(e,t){const n=typeof e=="function",r=e,o={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?Jn.None:Jn.Mutable,get(){return Us!==void 0&&G_(o,Us,A0),o._snapshot},subscribe(i){const s=PU(i),l={current:false},u=Rxe(()=>{o.get(),l.current?s.next?.(o._snapshot):l.current=!0;});return {unsubscribe:()=>{u.stop();}}},_update(i){const s=Us,l=Object.is;if(n)Us=o,++A0,o.depsTail=void 0;else if(i===void 0)return  false;n&&(o.flags=Jn.Mutable|Jn.RecursedCheck);try{const u=o._snapshot,d=typeof i=="function"?i(u):i===void 0&&n?r(u):i;return u===void 0||!l(u,d)?(o._snapshot=d,!0):!1}finally{Us=s,n&&(o.flags&=~Jn.RecursedCheck),Hy(o);}}};return n?(o.flags=Jn.Mutable|Jn.Dirty,o.get=function(){const i=o.flags;if(i&Jn.Dirty||i&Jn.Pending&&IU(o.deps,o)){if(o._update()){const s=o.subs;s!==void 0&&q_(s);}}else i&Jn.Pending&&(o.flags=i&~Jn.Pending);return Us!==void 0&&G_(o,Us,A0),o._snapshot}):o.set=function(i){if(o._update(i)){const s=o.subs;s!==void 0&&(Mxe(s),q_(s),Txe());}},o}function Rxe(e){const t=()=>{const r=Us;Us=n,++A0,n.depsTail=void 0,n.flags=Jn.Watching|Jn.RecursedCheck;try{return e()}finally{Us=r,n.flags&=~Jn.RecursedCheck,Hy(n);}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Jn.Watching|Jn.RecursedCheck,notify(){const r=this.flags;r&Jn.Dirty||r&Jn.Pending&&IU(this.deps,this)?t():this.flags=Jn.Watching;},stop(){this.flags=Jn.None,this.depsTail=void 0,Hy(this);}};return t(),n}class Nxe{constructor(t){this.atom=Axe(t);}setState(t){this.atom.set(t);}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(PU(t))}}let Pxe=0;function K_(){return `hotkey_${++Pxe}`}var Ixe=class Bl{static#n=null;#t;#e=new Map;#r=new Map;constructor(){this.registrations=new Nxe(new Map),this.#t=Yu();}static getInstance(){return Bl.#n||(Bl.#n=new Bl),Bl.#n}static resetInstance(){Bl.#n&&(Bl.#n.destroy(),Bl.#n=null);}register(t,n,r={}){if(typeof document>"u"&&!r.target){let y=n;return {id:K_(),unregister:()=>{},get callback(){return y},set callback(S){y=S;},setOptions:()=>{},get isActive(){return  false}}}const o=K_(),i=r.platform??this.#t,s=typeof t=="string"?AR(t,i):TU(t,i),l=typeof t=="string"?t:AU(s),u=r.target??document,d=r.conflictBehavior??"warn",m=this.#d(l,u);m&&Cxe(m.id,l,d,y=>this.#s(y));const p=r.ignoreInputs??bxe(s),g={id:o,hotkey:l,parsedHotkey:s,callback:n,options:{...vxe,requireReset:false,...r,platform:i,ignoreInputs:p},hasFired:false,triggerCount:0,target:u};this.registrations.setState(y=>new Map(y).set(o,g)),this.#r.has(u)||this.#r.set(u,new Set),this.#r.get(u).add(o),this.#i(u);const b=this;return {get id(){return o},unregister:()=>{b.#s(o);},get callback(){return b.registrations.state.get(o)?.callback??n},set callback(y){const S=b.registrations.state.get(o);S&&(S.callback=y);},setOptions:y=>{b.registrations.setState(S=>{const C=S.get(o);if(C){const w=new Map(S);return w.set(o,{...C,options:{...C.options,...y}}),w}return S});},get isActive(){return b.registrations.state.has(o)}}}#s(t){const n=this.registrations.state.get(t);if(!n)return;const r=n.target;this.registrations.setState(i=>{const s=new Map(i);return s.delete(t),s});const o=this.#r.get(r);o&&(o.delete(t),o.size===0&&this.#a(r));}#i(t){if(typeof document>"u"||this.#e.has(t))return;const n=this.#c(t),r=this.#u(t);t.addEventListener("keydown",n),t.addEventListener("keyup",r),this.#e.set(t,{keydown:n,keyup:r});}#a(t){if(typeof document>"u")return;const n=this.#e.get(t);n&&(t.removeEventListener("keydown",n.keydown),t.removeEventListener("keyup",n.keyup),this.#e.delete(t),this.#r.delete(t));}#o(t,n,r){const o=this.#r.get(n);if(o)for(const i of o){const s=this.registrations.state.get(i);if(s&&Sxe(t,n)&&s.options.enabled&&!(s.options.ignoreInputs!==false&&yxe(t.target)&&t.target!==s.target))if(r==="keydown"){if(s.options.eventType!=="keydown")continue;Fy(t,s.parsedHotkey,s.options.platform)&&(s.options.preventDefault&&t.preventDefault(),s.options.stopPropagation&&t.stopPropagation(),(!s.options.requireReset||!s.hasFired)&&(this.#l(s,t),s.options.requireReset&&(s.hasFired=true)));}else s.options.eventType==="keyup"&&Fy(t,s.parsedHotkey,s.options.platform)&&this.#l(s,t),s.options.requireReset&&s.hasFired&&this.#f(s,t)&&(s.hasFired=false);}}#l(t,n){t.options.preventDefault&&n.preventDefault(),t.options.stopPropagation&&n.stopPropagation(),t.triggerCount++,this.registrations.setState(o=>new Map(o));const r={hotkey:t.hotkey,parsedHotkey:t.parsedHotkey};t.callback(n,r);}#c(t){return n=>{this.#o(n,t,"keydown");}}#u(t){return n=>{this.#o(n,t,"keyup");}}#d(t,n){for(const r of this.registrations.state.values())if(r.hotkey===t&&r.target===n)return r;return null}#f(t,n){const r=t.parsedHotkey,o=op(n.key),i=r.key.length===1?r.key.toUpperCase():r.key;return !!((o.length===1?o.toUpperCase():o)===i||r.ctrl&&o==="Control"||r.shift&&o==="Shift"||r.alt&&o==="Alt"||r.meta&&o==="Meta")}triggerRegistration(t){const n=this.registrations.state.get(t);if(!n)return  false;const r=n.parsedHotkey,o=new KeyboardEvent(n.options.eventType??"keydown",{key:r.key,ctrlKey:r.ctrl,shiftKey:r.shift,altKey:r.alt,metaKey:r.meta,bubbles:true,cancelable:true});return n.triggerCount++,this.registrations.setState(i=>new Map(i)),n.callback(o,{hotkey:n.hotkey,parsedHotkey:n.parsedHotkey}),true}getRegistrationCount(){return this.registrations.state.size}isRegistered(t,n){for(const r of this.registrations.state.values())if(r.hotkey===t&&(n===void 0||r.target===n))return  true;return  false}destroy(){for(const t of this.#e.keys())this.#a(t);this.registrations.setState(()=>new Map),this.#e.clear(),this.#r.clear();}};function Oxe(){return Ixe.getInstance()}function Do(e,t,n={}){const r={...ixe().hotkey,...n},o=Oxe(),i=f.useRef(null),s=f.useRef(t),l=f.useRef(r),u=f.useRef(o);s.current=t,l.current=r,u.current=o;const d=f.useRef(null),m=f.useRef(null),p=r.platform??Yu(),g=typeof e=="string"?e:AU(TU(e,p)),{target:b,...y}=r;f.useEffect(()=>{const S=Dxe(l.current.target)?l.current.target.current:l.current.target??(typeof document<"u"?document:null);if(!S)return;const C=d.current!==null&&d.current!==S,w=m.current!==null&&m.current!==g;return i.current?.isActive&&(C||w)&&(i.current.unregister(),i.current=null),(!i.current||!i.current.isActive)&&(i.current=u.current.register(g,s.current,{...l.current,target:S})),d.current=S,m.current=g,()=>{i.current?.isActive&&(i.current.unregister(),i.current=null);}},[g,n.enabled]),i.current?.isActive&&(i.current.callback=t,i.current.setOptions(y));}function Dxe(e){return e!==null&&typeof e=="object"&&"current"in e}function _xe(e){return [...new Set(e)]}function Lxe(e,t){if(!e)throw Error(t)}const OU=String.raw,Yc=(e,...t)=>new RegExp(OU(e,...t)),Y_=OU`(\d+(\.\d+)?)?(xs|sm|md|lg|xl)`,Hb="(solid|dashed|dotted|double|none|hidden)";function hr(e,t){return Lxe(e.endsWith("-"),"prefix must end with `-`"),t.map(n=>e+n)}const Bxe=[[[...["block","flex","grid","table"].flatMap(e=>[e,`inline-${e}`]),"inline","flow-root","contents","list-item","hidden",...hr("table-",["row","column","cell","caption","row-group","column-group","header-group","footer-group"])],"display"],[["isolate","isolation-auto"],"isolation"],[["static","fixed","absolute","relative","sticky"],"position"],[["visible","invisible","collapse"],"visibility"],[hr("flex-",["row","row-reverse","col","col-reverse"]),"flex-direction"],[hr("flex-",["wrap","wrap-reverse","nowrap"]),"flex-wrap"],[hr("object-",["contain","cover","fill","none","scale-down"]),"object-fit"],[hr("object-",["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]),"object-position"],[["antialiased","subpixel-antialiased"],"font-smoothing"],[["italic","not-italic","oblique","not-oblique"],"font-style"],[hr("font-",["mono","sans","serif"]),"font-family"],[/^(?:font|fw)-?(thin|extralight|light|normal|medium|semibold|bold|extrabold|black|\d+)$/,"font-weight"],[["normal-nums","ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"],"font-variant-numeric"],[Yc`^(text|text-size|font-size)-(\d+|${Y_}$)`,"font-size"],[/^(leading|line-height)-/,"line-height"],[hr("list-",["inside","outside"]),"list-style-position"],[hr("list-",["none","disc","decimal"]),"list-style-type"],[hr("text-",["left","center","right","justify","start","end"]),"text-align"],[["underline","overline","line-through","no-underline"],"text-decoration-line"],[hr("decoration-",["solid","double","dotted","dashed","wavy"]),"text-decoration-style"],[/^decoration-(\d+|(auto|from-font)$)/,"text-decoration-thickness"],[["truncate","text-ellipsis","text-clip"],"text-overflow"],[hr("text-",["wrap","nowrap","balance","pretty"]),"text-wrap"],[hr("bg-",["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]),"background-position"],[/^bg(-no)?-repeat($|-)/,"background-repeat"],[hr("bg-",["auto","cover","contain"]),"background-size"],[["bg-none",/^bg-gradient-to-/],"background-image"],[/^(?:border-|b-)?(?:rounded|rd)(?:-(.+))?$/,"rounded"],[Yc`^b(?:order)?-${Hb}$`,"border-style"],[Yc`^b(?:order)?-([tblrxyse])-${Hb}$`,(e,t)=>`border-${t?.[1]}-style`],[/^b(?:order)?($|-\d+)/,"border-width"],[/^b(?:order)?-([tblrxyse])($|-\d+)/,(e,t)=>`border-${t?.[1]}-width`],[/^(?:border|b)-(?:color-)?(.+)$/,"border-color"],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,(e,t)=>`border-${t?.[1]}-color`],[/^outline-\d+/,"outline-width"],[["outline",Yc`^outline-${Hb}$`],"outline-style"],[Yc`^divide-${Hb}$`,"divide-style"],[/^divide-(x|y)($|-\d+)/,(e,t)=>`divide-${t?.[1]}-width`],[["ring",/^ring-\d+/],"ring-width"],[[/^ring-offset-\d+/],"ring-offset-width"],[["shadow",...hr("shadow-",["inner","none"]),Yc`^shadow-${Y_}$`],"box-shadow"],[hr("border-",["collapse","separate"]),"border-collapse"],[hr("table-",["auto","fixed"]),"table-layout"],[hr("caption-",["top","bottom"]),"caption-side"],[hr("scroll-",["auto","smooth"]),"scroll-behavior"],[hr("snap-",["start","end","center","align-none"]),"scroll-snap-align"],[hr("snap-",["normal","always"]),"scroll-snap-stop"],[hr("snap-",["none","x","y","both","mandatory","proximity"]),"scroll-snap-type"],[/^stroke-\d+/,"stroke-width"],[["sr-only","not-sr-only"],"Screen-Readers"],[/^(flex-)?grow($|-\d+$)/,"flex-grow"],[/^(flex-)?shrink($|-\d+$)/,"flex-shrink"],[/^(flex-)?basis-(.+)$/,"flex-basis"],[/^flex-(initial|auto|none|\d+)$/,"flex"],[/^col-start-/,"grid-column-start"],[/^col-end-/,"grid-column-end"],[[/^col-/,/^col-span-/],"grid-column"],[/^row-start-/,"grid-row-start"],[/^row-end-/,"grid-row-end"],[[/^row-/,/^row-span-/],"grid-row"],["transition-none","transition-none"],[/^transition-delay-(.+)$/,"transition-delay"],[/^transition-ease(?:-(.+))?$/,"transition-timing-function"],[/^transition(-duration)?-\d+(m?s)?$/,"transition-duration"],[/^transition-(all$|\w+)/,"transition-property"],...["ring-inset","divide-x-reverse","divide-y-reverse"].map(e=>[e,e]),...["resize","blur","drop-shadow","grayscale","invert","sepia","backdrop-blur","backdrop-grayscale","backdrop-invert","backdrop-sepia"].map(e=>[Yc`^${e}($|-)`,e])],Z3=new Map,DU=new Map;for(let[e,t]of Bxe){let n=[e].flat(),r=n.filter(i=>typeof i=="string"),o=n.filter(i=>typeof i=="object"&&i instanceof RegExp);r.forEach(i=>{let s=typeof t=="string"?t:t(i);Z3.set(i,s);}),o.forEach(i=>{DU.set(i,t);});}function kxe(e){if(Z3.has(e))return Z3.get(e);for(let[t,n]of DU.entries())if(t.test(e)){let r=t.exec(e);return typeof n=="string"?n:n(e,r)}}function zxe(e){return Fxe.map(t=>typeof t=="string"?[t,t]:t).find(([t,n])=>e.startsWith(`${t}-`))}const Fxe=["break-after","break-before","break-inside","grid-flow","align","whitespace","mix-blend","bg-blend","ease","origin","cursor","touch","color",["text","color"],["c","color"],["bg","background-color"],["decoration","text-decoration-color"],["from","gradient-color-stops"],["divide","divide-color"],["outline","outline-color"],["ring","ring-color"],["ring-offset","ring-offset-color"],["shadow","box-shadow-color"],["accent","accent-color"],["caret","caret-color"],"fill","stroke"],X_=new Map(Object.entries({flex:["flex-grow","flex-shrink","flex-basis"],"transiton-none":["transition-duration","transition-delay","transition-timing-function","transition-property"],m:["mt","mb","ml","mr","mx","my"],mx:["ml","mr"],my:["mt","mb"],p:["pt","pb","pl","pr","px","py"],px:["pl","pr"],py:["pt","pb"]}));function Hxe(e){return (e||"").split(" ").map(t=>t.trim()).filter(Boolean)}function _U(...e){let t=new Map;return Hxe(X(...e)).filter(Boolean).forEach(n=>Vxe(n,t)),_xe(Array.from(t.values())).join(" ")}function Vxe(e,t){let n=e,r;function o(p){[p].flat().forEach(g=>{X_.has(g)&&[X_.get(g)].flat().filter(b=>b!==void 0).forEach(b=>{t.delete(r?r+b:b);}),t.set(r?r+g:g,n);});}function i(){let p=kxe(e);if(p)return o(p),true}function s(){let p=zxe(e);if(!p)return;let[g,b]=p;return o(b),true}function l(){let p=e,g=/(\[[\w,()/-]+\])$/;g.test(e)&&(p=e.replace(g,function(y,S){return "*".repeat(S.length)})),p=p.replaceAll(/--(?=\d)/g,"-*");let b=p.lastIndexOf("-");if(b!==-1)return o(e.slice(0,b)),true}function u(){return o(e)}function d(){let p=/^(?:(?:[\w-]+|\[\S+\]):)+/.exec(e);p&&(r=p[0].split(new RegExp("(?<=:)(?:\\b|$)")).filter(Boolean).sort().join(""),e=e.slice(r.length));}function m(){if(e.startsWith("!")){e="important:"+e.slice(1);return}if(e.endsWith("!")){e="important:"+e.slice(0,-1);return}}i()||s()||(m(),d(),i()||s()||l()||u());}function or(...e){let t=f.useMemo(()=>X(...e),[...e]);return f.useMemo(()=>_U(t),[t])}const zf="inline-block cursor-pointer rounded bg-gate-primary-lv-3 px-6px text-white line-height-tight tracking-1 font-mono";function jxe({className:e,...t}){return x("kbd",{...t,className:or(zf,e)})}function Pa({k:e,...t}){return x(jxe,{...t,children:hxe(e)})}const LU=x(zA,{className:"text-gate-primary [.ant-spin_.ant-spin-dot&]:size-25px"}),BU="flex items-center gap-x-1 [&.ant-btn:not(:disabled):focus-visible]:outline-0";function Q_(e){if(/^z-\d+$/.test(e))return Number.parseInt(e.slice(2))}const Uxe="z-1001",Wxe="z-10004",Gxe="z-10005",Z_="z-11000",qxe="z-11200",Kxe="z-11300",Yxe="z-90000",J_={default:X("fixed left-50% top-50% max-w-450px min-w-200px w-[max-content] translate-x--50% translate-y--50% whitespace-pre-wrap rounded-6px bg-gate-primary px-24px py-12px text-14px text-white",Yxe),singleLine:"text-center"};function Jt(e,t=2e3,n=document.body){const r=document.createElement("div");r.textContent=e;const o=!e.includes(`
`)&&!e.includes("<br");r.className=X(Ns,J_.default,o&&J_.singleLine),n.appendChild(r),setTimeout(()=>r.remove(),t);}var Kw,eL;function Xxe(){if(eL)return Kw;eL=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;Kw=function(m,p){p=p||{};var g=typeof m;if(g==="string"&&m.length>0)return s(m);if(g==="number"&&isFinite(m))return p.long?u(m):l(m);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(m))};function s(m){if(m=String(m),!(m.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(m);if(p){var g=parseFloat(p[1]),b=(p[2]||"ms").toLowerCase();switch(b){case "years":case "year":case "yrs":case "yr":case "y":return g*i;case "weeks":case "week":case "w":return g*o;case "days":case "day":case "d":return g*r;case "hours":case "hour":case "hrs":case "hr":case "h":return g*n;case "minutes":case "minute":case "mins":case "min":case "m":return g*t;case "seconds":case "second":case "secs":case "sec":case "s":return g*e;case "milliseconds":case "millisecond":case "msecs":case "msec":case "ms":return g;default:return}}}}function l(m){var p=Math.abs(m);return p>=r?Math.round(m/r)+"d":p>=n?Math.round(m/n)+"h":p>=t?Math.round(m/t)+"m":p>=e?Math.round(m/e)+"s":m+"ms"}function u(m){var p=Math.abs(m);return p>=r?d(m,p,r,"day"):p>=n?d(m,p,n,"hour"):p>=t?d(m,p,t,"minute"):p>=e?d(m,p,e,"second"):m+" ms"}function d(m,p,g,b){var y=p>=g*1.5;return Math.round(m/g)+" "+b+(y?"s":"")}return Kw}var Qxe=Xxe();const Qr=Ni(Qxe);var Yw,tL;function Zxe(){return tL||(tL=1,Yw=function(t){return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Yw}var Xw,nL;function Jxe(){return nL||(nL=1,Xw=function(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}),Xw}var Qw,rL;function ewe(){if(rL)return Qw;rL=1;var e=Zxe(),t=Jxe();return Qw=function(r,o,i){var s=!e(o);return r&&(s||i===false)?t(r,o):o},Qw}var twe=ewe();const nwe=Ni(twe);var Zw,oL;function rwe(){return oL||(oL=1,Zw=function(t,n){return function(){return t.apply(n,arguments)}}),Zw}var Jw,iL;function Ig(){if(iL)return Jw;iL=1;var e=rwe(),t=Object.prototype.toString,n=(function(_){return function(B){var Y=t.call(B);return _[Y]||(_[Y]=Y.slice(8,-1).toLowerCase())}})(Object.create(null));function r(_){return _=_.toLowerCase(),function(Y){return n(Y)===_}}function o(_){return Array.isArray(_)}function i(_){return typeof _>"u"}function s(_){return _!==null&&!i(_)&&_.constructor!==null&&!i(_.constructor)&&typeof _.constructor.isBuffer=="function"&&_.constructor.isBuffer(_)}var l=r("ArrayBuffer");function u(_){var B;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?B=ArrayBuffer.isView(_):B=_&&_.buffer&&l(_.buffer),B}function d(_){return typeof _=="string"}function m(_){return typeof _=="number"}function p(_){return _!==null&&typeof _=="object"}function g(_){if(n(_)!=="object")return  false;var B=Object.getPrototypeOf(_);return B===null||B===Object.prototype}function b(_){return _&&Object.keys(_).length===0&&Object.getPrototypeOf(_)===Object.prototype}var y=r("Date"),S=r("File"),C=r("Blob"),w=r("FileList");function E(_){return t.call(_)==="[object Function]"}function M(_){return p(_)&&E(_.pipe)}function T(_){var B="[object FormData]";return _&&(typeof FormData=="function"&&_ instanceof FormData||t.call(_)===B||E(_.toString)&&_.toString()===B)}var A=r("URLSearchParams");function I(_){return _.trim?_.trim():_.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function N(){var _;return typeof navigator<"u"&&((_=navigator.product)==="ReactNative"||_==="NativeScript"||_==="NS")?false:typeof window<"u"&&typeof document<"u"}function P(_,B){if(!(_===null||typeof _>"u"))if(typeof _!="object"&&(_=[_]),o(_))for(var Y=0,J=_.length;Y<J;Y++)B.call(null,_[Y],Y,_);else for(var ee in _)Object.prototype.hasOwnProperty.call(_,ee)&&B.call(null,_[ee],ee,_);}function O(){var _={};function B(ee,te){g(_[te])&&g(ee)?_[te]=O(_[te],ee):g(ee)?_[te]=O({},ee):o(ee)?_[te]=ee.slice():_[te]=ee;}for(var Y=0,J=arguments.length;Y<J;Y++)P(arguments[Y],B);return _}function D(_,B,Y){return P(B,function(ee,te){Y&&typeof ee=="function"?_[te]=e(ee,Y):_[te]=ee;}),_}function L(_){return _.charCodeAt(0)===65279&&(_=_.slice(1)),_}function F(_,B,Y,J){_.prototype=Object.create(B.prototype,J),_.prototype.constructor=_,Y&&Object.assign(_.prototype,Y);}function U(_,B,Y,J){var ee,te,re,ie={};if(B=B||{},_==null)return B;do{for(ee=Object.getOwnPropertyNames(_),te=ee.length;te-- >0;)re=ee[te],(!J||J(re,_,B))&&!ie[re]&&(B[re]=_[re],ie[re]=true);_=Y!==false&&Object.getPrototypeOf(_);}while(_&&(!Y||Y(_,B))&&_!==Object.prototype);return B}function W(_,B,Y){_=String(_),(Y===void 0||Y>_.length)&&(Y=_.length),Y-=B.length;var J=_.indexOf(B,Y);return J!==-1&&J===Y}function z(_){if(!_)return null;if(o(_))return _;var B=_.length;if(!m(B))return null;for(var Y=new Array(B);B-- >0;)Y[B]=_[B];return Y}var k=(function(_){return function(B){return _&&B instanceof _}})(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));function G(_,B){for(var Y=_&&_[Symbol.iterator],J=Y.call(_),ee;(ee=J.next())&&!ee.done;){var te=ee.value;B.call(_,te[0],te[1]);}}function j(_,B){for(var Y,J=[];(Y=_.exec(B))!==null;)J.push(Y);return J}var K=r("HTMLFormElement"),Q=(function(B){return function(Y,J){return B.call(Y,J)}})(Object.prototype.hasOwnProperty);return Jw={isArray:o,isArrayBuffer:l,isBuffer:s,isFormData:T,isArrayBufferView:u,isString:d,isNumber:m,isObject:p,isPlainObject:g,isEmptyObject:b,isUndefined:i,isDate:y,isFile:S,isBlob:C,isFunction:E,isStream:M,isURLSearchParams:A,isStandardBrowserEnv:N,forEach:P,merge:O,extend:D,trim:I,stripBOM:L,inherits:F,toFlatObject:U,kindOf:n,kindOfTest:r,endsWith:W,toArray:z,isTypedArray:k,isFileList:w,forEachEntry:G,matchAll:j,isHTMLForm:K,hasOwnProperty:Q},Jw}var eE,sL;function kU(){if(sL)return eE;sL=1;var e=Ig();function t(o,i,s,l,u){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=o,this.name="AxiosError",i&&(this.code=i),s&&(this.config=s),l&&(this.request=l),u&&(this.response=u);}e.inherits(t,Error,{toJSON:function(){return {message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var n=t.prototype,r={};return ["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(o){r[o]={value:o};}),Object.defineProperties(t,r),Object.defineProperty(n,"isAxiosError",{value:true}),t.from=function(o,i,s,l,u,d){var m=Object.create(n);return e.toFlatObject(o,m,function(g){return g!==Error.prototype}),t.call(m,o.message,i,s,l,u),m.cause=o,m.name=o.name,d&&Object.assign(m,d),m},eE=t,eE}var tE,aL;function owe(){if(aL)return tE;aL=1;var e=kU();return tE=function(n,r,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?n(o):r(new e("Request failed with status code "+o.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o));},tE}var iwe=owe();const swe=Ni(iwe);var nE,lL;function awe(){return lL||(lL=1,nE=typeof self=="object"?self.FormData:window.FormData),nE}var rE,cL;function lwe(){return cL||(cL=1,rE=awe()),rE}var oE,uL;function cwe(){if(uL)return oE;uL=1;var e=Ig(),t=kU(),n=lwe();function r(m){return e.isPlainObject(m)||e.isArray(m)}function o(m){return e.endsWith(m,"[]")?m.slice(0,-2):m}function i(m,p,g){return m?m.concat(p).map(function(y,S){return y=o(y),!g&&S?"["+y+"]":y}).join(g?".":""):p}function s(m){return e.isArray(m)&&!m.some(r)}var l=e.toFlatObject(e,{},null,function(p){return /^is[A-Z]/.test(p)});function u(m){return m&&e.isFunction(m.append)&&m[Symbol.toStringTag]==="FormData"&&m[Symbol.iterator]}function d(m,p,g){if(!e.isObject(m))throw new TypeError("target must be an object");p=p||new(n||FormData),g=e.toFlatObject(g,{metaTokens:true,dots:false,indexes:false},false,function(O,D){return !e.isUndefined(D[O])});var b=g.metaTokens,y=g.visitor||T,S=g.dots,C=g.indexes,w=g.Blob||typeof Blob<"u"&&Blob,E=w&&u(p);if(!e.isFunction(y))throw new TypeError("visitor must be a function");function M(P){if(P===null)return "";if(e.isDate(P))return P.toISOString();if(!E&&e.isBlob(P))throw new t("Blob is not supported. Use a Buffer instead.");return e.isArrayBuffer(P)||e.isTypedArray(P)?E&&typeof Blob=="function"?new Blob([P]):Buffer.from(P):P}function T(P,O,D){var L=P;if(P&&!D&&typeof P=="object"){if(e.endsWith(O,"{}"))O=b?O:O.slice(0,-2),P=JSON.stringify(P);else if(e.isArray(P)&&s(P)||e.isFileList(P)||e.endsWith(O,"[]")&&(L=e.toArray(P)))return O=o(O),L.forEach(function(U,W){!(e.isUndefined(U)||U===null)&&p.append(C===true?i([O],W,S):C===null?O:O+"[]",M(U));}),false}return r(P)?true:(p.append(i(D,O,S),M(P)),false)}var A=[],I=Object.assign(l,{defaultVisitor:T,convertValue:M,isVisitable:r});function N(P,O){if(!e.isUndefined(P)){if(A.indexOf(P)!==-1)throw Error("Circular reference detected in "+O.join("."));A.push(P),e.forEach(P,function(L,F){var U=!(e.isUndefined(L)||L===null)&&y.call(p,L,e.isString(F)?F.trim():F,O,I);U===true&&N(L,O?O.concat(F):[F]);}),A.pop();}}if(!e.isObject(m))throw new TypeError("data must be an object");return N(m),p}return oE=d,oE}var iE,dL;function uwe(){if(dL)return iE;dL=1;var e=cwe();function t(o){var i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(o).replace(/[!'\(\)~]|%20|%00/g,function(l){return i[l]})}function n(o,i){this._pairs=[],o&&e(o,this,i);}var r=n.prototype;return r.append=function(i,s){this._pairs.push([i,s]);},r.toString=function(i){var s=i?function(l){return i.call(this,l,t)}:t;return this._pairs.map(function(u){return s(u[0])+"="+s(u[1])},"").join("&")},iE=n,iE}var sE,fL;function dwe(){if(fL)return sE;fL=1;var e=Ig(),t=uwe();function n(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return sE=function(o,i,s){if(!i)return o;var l=o.indexOf("#");l!==-1&&(o=o.slice(0,l));var u=s&&s.encode||n,d=s&&s.serialize,m;return d?m=d(i,s):m=e.isURLSearchParams(i)?i.toString():new t(i,s).toString(u),m&&(o+=(o.indexOf("?")===-1?"?":"&")+m),o},sE}var fwe=dwe();const mwe=Ni(fwe);var aE,mL;function hwe(){if(mL)return aE;mL=1;var e=Ig(),t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return aE=function(r){var o={},i,s,l;return r&&e.forEach(r.split(`
`),function(d){if(l=d.indexOf(":"),i=e.trim(d.slice(0,l)).toLowerCase(),s=e.trim(d.slice(l+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([s]):o[i]=o[i]?o[i]+", "+s:s;}}),o},aE}var pwe=hwe();const gwe=Ni(pwe);var vwe=Ig();const hL=Ni(vwe);function bwe(e){return new Promise((t,n)=>{let r=e.data;const o=e.headers??{};if(hL.isFormData(r)&&delete o["Content-Type"],e.auth){const m=e.auth.username||"",p=e.auth.password||"";o.Authorization="Basic "+Buffer.from(m+":"+p).toString("base64");}const i=function(){n(new DM.AxiosError("Network Error",DM.AxiosError.ERR_NETWORK,e));},s=function(){n(new DM.AxiosError("timeout of "+e.timeout+"ms exceeded",DM.AxiosError.ECONNABORTED,e));};hL.forEach(o,function(p,g){typeof r>"u"&&g.toLowerCase()==="content-type"&&delete o[g];}),r===void 0&&(r=null);const l=function(p){const g="responseHeaders"in p?gwe(p.responseHeaders):{},y={data:!e.responseType||e.responseType==="text"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:g,config:e,request:{responseURL:p.finalUrl,status:p.status,statusText:p.statusText,responseXML:null}};swe(t,n,y);};e.cancelToken&&e.cancelToken.promise.then(function(p){n(p);});let u;e.responseType&&e.responseType!=="json"&&(u=e.responseType);const d=e.method.toUpperCase();d==="UNLINK"||d==="PURGE"||d==="LINK"?n(new DM.AxiosError(`${d} is not a supported method by GM.xmlHttpRequest`)):GM.xmlHttpRequest({method:d,url:mwe(nwe(e.baseURL,e.url),e.params,e.paramsSerializer),headers:Object.fromEntries(Object.entries(o).map(([m,p])=>[m,p.toString()])),responseType:u,data:r,timeout:e.timeout,ontimeout:s,onload:l,onerror:i});})}const lE=()=>Yn().format("YYYY-MM-DD");function zU(e){async function t(){const n=lE();(await GM.listValues()).filter(o=>o.startsWith(`${e}:`)&&o!==`${e}:${n}`).forEach(o=>GM.deleteValue(o));}return t(),{async set(n){t(),await GM.setValue(`${e}:${lE()}`,n);},get(){return t(),GM.getValue(`${e}:${lE()}`)}}}const ywe=(e,t,n,r)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;const o=Object.getOwnPropertyDescriptor(e,n),i=Object.getOwnPropertyDescriptor(t,n);!Swe(o,i)&&r||Object.defineProperty(e,n,i);},Swe=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Cwe=(e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n);},xwe=(e,t)=>`/* Wrapped ${e}*/
${t}`,wwe=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Ewe=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),$we=(e,t,n)=>{const r=n===""?"":`with ${n.trim()}() `,o=xwe.bind(null,r,t.toString());Object.defineProperty(o,"name",Ewe);const{writable:i,enumerable:s,configurable:l}=wwe;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:s,configurable:l});};function Mwe(e,t,{ignoreNonConfigurable:n=false}={}){const{name:r}=e;for(const o of Reflect.ownKeys(t))ywe(e,t,o,n);return Cwe(e,t),$we(e,t,r),e}const Twe=new WeakMap;function NR(e,t){const n=([l])=>l,{cacheKey:r=n,cache:o=new Map}=t??{},i=new Map,s=function(...l){const u=r(l);if(i.has(u))return i.get(u);const d=(async()=>{try{if(o&&await o.has(u))return await o.get(u);const p=await e.apply(this,l);try{return p}finally{o&&(!t?.shouldCache||await t.shouldCache(p,{key:u,argumentsList:l}))&&await o.set(u,p);}}finally{i.delete(u);}})();return i.set(u,d),d};return Mwe(s,e,{ignoreNonConfigurable:true}),Twe.set(s,o),s}function el(e,t){return t??=(...n)=>JSON.stringify(n),NR(e,{cache:false,cacheKey(n){return t(...n)}})}async function J1(e){const{img_key:t,sub_key:n}=await Awe(),r=Pwe(t+n),o=Math.round(Date.now()/1e3),i={...e,wts:o},s=/[!'()*]/g,l=Object.keys(i).sort().map(d=>`${encodeURIComponent(d)}=${encodeURIComponent(i[d].toString().replaceAll(s,""))}`).join("&"),u=sparkMd5.hash(l+r);return {...i,wts:o,w_rid:u}}const FU=zU("wbi-keys"),Awe=el(async function(){const e=await FU.get();return e?.val&&e?.ts&&Date.now()-e.ts<=Qr("6h")?e.val:Rwe()});async function Rwe(){const t=(await DM.get("/x/web-interface/nav",{baseURL:K9})).data,n=t.data.wbi_img.img_url,r=t.data.wbi_img.sub_url,o={img_key:n.slice(n.lastIndexOf("/")+1,n.lastIndexOf(".")),sub_key:r.slice(r.lastIndexOf("/")+1,r.lastIndexOf("."))};return await FU.set({val:o,ts:Date.now()}),o}const Nwe=[46,47,18,2,53,8,23,32,15,50,10,31,58,3,45,35,27,43,5,49,33,9,42,19,29,28,14,39,12,38,41,13,37,48,7,16,24,55,40,61,26,17,0,1,60,51,30,4,22,25,54,21,56,59,6,63,57,62,11,36,20,34,44,52];function Pwe(e){return Nwe.map(t=>e[t]).join("").slice(0,32)}function HU(e,t,n){e.appkey=t;const r=new URLSearchParams(e);return r.sort(),sparkMd5.hash(r.toString()+n)}const Iwe={platform:"ios",mobi_app:"ipad",device:"pad",build:"37300100",c_locale:"zh-Hans_CN",s_locale:"zh-Hans_CN"};class PR extends Error{constructor(t,n){t||="需要有效的 access_key",super(t,{cause:n}),this.name="NeedValidAccessKeyError";}}const Yt=DM.create({baseURL:K9,withCredentials:true});Yt.interceptors.request.use(async function(e){return e.params||={},e.url?.includes("/wbi/")&&!(e.params.w_rid||e.params.wts)&&(e.params=await J1(e.params)),e});function Vn(e){return e?.code===0&&["0","success","ok"].includes(e?.message?.toLowerCase())}class IR extends Error{constructor(t,n){n||=`${qM} (code: ${t?.code}, message: ${t?.message})`,super(n),this.json=t,this.name="OperationFailError";}}class Owe extends Error{constructor(t){super(`Axios Request Error: ${t?.message||t?.toString()}`,{cause:t}),this.name="AxiosRequestError";}}function VU(e){return e&&e instanceof Error?e:new Owe(e)}const Og=DM.create({adapter:bwe});Og.interceptors.request.use(function(e){if(!e.params?.sign){const{appkey:t,appsec:n}=hp;e.params={appkey:t,access_key:at.accessKey||"",...D9(e.params,["sign"])},e.params.sign=HU(e.params,t,n);}return e});Og.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){ti("response data is ArrayBuffer");const t=new TextDecoder,n=new Uint8Array(e.data),r=t.decode(n);e.data=r;try{e.data=JSON.parse(r);}catch{}}return e});function OR(){const e={};return document.cookie.split(";").map(t=>t.trim()).filter(Boolean).forEach(t=>{const[n,r]=t.split("=").map(o=>o.trim()).filter(Boolean);n&&(e[n]=r);}),e}function Cc(){const e=OR().bili_jct;if(!e)throw Jt("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}function oi(){return OR().DedeUserID}function eS(){return !!OR().DedeUserID}const J3=yc(()=>({cookie:document.cookie,logined:eS()}));function jU(){return J3.update(),J3.state.value.logined}function DR(){return J3.use().logined}async function pL(){return (await Yt.get("https://member.bilibili.com/x/web/draft/list")).data.artlist?.drafts||[]}async function cE(e){const t=new URLSearchParams({title:"",banner_url:"",content:"",summary:"",words:"0",category:"15",tid:"0",reprint:"0",tags:"",image_urls:"",origin_image_urls:"",dynamic_intro:"",media_id:"0",spoiler:"0",original:"0",top_video_bvid:"",aid:"",csrf:Cc(),...e}),n=(await Yt.post("/x/article/creative/draft/addupdate",t)).data,r=n?.data?.aid?.toString(),o=Vn(n);return o||Jt(n.message||"addupdate error"),{success:o,aid:r}}async function Dwe(e){return (await Yt.get("/x/article/creative/draft/view",{params:{aid:e}})).data?.data?.content||""}class _we{title;constructor(t){this.title=t;}getData=async()=>{const{title:t}=this,r=(await pL()).find(u=>u.title===t);if(!r){const{success:u,aid:d}=await cE({title:t});return}const o=await Dwe(r.id),l=(new DOMParser().parseFromString(o,"text/html").body.textContent||"").trim();if(l)try{return JSON.parse(l)}catch{return}};_aid;setData=async t=>{const{title:n}=this;if(!this._aid){const s=(await pL()).find(l=>l.title===n);if(s)this._aid=s.id.toString();else {const{success:l,aid:u}=await cE({title:n});if(!l)return  false;this._aid=u;}}const r=JSON.stringify(t),{success:o}=await cE({aid:this._aid,title:n,content:`<p>${r}</p>`,words:r.length.toString()});return o}}const Lwe=po.extend("settings"),UU=new _we(Zo),WU=["accessKey","accessKeyExpireAt"],Bwe=()=>[...WU,...Vy,"backupSettingsToArticleDraft","fav.addSeparator","watchlaterAddSeparator","watchlaterItemsOrder","popularWeeklyUseShuffle","popularGeneralUseAnonymous"],kwe=[...WU,"backupSettingsToArticleDraft"];let GU=false;function qU(e){GU=e;}let uE;const zwe=qa(UU.setData,Qr("5s"));async function Fwe(e){if(!e.backupSettingsToArticleDraft||GU)return;const{pickedSettings:t}=xc(e,Zl(tl,Bwe()));if(!uE||!Ei(uE,t))try{await zwe(t),uE=t,Lwe("backup to article draft complete");}catch(r){console.error(r.stack||r);}}const Hwe=po.extend("settings"),Dg={accessKey:"",accessKeyExpireAt:0,pureRecommend:true,appRecommend:{addOtherTabContents:false},modalFeedFullScreen:false,grid:{useCustomGrid:true,gridDisplayMode:Wr.NormalGrid,twoColumnModeAlign:Mu.Center,enableForceColumn:false,forceColumnCount:4,cardMinWidth:320},videoCard:{actions:{openInPipWindow:false,showLargePreview:true},videoPreview:{useMp4:true,useScale:false,useVideoCardAsTrigger:false,usePreferredCdn:true,addTo:{searchPage:true}},imgPreview:{enabled:true,autoPreviewWhenKeyboardSelect:false,autoPreviewWhenHover:true,disableWhenMultiSelecting:true}},autoPreviewUpdateInterval:700,useDelayForHover:false,enableSidebar:true,sidebarAlign:kf.Right,dynamicFeed:{showLive:true,videoOnly:false,followGroup:{enabled:true,forceUseMergeTimelineIds:[]},whenViewAll:{enableHideSomeContents:false,hideIds:[]},advancedFilter:false,__internal:{cacheAllItemsEntry:false,cacheAllItemsUpMids:[],externalFilterInput:false}},watchlaterAddSeparator:true,watchlaterItemsOrder:Eo.AddTimeDesc,watchlaterUseNormalVideoUrl:false,fav:{addSeparator:true,excludedFolderIds:[],useCustomFavPicker:{onPlayPage:false}},popularGeneralUseAnonymous:false,popularWeeklyUseShuffle:false,spaceUpload:{showVol:false,useSyncFilterTextFromSearchText:false},filter:{enabled:true,minDuration:{enabled:false,value:60},minPlayCount:{enabled:false,value:1e4},minDanmakuCount:{enabled:false,value:10},exemptForFollowed:{video:true,picture:true},hideGotoTypePicture:false,hideGotoTypeBangumi:false,byAuthor:{enabled:false,keywords:[]},byTitle:{enabled:false,keywords:[]},dfByTitle:{enabled:false,keywords:[]},dfHideOpusMids:{enabled:false,keywords:[]}},style:{general:{popoverBorderColorUseColorPrimary:false},pureRecommend:{useStickyTabbar:true,stickyTabbarShadow:false,useWhiteBackground:true,hideTopChannel:false},videoCard:{useBorder:true,useBorderOnlyOnHover:true,useBoxShadow:false}},theme:"",colorPickerThemeSelectedColor:"",backupSettingsToArticleDraft:false,videoLinkOpenMode:cr.Normal,pipWindow:{defaultLocked:true,autoWebFullscreen:true},hidingTabKeys:[nt.KeepFollowOnly,nt.Live,nt.Liked],customTabKeysOrder:[],showBackForwardButtons:false,multiSelect:{clearWhenExit:true,showIcon:true},__internalEnableCopyBvidInfo:false,__internalAddTabbarCopyBvidButton:false,__internalHotSubUseDropdown:false,__internalRecTabRenderAsSegments:false},at=zn(wf(Dg)),tl=nxe(Dg),Vy=tl.filter(e=>e.includes("__internal")&&typeof er(Dg,e)=="boolean");Hwe("allowedLeafSettingsPaths = %O, internalBooleanPaths = %O",tl,Vy);function Ft(e){return gt(at,e)}function tS(){return Gr(at)}const _R="settings";async function _g(){const e=await GM.getValue(_R);return !e||typeof e!="object"?{}:(LR(e),xc(e,tl).pickedSettings)}async function Vwe(){const e=await _g();es(e),sa(at,()=>{jwe();}),IA({storageKey:_R,setPersist(t){KU=t;},onUpdate(t){es(t);}});}async function jwe(){const e=wf(Gr(at));await Uwe(e),await Fwe(e);}let KU=true;async function Uwe(e){KU&&await GM.setValue(_R,e);}function es(e){const{pickedPaths:t}=xc(e,tl);for(const n of t){const r=er(e,n);Uf(at,n,r);}}function Wwe(){return es(Dg)}function LR(e){if(!e)return;const t=[["dynamicFeed.showLive","dynamicFeedShowLive"],["dynamicFeed.followGroup.enabled","dynamicFeedFollowGroupEnabled"],["dynamicFeed.followGroup.forceUseMergeTimelineIds","dynamicFeedFollowGroupForceUseMergeTimelineIds"],["dynamicFeed.whenViewAll.enableHideSomeContents","dynamicFeedWhenViewAllEnableHideSomeContents"],["dynamicFeed.whenViewAll.hideIds","dynamicFeedWhenViewAllHideIds"],["fav.addSeparator","favAddSeparator"],["fav.excludedFolderIds","favExcludedFolderIds"],["filter.enabled","filterEnabled"],["filter.minPlayCount.enabled","filterMinPlayCountEnabled"],["filter.minPlayCount.value","filterMinPlayCount"],["filter.minDuration.enabled","filterMinDurationEnabled"],["filter.minDuration.value","filterMinDuration"],["filter.exemptForFollowed.video","exemptForFollowedVideo"],["filter.exemptForFollowed.picture","exemptForFollowedPicture"],["filter.hideGotoTypePicture","filterOutGotoTypePicture"],["filter.hideGotoTypeBangumi","filterOutGotoTypeBangumi"],["filter.byAuthor.enabled","filterByAuthorNameEnabled"],["filter.byAuthor.keywords","filterByAuthorNameKeywords"],["filter.byTitle.enabled","filterByTitleEnabled"],["filter.byTitle.keywords","filterByTitleKeywords"],["style.pureRecommend.useStickyTabbar","styleUseStickyTabbarInPureRecommend"],["style.pureRecommend.useWhiteBackground","styleUseWhiteBackground"],["style.pureRecommend.hideTopChannel","styleHideTopChannel"],["style.videoCard.useBorder","styleUseCardBorder"],["style.videoCard.useBorderOnlyOnHover","styleUseCardBorderOnlyOnHover"],["style.videoCard.useBoxShadow","styleUseCardBoxShadow"],["pipWindow.defaultLocked","pipWindowDefaultLocked"],["videoCard.imgPreview.autoPreviewWhenKeyboardSelect","autoPreviewWhenKeyboardSelect"],["videoCard.imgPreview.autoPreviewWhenHover","autoPreviewWhenHover"],["grid.useCustomGrid","style.pureRecommend.useCustomGrid"],["grid.enableForceColumn","grid.enableForceCoumn"],["dynamicFeed.advancedFilter","dynamicFeedAdvancedSearch"],["dynamicFeed.advancedFilter","dynamicFeed.advancedSearch"]];for(const[n,r]of t){const o=i=>!Xi(i);o(er(e,n))||o(er(e,r))&&Uf(e,n,er(e,r));}}function xc(e,t){const n={},r=t.filter(o=>tl.includes(o)&&!Xi(er(e,o)));return r.forEach(o=>{const i=er(e,o);Uf(n,o,i);}),{pickedPaths:r,pickedSettings:n}}function YU(e){const t=Ft();return er(t,e)}async function XU(e){const t=await _g();return er(t,e)||er(tS(),e)}function Gwe(e,t){Uf(at,e,t);}async function Ha(e,{add:t,remove:n}){const r=await XU(e),o=new Set(r);for(const i of t??[])o.add(i);for(const i of n??[])o.delete(i);Gwe(e,Array.from(o));}await( Vwe());Ka&&at.accessKey&&at.accessKeyExpireAt&&Date.now()>=at.accessKeyExpireAt&&Jt("access_key 已过期, 请重新获取 !!!");var R0={exports:{}},qwe=R0.exports,gL;function Kwe(){return gL||(gL=1,(function(e,t){(function(n,r){e.exports=r();})(qwe,(function(){var n,r,o=1e3,i=6e4,s=36e5,l=864e5,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=31536e6,m=2628e6,p=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,g={years:d,months:m,days:l,hours:s,minutes:i,seconds:o,milliseconds:1,weeks:6048e5},b=function(I){return I instanceof T},y=function(I,N,P){return new T(I,P,N.$l)},S=function(I){return r.p(I)+"s"},C=function(I){return I<0},w=function(I){return C(I)?Math.ceil(I):Math.floor(I)},E=function(I){return Math.abs(I)},M=function(I,N){return I?C(I)?{negative:true,format:""+E(I)+N}:{negative:false,format:""+I+N}:{negative:false,format:""}},T=(function(){function I(P,O,D){var L=this;if(this.$d={},this.$l=D,P===void 0&&(this.$ms=0,this.parseFromMilliseconds()),O)return y(P*g[S(O)],this);if(typeof P=="number")return this.$ms=P,this.parseFromMilliseconds(),this;if(typeof P=="object")return Object.keys(P).forEach((function(W){L.$d[S(W)]=P[W];})),this.calMilliseconds(),this;if(typeof P=="string"){var F=P.match(p);if(F){var U=F.slice(2).map((function(W){return W!=null?Number(W):0}));return this.$d.years=U[0],this.$d.months=U[1],this.$d.weeks=U[2],this.$d.days=U[3],this.$d.hours=U[4],this.$d.minutes=U[5],this.$d.seconds=U[6],this.calMilliseconds(),this}}return this}var N=I.prototype;return N.calMilliseconds=function(){var P=this;this.$ms=Object.keys(this.$d).reduce((function(O,D){return O+(P.$d[D]||0)*g[D]}),0);},N.parseFromMilliseconds=function(){var P=this.$ms;this.$d.years=w(P/d),P%=d,this.$d.months=w(P/m),P%=m,this.$d.days=w(P/l),P%=l,this.$d.hours=w(P/s),P%=s,this.$d.minutes=w(P/i),P%=i,this.$d.seconds=w(P/o),P%=o,this.$d.milliseconds=P;},N.toISOString=function(){var P=M(this.$d.years,"Y"),O=M(this.$d.months,"M"),D=+this.$d.days||0;this.$d.weeks&&(D+=7*this.$d.weeks);var L=M(D,"D"),F=M(this.$d.hours,"H"),U=M(this.$d.minutes,"M"),W=this.$d.seconds||0;this.$d.milliseconds&&(W+=this.$d.milliseconds/1e3,W=Math.round(1e3*W)/1e3);var z=M(W,"S"),k=P.negative||O.negative||L.negative||F.negative||U.negative||z.negative,G=F.format||U.format||z.format?"T":"",j=(k?"-":"")+"P"+P.format+O.format+L.format+G+F.format+U.format+z.format;return j==="P"||j==="-P"?"P0D":j},N.toJSON=function(){return this.toISOString()},N.format=function(P){var O=P||"YYYY-MM-DDTHH:mm:ss",D={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return O.replace(u,(function(L,F){return F||String(D[L])}))},N.as=function(P){return this.$ms/g[S(P)]},N.get=function(P){var O=this.$ms,D=S(P);return D==="milliseconds"?O%=1e3:O=D==="weeks"?w(O/g[D]):this.$d[D],O||0},N.add=function(P,O,D){var L;return L=O?P*g[S(O)]:b(P)?P.$ms:y(P,this).$ms,y(this.$ms+L*(D?-1:1),this)},N.subtract=function(P,O){return this.add(P,O,true)},N.locale=function(P){var O=this.clone();return O.$l=P,O},N.clone=function(){return y(this.$ms,this)},N.humanize=function(P){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!P)},N.valueOf=function(){return this.asMilliseconds()},N.milliseconds=function(){return this.get("milliseconds")},N.asMilliseconds=function(){return this.as("milliseconds")},N.seconds=function(){return this.get("seconds")},N.asSeconds=function(){return this.as("seconds")},N.minutes=function(){return this.get("minutes")},N.asMinutes=function(){return this.as("minutes")},N.hours=function(){return this.get("hours")},N.asHours=function(){return this.as("hours")},N.days=function(){return this.get("days")},N.asDays=function(){return this.as("days")},N.weeks=function(){return this.get("weeks")},N.asWeeks=function(){return this.as("weeks")},N.months=function(){return this.get("months")},N.asMonths=function(){return this.as("months")},N.years=function(){return this.get("years")},N.asYears=function(){return this.as("years")},I})(),A=function(I,N,P){return I.add(N.years()*P,"y").add(N.months()*P,"M").add(N.days()*P,"d").add(N.hours()*P,"h").add(N.minutes()*P,"m").add(N.seconds()*P,"s").add(N.milliseconds()*P,"ms")};return function(I,N,P){n=P,r=P().$utils(),P.duration=function(L,F){var U=P.locale();return y(L,{$l:U},F)},P.isDuration=b;var O=N.prototype.add,D=N.prototype.subtract;N.prototype.add=function(L,F){return b(L)?A(this,L,1):O.bind(this)(L,F)},N.prototype.subtract=function(L,F){return b(L)?A(this,L,-1):D.bind(this)(L,F)};}}));})(R0)),R0.exports}var Ywe=Kwe();const Xwe=Ni(Ywe);function vL(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,true)}function bL(e,t,n){var r=[],o=ZM(e,r,n);return r.length<2?n:o+t(r)}var QU=function(t){var n=ak(t);n.sheet.speedy=function(l){this.isSpeedy=l;},n.compat=true;var r=function(){for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];var p=hf(d,n.registered,void 0);return JM(n,p,false),n.key+"-"+p.name},o=function(){for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];var p=hf(d,n.registered),g="animation-"+p.name;return vL(n,{name:p.name,styles:"@keyframes "+g+"{"+p.styles+"}"}),g},i=function(){for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];var p=hf(d,n.registered);vL(n,p);},s=function(){for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];return bL(n.registered,r,Qwe(d))};return {css:r,cx:s,injectGlobal:i,keyframes:o,hydrate:function(u){u.forEach(function(d){n.inserted[d]=true;});},flush:function(){n.registered={},n.inserted={},n.sheet.flush();},sheet:n.sheet,cache:n,getRegisteredStyles:ZM.bind(null,n.registered),merge:bL.bind(null,n.registered,r)}},Qwe=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var i=void 0;switch(typeof o){case "boolean":break;case "object":{if(Array.isArray(o))i=e(o);else {i="";for(var s in o)o[s]&&s&&(i&&(i+=" "),i+=s);}break}default:i=o;}i&&(n&&(n+=" "),n+=i);}}return n},yL=function(t,n){var r=arguments;if(n==null||!ag.call(n,"css"))return f.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=tT,i[1]=eT(t,n);for(var s=2;s<o;s++)i[s]=r[s];return f.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}));})(yL||(yL={}));var BR=fk(function(e,t){var n=e.styles,r=hf([n],void 0,f.useContext(mk)),o=f.useRef();return t5(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=false,u=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),u!==null&&(l=true,u.setAttribute("data-emotion",i),s.hydrate([u])),o.current=[s,l],function(){s.flush();}},[t]),t5(function(){var i=o.current,s=i[0],l=i[1];if(l){i[1]=false;return}if(r.next!==void 0&&JM(t,r.next,true),s.tags.length){var u=s.tags[s.tags.length-1].nextElementSibling;s.before=u,s.flush();}t.insert("",r,s,false);},[t,r.name]),null});function un(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return hf(t)}var Sh={},dE={exports:{}},SL;function Lg(){return SL||(SL=1,(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=true,e.exports.default=e.exports;})(dE)),dE.exports}var Ch={},CL;function Zwe(){if(CL)return Ch;CL=1,Object.defineProperty(Ch,"__esModule",{value:true}),Ch.default=void 0;const e={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};return Ch.default=e,Ch}var xh={},wh={},Eh={},$h={},xL;function Jwe(){return xL||(xL=1,Object.defineProperty($h,"__esModule",{value:true}),$h.commonLocale=void 0,$h.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:true}),$h}var wL;function eEe(){if(wL)return Eh;wL=1,Object.defineProperty(Eh,"__esModule",{value:true}),Eh.default=void 0;var e=Jwe();function t(u){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t(u)}function n(u,d){var m=Object.keys(u);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(u);d&&(p=p.filter(function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable})),m.push.apply(m,p);}return m}function r(u){for(var d=1;d<arguments.length;d++){var m=arguments[d]!=null?arguments[d]:{};d%2?n(Object(m),true).forEach(function(p){o(u,p,m[p]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(m)):n(Object(m)).forEach(function(p){Object.defineProperty(u,p,Object.getOwnPropertyDescriptor(m,p));});}return u}function o(u,d,m){return d=i(d),d in u?Object.defineProperty(u,d,{value:m,enumerable:true,configurable:true,writable:true}):u[d]=m,u}function i(u){var d=s(u,"string");return t(d)=="symbol"?d:String(d)}function s(u,d){if(t(u)!="object"||!u)return u;var m=u[Symbol.toPrimitive];if(m!==void 0){var p=m.call(u,d);if(t(p)!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return (d==="string"?String:Number)(u)}var l=r(r({},e.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:false});return Eh.default=l,Eh}var Mh={},EL;function ZU(){if(EL)return Mh;EL=1,Object.defineProperty(Mh,"__esModule",{value:true}),Mh.default=void 0;const e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};return Mh.default=e,Mh}var $L;function JU(){if($L)return wh;$L=1;var e=Lg().default;Object.defineProperty(wh,"__esModule",{value:true}),wh.default=void 0;var t=e(eEe()),n=e(ZU());const r={lang:{placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"],...t.default},timePickerLocale:{...n.default}};return r.lang.ok="确定",wh.default=r,wh}var ML;function tEe(){if(ML)return xh;ML=1;var e=Lg().default;Object.defineProperty(xh,"__esModule",{value:true}),xh.default=void 0;var t=e(JU());return xh.default=t.default,xh}var TL;function nEe(){if(TL)return Sh;TL=1;var e=Lg().default;Object.defineProperty(Sh,"__esModule",{value:true}),Sh.default=void 0;var t=e(Zwe()),n=e(tEe()),r=e(JU()),o=e(ZU());const i="${label}不是一个有效的${type}",s={locale:"zh-cn",Pagination:t.default,DatePicker:r.default,TimePicker:o.default,Calendar:n.default,global:{placeholder:"请选择",close:"关闭",sortable:"可排序"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};return Sh.default=s,Sh}var fE,AL;function rEe(){return AL||(AL=1,fE=nEe()),fE}var oEe=rEe();const iEe=Ni(oEe),sEe="--bilibili-gate--font",aEe="--bilibili-gate--video-card--border-radius",eW="--bilibili-gate--primary-color",lEe="--bilibili-gate--border-color",tW="--bilibili-gate--text-color",nW="--bilibili-gate--bg",cEe="--bilibili-gate--primary-color--lv1",uEe="--bilibili-gate--primary-color--lv2",dEe="--bilibili-gate--primary-color--lv3",fEe="--bilibili-gate--bg--lv1",mEe="--bilibili-gate--bg--lv2",hEe="--bilibili-gate--bg--lv3",pEe="#ff6699",gEe='"Alibaba PuHuiTi 3.0", "PingFang SC", "HarmonyOS_Regular", "Helvetica Neue", "Microsoft YaHei", sans-serif',rW="var(--custom-font-family--options--font-family, var(--bilibili-gate--font))",vEe="bilibili-gate-root",oW="bilibili-gate-using-dark",iW="bilibili-gate-using-light",sW="html.bilibili-gate-using-dark",bEe="html.bilibili-gate-using-light",nl={appCustomFontId:sEe,appVideoCardBorderRadiusId:aEe,appPrimaryColorId:eW,appBorderColorId:lEe,appTextColorId:tW,appBgId:nW,appPrimaryColorLv1Id:cEe,appPrimaryColorLv2Id:uEe,appPrimaryColorLv3Id:dEe,appBgLv1Id:fEe,appBgLv2Id:mEe,appBgLv3Id:hEe,biliPink:pEe,appCustomFontValue:gEe,appUsingFont:rW,appClsRoot:vEe,appClsDark:oW,appClsLight:iW,appClsDarkSelector:sW,appClsLightSelector:bEe},RL=po.extend("utility:dom"),aW=10*1e3,lW=200;async function dm(e,t){const n=t?.interval??lW;let r=t?.timeout??aW;r===0&&(r=1/0);const o=t?.validate??(m=>!Xi(m)),i=t?.abortSignal,s=performance.now();let l=e();const u=new uo;i?.addEventListener("abort",()=>{u.emit("abort");});const d=()=>performance.now()-s<r;for(;!o(l)&&d()&&!i?.aborted;){const m=gn(n),p=u.once("abort");await Promise.race([m,p]),p.off(),l=e();}return l}async function nS(e,t,n){const r=n?.pollTimeout??aW,o=n?.pollInterval??lW,i=n?.selectorPredicate,s=n?.warnOnTimeout??false,l=await dm(()=>{let u=Array.from(document.querySelectorAll(e));if(i&&(u=u.filter(i)),u.length)return u},{timeout:r,interval:o});if(!l?.length){RL("tryAction: timeout for selector = `%s`",e),s&&ti("tryAction timeout, selector = `%s`",e);return}RL("tryAction: selector=`%s` count=%s",e,l.length);for(const u of l)await Promise.resolve(t(u));}async function ip(e,t,n){return nS(e,r=>r.remove(),{selectorPredicate:t,warnOnTimeout:false})}function yEe(e){if(!e)return  false;if(e instanceof HTMLInputElement){const t=e.type.toLowerCase();return !(t==="button"||t==="submit"||t==="reset")}return !!(e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||e instanceof HTMLElement&&e.isContentEditable)}function SEe(){return !!yEe(document.activeElement)}function CEe(e,t){t??=e.getBoundingClientRect();const n=document.documentElement;return {top:t.top+window.scrollY-n.clientTop,left:t.left+window.scrollX-n.clientLeft}}function rS(e){return new Promise(t=>{typeof requestIdleCallback=="function"?requestIdleCallback(()=>t(),e):setTimeout(t);})}let mE="";function kR(e){mE||(mE=document.title),document.title=`${e} - ${mE}`;}function eM(...e){return e.map(t=>t.trim()).filter(Boolean).map(t=>t.startsWith(".")?t:`.${t}`).join(",")}const Up={Evolved:{getDetectEl:()=>document.body,detect:e=>e.classList.contains("dark"),trigger:'.custom-navbar-item[role="listitem"][data-name="darkMode"]',triggerInner:'.navbar-dark-mode[item="darkMode"]'},Bili:{getDetectEl:()=>document.documentElement,detect:e=>e.classList.contains("bili_dark"),isTrigger:e=>{const t=e.closest(".avatar-panel-popover a.single-link-item");return t?!!Array.from(t.querySelectorAll(".link-title span")).find(n=>["深色","浅色"].includes(n.textContent||"")):false}}},NL=e=>{const t=e.getDetectEl();return t?e.detect(t):false},Ff=yc(()=>NL(Up.Bili)||NL(Up.Evolved)||document.body.classList.contains("bilibili-helper-dark-mode")||document.documentElement.classList.contains("dark"));function oS(){return Ff.use()}const cW=()=>{document.documentElement.classList.toggle(oW,Ff.get()),document.documentElement.classList.toggle(iW,!Ff.get());};cW();sa(Ff.state,cW);const zR=new MutationObserver(async()=>{await gn(0),Ff.updateThrottled();});zR.observe(document.body,{attributes:true,attributeFilter:["class"]});zR.observe(document.documentElement,{attributes:true,attributeFilter:["data-darkreader-scheme"]});xEe();async function xEe(){const e=await dm(Up.Bili.getDetectEl);e&&zR.observe(e,{attributes:true});}document.addEventListener("click",wEe,{passive:true});async function wEe(e){const t=e.target;(Up.Bili.isTrigger(t)||t.closest(Up.Evolved.trigger))&&(await gn(0),Ff.updateThrottled());}const EEe=po.extend("components:css-vars");EEe(":export = %O",nl);const wc=e=>(e.startsWith("--")||(e=`--${e}`),`var(${e})`),FR=wc(nl.appVideoCardBorderRadiusId),ts=wc(nl.appPrimaryColorId),uW=wc(nl.appBorderColorId);wc(nl.appTextColorId);const tM=wc(nl.appBgId),jy=wc(nl.appBgLv1Id),$Ee=wc(nl.appBgLv2Id);wc(nl.appBgLv3Id);const Xu={name:"rmyi3a",styles:"color:var(--ant-button-default-hover-color);border-color:var(--ant-button-default-hover-border-color);background:var(--ant-button-default-hover-bg)"};function MEe(){return Ay.useToken().token.colorPrimaryHover}function Qu(){const{popoverBorderColorUseColorPrimary:e}=gt(at.style.general),t=MEe();return e?t:uW}function TEe(){const e=Qu();return f.useMemo(()=>({border:`1px solid ${e}`}),[e])}function AEe(){const{colorLink:e,colorLinkActive:t,colorLinkHover:n}=Ay.useToken().token;return f.useMemo(()=>un("color:",e,";&:visited{color:",e,";}&:hover{color:",n,";}&:active{color:",t,";}",""),[e,t,n])}const dW=`${Kr}--use-ant-link-color`;function REe(){const e=AEe();return un(":root .",dW,"{",e,";}","")}var NEe=function(e){return function(t,n){var r=f.useRef(false);e(function(){return function(){r.current=false;}},[]),e(function(){if(!r.current)r.current=true;else return t()},n);}},ps=function(){return ps=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);}return t},ps.apply(this,arguments)};function fW(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function mW(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i);})}return new(n||(n=Promise))(function(i,s){function l(m){try{d(r.next(m));}catch(p){s(p);}}function u(m){try{d(r.throw(m));}catch(p){s(p);}}function d(m){m.done?i(m.value):o(m.value).then(l,u);}d((r=r.apply(e,[])).next());})}function hW(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=l(0),s.throw=l(1),s.return=l(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(d){return function(m){return u([d,m])}}function u(d){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,d[0]&&(n=0)),n;)try{if(r=1,o&&(i=d[0]&2?o.return:d[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,d[1])).done)return i;switch(o=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,o=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){n.label=d[1];break}if(d[0]===6&&n.label<i[1]){n.label=i[1],i=d;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(d);break}i[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n);}catch(m){d=[6,m],o=0;}finally{r=i=0;}if(d[0]&5)throw d[1];return {value:d[0]?d[1]:void 0,done:true}}}function gr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value);}catch(l){s={error:l};}finally{try{o&&!o.done&&(n=r.return)&&n.call(r);}finally{if(s)throw s.error}}return i}function lo(e,t,n){if(arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var pW=function(e){return typeof e=="function"},tt=function(e){var t=f.useRef(e);t.current=f.useMemo(function(){return e},[e]);var n=f.useRef(void 0);return n.current||(n.current=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.current.apply(this,r)}),n.current};const ja=NEe(f.useEffect);var gW=function(e,t){var n=t.manual,r=t.ready,o=r===void 0?true:r,i=t.defaultParams,s=i===void 0?[]:i,l=t.refreshDeps,u=l===void 0?[]:l,d=t.refreshDepsAction,m=f.useRef(false);return m.current=false,ja(function(){!n&&o&&(m.current=true,e.run.apply(e,lo([],gr(s),false)));},[o]),ja(function(){m.current||n||(m.current=true,d?d():e.refresh());},lo([],gr(u),false)),{onBefore:function(){if(!o)return {stopNow:true}}}};gW.onInit=function(e){var t=e.ready,n=t===void 0?true:t,r=e.manual;return {loading:!r&&n}};function nM(e,t){if(e===t)return  true;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return  false;return  true}var Bg=function(e,t){var n=f.useRef({deps:t,obj:void 0,initialized:false}).current;return (n.initialized===false||!nM(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=true),n.obj};function kg(e){var t=f.useRef(e);return t.current=e,t}var fm=function(e){var t=kg(e);f.useEffect(function(){return function(){t.current();}},[]);},N0=new Map,PEe=function(e,t,n){var r=N0.get(e);r?.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){N0.delete(e);},t)),N0.set(e,ps(ps({},n),{timer:o}));},IEe=function(e){return N0.get(e)},P0=new Map,OEe=function(e){return P0.get(e)},DEe=function(e,t){P0.set(e,t),t.then(function(n){return P0.delete(e),n}).catch(function(){P0.delete(e);});},iu={},_Ee=function(e,t){iu[e]&&iu[e].forEach(function(n){return n(t)});},hE=function(e,t){return iu[e]||(iu[e]=[]),iu[e].push(t),function(){var r=iu[e].indexOf(t);iu[e].splice(r,1);}},LEe=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?300*1e3:r,i=t.staleTime,s=i===void 0?0:i,l=t.setCache,u=t.getCache,d=f.useRef(void 0),m=f.useRef(void 0),p=function(b,y){l?l(y):PEe(b,o,y),_Ee(b,y.data);},g=function(b,y){return y===void 0&&(y=[]),u?u(y):IEe(b)};return Bg(function(){if(n){var b=g(n);b&&Object.hasOwnProperty.call(b,"data")&&(e.state.data=b.data,e.state.params=b.params,(s===-1||Date.now()-b.time<=s)&&(e.state.loading=false)),d.current=hE(n,function(y){e.setState({data:y});});}},[]),fm(function(){var b;(b=d.current)===null||b===void 0||b.call(d);}),n?{onBefore:function(b){var y=g(n,b);return !y||!Object.hasOwnProperty.call(y,"data")?{}:s===-1||Date.now()-y.time<=s?{loading:false,data:y?.data,error:void 0,returnNow:true}:{data:y?.data,error:void 0}},onRequest:function(b,y){var S=OEe(n);return S&&S!==m.current?{servicePromise:S}:(S=b.apply(void 0,lo([],gr(y),false)),m.current=S,DEe(n,S),{servicePromise:S})},onSuccess:function(b,y){var S;n&&((S=d.current)===null||S===void 0||S.call(d),p(n,{data:b,params:y,time:Date.now()}),d.current=hE(n,function(C){e.setState({data:C});}));},onMutate:function(b){var y;n&&((y=d.current)===null||y===void 0||y.call(d),p(n,{data:b,params:e.state.params,time:Date.now()}),d.current=hE(n,function(S){e.setState({data:S});}));}}:{}},pE,PL;function HR(){if(PL)return pE;PL=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return pE=e,pE}var gE,IL;function BEe(){if(IL)return gE;IL=1;var e=typeof db=="object"&&db&&db.Object===Object&&db;return gE=e,gE}var vE,OL;function vW(){if(OL)return vE;OL=1;var e=BEe(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return vE=n,vE}var bE,DL;function kEe(){if(DL)return bE;DL=1;var e=vW(),t=function(){return e.Date.now()};return bE=t,bE}var yE,_L;function zEe(){if(_L)return yE;_L=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return yE=t,yE}var SE,LL;function FEe(){if(LL)return SE;LL=1;var e=zEe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return SE=n,SE}var CE,BL;function bW(){if(BL)return CE;BL=1;var e=vW(),t=e.Symbol;return CE=t,CE}var xE,kL;function HEe(){if(kL)return xE;kL=1;var e=bW(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function i(s){var l=n.call(s,o),u=s[o];try{s[o]=void 0;var d=!0;}catch{}var m=r.call(s);return d&&(l?s[o]=u:delete s[o]),m}return xE=i,xE}var wE,zL;function VEe(){if(zL)return wE;zL=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return wE=n,wE}var EE,FL;function jEe(){if(FL)return EE;FL=1;var e=bW(),t=HEe(),n=VEe(),r="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function s(l){return l==null?l===void 0?o:r:i&&i in Object(l)?t(l):n(l)}return EE=s,EE}var $E,HL;function UEe(){if(HL)return $E;HL=1;function e(t){return t!=null&&typeof t=="object"}return $E=e,$E}var ME,VL;function WEe(){if(VL)return ME;VL=1;var e=jEe(),t=UEe(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return ME=r,ME}var TE,jL;function GEe(){if(jL)return TE;jL=1;var e=FEe(),t=HR(),n=WEe(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;function u(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var m=typeof d.valueOf=="function"?d.valueOf():d;d=t(m)?m+"":m;}if(typeof d!="string")return d===0?d:+d;d=e(d);var p=i.test(d);return p||s.test(d)?l(d.slice(2),p?2:8):o.test(d)?r:+d}return TE=u,TE}var AE,UL;function yW(){if(UL)return AE;UL=1;var e=HR(),t=kEe(),n=GEe(),r="Expected a function",o=Math.max,i=Math.min;function s(l,u,d){var m,p,g,b,y,S,C=0,w=false,E=false,M=true;if(typeof l!="function")throw new TypeError(r);u=n(u)||0,e(d)&&(w=!!d.leading,E="maxWait"in d,g=E?o(n(d.maxWait)||0,u):g,M="trailing"in d?!!d.trailing:M);function T(U){var W=m,z=p;return m=p=void 0,C=U,b=l.apply(z,W),b}function A(U){return C=U,y=setTimeout(P,u),w?T(U):b}function I(U){var W=U-S,z=U-C,k=u-W;return E?i(k,g-z):k}function N(U){var W=U-S,z=U-C;return S===void 0||W>=u||W<0||E&&z>=g}function P(){var U=t();if(N(U))return O(U);y=setTimeout(P,I(U));}function O(U){return y=void 0,M&&m?T(U):(m=p=void 0,b)}function D(){y!==void 0&&clearTimeout(y),C=0,m=S=p=y=void 0;}function L(){return y===void 0?b:O(t())}function F(){var U=t(),W=N(U);if(m=arguments,p=this,S=U,W){if(y===void 0)return A(S);if(E)return clearTimeout(y),y=setTimeout(P,u),T(S)}return y===void 0&&(y=setTimeout(P,u)),b}return F.cancel=D,F.flush=L,F}return AE=s,AE}var qEe=yW();const KEe=Ni(qEe);var YEe=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,i=t.debounceMaxWait,s=f.useRef(void 0),l=f.useMemo(function(){var u={};return r!==void 0&&(u.leading=r),o!==void 0&&(u.trailing=o),i!==void 0&&(u.maxWait=i),u},[r,o,i]);return f.useEffect(function(){if(n){var u=e.runAsync.bind(e);return s.current=KEe(function(d){d();},n,l),e.runAsync=function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new Promise(function(p,g){var b;(b=s.current)===null||b===void 0||b.call(s,function(){u.apply(void 0,lo([],gr(d),false)).then(p).catch(g);});})},function(){var d;(d=s.current)===null||d===void 0||d.cancel(),e.runAsync=u;}}},[n,l]),n?{onCancel:function(){var u;(u=s.current)===null||u===void 0||u.cancel();}}:{}},XEe=function(e,t){var n=t.loadingDelay,r=t.ready,o=f.useRef(void 0);if(!n)return {};var i=function(){o.current&&clearTimeout(o.current);};return {onBefore:function(){return i(),r!==false&&(o.current=setTimeout(function(){e.setState({loading:true});},n)),{loading:false}},onFinally:function(){i();},onCancel:function(){i();}}},zg=!!(typeof window<"u"&&window.document&&window.document.createElement);function VR(){return zg?document.visibilityState!=="hidden":true}var I0=new Set;function QEe(e){return I0.add(e),function(){I0.has(e)&&I0.delete(e);}}if(zg){var ZEe=function(){VR()&&I0.forEach(function(e){return e()});};window.addEventListener("visibilitychange",ZEe,false);}var JEe=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,o=r===void 0?true:r,i=t.pollingErrorRetryCount,s=i===void 0?-1:i,l=f.useRef(void 0),u=f.useRef(void 0),d=f.useRef(0),m=function(){var p;l.current&&clearTimeout(l.current),(p=u.current)===null||p===void 0||p.call(u);};return ja(function(){n||m();},[n]),n?{onBefore:function(){m();},onError:function(){d.current+=1;},onSuccess:function(){d.current=0;},onFinally:function(){s===-1||s!==-1&&d.current<=s?l.current=setTimeout(function(){!o&&!VR()?u.current=QEe(function(){e.refresh();}):e.refresh();},n):d.current=0;},onCancel:function(){m();}}:{}};function e$e(e,t){var n=false;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n||(n=true,e.apply(void 0,lo([],gr(r),false)),setTimeout(function(){n=false;},t));}}var t$e=function(){return zg&&typeof navigator.onLine<"u"?navigator.onLine:true},O0=new Set;function n$e(e){return O0.add(e),function(){O0.has(e)&&O0.delete(e);}}if(zg){var WL=function(){!VR()||!t$e()||O0.forEach(function(e){return e()});};window.addEventListener("visibilitychange",WL,false),window.addEventListener("focus",WL,false);}var r$e=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,i=f.useRef(void 0),s=function(){var l;(l=i.current)===null||l===void 0||l.call(i);};return f.useEffect(function(){if(n){var l=e$e(e.refresh.bind(e),o);i.current=n$e(function(){l();});}return function(){s();}},[n,o]),fm(function(){s();}),{}},o$e=function(e,t){var n=t.retryInterval,r=t.retryCount,o=f.useRef(void 0),i=f.useRef(0),s=f.useRef(false);return r?{onBefore:function(){s.current||(i.current=0),s.current=false,o.current&&clearTimeout(o.current);},onSuccess:function(){i.current=0;},onError:function(){if(i.current+=1,r===-1||i.current<=r){var l=n??Math.min(1e3*Math.pow(2,i.current),3e4);o.current=setTimeout(function(){s.current=true,e.refresh();},l);}else i.current=0;},onCancel:function(){i.current=0,o.current&&clearTimeout(o.current);}}:{}},RE,GL;function i$e(){if(GL)return RE;GL=1;var e=yW(),t=HR(),n="Expected a function";function r(o,i,s){var l=true,u=true;if(typeof o!="function")throw new TypeError(n);return t(s)&&(l="leading"in s?!!s.leading:l,u="trailing"in s?!!s.trailing:u),e(o,i,{leading:l,maxWait:i,trailing:u})}return RE=r,RE}var s$e=i$e();const a$e=Ni(s$e);var l$e=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,i=f.useRef(void 0),s={};return r!==void 0&&(s.leading=r),o!==void 0&&(s.trailing=o),f.useEffect(function(){if(n){var l=e.runAsync.bind(e);return i.current=a$e(function(u){u();},n,s),e.runAsync=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];return new Promise(function(m,p){var g;(g=i.current)===null||g===void 0||g.call(i,function(){l.apply(void 0,lo([],gr(u),false)).then(m).catch(p);});})},function(){var u;e.runAsync=l,(u=i.current)===null||u===void 0||u.cancel();}}},[n,r,o]),n?{onCancel:function(){var l;(l=i.current)===null||l===void 0||l.cancel();}}:{}},ho=function(e){f.useEffect(function(){var t=e?.();if(!(t&&typeof t=="object"&&typeof t.then=="function"))return t},[]);},c$e=function(){var e=gr(f.useState({}),2),t=e[1];return f.useCallback(function(){return t({})},[])},u$e=(function(){function e(t,n,r,o){o===void 0&&(o={}),this.serviceRef=t,this.options=n,this.subscribe=r,this.initState=o,this.pluginImpls=[],this.count=0,this.state={loading:false,params:void 0,data:void 0,error:void 0},this.state=ps(ps(ps({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=ps(ps({},this.state),t),this.subscribe();},e.prototype.runPluginHandler=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.pluginImpls.map(function(i){var s;return (s=i[t])===null||s===void 0?void 0:s.call.apply(s,lo([i],gr(n),false))}).filter(Boolean);return Object.assign.apply(Object,lo([{}],gr(o),false))},e.prototype.runAsync=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return mW(this,void 0,void 0,function(){var r,o,i,s,l,u,d,m,p,g,b,y,S,C,w,E,M,T,A,I,N;return hW(this,function(P){switch(P.label){case 0:if(this.count+=1,r=this.count,o=this.runPluginHandler("onBefore",t),i=o.stopNow,s=i===void 0?false:i,l=o.returnNow,u=l===void 0?false:l,d=fW(o,["stopNow","returnNow"]),s)return [2,new Promise(function(){})];if(this.setState(ps({loading:true,params:t},d)),u)return [2,Promise.resolve(d.data)];(S=(y=this.options).onBefore)===null||S===void 0||S.call(y,t),P.label=1;case 1:return P.trys.push([1,3,,4]),m=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,m||(m=(b=this.serviceRef).current.apply(b,lo([],gr(t),false))),[4,m];case 2:return p=P.sent(),r!==this.count?[2,new Promise(function(){})]:(this.setState({data:p,error:void 0,loading:false}),(w=(C=this.options).onSuccess)===null||w===void 0||w.call(C,p,t),this.runPluginHandler("onSuccess",p,t),(M=(E=this.options).onFinally)===null||M===void 0||M.call(E,t,p,void 0),r===this.count&&this.runPluginHandler("onFinally",t,p,void 0),[2,p]);case 3:if(g=P.sent(),r!==this.count)return [2,new Promise(function(){})];throw this.setState({error:g,loading:false}),(A=(T=this.options).onError)===null||A===void 0||A.call(T,g,t),this.runPluginHandler("onError",g,t),(N=(I=this.options).onFinally)===null||N===void 0||N.call(I,t,void 0,g),r===this.count&&this.runPluginHandler("onFinally",t,void 0,g),g;case 4:return [2]}})})},e.prototype.run=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.runAsync.apply(this,lo([],gr(n),false)).catch(function(o){t.options.onError||console.error(o);});},e.prototype.cancel=function(){this.count+=1,this.setState({loading:false}),this.runPluginHandler("onCancel");},e.prototype.refresh=function(){this.run.apply(this,lo([],gr(this.state.params||[]),false));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,lo([],gr(this.state.params||[]),false))},e.prototype.mutate=function(t){var n=pW(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e})();function d$e(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?false:r,i=t.ready,s=i===void 0?true:i,l=fW(t,["manual","ready"]),u=ps({manual:o,ready:s},l),d=kg(e),m=c$e(),p=Bg(function(){var g=n.map(function(b){var y;return (y=b?.onInit)===null||y===void 0?void 0:y.call(b,u)}).filter(Boolean);return new u$e(d,u,m,Object.assign.apply(Object,lo([{}],gr(g),false)))},[]);return p.options=u,p.pluginImpls=n.map(function(g){return g(p,u)}),ho(function(){if(!o&&s){var g=p.state.params||t.defaultParams||[];p.run.apply(p,lo([],gr(g),false));}}),fm(function(){p.cancel();}),{loading:p.state.loading,data:p.state.data,error:p.state.error,params:p.state.params||[],cancel:tt(p.cancel.bind(p)),refresh:tt(p.refresh.bind(p)),refreshAsync:tt(p.refreshAsync.bind(p)),run:tt(p.run.bind(p)),runAsync:tt(p.runAsync.bind(p)),mutate:tt(p.mutate.bind(p))}}function ws(e,t,n){return d$e(e,t,lo(lo([],gr([]),false),[YEe,XEe,JEe,r$e,l$e,gW,LEe,o$e],false))}function SW(e,t){e===void 0&&(e=false);var n=gr(f.useState(e),2),r=n[0],o=n[1],i=f.useMemo(function(){var s=!e,l=function(){return o(function(p){return p===e?s:e})},u=function(p){return o(p)},d=function(){return o(e)},m=function(){return o(s)};return {toggle:l,set:u,setLeft:d,setRight:m}},[]);return [r,i]}function f$e(e){var t=gr(SW(false),2),n=t[0],r=t[1],o=r.toggle,i=r.set,s=f.useMemo(function(){var l=function(){return i(true)},u=function(){return i(false)};return {toggle:o,set:function(d){return i(!!d)},setTrue:l,setFalse:u}},[]);return [n,s]}function Fg(e,t){if(zg){if(!e)return t;var n;return pW(e)?n=e():"current"in e?n=e.current:n=e,n}}var m$e=function(e){return e.every(function(t){var n=Fg(t);return n?n.getRootNode()instanceof ShadowRoot:false})},h$e=function(e){return e?e.getRootNode():document},p$e=function(e){if(!e||!document.getRootNode)return document;var t=Array.isArray(e)?e:[e];return m$e(t)?h$e(Fg(t[0])):document},g$e=function(e){var t=function(n,r,o){var i=f.useRef(false),s=f.useRef([]),l=f.useRef([]),u=f.useRef(void 0);e(function(){var d,m=Array.isArray(o)?o:[o],p=m.map(function(g){return Fg(g)});if(!i.current){i.current=true,s.current=p,l.current=r,u.current=n();return}(p.length!==s.current.length||!nM(s.current,p)||!nM(l.current,r))&&((d=u.current)===null||d===void 0||d.call(u),s.current=p,l.current=r,u.current=n());}),fm(function(){var d;(d=u.current)===null||d===void 0||d.call(u),i.current=false;});};return t},CW=g$e(f.useEffect);function v$e(e,t,n){n===void 0&&(n="click");var r=kg(e);CW(function(){var o=function(l){var u=Array.isArray(t)?t:[t];u.some(function(d){var m=Fg(d);return !m||m.contains(l.target)})||r.current(l);},i=p$e(t),s=Array.isArray(n)?n:[n];return s.forEach(function(l){return i.addEventListener(l,o)}),function(){s.forEach(function(l){return i.removeEventListener(l,o)});}},Array.isArray(n)?n:[n],t);}function Es(e,t,n){n===void 0&&(n={});var r=n.enable,o=r===void 0?true:r,i=kg(t);CW(function(){if(o){var s=Fg(n.target,window);if(s?.addEventListener){var l=function(d){return i.current(d)},u=Array.isArray(e)?e:[e];return u.forEach(function(d){s.addEventListener(d,l,{capture:n.capture,once:n.once,passive:n.passive});}),function(){u.forEach(function(d){s.removeEventListener(d,l,{capture:n.capture});});}}}},[e,n.capture,n.once,n.passive,o],n.target);}const iS=(function(e,t){var n={},r=n.onEnter,o=n.onLeave,i=n.onChange,s=gr(f$e(),2),l=s[0],u=s[1],d=u.setTrue,m=u.setFalse;return Es("mouseenter",function(){r?.(),d(),i?.(true);},{target:e}),Es("mouseleave",function(){o?.(),m(),i?.(false);},{target:e}),l});function sS(e){var t=this,n=f.useRef(false);return f.useCallback(function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return mW(t,void 0,void 0,function(){var i,s;return hW(this,function(l){switch(l.label){case 0:if(n.current)return [2];n.current=true,l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,e.apply(void 0,lo([],gr(r),false))];case 2:return i=l.sent(),[2,i];case 3:throw s=l.sent(),s;case 4:return n.current=false,[7];case 5:return [2]}})})},[e])}function qL(e){var t=f.useRef(0),n=gr(f.useState(e),2),r=n[0],o=n[1],i=f.useCallback(function(s){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(s);});},[]);return fm(function(){cancelAnimationFrame(t.current);}),[r,i]}var b$e=function(e,t){return !Object.is(e,t)};function jR(e,t){t===void 0&&(t=b$e);var n=f.useRef(void 0),r=f.useRef(void 0);return t(r.current,e)&&(n.current=r.current,r.current=e),n.current}var xW=function(){var e=f.useRef(false);return f.useEffect(function(){return e.current=false,function(){e.current=true;}},[]),e};const y$e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275t.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275z"})]}),S$e=f.forwardRef(y$e),_o={modalMask:X("fixed inset-0 flex items-center justify-center bg-black/50",Gxe),modal:"max-h-[calc(90vh-50px)] w-500px flex flex-col overflow-hidden b-1px b-transparent rounded-10px b-solid bg-gate-bg px-15px pb-15px text-gate-text dark:b-gate-border",modalHeader:"flex items-center justify-between border-b-0 py-10px",modalTitle:"mb-0 flex items-center text-[1.5rem] line-height-1.5",modalBody:"flex-grow-1 overflow-y-auto pt-0"},rM=`${Kr}-modal-visible`,C$e=un("body:has(.",rM,"){overflow-y:hidden;}","");function Hg({show:e,onHide:t,children:n,clsModalMask:r,clsModal:o,width:i,hideWhenMaskOnClick:s=false,hideWhenEsc:l=false}){const u=f.useRef(null),d=f.useRef(null),m=tt(b=>{const y=b.target;if(d.current?.contains(y))return;const S=['.ant-tooltip-container[role="tooltip"]','.ant-popover-container[role="tooltip"]',".ant-select-dropdown"];y.closest(S.join(","))||s&&t();});Do("Escape",b=>{u.current&&(u.current.matches(`:has(~ .${rM})`)||(b.preventDefault(),b.stopImmediatePropagation(),setTimeout(t)));},{enabled:e&&l});const p=or(_o.modalMask,r),g=or(_o.modal,o);return e?No.createPortal(x("div",{className:X(Ns,{[rM]:e}),"data-role":"base-modal",ref:u,children:x("div",{className:p,onClick:m,children:x("div",{className:g,style:{width:i},ref:d,children:n})})}),document.body):null}const Vg=({className:e,...t})=>{const n=or("ml-10px size-24px cursor-pointer transition-duration-150 transition-ease transition-property-transform hover:rotate-90 hover:scale-105%",e);return x(S$e,{...t,className:n})};let yo=(function(e){return e.Lavender="#e6e6fa",e.Thistle="#d8bfd8",e.Plum="#dda0dd",e.Mauve="#e0b0ff",e.Wisteria="#c9a0dc",e.Orchid="#da70d6",e.MediumOrchid="#ba55d3",e.MediumPurple="#9370db",e.Amethyst="#9966cc",e.BlueViolet="#8a2be2",e.Purple="#800080",e.Violet="#8f00ff",e.Magenta="#ff00ff",e.Grape="#6f2da8",e.Indigo="#4b0082",e.Eggplant="#301934",e})({});const x$e=[{name:"Lavender",nameZh:"薰衣草",hex:yo.Lavender,desc:"淡紫偏粉"},{name:"Thistle",nameZh:"蓟紫色",hex:yo.Thistle,desc:"带灰调"},{name:"Plum",nameZh:"李子紫",hex:yo.Plum,desc:"柔和温暖"},{name:"Mauve",nameZh:"淡紫色",hex:yo.Mauve,desc:"烟粉色调"},{name:"Wisteria",nameZh:"紫藤色",hex:yo.Wisteria,desc:"温柔浅紫"},{name:"Orchid",nameZh:"兰花紫",hex:yo.Orchid,desc:"偏红亮紫"},{name:"Medium Orchid",nameZh:"中兰花紫",hex:yo.MediumOrchid,desc:"稍深更艳"},{name:"Medium Purple",nameZh:"中紫色",hex:yo.MediumPurple,desc:"柔和略蓝"},{name:"Amethyst",nameZh:"紫水晶色",hex:yo.Amethyst,desc:"经典冷紫"},{name:"Blue Violet",nameZh:"蓝紫色",hex:yo.BlueViolet,desc:"较冷"},{name:"Purple",nameZh:"标准紫色",hex:yo.Purple,desc:"饱和且暗"},{name:"Violet",nameZh:"紫罗兰",hex:yo.Violet,desc:"更偏蓝光谱"},{name:"Magenta",nameZh:"洋红色",hex:yo.Magenta,desc:"红紫交界"},{name:"Grape",nameZh:"葡萄紫",hex:yo.Grape,desc:"饱和深紫"},{name:"Indigo",nameZh:"靛青色",hex:yo.Indigo,desc:"蓝紫之间"},{name:"Eggplant",nameZh:"茄子紫",hex:yo.Eggplant,desc:"极深紫红"}],w$e=[{id:"green",name:"绿意盎然",isDark:false,isCustom:false,colorPrimary:"rgb(77, 175, 124)",colorTheme:"rgb(77, 175, 124)"},{id:"blue",name:"蓝田生玉",isDark:false,isCustom:false,colorPrimary:"rgb(52, 152, 219)",colorTheme:"rgb(52, 152, 219)"},{id:"blue_plus",name:"蛋雅深蓝",isDark:false,isCustom:false,colorPrimary:"rgb(77, 131, 175)",colorTheme:"rgb(77, 131, 175)"},{id:"orange",name:"橙黄橘绿",isDark:false,isCustom:false,colorPrimary:"rgb(245, 171, 53)",colorTheme:"rgb(245, 171, 53)"},{id:"red",name:"热情似火",isDark:false,isCustom:false,colorPrimary:"rgb(214, 69, 65)",colorTheme:"rgb(214, 69, 65)"},{id:"pink",name:"粉装玉琢",isDark:false,isCustom:false,colorPrimary:"rgb(241, 130, 141)",colorTheme:"rgb(241, 130, 141)"},{id:"purple",name:"重斤球紫",isDark:false,isCustom:false,colorPrimary:"rgb(155, 89, 182)",colorTheme:"rgb(155, 89, 182)"},{id:"grey",name:"灰常美丽",isDark:false,isCustom:false,colorPrimary:"rgb(108, 122, 137)",colorTheme:"rgb(108, 122, 137)"},{id:"ming",name:"青出于黑",isDark:false,isCustom:false,colorPrimary:"rgb(51, 110, 123)",colorTheme:"rgb(51, 110, 123)"},{id:"blue2",name:"清热板蓝",isDark:false,isCustom:false,colorPrimary:"rgb(79, 98, 208)",colorTheme:"rgb(79, 98, 208)"},{id:"black",name:"黑灯瞎火",isDark:true,isCustom:false,colorPrimary:"rgb(150, 150, 150)",colorTheme:"rgb(59,59,59)"},{id:"mid_autumn",name:"月里嫦娥",isDark:false,isCustom:false,colorPrimary:"rgb(74, 55, 82)",colorTheme:"rgb(74, 55, 82)"},{id:"naruto",name:"木叶之村",isDark:false,isCustom:false,colorPrimary:"rgb(87, 144, 167)",colorTheme:"rgb(87, 144, 167)"},{id:"china_ink",name:"近墨者黑",isDark:false,isCustom:false,colorPrimary:"rgba(47, 47, 47, 1)",colorTheme:"rgba(47, 47, 47, 1)"},{id:"happy_new_year",name:"新年快乐",isDark:false,isCustom:false,colorPrimary:"rgb(192, 57, 43)",colorTheme:"rgb(192, 57, 43)"}],Uy={id:"default-bili-pink",name:"B站粉",colorPrimary:Wf.Pink,tooltip:"B站品牌色"},wW={id:"color-picker",name:"自定义",isCustom:true,colorPrimary:Wf.Pink};function E$e(e,t){return t.split(`
`).map(n=>n.trim()).filter(Boolean).map(n=>{const[r,o]=n.split(" ").filter(Boolean);return {id:`${e}:${o}`,name:o,colorPrimary:r}})}const UR="UP长期洗涤",$$e=E$e(UR,`
  #0545b2 理想之蓝
  #f4cd00 柠檬黄
  #ef2729 石榴红
  #f89c00 鹿箭
  #233728 黛绿
  #f2b9b7 和熙粉
  #f3cc91 芝士黄
  #6b4c68 葡萄紫
  #ff7227 落日橙
  #004d62 碧海天
  #23909b 洗碧空
  #aeb400 芥丝绿
  #425a17 箬叶青

  #002fa7 克莱因蓝
  #003153 普鲁士蓝
  #01847f 马尔斯绿
  #fbd26a 申布伦黄
  #470024 勃艮第红
  #492d22 凡戴克棕
  `),EW="bilibili-evolved-sync",$W=[{name:"预设",themes:[Uy,{id:"bilibili-blue",name:"B站蓝",colorPrimary:Wf.Blue,tooltip:"B站品牌色"},{id:"app-custom-高能红",name:"高能红",colorPrimary:"#fd453e"},{id:"app-custom-咸蛋黄",name:"咸蛋黄",colorPrimary:"#ffc034"},{id:"app-custom-早苗绿",name:"早苗绿",colorPrimary:"#85c255"},{id:"app-custom-宝石蓝",name:"宝石蓝",colorPrimary:"#0095ef"},{id:"app-custom-罗兰紫",name:"罗兰紫",colorPrimary:"#a029ac"},{id:EW,name:"B-Evolved",colorPrimary:`var(--theme-color,${pV()})`,tooltip:H(_e,{children:["使用 Bilibili-Evolved 的主题色",x("br",{}),"在 Bilibili-Evolved 设置中修改主题色后可能需要刷新页面同步"]})},wW]},{name:"LX Themes",themes:w$e,tooltip:H(_e,{children:["提取自"," ",x("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),x("br",{}),"Apache License 2.0"]})},{name:UR,themes:$$e,tooltip:H(_e,{children:["提取自"," ",x("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",x("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})},{name:"紫定能行",themes:x$e.map(e=>({id:`purple-colors-${e.name}`,name:e.nameZh,colorPrimary:e.hex,tooltip:H(_e,{children:[e.name," ",e.nameZh," ",x("br",{}),e.desc]})})),tooltip:H(_e,{children:["提取自"," ",x("a",{target:"_blank",href:"https://magicdawn.github.io/purple-colors/",children:"purple-colors"})," "]})}],M$e=$W.map(e=>e.themes).flat(),KL={[`${UR}:马尔斯绿`]:H(_e,{children:["马尔斯绿 MARRS GREEN ",x("br",{}),"2017年英国的百年造纸商G.F SMITH和英国城市文化节联合发起了「选出全世界最受欢迎的颜色」的活动, ",x("br",{}),"在为期半年由来自100多个约3万名用户的投票后,由来自苏格兰的联合国教科文组织工作人员 ",x("br",{}),"安妮•马尔斯(ANNIE MARRS)提交的一种蓝绿色当选。 ",x("br",{}),"马尔斯绿也因此由ANNIE MARRS的姓氏和主色调组合而得名。 ",x("br",{}),"马尔斯绿的灵感来源于ANNIE家乡苏格兰的泰勒河畔自然景观的一种蓝绿色调。 ",x("br",{})]})};function MW(){let{theme:e,colorPickerThemeSelectedColor:t}=Ft();return e||=Uy.id,f.useMemo(()=>{const n=M$e.find(r=>r.id===e)||Uy;return n.id===wW.id&&t?{...n,colorPrimary:t}:n},[e,t])}function TW(){const e=MW(),t=Eg.use();let n=e.colorPrimary;return e.id===EW&&(n=t||pV()),n}function T$e(e,t){return e||t?"--bg1":"--bg2"}function A$e(){const e=TW(),t=oS(),n=REe(),{style:{pureRecommend:{useWhiteBackground:r}}}=Ft(),o=f.useMemo(()=>({bgSrc:T$e(t,r),bgFallback:t?"#17181a":r?"#fff":"#f6f7f8",text:t?"#fff":"#333"}),[t,r]);return x(BR,{styles:[n,C$e,un`
            :root {
              ${eW}: ${e};
              ${nW}: var(${o.bgSrc}, ${o.bgFallback});
              ${tW}: var(--text1, ${o.text});
            }
          `,"",""]})}var R$e={name:"1ughwg6",styles:".bili-feed4 .bili-header{min-height:64px!important;}"},N$e={name:"rpxvzv",styles:"#i_cecream,body>#app{.bili-feed4-layout{display:none;}}.desktop-download-tip,.vip-login-tip,.palette-button-adcard{display:none!important;}"};function P$e(){const{grid:{useCustomGrid:e},style:{pureRecommend:{useWhiteBackground:t,hideTopChannel:n}}}=Ft(),r=oS(),o=gve(),i=LA.use(),s=BA.use()??90,l="0 10px";if(Ka)return x(BR,{styles:[N$e,e&&un("#i_cecream,body>#app,.bili-feed4 .bili-header,.bili-feed4 .bili-header .bili-header__bar{max-width:unset;}.bili-feed4-layout,.bili-feed4 .bili-header .bili-header__channel{max-width:",s,"%;padding:",l,";}",""),e&&typeof o=="number"&&un(".",Ns,"{--back-top-right:",o,"px;}",""),un("body{background-color:",tM,"!important;}.large-header,#i_cecream,body>#app,.bili-header.large-header,.bili-header.large-header .bili-header__channel{background-color:",tM,";}",""),!r&&!t&&un(".bili-header .bili-header__channel .channel-entry-more__link,.bili-header .bili-header__channel .channel-link{background-color:",jy,";}",""),n&&un(".bili-header__channel,.bili-header__banner{display:none!important;}",!i&&R$e," .bili-feed4 .bili-header .bili-header__bar{&.slide-down,&:not(.slide-down){animation:headerSlideDown 0.3s linear forwards!important;box-shadow:0 2px 4px ",r?"rgb(255 255 255 / 5%)":"rgb(0 0 0 / 8%)","!important;}}.bili-header__bar:not(.slide-down){background-color:var(--bg1);color:var(--text1);transition:background-color 0.2s linear;animation-name:headerSlideDown;.left-entry{.mini-header__title,.entry-title,.default-entry,.loc-mc-box__text,.download-entry,.loc-entry{color:var(--text1);}}.right-entry .right-entry__outside{.right-entry-text,.right-entry-icon{color:var(--text2);}}}.area-header-wrapper{margin-top:10px;}",""),"",""]})}function I$e(...e){return function(t){return e.reduceRight((n,r)=>r?r(n):n,t)}}function rl({children:e,cssInsertContainer:t,cssInsertContainerEmotionKey:n}){t&&Nr(n,"cssInsertContainerEmotionKey is required when cssInsertContainer is provided");const r=f.useMemo(()=>{if(t)return QU({key:n,container:t}).cache},[t,n]),o=oS(),i=TW();return I$e(!!r&&(l=>x(bJ,{value:r,children:l})),!!t&&(l=>x(see,{container:t,children:l})),l=>x(oxe,{defaultOptions:{hotkey:{requireReset:true}},children:l}),l=>x(Bo,{locale:iEe,button:{autoInsertSpace:false},getPopupContainer:u=>u?.closest("."+Ns)??document.body,theme:{algorithm:o?Ay.darkAlgorithm:Ay.defaultAlgorithm,token:{colorPrimary:i,colorBgSpotlight:i,zIndexPopupBase:Q_(Z_),fontFamily:rW},components:{Notification:{zIndexPopup:Q_(Z_)},Button:{defaultShadow:"none",primaryShadow:"none"},Dropdown:{}}},children:l}))(e)}function aS({antd:e,baseGlobalStyle:t,homePageGlobalStyle:n}){return H(_e,{children:[e&&x(bve,{}),t&&x(A$e,{}),n&&x(P$e,{})]})}function O$e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.useMemo(()=>r=>{t.forEach(o=>o(r));},t)}const lS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function mm(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function WR(e){return "nodeType"in e}function ii(e){var t,n;return e?mm(e)?e:WR(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function GR(e){const{Document:t}=ii(e);return e instanceof t}function jg(e){return mm(e)?false:e instanceof ii(e).HTMLElement}function AW(e){return e instanceof ii(e).SVGElement}function hm(e){return e?mm(e)?e.document:WR(e)?GR(e)?e:jg(e)||AW(e)?e.ownerDocument:document:document:document}const ia=lS?f.useLayoutEffect:f.useEffect;function qR(e){const t=f.useRef(e);return ia(()=>{t.current=e;}),f.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function D$e(){const e=f.useRef(null),t=f.useCallback((r,o)=>{e.current=setInterval(r,o);},[]),n=f.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null);},[]);return [t,n]}function Wp(e,t){t===void 0&&(t=[e]);const n=f.useRef(e);return ia(()=>{n.current!==e&&(n.current=e);},t),n}function Ug(e,t){const n=f.useRef();return f.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Wy(e){const t=qR(e),n=f.useRef(null),r=f.useCallback(o=>{o!==n.current&&t?.(o,n.current),n.current=o;},[]);return [n,r]}function oM(e){const t=f.useRef();return f.useEffect(()=>{t.current=e;},[e]),t.current}let NE={};function Wg(e,t){return f.useMemo(()=>{if(t)return t;const n=NE[e]==null?0:NE[e]+1;return NE[e]=n,e+"-"+n},[e,t])}function RW(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,s)=>{const l=Object.entries(s);for(const[u,d]of l){const m=i[u];m!=null&&(i[u]=m+e*d);}return i},{...t})}}const yf=RW(1),Gy=RW(-1);function _$e(e){return "clientX"in e&&"clientY"in e}function KR(e){if(!e)return  false;const{KeyboardEvent:t}=ii(e.target);return t&&e instanceof t}function L$e(e){if(!e)return  false;const{TouchEvent:t}=ii(e.target);return t&&e instanceof t}function iM(e){if(L$e(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return {x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return {x:t,y:n}}}return _$e(e)?{x:e.clientX,y:e.clientY}:null}const Hf=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return "translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return "scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return [Hf.Translate.toString(e),Hf.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),YL="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function B$e(e){return e.matches(YL)?e:e.querySelector(YL)}const k$e={display:"none"};function z$e(e){let{id:t,value:n}=e;return q.createElement("div",{id:t,style:k$e},n)}function F$e(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return q.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":true},n)}function H$e(){const[e,t]=f.useState("");return {announce:f.useCallback(r=>{r!=null&&t(r);},[]),announcement:e}}const NW=f.createContext(null);function PW(e){const t=f.useContext(NW);f.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t]);}function V$e(){const[e]=f.useState(()=>new Set),t=f.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return [f.useCallback(r=>{let{type:o,event:i}=r;e.forEach(s=>{var l;return (l=s[o])==null?void 0:l.call(s,i)});},[e]),t]}const j$e={draggable:`
    To pick up a draggable item, press the space bar.
    While dragging, use the arrow keys to move the item.
    Press space again to drop the item in its new position, or press escape to cancel.
  `},U$e={onDragStart(e){let{active:t}=e;return "Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return "Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function W$e(e){let{announcements:t=U$e,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=j$e}=e;const{announce:i,announcement:s}=H$e(),l=Wg("DndLiveRegion"),[u,d]=f.useState(false);if(f.useEffect(()=>{d(true);},[]),PW(f.useMemo(()=>({onDragStart(p){let{active:g}=p;i(t.onDragStart({active:g}));},onDragMove(p){let{active:g,over:b}=p;t.onDragMove&&i(t.onDragMove({active:g,over:b}));},onDragOver(p){let{active:g,over:b}=p;i(t.onDragOver({active:g,over:b}));},onDragEnd(p){let{active:g,over:b}=p;i(t.onDragEnd({active:g,over:b}));},onDragCancel(p){let{active:g,over:b}=p;i(t.onDragCancel({active:g,over:b}));}}),[i,t])),!u)return null;const m=q.createElement(q.Fragment,null,q.createElement(z$e,{id:r,value:o.draggable}),q.createElement(F$e,{id:l,announcement:s}));return n?No.createPortal(m,n):m}var _r;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable";})(_r||(_r={}));function qy(){}function G$e(e,t){return f.useMemo(()=>({sensor:e,options:{}}),[e,t])}function q$e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Rs=Object.freeze({x:0,y:0});function K$e(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Y$e(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function X$e(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Q$e(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function XL(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Z$e=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=XL(t,t.left,t.top),i=[];for(const s of r){const{id:l}=s,u=n.get(l);if(u){const d=K$e(XL(u),o);i.push({id:l,data:{droppableContainer:s,value:d}});}}return i.sort(Y$e)};function J$e(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=o-r,l=i-n;if(r<o&&n<i){const u=t.width*t.height,d=e.width*e.height,m=s*l,p=m/(u+d-m);return Number(p.toFixed(4))}return 0}const e2e=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:s}=i,l=n.get(s);if(l){const u=J$e(l,t);u>0&&o.push({id:s,data:{droppableContainer:i,value:u}});}}return o.sort(X$e)};function t2e(e,t,n){return {...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function IW(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Rs}function n2e(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((s,l)=>({...s,top:s.top+e*l.y,bottom:s.bottom+e*l.y,left:s.left+e*l.x,right:s.right+e*l.x}),{...n})}}const r2e=n2e(1);function o2e(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return {x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return {x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function i2e(e,t,n){const r=o2e(t);if(!r)return e;const{scaleX:o,scaleY:i,x:s,y:l}=r,u=e.left-s-(1-o)*parseFloat(n),d=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),m=o?e.width/o:e.width,p=i?e.height/i:e.height;return {width:m,height:p,top:d,right:u+m,bottom:d+p,left:u}}const s2e={ignoreTransform:false};function pm(e,t){t===void 0&&(t=s2e);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:m}=ii(e).getComputedStyle(e);d&&(n=i2e(n,d,m));}const{top:r,left:o,width:i,height:s,bottom:l,right:u}=n;return {top:r,left:o,width:i,height:s,bottom:l,right:u}}function QL(e){return pm(e,{ignoreTransform:true})}function a2e(e){const t=e.innerWidth,n=e.innerHeight;return {top:0,left:0,right:t,bottom:n,width:t,height:n}}function l2e(e,t){return t===void 0&&(t=ii(e).getComputedStyle(e)),t.position==="fixed"}function c2e(e,t){t===void 0&&(t=ii(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return ["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):false})}function YR(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(GR(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!jg(o)||AW(o)||n.includes(o))return n;const i=ii(e).getComputedStyle(o);return o!==e&&c2e(o,i)&&n.push(o),l2e(o,i)?n:r(o.parentNode)}return e?r(e):n}function OW(e){const[t]=YR(e,1);return t??null}function PE(e){return !lS||!e?null:mm(e)?e:WR(e)?GR(e)||e===hm(e).scrollingElement?window:jg(e)?e:null:null}function DW(e){return mm(e)?e.scrollX:e.scrollLeft}function _W(e){return mm(e)?e.scrollY:e.scrollTop}function sM(e){return {x:DW(e),y:_W(e)}}var Ur;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward";})(Ur||(Ur={}));function LW(e){return !lS||!e?false:e===document.scrollingElement}function BW(e){const t={x:0,y:0},n=LW(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,l=e.scrollLeft>=r.x;return {isTop:o,isLeft:i,isBottom:s,isRight:l,maxScroll:r,minScroll:t}}const u2e={x:.2,y:.2};function d2e(e,t,n,r,o){let{top:i,left:s,right:l,bottom:u}=n;r===void 0&&(r=10),o===void 0&&(o=u2e);const{isTop:d,isBottom:m,isLeft:p,isRight:g}=BW(e),b={x:0,y:0},y={x:0,y:0},S={height:t.height*o.y,width:t.width*o.x};return !d&&i<=t.top+S.height?(b.y=Ur.Backward,y.y=r*Math.abs((t.top+S.height-i)/S.height)):!m&&u>=t.bottom-S.height&&(b.y=Ur.Forward,y.y=r*Math.abs((t.bottom-S.height-u)/S.height)),!g&&l>=t.right-S.width?(b.x=Ur.Forward,y.x=r*Math.abs((t.right-S.width-l)/S.width)):!p&&s<=t.left+S.width&&(b.x=Ur.Backward,y.x=r*Math.abs((t.left+S.width-s)/S.width)),{direction:b,speed:y}}function f2e(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:s}=window;return {top:0,left:0,right:i,bottom:s,width:i,height:s}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return {top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function kW(e){return e.reduce((t,n)=>yf(t,sM(n)),Rs)}function m2e(e){return e.reduce((t,n)=>t+DW(n),0)}function h2e(e){return e.reduce((t,n)=>t+_W(n),0)}function p2e(e,t){if(t===void 0&&(t=pm),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);OW(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"});}const g2e=[["x",["left","right"],m2e],["y",["top","bottom"],h2e]];class XR{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=YR(n),o=kW(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,s,l]of g2e)for(const u of s)Object.defineProperty(this,u,{get:()=>{const d=l(r),m=o[i]-d;return this.rect[u]+m},enumerable:true});Object.defineProperty(this,"rect",{enumerable:false});}}class sp{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return (r=this.target)==null?void 0:r.removeEventListener(...n)});},this.target=t;}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r]);}}function v2e(e){const{EventTarget:t}=ii(e);return e instanceof t?e:hm(e)}function IE(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:false}var Wi;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange";})(Wi||(Wi={}));function ZL(e){e.preventDefault();}function b2e(e){e.stopPropagation();}var $n;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab";})($n||($n={}));const zW={start:[$n.Space,$n.Enter],cancel:[$n.Esc],end:[$n.Space,$n.Enter,$n.Tab]},y2e=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case $n.Right:return {...n,x:n.x+25};case $n.Left:return {...n,x:n.x-25};case $n.Down:return {...n,y:n.y+25};case $n.Up:return {...n,y:n.y-25}}};class FW{constructor(t){this.props=void 0,this.autoScrollEnabled=false,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new sp(hm(n)),this.windowListeners=new sp(ii(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach();}attach(){this.handleStart(),this.windowListeners.add(Wi.Resize,this.handleCancel),this.windowListeners.add(Wi.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Wi.Keydown,this.handleKeyDown));}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&p2e(r),n(Rs);}handleKeyDown(t){if(KR(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=zW,coordinateGetter:s=y2e,scrollBehavior:l="smooth"}=o,{code:u}=t;if(i.end.includes(u)){this.handleEnd(t);return}if(i.cancel.includes(u)){this.handleCancel(t);return}const{collisionRect:d}=r.current,m=d?{x:d.left,y:d.top}:Rs;this.referenceCoordinates||(this.referenceCoordinates=m);const p=s(t,{active:n,context:r.current,currentCoordinates:m});if(p){const g=Gy(p,m),b={x:0,y:0},{scrollableAncestors:y}=r.current;for(const S of y){const C=t.code,{isTop:w,isRight:E,isLeft:M,isBottom:T,maxScroll:A,minScroll:I}=BW(S),N=f2e(S),P={x:Math.min(C===$n.Right?N.right-N.width/2:N.right,Math.max(C===$n.Right?N.left:N.left+N.width/2,p.x)),y:Math.min(C===$n.Down?N.bottom-N.height/2:N.bottom,Math.max(C===$n.Down?N.top:N.top+N.height/2,p.y))},O=C===$n.Right&&!E||C===$n.Left&&!M,D=C===$n.Down&&!T||C===$n.Up&&!w;if(O&&P.x!==p.x){const L=S.scrollLeft+g.x,F=C===$n.Right&&L<=A.x||C===$n.Left&&L>=I.x;if(F&&!g.y){S.scrollTo({left:L,behavior:l});return}F?b.x=S.scrollLeft-L:b.x=C===$n.Right?S.scrollLeft-A.x:S.scrollLeft-I.x,b.x&&S.scrollBy({left:-b.x,behavior:l});break}else if(D&&P.y!==p.y){const L=S.scrollTop+g.y,F=C===$n.Down&&L<=A.y||C===$n.Up&&L>=I.y;if(F&&!g.x){S.scrollTo({top:L,behavior:l});return}F?b.y=S.scrollTop-L:b.y=C===$n.Down?S.scrollTop-A.y:S.scrollTop-I.y,b.y&&S.scrollBy({top:-b.y,behavior:l});break}}this.handleMove(t,yf(Gy(p,this.referenceCoordinates),b));}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n);}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n();}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n();}detach(){this.listeners.removeAll(),this.windowListeners.removeAll();}}FW.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=zW,onActivation:o}=t,{active:i}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const l=i.activatorNode.current;return l&&e.target!==l?false:(e.preventDefault(),o?.({event:e.nativeEvent}),true)}return  false}}];function JL(e){return !!(e&&"distance"in e)}function eB(e){return !!(e&&"delay"in e)}class QR{constructor(t,n,r){var o;r===void 0&&(r=v2e(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=true,this.document=void 0,this.activated=false,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:s}=i;this.props=t,this.events=n,this.document=hm(s),this.documentListeners=new sp(this.document),this.listeners=new sp(r),this.windowListeners=new sp(ii(s)),this.initialCoordinates=(o=iM(i))!=null?o:Rs,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach();}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:false}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Wi.Resize,this.handleCancel),this.windowListeners.add(Wi.DragStart,ZL),this.windowListeners.add(Wi.VisibilityChange,this.handleCancel),this.windowListeners.add(Wi.ContextMenu,ZL),this.documentListeners.add(Wi.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(eB(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(JL(n)){this.handlePending(n);return}}this.handleStart();}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null);}handlePending(t,n){const{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n);}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=true,this.documentListeners.add(Wi.Click,b2e,{capture:true}),this.removeTextSelection(),this.documentListeners.add(Wi.SelectionChange,this.removeTextSelection),n(t));}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:s,options:{activationConstraint:l}}=i;if(!o)return;const u=(n=iM(t))!=null?n:Rs,d=Gy(o,u);if(!r&&l){if(JL(l)){if(l.tolerance!=null&&IE(d,l.tolerance))return this.handleCancel();if(IE(d,l.distance))return this.handleStart()}if(eB(l)&&IE(d,l.tolerance))return this.handleCancel();this.handlePending(l,d);return}t.cancelable&&t.preventDefault(),s(u);}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n();}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n();}handleKeydown(t){t.code===$n.Esc&&this.handleCancel();}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges();}}const S2e={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ZR extends QR{constructor(t){const{event:n}=t,r=hm(n.target);super(t,S2e,r);}}ZR.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return !n.isPrimary||n.button!==0?false:(r?.({event:n}),true)}}];const C2e={move:{name:"mousemove"},end:{name:"mouseup"}};var aM;(function(e){e[e.RightClick=2]="RightClick";})(aM||(aM={}));class x2e extends QR{constructor(t){super(t,C2e,hm(t.event.target));}}x2e.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===aM.RightClick?false:(r?.({event:n}),true)}}];const OE={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class w2e extends QR{constructor(t){super(t,OE);}static setup(){return window.addEventListener(OE.move.name,t,{capture:false,passive:false}),function(){window.removeEventListener(OE.move.name,t);};function t(){}}}w2e.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?false:(r?.({event:n}),true)}}];var ap;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect";})(ap||(ap={}));var Ky;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder";})(Ky||(Ky={}));function E2e(e){let{acceleration:t,activator:n=ap.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:l=Ky.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:m,delta:p,threshold:g}=e;const b=M2e({delta:p,disabled:!i}),[y,S]=D$e(),C=f.useRef({x:0,y:0}),w=f.useRef({x:0,y:0}),E=f.useMemo(()=>{switch(n){case ap.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case ap.DraggableRect:return o}},[n,o,u]),M=f.useRef(null),T=f.useCallback(()=>{const I=M.current;if(!I)return;const N=C.current.x*w.current.x,P=C.current.y*w.current.y;I.scrollBy(N,P);},[]),A=f.useMemo(()=>l===Ky.TreeOrder?[...d].reverse():d,[l,d]);f.useEffect(()=>{if(!i||!d.length||!E){S();return}for(const I of A){if(r?.(I)===false)continue;const N=d.indexOf(I),P=m[N];if(!P)continue;const{direction:O,speed:D}=d2e(I,P,E,t,g);for(const L of ["x","y"])b[L][O[L]]||(D[L]=0,O[L]=0);if(D.x>0||D.y>0){S(),M.current=I,y(T,s),C.current=D,w.current=O;return}}C.current={x:0,y:0},w.current={x:0,y:0},S();},[t,T,r,S,i,s,JSON.stringify(E),JSON.stringify(b),y,d,A,m,JSON.stringify(g)]);}const $2e={x:{[Ur.Backward]:false,[Ur.Forward]:false},y:{[Ur.Backward]:false,[Ur.Forward]:false}};function M2e(e){let{delta:t,disabled:n}=e;const r=oM(t);return Ug(o=>{if(n||!r||!o)return $2e;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return {x:{[Ur.Backward]:o.x[Ur.Backward]||i.x===-1,[Ur.Forward]:o.x[Ur.Forward]||i.x===1},y:{[Ur.Backward]:o.y[Ur.Backward]||i.y===-1,[Ur.Forward]:o.y[Ur.Forward]||i.y===1}}},[n,t,r])}function T2e(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Ug(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function A2e(e,t){return f.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return [...n,...i]},[]),[e,t])}var Gp;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging";})(Gp||(Gp={}));var lM;(function(e){e.Optimized="optimized";})(lM||(lM={}));const tB=new Map;function R2e(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,s]=f.useState(null),{frequency:l,measure:u,strategy:d}=o,m=f.useRef(e),p=C(),g=Wp(p),b=f.useCallback(function(w){w===void 0&&(w=[]),!g.current&&s(E=>E===null?w:E.concat(w.filter(M=>!E.includes(M))));},[g]),y=f.useRef(null),S=Ug(w=>{if(p&&!n)return tB;if(!w||w===tB||m.current!==e||i!=null){const E=new Map;for(let M of e){if(!M)continue;if(i&&i.length>0&&!i.includes(M.id)&&M.rect.current){E.set(M.id,M.rect.current);continue}const T=M.node.current,A=T?new XR(u(T),T):null;M.rect.current=A,A&&E.set(M.id,A);}return E}return w},[e,i,n,p,u]);return f.useEffect(()=>{m.current=e;},[e]),f.useEffect(()=>{p||b();},[n,p]),f.useEffect(()=>{i&&i.length>0&&s(null);},[JSON.stringify(i)]),f.useEffect(()=>{p||typeof l!="number"||y.current!==null||(y.current=setTimeout(()=>{b(),y.current=null;},l));},[l,p,b,...r]),{droppableRects:S,measureDroppableContainers:b,measuringScheduled:i!=null};function C(){switch(d){case Gp.Always:return  false;case Gp.BeforeDragging:return n;default:return !n}}}function HW(e,t){return Ug(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function N2e(e,t){return HW(e,t)}function P2e(e){let{callback:t,disabled:n}=e;const r=qR(t),o=f.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return f.useEffect(()=>()=>o?.disconnect(),[o]),o}function cS(e){let{callback:t,disabled:n}=e;const r=qR(t),o=f.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return f.useEffect(()=>()=>o?.disconnect(),[o]),o}function I2e(e){return new XR(pm(e),e)}function nB(e,t,n){t===void 0&&(t=I2e);const[r,o]=f.useState(null);function i(){o(u=>{if(!e)return null;if(e.isConnected===false){var d;return (d=u??n)!=null?d:null}const m=t(e);return JSON.stringify(u)===JSON.stringify(m)?u:m});}const s=P2e({callback(u){if(e)for(const d of u){const{type:m,target:p}=d;if(m==="childList"&&p instanceof HTMLElement&&p.contains(e)){i();break}}}}),l=cS({callback:i});return ia(()=>{i(),e?(l?.observe(e),s?.observe(document.body,{childList:true,subtree:true})):(l?.disconnect(),s?.disconnect());},[e]),r}function O2e(e){const t=HW(e);return IW(e,t)}const rB=[];function D2e(e){const t=f.useRef(e),n=Ug(r=>e?r&&r!==rB&&e&&t.current&&e.parentNode===t.current.parentNode?r:YR(e):rB,[e]);return f.useEffect(()=>{t.current=e;},[e]),n}function _2e(e){const[t,n]=f.useState(null),r=f.useRef(e),o=f.useCallback(i=>{const s=PE(i.target);s&&n(l=>l?(l.set(s,sM(s)),new Map(l)):null);},[]);return f.useEffect(()=>{const i=r.current;if(e!==i){s(i);const l=e.map(u=>{const d=PE(u);return d?(d.addEventListener("scroll",o,{passive:true}),[d,sM(d)]):null}).filter(u=>u!=null);n(l.length?new Map(l):null),r.current=e;}return ()=>{s(e),s(i);};function s(l){l.forEach(u=>{const d=PE(u);d?.removeEventListener("scroll",o);});}},[o,e]),f.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>yf(i,s),Rs):kW(e):Rs,[e,t])}function oB(e,t){t===void 0&&(t=[]);const n=f.useRef(null);return f.useEffect(()=>{n.current=null;},t),f.useEffect(()=>{const r=e!==Rs;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null);},[e]),n.current?Gy(e,n.current):Rs}function L2e(e){f.useEffect(()=>{if(!lS)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return ()=>{for(const n of t)n?.();}},e.map(t=>{let{sensor:n}=t;return n}));}function B2e(e,t){return f.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=s=>{i(s,t);},n},{}),[e,t])}function VW(e){return f.useMemo(()=>e?a2e(e):null,[e])}const iB=[];function k2e(e,t){t===void 0&&(t=pm);const[n]=e,r=VW(n?ii(n):null),[o,i]=f.useState(iB);function s(){i(()=>e.length?e.map(u=>LW(u)?r:new XR(t(u),u)):iB);}const l=cS({callback:s});return ia(()=>{l?.disconnect(),s(),e.forEach(u=>l?.observe(u));},[e]),o}function z2e(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return jg(t)?t:e}function F2e(e){let{measure:t}=e;const[n,r]=f.useState(null),o=f.useCallback(d=>{for(const{target:m}of d)if(jg(m)){r(p=>{const g=t(m);return p?{...p,width:g.width,height:g.height}:g});break}},[t]),i=cS({callback:o}),s=f.useCallback(d=>{const m=z2e(d);i?.disconnect(),m&&i?.observe(m),r(m?t(m):null);},[t,i]),[l,u]=Wy(s);return f.useMemo(()=>({nodeRef:l,rect:n,setRef:u}),[n,l,u])}const H2e=[{sensor:ZR,options:{}},{sensor:FW,options:{}}],V2e={current:{}},D0={draggable:{measure:QL},droppable:{measure:QL,strategy:Gp.WhileDragging,frequency:lM.Optimized},dragOverlay:{measure:pm}};class lp extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return !n})}getNodeFor(t){var n,r;return (n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const j2e={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new lp,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:qy},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:D0,measureDroppableContainers:qy,windowRect:null,measuringScheduled:false},U2e={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:qy,draggableNodes:new Map,over:null,measureDroppableContainers:qy},uS=f.createContext(U2e),jW=f.createContext(j2e);function W2e(){return {draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new lp}}}function G2e(e,t){switch(t.type){case _r.DragStart:return {...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case _r.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case _r.DragEnd:case _r.DragCancel:return {...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case _r.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new lp(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case _r.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const s=new lp(e.droppable.containers);return s.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case _r.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new lp(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function q2e(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=f.useContext(uS),i=oM(r),s=oM(n?.id);return f.useEffect(()=>{if(!t&&!r&&i&&s!=null){if(!KR(i)||document.activeElement===i.target)return;const l=o.get(s);if(!l)return;const{activatorNode:u,node:d}=l;if(!u.current&&!d.current)return;requestAnimationFrame(()=>{for(const m of [u.current,d.current]){if(!m)continue;const p=B$e(m);if(p){p.focus();break}}});}},[r,t,o,s,i]),null}function K2e(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function Y2e(e){return f.useMemo(()=>({draggable:{...D0.draggable,...e?.draggable},droppable:{...D0.droppable,...e?.droppable},dragOverlay:{...D0.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function X2e(e){let{activeNode:t,measure:n,initialRect:r,config:o=true}=e;const i=f.useRef(false),{x:s,y:l}=typeof o=="boolean"?{x:o,y:o}:o;ia(()=>{if(!s&&!l||!t){i.current=false;return}if(i.current||!r)return;const d=t?.node.current;if(!d||d.isConnected===false)return;const m=n(d),p=IW(m,r);if(s||(p.x=0),l||(p.y=0),i.current=true,Math.abs(p.x)>0||Math.abs(p.y)>0){const g=OW(d);g&&g.scrollBy({top:p.y,left:p.x});}},[t,s,l,r,n]);}const UW=f.createContext({...Rs,scaleX:1,scaleY:1});var Fl;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized";})(Fl||(Fl={}));const WW=f.memo(function(t){var n,r,o,i;let{id:s,accessibility:l,autoScroll:u=true,children:d,sensors:m=H2e,collisionDetection:p=e2e,measuring:g,modifiers:b,...y}=t;const S=f.useReducer(G2e,void 0,W2e),[C,w]=S,[E,M]=V$e(),[T,A]=f.useState(Fl.Uninitialized),I=T===Fl.Initialized,{draggable:{active:N,nodes:P,translate:O},droppable:{containers:D}}=C,L=N!=null?P.get(N):null,F=f.useRef({initial:null,translated:null}),U=f.useMemo(()=>{var ut;return N!=null?{id:N,data:(ut=L?.data)!=null?ut:V2e,rect:F}:null},[N,L]),W=f.useRef(null),[z,k]=f.useState(null),[G,j]=f.useState(null),K=Wp(y,Object.values(y)),Q=Wg("DndDescribedBy",s),_=f.useMemo(()=>D.getEnabled(),[D]),B=Y2e(g),{droppableRects:Y,measureDroppableContainers:J,measuringScheduled:ee}=R2e(_,{dragging:I,dependencies:[O.x,O.y],config:B.droppable}),te=T2e(P,N),re=f.useMemo(()=>G?iM(G):null,[G]),ie=Pt(),de=N2e(te,B.draggable.measure);X2e({activeNode:N!=null?P.get(N):null,config:ie.layoutShiftCompensation,initialRect:de,measure:B.draggable.measure});const ne=nB(te,B.draggable.measure,de),ae=nB(te?te.parentElement:null),ce=f.useRef({activatorEvent:null,active:null,activeNode:te,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:D,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),se=D.getNodeFor((n=ce.current.over)==null?void 0:n.id),$e=F2e({measure:B.dragOverlay.measure}),le=(r=$e.nodeRef.current)!=null?r:te,pe=I?(o=$e.rect)!=null?o:ne:null,be=!!($e.nodeRef.current&&$e.rect),Ce=O2e(be?null:ne),Ae=VW(le?ii(le):null),Ye=D2e(I?se??te:null),Re=k2e(Ye),fe=K2e(b,{transform:{x:O.x-Ce.x,y:O.y-Ce.y,scaleX:1,scaleY:1},activatorEvent:G,active:U,activeNodeRect:ne,containerNodeRect:ae,draggingNodeRect:pe,over:ce.current.over,overlayNodeRect:$e.rect,scrollableAncestors:Ye,scrollableAncestorRects:Re,windowRect:Ae}),ve=re?yf(re,O):null,Ne=_2e(Ye),He=oB(Ne),Ge=oB(Ne,[ne]),je=yf(fe,He),rt=pe?r2e(pe,fe):null,ot=U&&rt?p({active:U,collisionRect:rt,droppableRects:Y,droppableContainers:_,pointerCoordinates:ve}):null,Ke=Q$e(ot,"id"),[De,qe]=f.useState(null),Je=be?fe:yf(fe,Ge),Be=t2e(Je,(i=De?.rect)!=null?i:null,ne),Ie=f.useRef(null),lt=f.useCallback((ut,ct)=>{let{sensor:bt,options:Fe}=ct;if(W.current==null)return;const Ue=P.get(W.current);if(!Ue)return;const ye=ut.nativeEvent,Me=new bt({active:W.current,activeNode:Ue,event:ye,options:Fe,context:ce,onAbort(he){if(!P.get(he))return;const{onDragAbort:xe}=K.current,ke={id:he};xe?.(ke),E({type:"onDragAbort",event:ke});},onPending(he,Oe,xe,ke){if(!P.get(he))return;const{onDragPending:it}=K.current,dt={id:he,constraint:Oe,initialCoordinates:xe,offset:ke};it?.(dt),E({type:"onDragPending",event:dt});},onStart(he){const Oe=W.current;if(Oe==null)return;const xe=P.get(Oe);if(!xe)return;const{onDragStart:ke}=K.current,Xe={activatorEvent:ye,active:{id:Oe,data:xe.data,rect:F}};No.unstable_batchedUpdates(()=>{ke?.(Xe),A(Fl.Initializing),w({type:_r.DragStart,initialCoordinates:he,active:Oe}),E({type:"onDragStart",event:Xe}),k(Ie.current),j(ye);});},onMove(he){w({type:_r.DragMove,coordinates:he});},onEnd:Se(_r.DragEnd),onCancel:Se(_r.DragCancel)});Ie.current=Me;function Se(he){return async function(){const{active:xe,collisions:ke,over:Xe,scrollAdjustedTranslate:it}=ce.current;let dt=null;if(xe&&it){const{cancelDrop:Et}=K.current;dt={activatorEvent:ye,active:xe,collisions:ke,delta:it,over:Xe},he===_r.DragEnd&&typeof Et=="function"&&await Promise.resolve(Et(dt))&&(he=_r.DragCancel);}W.current=null,No.unstable_batchedUpdates(()=>{w({type:he}),A(Fl.Uninitialized),qe(null),k(null),j(null),Ie.current=null;const Et=he===_r.DragEnd?"onDragEnd":"onDragCancel";if(dt){const Tt=K.current[Et];Tt?.(dt),E({type:Et,event:dt});}});}}},[P]),Dt=f.useCallback((ut,ct)=>(bt,Fe)=>{const Ue=bt.nativeEvent,ye=P.get(Fe);if(W.current!==null||!ye||Ue.dndKit||Ue.defaultPrevented)return;const Me={active:ye};ut(bt,ct.options,Me)===true&&(Ue.dndKit={capturedBy:ct.sensor},W.current=Fe,lt(bt,ct));},[P,lt]),pt=A2e(m,Dt);L2e(m),ia(()=>{ne&&T===Fl.Initializing&&A(Fl.Initialized);},[ne,T]),f.useEffect(()=>{const{onDragMove:ut}=K.current,{active:ct,activatorEvent:bt,collisions:Fe,over:Ue}=ce.current;if(!ct||!bt)return;const ye={active:ct,activatorEvent:bt,collisions:Fe,delta:{x:je.x,y:je.y},over:Ue};No.unstable_batchedUpdates(()=>{ut?.(ye),E({type:"onDragMove",event:ye});});},[je.x,je.y]),f.useEffect(()=>{const{active:ut,activatorEvent:ct,collisions:bt,droppableContainers:Fe,scrollAdjustedTranslate:Ue}=ce.current;if(!ut||W.current==null||!ct||!Ue)return;const{onDragOver:ye}=K.current,Me=Fe.get(Ke),Se=Me&&Me.rect.current?{id:Me.id,rect:Me.rect.current,data:Me.data,disabled:Me.disabled}:null,he={active:ut,activatorEvent:ct,collisions:bt,delta:{x:Ue.x,y:Ue.y},over:Se};No.unstable_batchedUpdates(()=>{qe(Se),ye?.(he),E({type:"onDragOver",event:he});});},[Ke]),ia(()=>{ce.current={activatorEvent:G,active:U,activeNode:te,collisionRect:rt,collisions:ot,droppableRects:Y,draggableNodes:P,draggingNode:le,draggingNodeRect:pe,droppableContainers:D,over:De,scrollableAncestors:Ye,scrollAdjustedTranslate:je},F.current={initial:pe,translated:rt};},[U,te,ot,rt,P,le,pe,Y,D,De,Ye,je]),E2e({...ie,delta:O,draggingRect:rt,pointerCoordinates:ve,scrollableAncestors:Ye,scrollableAncestorRects:Re});const Lt=f.useMemo(()=>({active:U,activeNode:te,activeNodeRect:ne,activatorEvent:G,collisions:ot,containerNodeRect:ae,dragOverlay:$e,draggableNodes:P,droppableContainers:D,droppableRects:Y,over:De,measureDroppableContainers:J,scrollableAncestors:Ye,scrollableAncestorRects:Re,measuringConfiguration:B,measuringScheduled:ee,windowRect:Ae}),[U,te,ne,G,ot,ae,$e,P,D,Y,De,J,Ye,Re,B,ee,Ae]),xt=f.useMemo(()=>({activatorEvent:G,activators:pt,active:U,activeNodeRect:ne,ariaDescribedById:{draggable:Q},dispatch:w,draggableNodes:P,over:De,measureDroppableContainers:J}),[G,pt,U,ne,w,Q,P,De,J]);return q.createElement(NW.Provider,{value:M},q.createElement(uS.Provider,{value:xt},q.createElement(jW.Provider,{value:Lt},q.createElement(UW.Provider,{value:Be},d)),q.createElement(q2e,{disabled:l?.restoreFocus===false})),q.createElement(W$e,{...l,hiddenTextDescribedById:Q}));function Pt(){const ut=z?.autoScrollEnabled===false,ct=typeof u=="object"?u.enabled===false:u===false,bt=I&&!ut&&!ct;return typeof u=="object"?{...u,enabled:bt}:{enabled:bt}}}),Q2e=f.createContext(null),sB="button",Z2e="Draggable";function GW(e){let{id:t,data:n,disabled:r=false,attributes:o}=e;const i=Wg(Z2e),{activators:s,activatorEvent:l,active:u,activeNodeRect:d,ariaDescribedById:m,draggableNodes:p,over:g}=f.useContext(uS),{role:b=sB,roleDescription:y="draggable",tabIndex:S=0}=o??{},C=u?.id===t,w=f.useContext(C?UW:Q2e),[E,M]=Wy(),[T,A]=Wy(),I=B2e(s,t),N=Wp(n);ia(()=>(p.set(t,{id:t,key:i,node:E,activatorNode:T,data:N}),()=>{const O=p.get(t);O&&O.key===i&&p.delete(t);}),[p,t]);const P=f.useMemo(()=>({role:b,tabIndex:S,"aria-disabled":r,"aria-pressed":C&&b===sB?true:void 0,"aria-roledescription":y,"aria-describedby":m.draggable}),[r,b,S,C,y,m.draggable]);return {active:u,activatorEvent:l,activeNodeRect:d,attributes:P,isDragging:C,listeners:r?void 0:I,node:E,over:g,setNodeRef:M,setActivatorNodeRef:A,transform:w}}function J2e(){return f.useContext(jW)}const e3e="Droppable",t3e={timeout:25};function n3e(e){let{data:t,disabled:n=false,id:r,resizeObserverConfig:o}=e;const i=Wg(e3e),{active:s,dispatch:l,over:u,measureDroppableContainers:d}=f.useContext(uS),m=f.useRef({disabled:n}),p=f.useRef(false),g=f.useRef(null),b=f.useRef(null),{disabled:y,updateMeasurementsFor:S,timeout:C}={...t3e,...o},w=Wp(S??r),E=f.useCallback(()=>{if(!p.current){p.current=true;return}b.current!=null&&clearTimeout(b.current),b.current=setTimeout(()=>{d(Array.isArray(w.current)?w.current:[w.current]),b.current=null;},C);},[C]),M=cS({callback:E,disabled:y||!s}),T=f.useCallback((P,O)=>{M&&(O&&(M.unobserve(O),p.current=false),P&&M.observe(P));},[M]),[A,I]=Wy(T),N=Wp(t);return f.useEffect(()=>{!M||!A.current||(M.disconnect(),p.current=false,M.observe(A.current));},[A,M]),f.useEffect(()=>(l({type:_r.RegisterDroppable,element:{id:r,key:i,disabled:n,node:A,rect:g,data:N}}),()=>l({type:_r.UnregisterDroppable,key:i,id:r})),[r]),f.useEffect(()=>{n!==m.current.disabled&&(l({type:_r.SetDroppableDisabled,id:r,key:i,disabled:n}),m.current.disabled=n);},[r,i,n,l]),{active:s,rect:g,isOver:u?.id===r,node:A,over:u,setNodeRef:I}}function r3e(e,t){Xi(e)||(typeof e=="function"?e(t):e.current=t);}function dS(...e){const t=f.useRef(null);return f.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,e.forEach(r=>r&&r3e(r,n));}}),[t,...e])}const Sf=yc(()=>({width:window.innerWidth,height:window.innerHeight}));document.addEventListener("resize",Sf.updateThrottled);document.addEventListener("orientationchange",Sf.updateThrottled);document.addEventListener("scroll",qa(Sf.update,1e3));function o3e({expanded:e,children:t,...n}){return x("div",{...n,"data-classname":"wrapper",css:un("transition:grid-template-rows 0.2s ease-out;display:grid;grid-template-rows:",e?1:0,"fr;",""),children:x("div",{"data-classname":"inner",className:"overflow-hidden",children:t})})}function sn(e){return x(gc,{...e,styles:{...e.styles,root:{width:"max-content",maxWidth:"50vw",...e.styles?.root}},children:e.children})}const i3e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M40 20c0 6.808-4.252 12.622-10.244 14.934H18.244C12.252 32.622 8 26.808 8 20c0-8.837 7.163-16 16-16s16 7.163 16 16"}),x("path",{d:"m29.756 34.934l-.68 8.15a1 1 0 0 1-.996.916h-8.16a1 1 0 0 1-.996-.917l-.68-8.15M18 17v6l6-3l6 3v-6"})]})]}),s3e=f.forwardRef(i3e),a3e=s3e,qW="rgb(0 0 0 / 0.85)";function vr({children:e,tooltipProps:t,IconComponent:n,className:r,useBlackBg:o,...i}){n??=a3e;const s=x(n,{...i,className:or("ml-4px size-16px cursor-pointer",r)});return !!e&&x(sn,{color:o?qW:void 0,...t,title:e,children:s})}function l3e(e,t){const n=Ft(),r=!!er(n,e,false),o=f.useCallback(l=>{Uf(at,e,l),t?.(l);},[]),i=f.useCallback(l=>{o(l.target.checked);},[]),s=f.useCallback(()=>{o(!er(at,e,false));},[]);return {checked:r,onChange:o,checkboxOnChange:i,onToggle:s}}function KW({configPath:e,label:t,extraAction:n,tooltip:r,tooltipProps:o,as:i,checkboxProps:s,switchProps:l,ref:u}){const{checked:d,onChange:m,checkboxOnChange:p}=l3e(e,n),g=y=>r?x(sn,{...o,title:r,children:y}):y;let b;if(typeof t=="function"?b=t(d):b=(t??e)||null,i==="checkbox"){let y=x("span",{style:{userSelect:"none"},children:b});return r&&(y=g(y)),x(Ri,{...s,ref:u,checked:d,onChange:p,styles:{label:{paddingInline:6}},children:y})}if(i==="switch"){let y=x(iV,{...l,checked:d,onChange:m,ref:u});return r&&(y=g(y)),y}}const It=function({configPath:e,label:t,extraAction:n,tooltip:r,tooltipProps:o,ref:i,...s}){return x(KW,{ref:i,configPath:e,label:t,extraAction:n,tooltip:r,tooltipProps:o,as:"checkbox",checkboxProps:s})};function Bu({configPath:e,extraAction:t,tooltip:n,tooltipProps:r,ref:o,...i}){return x(KW,{ref:o,configPath:e,extraAction:t,tooltip:n,tooltipProps:r,as:"switch",switchProps:i})}async function fS(e="即将刷新网页!"){Qt.info(e),await gn(500),location.reload();}function jr(e,t){return H(_e,{children:[H("div",{className:"flex items-center",children:["✅: ",e]}),H("div",{className:"flex items-center",children:["❎: ",t]})]})}class c3e{url;revokeTimer;constructor(t,n=Qr("10min")){this.url=URL.createObjectURL(t),this.revokeTimer=setTimeout(this.revoke,n);}revoke=()=>{this.revokeTimer!==void 0&&clearTimeout(this.revokeTimer),this.revokeTimer=void 0,this.url&&Pu(()=>URL.revokeObjectURL(this.url)),this.url=void 0;}}let DE;async function u3e(e){const t=await _g(),n=e?.length?xc(t,e).pickedSettings:t,r=JSON.stringify(n,null,2),o=new Blob([r],{type:"application/json"});return DE?.revoke(),DE=new c3e(o),DE.url}async function YW(e,t){const n=await u3e(e),o=`${[Zo,kQ(t||"",["-"," "]),"settings"].filter(Boolean).join("-")} ${Yn().format("YYYY-MM-DD HH:mm:ss")}.json`;if(typeof GM_download<"u")GM_download?.({url:n,name:o});else {const i=document.createElement("a");i.href=n,i.download=o,i.click();}}async function XW(){const e=await f3e();if(!e)return;const t=await e.text();if(!t)return Jt("文件内容为空!");let n;try{n=JSON.parse(t);}catch{return Jt("无法解析文件内容!")}return LR(n),n}async function d3e(){const e=await XW();if(!e)return;const{pickedPaths:t,pickedSettings:n}=xc(e,tl);if(!t.length)return Jt("没有有效的设置!");{const r=Object.keys(n);if(r.length===1)return r[0]==="filter"?Jt("过滤相关数据请使用「内容过滤」内独立的导入导出功能!",5e3):Jt("异常数据",5e3)}return qU(true),es(n),Qt.success("导入成功!"),fS()}function f3e(){return m3e({accept:".json",multiple:false})}function m3e(e){return new Promise(t=>{const n=document.createElement("input");n.type="file",Object.assign(n,e),n.addEventListener("change",()=>{t(n.files?.[0]||null);}),n.click();})}const On={tabPane:"max-h-[max(362px,calc(90vh-50px-56px-15px))] min-h-362px overflow-y-auto pr-12px",settingsGroup:"mb-10px",settingsGroupTitle:"flex items-center text-2em",settingsGroupSubTitle:"flex items-center text-1.25em",settingsLine:"flex flex-row flex-wrap items-center gap-x-10px gap-y-1"};function co({children:e,title:t,titleClassName:n,contentClassName:r,resetSettingPaths:o,...i}){const s=!!o?.length;return H("div",{className:On.settingsGroup,"data-role":"settings-group",...i,children:[H("div",{"data-role":"settings-group-title",className:or(On.settingsGroupTitle,s&&"justify-between",n),children:[s?x("div",{className:"flex items-center",children:t}):t,o&&x(JR,{paths:o})]}),x("div",{"data-role":"settings-group-content",className:or("flex flex-col gap-y-1",r),children:e})]})}function h3e(e){const{pickedSettings:t}=xc(Dg,e);es(t);}function JR({paths:e,className:t}){return x(Bp,{title:"确定重置下面的设置项?",onConfirm:()=>h3e(e),children:H(ht,{className:X("gap-x-4px",t),children:[x(bV,{className:"mt--1px size-12px"}),x("span",{children:"重置"})]})})}const p3e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("path",{d:"M3.06 13a9 9 0 1 0 .49-4.087"}),x("path",{d:"M3 4.001v5h5M11 12a1 1 0 1 0 2 0a1 1 0 1 0-2 0"})]})]}),aB=f.forwardRef(p3e),g3e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),x("path",{d:"M11.5 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v5m-5 6h7m-3-3l3 3l-3 3"})]})]}),QW=f.forwardRef(g3e),v3e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),x("path",{d:"M5 13V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2h-5.5M2 19h7m-3-3l3 3l-3 3"})]})]}),ZW=f.forwardRef(v3e),b3e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5l1.53.11A2.98 2.98 0 0 1 22 15c0 1.65-1.35 3-3 3H6c-2.21 0-4-1.79-4-4c0-2.05 1.53-3.76 3.56-3.97l1.07-.11l.5-.95A5.47 5.47 0 0 1 12 6m0-2C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5c0-2.64-2.05-4.78-4.65-4.96A7.49 7.49 0 0 0 12 4"})]}),y3e=f.forwardRef(b3e),S3e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4S4 12.954 4 24s8.954 20 20 20Z"}),x("path",{strokeLinecap:"round",d:"m33 21l-9 9l-9-9"})]})]}),C3e=f.forwardRef(S3e);function x3e(){return Wwe(),fS()}async function w3e(){const e=await UU.getData();LR(e);const{pickedPaths:t,pickedSettings:n}=xc(e,Zl(tl,kwe));return t.length?(qU(true),es(n),fS()):Qt.error("备份不存在或没有有效的配置")}function E3e(){const[e,t]=f.useState(false);return H("div",{className:On.tabPane,children:[x(co,{title:"设置项",children:H(Tr,{size:20,children:[x(Bp,{title:"确定",description:"确定恢复默认设置? 此操作不可逆!",onConfirm:x3e,children:H(ht,{danger:true,type:"primary",children:[x(aB,{}),"恢复默认设置"]})}),H(Tr,{size:5,children:[x(sn,{title:"导出所有设置项到文件中, 包含 access_key 等数据, 请妥善保存",children:H(ht,{onClick:()=>YW(),children:[x(QW,{}),"导出设置"]})}),x(sn,{title:"从文件中导入设置项, 将覆盖当前设置, 此操作不可逆!",children:H(ht,{onClick:()=>d3e(),children:[x(ZW,{}),"导入设置"]})})]})]})}),x(co,{title:H(_e,{children:[x(y3e,{className:"mr-4px size-28px"}),"备份"]}),children:H("div",{className:"flex items-center gap-x-40px",children:[H("span",{className:"flex items-center gap-x-8px",children:[x(It,{configPath:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${Zo}`}),H("a",{className:"inline-flex items-center",href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[x(Oo,{className:"mr-4px size-16px"}),"去草稿箱浏览"]})]}),x(Bp,{title:"确定",description:"将覆盖本地设置? 此操作不可逆!",onConfirm:w3e,children:H(ht,{danger:true,type:"primary",children:[x(aB,{}),"从专栏草稿箱中恢复"]})})]})}),x(co,{title:H(_e,{children:["其他",x(vr,{children:"这里是一些作者不愿意解释的设置项 😬"}),x(ht,{onClick:()=>t(n=>!n),className:"ml-10px inline-icon-only-round-button",css:e&&Xu,children:x(C3e,{className:X("size-16px transition-300 transition-transform",e?"rotate-180":"rotate-0")})})]}),children:x(o3e,{expanded:e,children:H("div",{className:"w-full flex gap-x-20px b-1px b-gate-border rounded-6px b-solid p-10px",children:[x(JR,{paths:Vy,className:"flex-none"}),x("div",{className:"flex flex-1 flex-wrap items-start gap-x-20px gap-y-10px",children:Vy.map(n=>x(It,{configPath:n,tooltip:H(_e,{children:[n,lB[n]&&H(_e,{children:[x("br",{}),lB[n]]})]}),label:_Q(n.startsWith("__internal")?n.slice(10):n.replaceAll("__internal.",""))},n))})]})})})]})}const lB={};function JW(e,{l:t,c:n,h:r,alpha:o,deltaL:i,deltaC:s,deltaH:l,deltaAlpha:u}={}){const d=t??(i?`calc(l + ${i})`:"l"),m=n??(s?`calc(c + ${s})`:"c"),p=r??(l?`calc(h + ${l})`:"h"),g=o??(u?`calc(alpha + ${u})`:"alpha");return `oklch(from ${e} ${d} ${m} ${p} / ${g})`}function $3e(e,t){return JW(e,{deltaL:t})}function cM({className:e,...t}){return x(sc,{variant:"solid",...t,className:or("my-7px",e),css:un("border-top-color:",JW(ts,{l:.9}),";","")})}const eG=e=>{const t=HU(e,hp.appkey,hp.appsec);return new URLSearchParams({...e,sign:t})};async function M3e(){const t=(await Yt.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/auth_code",eG({appkey:hp.appkey,local_id:"0",ts:"0"}))).data;if(!Vn(t)){Jt(t?.message||"获取 auth_code 失败");return}return t.data}async function T3e(e){const n=(await Yt.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/poll",eG({appkey:hp.appkey,auth_code:e,local_id:"0",ts:"0"}))).data,r={0:"成功","-3":"API校验密匙错误","-400":"请求错误","-404":"啥都木有",86038:"二维码已失效",86039:"二维码尚未确认",86090:"二维码已扫码未确认"};if(!Vn(n)){const s=n.code.toString(),l=n.message||r[s]||"未知错误";return s==="86038"?{success:false,message:l,action:"refresh"}:s==="86039"||s==="86090"?{success:false,message:l,action:"wait"}:{success:false,message:l,action:void 0}}const o=n.data.access_token,i=Date.now()+n.data.expires_in*1e3;return {success:true,message:"获取成功",accessKey:o,accessKeyExpireAt:i}}const eN={show:false,qrcodeUrl:"",auth_code:"",message:"",expired:false},Hl=zn({...eN});function df(e){P3e(),Object.assign(Hl,e);}function A3e(e){df({...eN,...e,show:true});}const mS=new uo;function tG(){df({...eN}),mS.emit("hide");}function cB(){return mS.once("hide")}function R3e(){return mS.once("refresh")}function N3e(){const{qrcodeUrl:e,show:t,message:n,expired:r}=gt(Hl),o=tG,i=()=>{mS.emit("refresh");};return H(Hg,{show:t,onHide:o,hideWhenMaskOnClick:false,hideWhenEsc:false,clsModalMask:"backdrop-blur-10px",clsModal:"aspect-ratio-10/16",width:260,children:[H("div",{className:_o.modalHeader,children:[x("div",{className:_o.modalTitle}),x(Vg,{onClick:o})]}),H("div",{className:X(_o.modalBody,"flex flex-col items-center justify-center text-center"),children:[x("div",{className:"mb-2px min-h-25px flex-center text-size-14px",children:n||""}),e&&H("div",{className:"relative mx-auto mb-40px flex-shrink-0",children:[x(lge,{className:"p-8px",value:e,size:200,icon:"https://is1-ssl.mzstatic.com/image/thumb/Purple211/v4/72/9c/b6/729cb6d8-75f5-0a56-0508-3a26cbba69ae/AppIcon-1x_U007emarketing-0-6-0-0-85-220-0.png/230x0w.webp"}),r&&H("div",{className:"absolute inset-0 flex flex-col cursor-pointer items-center justify-center bg-black/65 text-white",onClick:i,children:[x("div",{className:"mb-8px text-size-14px font-600",children:"二维码已过期"}),x("div",{className:"border border-white/40 rounded-6px px-12px py-6px text-size-13px",children:"点击刷新"})]})]}),H("div",{className:"footnote text-size-13px line-height-snug",children:["打开「哔哩哔哩」或「bilibili」App ",x("br",{}),"扫码获取 access_key"]})]})]})}const P3e=jf(function(){const t=document.createElement("div");t.classList.add("modal-tv-qrcode-auth",Ns),document.body.appendChild(t),aa.createRoot(t).render(x(rl,{children:x(N3e,{})}));});async function uB(){const e=await M3e();if(e)return A3e({qrcodeUrl:e.url,auth_code:e.auth_code}),true}async function I3e(){let e,t;if(!await uB())return;e=Hl.auth_code;function r(){if(!Hl.show||!Hl.auth_code||e!==Hl.auth_code)return  true}function o(){return !r()}for(;o();){const i=gn(1500),s=cB();if(await Promise.race([i,s]),s.off(),r())return;t=await T3e(Hl.auth_code);const{success:l,accessKey:u,accessKeyExpireAt:d,message:m,action:p}=t;if(r())return;if(df({message:m}),l)return await gn(1e3),tG(),{accessKey:u,accessKeyExpireAt:d};if(p==="refresh"){df({message:"二维码已过期,请点击刷新",expired:true});const g=cB(),b=R3e();if(await Promise.race([g,b]),g.off(),b.off(),r()||!await uB())return;e=Hl.auth_code,df({message:"已刷新二维码",expired:false});continue}if(p!=="wait"){df({message:m}),Jt(m);return}}}async function O3e(){const{accessKey:e,accessKeyExpireAt:t}=await I3e()||{};!e||!t||(at.accessKey=e,at.accessKeyExpireAt=t,Jt("获取成功"));}function D3e(){at.accessKey="",at.accessKeyExpireAt=0,Jt("已删除 access_key");}const dB=x(ht,{target:"_blank",href:"https://github.com/indefined/UserScripts/tree/master/bilibiliHome#%E6%8E%88%E6%9D%83%E8%AF%B4%E6%98%8E",children:"access_key 说明"});function tN({style:e,className:t}){const{runAsync:n,loading:r}=ws(O3e,{manual:true}),{accessKey:o}=Ft();return x(Tr,{size:"small",style:e,className:t,children:o?H(_e,{children:[x(ht,{onClick:n,loading:r,children:"重新获取 access_key"}),x(Bp,{onConfirm:D3e,title:"确定删除 access_key?",children:x(ht,{children:"删除 access_key"})}),dB]}):H(_e,{children:[x(ht,{onClick:n,loading:r,children:"获取 access_key"}),dB]})})}const _3e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M2 22V2h2v20zm4-5v-3h10v3zm0-7V7h16v3z"})]}),nG=f.forwardRef(_3e),L3e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M11 22v-5H6v-3h5v-4H3V7h8V2h2v5h8v3h-8v4h5v3h-5v5z"})]}),B3e=f.forwardRef(L3e),k3e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M20 22V2h2v20zM8 17v-3h10v3zm-6-7V7h16v3z"})]}),rG=f.forwardRef(k3e),oG="w-720px",z3e=(e,t)=>{switch(e){case Mu.Left:return t==="flex"?"justify-left":"ml-0 mr-auto";case Mu.Right:return t==="flex"?"justify-right":"ml-auto mr-0";default:return t==="flex"?"justify-center":"mx-auto"}};function F3e({className:e}){const{grid:{gridDisplayMode:t,twoColumnModeAlign:n}}=Ft();return H(Rr.Group,{className:e,disabled:t!==Wr.TwoColumnGrid,buttonStyle:"solid",size:"small",value:n,onChange:r=>{at.grid.twoColumnModeAlign=r.target.value;},children:[x(Rr.Button,{value:Mu.Left,className:"inline-flex-center",children:x(nG,{className:"size-16px"})}),x(Rr.Button,{value:Mu.Center,className:"inline-flex-center",children:x(B3e,{className:"size-16px"})}),x(Rr.Button,{value:Mu.Right,className:"inline-flex-center",children:x(rG,{className:"size-16px"})})]})}const H3e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zm10 0a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1zM4 15a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zm10 0a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1z"})]}),V3e=f.forwardRef(H3e),j3e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 5h8m-8 4h5m-5 6h8m-8 4h5M3 5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm0 10a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z"})]}),U3e=f.forwardRef(j3e);function iG(e){return {usingListMode:e===Wr.List,usingTwoColumnMode:e===Wr.TwoColumnGrid,usingCenterEmptyMode:e===Wr.CenterEmptyGrid}}function sG(){const{gridDisplayMode:e}=gt(at.grid);return iG(e)}function nN(e){return e===Wr.List}function W3e(){return gt(at.grid).gridDisplayMode===Wr.List}const aG="[&_.ant-radio-wrapper]:mx-0 [&_.ant-radio-wrapper]:inline-flex [&_.ant-radio-wrapper]:items-center",lG="[&_.ant-radio-label]:inline-flex [&_.ant-radio-label]:items-center ![&_.ant-radio-label]:pl-4px";function G3e({className:e}){const{gridDisplayMode:t}=gt(at.grid),n=or("flex items-center gap-x-15px",aG,lG,e);return x(Rr.Group,{size:"large",className:n,value:t,onChange:r=>{at.grid.gridDisplayMode=r.target.value;},options:[{value:Wr.NormalGrid,label:x(sn,{title:"这个是默认的网格模式",children:H("span",{className:"inline-flex-center",children:[x(V3e,{className:"mx-4px size-16px cursor-pointer"}),"网格"]})})},{value:Wr.List,label:H(_e,{children:[x(U3e,{className:"mx-4px size-16px cursor-pointer"}),"列表"]})},{value:Wr.TwoColumnGrid,label:H(_e,{children:["双列模式",x(F3e,{className:"ml-5px"})]})},{value:Wr.CenterEmptyGrid,label:x(_e,{children:x(sn,{title:"网格中间不显示卡片",children:"中空模式"})})}]})}function q3e({className:e}){const{useCustomGrid:t,enableForceColumn:n,cardMinWidth:r,forceColumnCount:o}=gt(at.grid),i=n?"force-column":"auto-fill",s=tt(d=>{const m=d.target.value;m==="force-column"?at.grid.enableForceColumn=true:m==="auto-fill"&&(at.grid.enableForceColumn=false);}),l=f.useMemo(()=>[{value:"auto-fill",label:H("div",{className:"flex items-center gap-x-1",children:[x(sn,{title:H(_e,{children:["自适应: 指按照「卡片最小宽度」自适应 ",x("br",{}),"如果期望显示更多的列, 可以调小「卡片最小宽度」; ",x("br",{}),"如果期望显示更少的列, 可以调大「卡片最小宽度」; ",x("br",{}),"Tip: 先点击输入框, 再移动鼠标到透视按钮, 然后使用键盘",x(Pa,{k:"Alt+ArrowUp",className:"mx-1"}),x(Pa,{k:"Alt+ArrowDown",className:"mx-1"})," 调整"]}),children:x("span",{className:"cursor-pointer",children:"自适应: 卡片最小宽度"})}),H(Tr.Compact,{children:[x(yu,{disabled:!(t&&i==="auto-fill"),value:r,onChange:d=>{d&&(at.grid.cardMinWidth=d);},min:150,max:450,step:10,size:"small",className:"w-75px"}),x(Tr.Addon,{children:"px"})]})]})},{value:"force-column",label:H("div",{className:"flex items-center gap-x-1",children:["手动设置列数",x(yu,{disabled:!(t&&i==="force-column"),value:o,onChange:d=>{d&&(at.grid.forceColumnCount=d);},min:0,max:10,step:1,size:"small",className:"w-50px"})]})}],[i,t,n,r,o]),u=or("flex items-center gap-x-15px",aG,lG,e);return x(Rr.Group,{className:u,disabled:!t,options:l,value:i,onChange:s})}var _0={exports:{}},K3e=_0.exports,fB;function Y3e(){return fB||(fB=1,(function(e,t){(function(n,r){e.exports=r();})(K3e,(()=>(()=>{var n={d:(i,s)=>{for(var l in s)n.o(s,l)&&!n.o(i,l)&&Object.defineProperty(i,l,{enumerable:true,get:s[l]});},o:(i,s)=>Object.prototype.hasOwnProperty.call(i,s),r:i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:true});}},r={};n.r(r),n.d(r,{RingBuffer:()=>o});class o{static fromArray(s,l=0){const u=new o(l);return u.fromArray(s,l===0),u}constructor(s){if(this.buffer=[],this.pos=0,s<0)throw new RangeError("Invalid size.");this.size=s;}getSize(){return this.size}getPos(){return this.pos}getBufferLength(){return this.buffer.length}add(...s){s.forEach((l=>{this.buffer[this.pos]=l,this.pos=(this.pos+1)%this.size;}));}get(s){if(s<0&&(s+=this.buffer.length),!(s<0||s>this.buffer.length))return this.buffer.length<this.size?this.buffer[s]:this.buffer[(this.pos+s)%this.size]}getFirst(){return this.get(0)}getLast(){return this.get(-1)}getFirstN(s){return s===0?[]:s<0?this.getLastN(-s):this.toArray().slice(0,s)}getLastN(s){return s===0?[]:s<0?this.getFirstN(-s):this.toArray().slice(-s)}remove(s,l=1){if(s<0&&(s+=this.buffer.length),s<0||s>this.buffer.length)return [];const u=this.toArray(),d=u.splice(s,l);return this.fromArray(u),d}removeFirst(){return this.remove(0)[0]}removeLast(){return this.remove(-1)[0]}toArray(){return this.buffer.slice(this.pos).concat(this.buffer.slice(0,this.pos))}fromArray(s,l=false){if(!Array.isArray(s))throw new TypeError("Input value is not an array.");l&&this.resize(s.length),this.size!==0&&(this.buffer=s.slice(-this.size),this.pos=this.buffer.length%this.size);}clear(){this.buffer=[],this.pos=0;}resize(s){if(s<0)throw new RangeError("The size does not allow negative values.");if(s===0)this.clear();else if(s!==this.size){const l=this.toArray();this.fromArray(l.slice(-s)),this.pos=this.buffer.length%s;}this.size=s;}isFull(){return this.buffer.length===this.size}isEmpty(){return this.buffer.length===0}}return r})()));})(_0)),_0.exports}var X3e=Y3e();function ao(e,t,n){const r=tt(n);f.useEffect(()=>e.on(t,r),[e,t,r]);}const cG=J9&&["/video/","/list/watchlater","/bangumi/play/"].some(e=>location.pathname.startsWith(e)),Q3e=[["/video/",()=>/^\/video\/(?<bvid>BV\w+)\/?/.exec(location.pathname)?.groups?.bvid],["/list/watchlater",()=>new URLSearchParams(location.search).get("bvid")||void 0],["/bangumi/play/",()=>{}]];function L0(){return Q3e.find(([t])=>location.pathname.startsWith(t))?.[1]()}function rN(e,t=21){return `https://space.bilibili.com/${oi()}/favlist?fid=${e}&ftype=create`}function uG(e,t=21){return `https://space.bilibili.com/${oi()}/favlist?fid=${e}&ftype=collect&ctype=${t}`}function Z3e(e){return `https://www.bilibili.com/list/ml${e}`}function J3e(e){return `https://www.bilibili.com/video/${e}`}function oN(e){return e.toString(2).at(-2)==="0"}function hS(e){return e.toString(2).at(-1)==="1"}async function dG({avid:e,add_media_ids:t="",del_media_ids:n=""}){const r=new URLSearchParams({rid:e.toString(),type:"2",add_media_ids:t,del_media_ids:n,platform:"web",eab_x:"2",ramval:"0",ga:"1",gaia_source:"web_normal",csrf:Cc()}),i=(await Yt.post("/x/v3/fav/resource/deal",r)).data,s=Vn(i);return s||Jt(i?.message||"fav deal api fail"),s}const ku={getVideoFavState:nMe,addFav:rMe,removeFavs:eMe,moveFavs:tMe,modifyFav:iMe};async function eMe(e,t){const n=new URLSearchParams({resources:[t].flat().join(","),media_id:e.toString(),platform:"web",csrf:Cc()}),o=(await Yt.post("/x/v3/fav/resource/batch-del",n)).data,i=Vn(o);return i||Jt(o.message||qM),i}async function tMe(e,t,n){const r=new URLSearchParams({resources:[e].flat().join(","),src_media_id:t.toString(),tar_media_id:n.toString(),mid:oi(),platform:"web",csrf:Cc()}),i=(await Yt.post("/x/v3/fav/resource/move",r)).data,s=Vn(i);return s||Jt(i?.message||"fav deal api fail"),s}async function nMe(e){if(!eS())return;const r=(await Yt.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:oi(),type:2,rid:e}})).data.data.list.filter(l=>l.fav_state>0),o=r.map(l=>l.title),i=r.map(l=>rN(l.id)),s=r.map(l=>l.id);return {favFolders:r,favFolderNames:o,favFolderUrls:i,favFolderIds:s}}let _E,uM;async function rMe(e,t){if(!t&&(!_E||!uM)){await kN();const{folders:n}=pn,r=n.find(o=>oN(o.attr))??n[0];if(!r)return Jt("没有找到默认收藏夹!");_E=r.id,uM=r.title;}return t||=_E,t?await dG({avid:e,add_media_ids:t.toString()}):Jt("没有找到默认收藏夹!")}async function oMe(){return (await Yt.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:oi()}})).data.data.list}async function iMe(e,t,n){const r=(t??[]).filter(u=>u!==void 0),o=[n].filter(u=>u!==void 0),i=Zl(r,o),s=Zl(o,r);return await dG({avid:e,del_media_ids:i.length?i.join(","):void 0,add_media_ids:s.length?s.join(","):void 0})}async function sMe(e){const n=(await Yt.get("/x/v3/fav/folder/info",{params:{media_id:e,web_location:"0.0"}})).data;if(!Vn(n))throw new IR(n);return n.data}async function aMe(e,t){const n=await sMe(e);if(!n)return;const r=new URLSearchParams({media_id:e.toString(),title:t,intro:n.intro,cover:n.cover,privacy:hS(n.attr)?"1":"0",csrf:Cc()}),i=(await Yt.post("/x/v3/fav/folder/edit",r)).data,s=Vn(i);if(!s){const l=i.message||"编辑收藏夹失败";Jt(l);}return s}async function lMe(e){return (await Yt.get("/x/v3/fav/folder/collected/list",{params:{up_mid:oi(),platform:"web",ps:20,pn:e}})).data.data}async function cMe(){let e=1,t=true,n=[];for(;t;){const r=await lMe(e);n.push(...r.list),t=r.has_more,e++;}return n=n.filter(r=>!(r.title==="该合集已失效"&&r.upper.mid===0)),n=mc(n,r=>r.id),n}async function uMe(e,t){return (await Yt.get("/x/space/fav/season/list",{params:{season_id:e,ps:20,pn:t}})).data.data}var Ot=(e=>(e.Initial="initial",e.Shuffle="shuffle",e.PubTimeDesc="pub-time-desc",e.PubTimeAsc="pub-time-asc",e.PlayCountDesc="play-count-desc",e.CollectCountDesc="collect-count-desc",e.FavTimeDesc="fav-time-desc",e.FavTimeAsc="fav-time-asc",e))(Ot||{});function dM(e,t){return t==="initial"?e:t==="shuffle"?wi(e):t==="pub-time-desc"||t==="pub-time-asc"?Ia(e,[r=>r.pubtime],[t==="pub-time-desc"?"desc":"asc"]):(t==="fav-time-desc"||t==="fav-time-asc")&&e.every(n=>n.from==="fav-folder")?Ia(e,[r=>r.fav_time],[t==="fav-time-desc"?"desc":"asc"]):t==="play-count-desc"?Ia(e,[n=>n.cnt_info.play],["desc"]):t==="collect-count-desc"?Ia(e,[n=>n.cnt_info.collect],["desc"]):e}function dc(e){return e.api===Ze.AppRecommend}function fc(e){return e.api===Ze.PcRecommend}function ff(e){return e.api===Ze.DynamicFeed}function fG(e){return e.api===Ze.Watchlater}function zu(e){return e.api===Ze.Fav}function mG(e){return e.api===Ze.Rank}function qp(e){return e.api===Ze.Live}function fM(e){return e.api===Ze.SpaceUpload}function gm(e){const t=II.createInstance({driver:II.INDEXEDDB,name:Kr,storeName:e});return {db:t,get(n){return t.getItem(n.toString())},set(n,r){return t.setItem(n.toString(),r)},delete(n){return t.removeItem(n.toString())}}}function Zu({fn:e,generateKey:t,tableName:n,ttl:r,concurrency:o,autoCleanUp:i=true}){const s=typeof n=="string"?gm(n):n,l=qa(()=>{s.db.iterate((g,b)=>{u(g)||s.db.removeItem(b);});},1e3);i&&rS().then(l);function u(g){return !!(g&&g.val&&g.ts&&Date.now()-g.ts<=r)}async function d(...g){const b=t(...g),y=await s.get(b);if(y&&u(y))return y.val}const m=o&&o>0?lve(e,o):e,p=NR(m,{cacheKey(g){return t(...g)},cache:{async has(g){const b=await s.get(g);return u(b)},async get(g){const b=await s.get(g);if(b&&u(b))return b.val},async set(g,b){Xi(b)||await s.set(g,{val:b,ts:Date.now()});},async delete(g){await s.delete(g);}}});return Object.defineProperties(p,{cache:{value:s},cleanUp:{value:l},generateKey:{value:t},shouldReuseCached:{value:u},queryCache:{value:d}}),p}async function dMe(e){return (await Yt.get("/x/web-interface/view",{params:{bvid:e}})).data.data}const hG=Zu({fn:dMe,generateKey:e=>e,tableName:"video-detail",ttl:Qr("3M"),concurrency:3});async function fMe(e){return (await Yt.get("/x/player/pagelist",{params:{bvid:e}})).data?.data||[]}const pG=Zu({fn:fMe,generateKey:e=>e,tableName:"video-page-list",ttl:Qr("3M"),concurrency:3});async function gG(e,t){const n=oi(),r=Cc(),o=new URLSearchParams({fid:e,act:String(t),re_src:"11",gaia_source:"web_main",spmid:"333.999.0.0",extend_content:JSON.stringify({entity:"user",entity_id:n,fp:mMe()}),csrf:r}),s=(await Yt.post("/x/relation/modify",o)).data,l=Vn(s);return l||Jt(s.message||"未知错误"),l}function mMe(){let e,t;const n=((e=window.reportObserver)===null||e===void 0||(t=e.cache)===null||t===void 0?void 0:t.fpriskMsg)||{};let r="empty";return n&&(r=`${n.webdriver}${n.screenResolution}${n.platform}${n.hardwareConcurrency}${n.deviceMemory}${n.colorDepth}${n.indexedDb}${n.language}${n.openDatabase}${n.touchSupport}${n.userAgent}`),decodeURIComponent(r)}const hMe=po.extend("service:user:relations:blacklist"),pMe=bG("follow"),gMe=bG("remove"),vG={add:pMe,remove:gMe},{set:cp,replaceAllWith:vMe}=await( fV("blacklist-mids"));function bMe(e){const t=gt(cp);return !!e&&t.has(e)}function bG(e){const t=e==="follow"?5:6;return async function(r){const o=await gG(r,t);if(o){const i=cp;e==="follow"?i.add(r):e==="remove"&&i.delete(r);}return o}}async function yMe(){const t=async s=>{const u=(await Yt.get("/x/relation/blacks",{params:{re_version:0,ps:20,pn:s}})).data;if(!Vn(u))return;const d=u.data.total,m=u.data.list.map(p=>p.mid);return {total:d,mids:m}},n=await t(1);if(!n)return;const{total:r,mids:o=[]}=n;let i=o;if(r){const s=Math.ceil(r/20);for(let l=2;l<=s;l++){const{mids:u=[]}=await t(l)||{};i=i.concat(u);}}return i}(async()=>{if(!Ka)return;await rS();const e=await yMe();hMe("user blocklist fetched: %o",e),e&&vMe(e.map(t=>t.toString()));})();var Ko;(e=>{(t=>{t.Av="DYNAMIC_TYPE_AV",t.Draw="DYNAMIC_TYPE_DRAW",t.PgcUnion="DYNAMIC_TYPE_PGC_UNION",t.UgcSeason="DYNAMIC_TYPE_UGC_SEASON",t.Forward="DYNAMIC_TYPE_FORWARD",t.Article="DYNAMIC_TYPE_ARTICLE",t.Word="DYNAMIC_TYPE_WORD",t.LiveRcmd="DYNAMIC_TYPE_LIVE_RCMD";})(e.ItemType||(e.ItemType={})),(t=>{t.Normal="AUTHOR_TYPE_NORMAL",t.Pgc="AUTHOR_TYPE_PGC",t.UgcSeason="AUTHOR_TYPE_UGC_SEASON";})(e.AuthorType||(e.AuthorType={})),(t=>{t.Archive="MAJOR_TYPE_ARCHIVE",t.Opus="MAJOR_TYPE_OPUS",t.Pgc="MAJOR_TYPE_PGC",t.UgcSeason="MAJOR_TYPE_UGC_SEASON",t.LiveRcmd="MAJOR_TYPE_LIVE_RCMD";})(e.MajorType||(e.MajorType={})),(t=>{t.Goods="ADDITIONAL_TYPE_GOODS",t.Reserve="ADDITIONAL_TYPE_RESERVE";})(e.AdditionalType||(e.AdditionalType={}));})(Ko||(Ko={}));function Th(e){const t=e.modules.module_dynamic.major;if(t?.type==="MAJOR_TYPE_ARCHIVE")return t.archive}async function SMe({appKey:e,nscode:t,versionId:n}){const r={appKey:e,nscode:t,versionId:n};return (await Yt.get("/x/kv-frontend/namespace/data",{params:r})).data}function yG({appKey:e,nscode:t}){return new URLSearchParams([["appKey",e],["nscode",t.toString()]]).toString()}const mB=gm("kv-latest-version"),CMe=el(async({appKey:e,nscode:t})=>{const n=yG({appKey:e,nscode:t}),r=await mB.get(n);let o="0";r&&r.versionId&&r.data&&Object.keys(r.data).length&&(o=r.versionId);const i=await SMe({appKey:e,nscode:t,versionId:o});return r?.data&&i.code===-304&&i.message==="Not Modified"?r.data:(await mB.set(n,i.data),i.data.data)}),xMe=Zu({fn:CMe,tableName:"get-kv-data",generateKey:({appKey:e,nscode:t})=>yG({appKey:e,nscode:t}),ttl:Qr("1h")});function wMe(e={},t){t.endsWith(".")||(t+=".");const n={};return e&&Object.keys(e).filter(r=>r.startsWith(t)).forEach(r=>{const o=r.slice(t.length),i=e[r]||"";n[o]=i;}),n}const hB=[{tid:0,name:"全部",slug:"all",season_type:0,type:"all"},{tid:0,name:"番剧",slug:"anime",season_type:1,type:"anime"},{tid:0,name:"国创",slug:"guochuang",season_type:4,type:"guochuang"},{tid:0,name:"纪录片",slug:"documentary",season_type:3,type:"documentary"},{tid:0,name:"电影",slug:"movie",season_type:2,type:"movie"},{tid:0,name:"电视剧",slug:"tv",season_type:5,type:"tv"},{tid:0,name:"综艺",slug:"variety",season_type:7,type:"variety"},{tid:1005,name:"动画",slug:"douga",season_type:0,type:"douga"},{tid:1008,name:"游戏",slug:"game",season_type:0,type:"game"},{tid:1007,name:"鬼畜",slug:"kichiku",season_type:0,type:"kichiku"},{tid:1003,name:"音乐",slug:"music",season_type:0,type:"music"},{tid:1004,name:"舞蹈",slug:"dance",season_type:0,type:"dance"},{tid:1001,name:"影视",slug:"cinephile",season_type:0,type:"cinephile"},{tid:1002,name:"娱乐",slug:"ent",season_type:0,type:"ent"},{tid:1010,name:"知识",slug:"knowledge",season_type:0,type:"knowledge"},{tid:1012,name:"科技数码",slug:"tech",season_type:0,type:"tech"},{tid:1020,name:"美食",slug:"food",season_type:0,type:"food"},{tid:1013,name:"汽车",slug:"car",season_type:0,type:"car"},{tid:1014,name:"时尚美妆",slug:"fashion",season_type:0,type:"fashion"},{tid:1018,name:"体育运动",slug:"sports",season_type:0,type:"sports"},{tid:1024,name:"动物",slug:"animal",season_type:0,type:"animal"}],iN={name:"全站",tid:0,slug:"all"};async function EMe(){try{return await $Me()||hB}catch(e){return RZ("parseRankTabsConfig failed",e),hB}}async function $Me(){const e=await xMe({appKey:"333.1339",nscode:10}),t=wMe(e,"channel_list"),n=JSON.parse(t.popular_page_sort||"");if(!n.length)return;const r=[],o=i=>{r.push({tid:i.tid||0,name:i.name,slug:i.route,season_type:i.seasonType||0,type:i.route});};for(const i of n){if(!t[i])continue;const s=JSON.parse(t[i]);o(s);}return mc(r,i=>i.slug)}var B0=(e=>(e.Normal="normal",e.PgcSeason="pgc/season",e.PgcWeb="pgc/web",e))(B0||{});function SG(e){if(!["anime","guochuang","documentary","movie","tv","variety"].includes(e.type||""))return {apiType:"normal",url:`/x/web-interface/ranking/v2?rid=${e.tid}&type=all`};const{season_type:t}=e,n=`?day=3&season_type=${t}`;let r=`/pgc/web/rank/list${n}`,o="pgc/web";return t&&[2,3,4,5,7].includes(t)&&(r=`/pgc/season/rank/web/list${n}`,o="pgc/season"),{apiType:o,url:r}}function sN(e){return e.from==="normal"}function MMe(e){return e.from==="pgc/season"}function TMe(e){return e.from==="pgc/web"}const CG=23442827791579n,AMe=2251799813685247n,RMe=1n<<51n,mM=58n,xG="FcwAPNKTMug3GV5Lj7EJnHpWsx4tb8haYeviqBz6rkCy12mUSDQX9RdoZf";function aN(e){const t=["B","V","1","0","0","0","0","0","0","0","0","0"];let n=t.length-1,r=(RMe|BigInt(e))^CG;for(;r>0;)t[n]=xG[Number(r%BigInt(mM))],r=r/mM,n-=1;return [t[3],t[9]]=[t[9],t[3]],[t[4],t[7]]=[t[7],t[4]],t.join("")}function NMe(e){const t=Array.from(e);[t[3],t[9]]=[t[9],t[3]],[t[4],t[7]]=[t[7],t[4]],t.splice(0,3);const n=t.reduce((r,o)=>r*mM+BigInt(xG.indexOf(o)),0n);return Number(n&AMe^CG)}const PMe=$g(e=>H("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e,children:[x("path",{d:"M12 4.99805C9.48178 4.99805 7.283 5.12616 5.73089 5.25202C4.65221 5.33949 3.81611 6.16352 3.72 7.23254C3.60607 8.4998 3.5 10.171 3.5 11.998C3.5 13.8251 3.60607 15.4963 3.72 16.76355C3.81611 17.83255 4.65221 18.6566 5.73089 18.7441C7.283 18.8699 9.48178 18.998 12 18.998C14.5185 18.998 16.7174 18.8699 18.2696 18.74405C19.3481 18.65655 20.184 17.8328 20.2801 16.76405C20.394 15.4973 20.5 13.82645 20.5 11.998C20.5 10.16965 20.394 8.49877 20.2801 7.23205C20.184 6.1633 19.3481 5.33952 18.2696 5.25205C16.7174 5.12618 14.5185 4.99805 12 4.99805zM5.60965 3.75693C7.19232 3.62859 9.43258 3.49805 12 3.49805C14.5677 3.49805 16.8081 3.62861 18.3908 3.75696C20.1881 3.90272 21.6118 5.29278 21.7741 7.09773C21.8909 8.3969 22 10.11405 22 11.998C22 13.88205 21.8909 15.5992 21.7741 16.8984C21.6118 18.7033 20.1881 20.09335 18.3908 20.23915C16.8081 20.3675 14.5677 20.498 12 20.498C9.43258 20.498 7.19232 20.3675 5.60965 20.2392C3.81206 20.0934 2.38831 18.70295 2.22603 16.8979C2.10918 15.5982 2 13.8808 2 11.998C2 10.1153 2.10918 8.39787 2.22603 7.09823C2.38831 5.29312 3.81206 3.90269 5.60965 3.75693z",fill:"currentColor"}),x("path",{d:"M14.7138 10.96875C15.50765 11.4271 15.50765 12.573 14.71375 13.0313L11.5362 14.8659C10.74235 15.3242 9.75 14.7513 9.75001 13.8346L9.75001 10.1655C9.75001 9.24881 10.74235 8.67587 11.5362 9.13422L14.7138 10.96875z",fill:"currentColor"})]})),IMe=$g(e=>H("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e,children:[x("path",{d:"M12 4.99805C9.48178 4.99805 7.283 5.12616 5.73089 5.25202C4.65221 5.33949 3.81611 6.16352 3.72 7.23254C3.60607 8.4998 3.5 10.171 3.5 11.998C3.5 13.8251 3.60607 15.4963 3.72 16.76355C3.81611 17.83255 4.65221 18.6566 5.73089 18.7441C7.283 18.8699 9.48178 18.998 12 18.998C14.5185 18.998 16.7174 18.8699 18.2696 18.74405C19.3481 18.65655 20.184 17.8328 20.2801 16.76405C20.394 15.4973 20.5 13.82645 20.5 11.998C20.5 10.16965 20.394 8.49877 20.2801 7.23205C20.184 6.1633 19.3481 5.33952 18.2696 5.25205C16.7174 5.12618 14.5185 4.99805 12 4.99805zM5.60965 3.75693C7.19232 3.62859 9.43258 3.49805 12 3.49805C14.5677 3.49805 16.8081 3.62861 18.3908 3.75696C20.1881 3.90272 21.6118 5.29278 21.7741 7.09773C21.8909 8.3969 22 10.11405 22 11.998C22 13.88205 21.8909 15.5992 21.7741 16.8984C21.6118 18.7033 20.1881 20.09335 18.3908 20.23915C16.8081 20.3675 14.5677 20.498 12 20.498C9.43258 20.498 7.19232 20.3675 5.60965 20.2392C3.81206 20.0934 2.38831 18.70295 2.22603 16.8979C2.10918 15.5982 2 13.8808 2 11.998C2 10.1153 2.10918 8.39787 2.22603 7.09823C2.38831 5.29312 3.81206 3.90269 5.60965 3.75693z",fill:"currentColor"}),x("path",{d:"M15.875 10.75L9.875 10.75C9.46079 10.75 9.125 10.4142 9.125 10C9.125 9.58579 9.46079 9.25 9.875 9.25L15.875 9.25C16.2892 9.25 16.625 9.58579 16.625 10C16.625 10.4142 16.2892 10.75 15.875 10.75z",fill:"currentColor"}),x("path",{d:"M17.375 14.75L11.375 14.75C10.9608 14.75 10.625 14.4142 10.625 14C10.625 13.5858 10.9608 13.25 11.375 13.25L17.375 13.25C17.7892 13.25 18.125 13.5858 18.125 14C18.125 14.4142 17.7892 14.75 17.375 14.75z",fill:"currentColor"}),x("path",{d:"M7.875 10C7.875 10.4142 7.53921 10.75 7.125 10.75L6.625 10.75C6.21079 10.75 5.875 10.4142 5.875 10C5.875 9.58579 6.21079 9.25 6.625 9.25L7.125 9.25C7.53921 9.25 7.875 9.58579 7.875 10z",fill:"currentColor"}),x("path",{d:"M9.375 14C9.375 14.4142 9.03921 14.75 8.625 14.75L8.125 14.75C7.71079 14.75 7.375 14.4142 7.375 14C7.375 13.5858 7.71079 13.25 8.125 13.25L8.625 13.25C9.03921 13.25 9.375 13.5858 9.375 14z",fill:"currentColor"})]})),OMe=$g(function(e){return H("svg",{viewBox:"0 0 16 16",fill:"currentColor",...e,children:[x("path",{d:"M8.624933333333333 13.666666666666666C8.624933333333333 14.011849999999999 8.345125 14.291666666666666 7.999933333333333 14.291666666666666C4.525166666666666 14.291666666666666 1.7082933333333332 11.474791666666665 1.7082933333333332 8C1.7082933333333332 6.013308333333333 2.629825 4.2414233333333335 4.066321666666667 3.089385C4.335603333333333 2.8734283333333335 4.728959999999999 2.9166533333333335 4.944915 3.1859349999999997C5.160871666666666 3.4552099999999997 5.1176466666666665 3.848573333333333 4.848366666666666 4.0645283333333335C3.694975 4.98953 2.9582933333333328 6.40852 2.9582933333333328 8C2.9582933333333328 10.784416666666667 5.215528333333333 13.041666666666666 7.999933333333333 13.041666666666666C8.345125 13.041666666666666 8.624933333333333 13.321483333333333 8.624933333333333 13.666666666666666zM11.060475 12.810558333333333C10.844225000000002 12.541558333333331 10.887033333333335 12.148125 11.156041666666667 11.931875C12.306858333333333 11.006775 13.041599999999999 9.589424999999999 13.041599999999999 8C13.041599999999999 5.215561666666666 10.784408333333332 2.958333333333333 7.999933333333333 2.958333333333333C7.6548083333333325 2.958333333333333 7.374933333333333 2.6785083333333333 7.374933333333333 2.333333333333333C7.374933333333333 1.9881533333333332 7.6548083333333325 1.7083333333333333 7.999933333333333 1.7083333333333333C11.474725000000001 1.7083333333333333 14.291599999999999 4.525206666666667 14.291599999999999 8C14.291599999999999 9.984108333333333 13.372483333333332 11.753958333333332 11.939225 12.906125C11.670166666666663 13.122375 11.276725 13.079625 11.060475 12.810558333333333z",fill:"currentColor"}),x("path",{d:"M1.375 3.4130866666666666C1.375 3.0679066666666666 1.654825 2.7880866666666666 2 2.7880866666666666L4.333333333333333 2.7880866666666666C4.862608333333333 2.7880866666666666 5.291666666666666 3.2171449999999995 5.291666666666666 3.7464199999999996L5.291666666666666 6.079753333333334C5.291666666666666 6.424928333333334 5.011841666666666 6.704736666666666 4.666666666666666 6.704736666666666C4.321491666666667 6.704736666666666 4.041666666666666 6.424928333333334 4.041666666666666 6.079753333333334L4.041666666666666 4.038086666666667L2 4.038086666666667C1.654825 4.038086666666667 1.375 3.7582616666666664 1.375 3.4130866666666666z",fill:"currentColor"}),x("path",{d:"M14.625 12.5864C14.625 12.931591666666666 14.345183333333333 13.2114 14 13.2114L11.666666666666666 13.2114C11.137408333333335 13.2114 10.708333333333332 12.782383333333332 10.708333333333332 12.253066666666665L10.708333333333332 9.919733333333333C10.708333333333332 9.574608333333334 10.98815 9.294733333333333 11.333333333333332 9.294733333333333C11.678516666666667 9.294733333333333 11.958333333333332 9.574608333333334 11.958333333333332 9.919733333333333L11.958333333333332 11.9614L14 11.9614C14.345183333333333 11.9614 14.625 12.241275000000002 14.625 12.5864z",fill:"currentColor"})]})});function Kp(e){if(!e)return 0;const t=[1,60,360];return e.split(":").map(Number).reverse().reduce((o,i,s)=>o+i*t[s],0)}function ol(e){return e||=0,Yn.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function DMe(e){if(!e)return typeof e=="number"?"0":e;if(e<=9999)return e.toString();const t=n=>n.replace(/\.0$/,"");if(e/=1e4,e<=9999)return `${t(e.toFixed(1))}万`;if(e/=1e4,e<=9999)return `${t(e.toFixed(1))}亿`;console.warn(`formatCount(count = ${e}); can not handle input`);}function mu(e){if(e){if(e==="-")return 0;if(/^\d+$/.test(e))return Number(e);if(/^\d+(?:\.\d+)?万$/.test(e))return Number(e.slice(0,-1))*1e4;if(/^\d+(?:\.\d+)?亿$/.test(e))return Number(e.slice(0,-1))*1e8}}const _Me=Yn().format("YYYY");function k0(e,t=false){if(!e)return "";const n=Yn.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===_Me?n.format(`M-D${r}`):n.format(`YY-M-D${r}`)}function LMe(e){const t=Yn().subtract(1,"day").startOf("day").unix();return e>=t}function BMe(e,t){if(!e)return;const n=Yn.unix(e),r=n.format("YYYY-MM-DD")===Yn().format("YYYY-MM-DD"),o=r&&Date.now()-e*1e3<=Qr("12h"),i=n.format("YYYY-MM-DD")===Yn().subtract(1,"day").format("YYYY-MM-DD"),s=n.format("YYYY")===Yn().format("YYYY");if(o){const l=Yn().diff(n,"minutes"),u=Yn().diff(n,"hours");return l<1?"刚刚":l<60?`${l}分钟前`:`${u}小时前`}return r?n.format("今天 HH:mm"):i?n.format("昨天 HH:mm"):s?n.format("M月D日"):n.format("YYYY年M月D日")}const kMe={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function zMe(e){if(e!==void 0&&!(e>=0))return kMe[e]}const FMe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M27.6 18.6v-7.2A5.4 5.4 0 0 0 22.2 6L15 22.2V42h20.916a3.6 3.6 0 0 0 3.6-3.06L42 22.74a3.6 3.6 0 0 0-3.6-4.14zM15 22h-4.806C8.085 21.963 6.283 23.71 6 25.8v12.6a4.16 4.16 0 0 0 4.194 3.6H15z"})]}),HMe=f.forwardRef(FMe),VMe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M6.979 3.074a6 6 0 0 1 4.988 1.425l.037.033l.034-.03a6 6 0 0 1 4.733-1.44l.246.036a6 6 0 0 1 3.364 10.008l-.18.185l-.048.041l-7.45 7.379a1 1 0 0 1-1.313.082l-.094-.082l-7.493-7.422A6 6 0 0 1 6.979 3.074"})]}),jMe=f.forwardRef(VMe),UMe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m6 0h6m-6 3h6M9 8l3 4.5"}),x("path",{d:"m15 8l-3 4.5V17"})]})]}),WMe=f.forwardRef(UMe),GMe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M24 36c11.046 0 20-12 20-12s-8.954-12-20-12S4 24 4 24s8.954 12 20 12Z"}),x("path",{d:"M24 29a5 5 0 1 0 0-10a5 5 0 0 0 0 10Z"})]})]}),qMe=f.forwardRef(GMe),KMe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m3 20l1.3-3.9C1.976 12.663 2.874 8.228 6.4 5.726c3.526-2.501 8.59-2.296 11.845.48c3.255 2.777 3.695 7.266 1.029 10.501S11.659 20.922 7.7 19z"})]}),YMe=f.forwardRef(KMe),XMe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("path",{d:"m15 14l4-4l-4-4"}),x("path",{d:"M19 10H8a4 4 0 1 0 0 8h1"})]})]}),QMe=f.forwardRef(XMe);const pB="size-18px",Xc="size-16px",ZMe={play:x(PMe,{className:pB}),danmaku:x(IMe,{className:pB}),like:x(HMe,{className:Xc}),"bangumi:follow":x(jMe,{className:Xc}),favorite:x(Bf,{className:Xc}),coin:x(WMe,{className:Xc}),"live:viewed-by":x(qMe,{className:Xc}),"dynamic-feed:comment":x(YMe,{className:Xc}),"dynamic-feed:forward":x(QMe,{className:Xc})},JMe=f.memo(function({field:e,value:t}){const n=f.useMemo(()=>typeof t=="number"||t&&/^\d+$/.test(t)?DMe(Number(t))??V_:t??V_,[t]),r=ZMe[e];return H("span",{"data-field":e,className:"bili-video-card__stats--item gap-x-2px mr-0!",children:[r,x("span",{className:X("bili-video-card__stats--text line-height-18px"),children:n})]})});var Da=(e=>(e.AV="av",e.Ad="ad",e.Live="live",e))(Da||{});const eTe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 15 15",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M7.5.875A3.626 3.626 0 0 1 11.127 4.5A3.624 3.624 0 0 1 8.5 7.983c1.197.145 2.224.568 2.997 1.33c.981.967 1.478 2.408 1.478 4.288a.475.475 0 0 1-.949 0c0-1.72-.453-2.88-1.196-3.613c-.745-.733-1.856-1.113-3.33-1.113c-1.472 0-2.584.38-3.328 1.113s-1.197 1.893-1.197 3.613a.475.475 0 0 1-.949 0c0-1.88.497-3.32 1.479-4.289c.772-.76 1.799-1.183 2.995-1.328a3.627 3.627 0 0 1 1-7.109m0 .95a2.676 2.676 0 1 0 0 5.35a2.676 2.676 0 0 0 0-5.35"})]}),wG=f.forwardRef(eTe),tTe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M17 19.5c0-1.657-2.239-3-5-3s-5 1.343-5 3m14-3c0-1.23-1.234-2.287-3-2.75M3 16.5c0-1.23 1.234-2.287 3-2.75m12-4.014a3 3 0 1 0-4-4.472M6 9.736a3 3 0 0 1 4-4.472m2 8.236a3 3 0 1 1 0-6a3 3 0 0 1 0 6"})]}),nTe=f.forwardRef(tTe),rTe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"})]}),oTe=f.forwardRef(rTe),EG=wG,$G=nTe,MG=oTe;function TG(e){return `https://space.bilibili.com/${oi()}/fans/follow?tagid=${e}`}function Gg(e){return `https://space.bilibili.com/${e}`}const AG=zU("w_webid"),RG=el(async()=>{const e=await AG.get();return e||iTe()});async function iTe(){const e=oi();if(!e)return;const t=Gg(e),r=(await Yt.get(t,{responseType:"text",withCredentials:true})).data,i=new DOMParser().parseFromString(r,"text/html"),s=decodeURIComponent(i.getElementById("__RENDER_DATA__")?.textContent?.trim()||"");if(!s)return;const l=JSON.parse(s)?.access_id;return l&&await AG.set(l),l}async function NG({removeEmpty:e=true}={}){const t=await J1({web_location:"0.0",w_webid:await RG()||""}),o=(await Yt.get("/x/relation/tags",{params:t})).data.data||[];return e?o.filter(i=>!!i.count):o}async function hM(e){const n=async l=>(await Yt.get("/x/relation/tag",{params:{mid:oi(),tagid:e,pn:l,ps:20}})).data.data||[];let r=1,o=[],i=[];do i=await n(r),o=o.concat(i),r++;while(i.length===20);return rg(o.map(l=>l.mid))}async function sTe(){return (await Yt.get("/x/polymer/web-dynamic/v1/portal")).data?.data?.up_list||[]}var bi=(e=>(e.Mid="dyn-mid",e.GroupId="dyn-group-id",e.FilterTextFull="dyn-filter-text",e.FilterTextShort="dyn-filter",e.Offset="dyn-offset",e.MinId="dyn-min-id",e.MinTs="dyn-min-ts",e))(bi||{});const Ua=new URLSearchParams(location.search),Wa=Ua.get("dyn-mid")?.trim(),pM=Ua.get("dyn-group-id")?.trim()?Number(Ua.get("dyn-group-id").trim()):void 0,aTe=Ua.get("dyn-offset")||void 0,PG=Wa&&(Ua.get("dyn-filter-text")||Ua.get("dyn-filter"))||void 0,gM=Wa?Ua.get("dyn-min-id"):void 0,gB=gM?Ua.get("dyn-min-ts"):void 0,lN=Ka&&(!!Wa||pM!==void 0);let vM,IG,OG;lN&&(Wa?(vM=Wa,IG=Ua.get("dyn-name")??vM?.toString()??void 0):pM!==void 0&&(OG=pM));var Ys=(e=>(e.All="all",e.UploadOnly="upload-only",e.DynamicOnly="dynamic-only",e))(Ys||{}),bs=(e=>(e.Upload="投稿视频",e.Dynamic="动态视频",e.ChargeOnly="充电专属",e))(bs||{});const lTe={all:"全部","upload-only":"仅投稿视频","dynamic-only":"仅动态视频"};var Tu=(e=>(e.All="all",e._5m="5min",e._2m="2min",e._1m="1min",e._30s="30s",e._10s="10s",e))(Tu||{});const DG={all:{label:"全部时长",duration:0},"5min":{label:"5分钟",duration:300},"2min":{label:"2分钟",duration:120},"1min":{label:"1分钟",duration:60},"30s":{label:"30秒",duration:30},"10s":{label:"10秒",duration:10}},Yp="all",Vf="up:",Fu="group:",cTe=(await( fV("dynamic-feed:hide-charge-only-videos-for-keys"))).set,uTe=(await( _A("dynamic-feed:add-separators"))).map,tn=_G();function _G(){return zn({upMid:vM,upName:IG,upFace:void 0,upList:[],upListUpdatedAt:0,groups:[],groupsUpdatedAt:0,selectedGroupId:OG,get selectedGroup(){if(typeof this.selectedGroupId=="number")return this.groups.find(e=>e.tagid===this.selectedGroupId)},dynamicFeedVideoType:"all",filterText:PG??void 0,get viewingAll(){return this.selectedKey===Yp},get viewingSomeUp(){return !!this.upMid},get viewingSomeGroup(){return typeof this.selectedGroupId=="number"},get selectedKey(){return this.upMid?`${Vf}${this.upMid}`:this.selectedGroupId!==void 0?`${Fu}${this.selectedGroupId}`:Yp},hideChargeOnlyVideosForKeysSet:cTe,get hideChargeOnlyVideos(){return this.hideChargeOnlyVideosForKeysSet.has(this.selectedKey)},addSeparatorsMap:uTe,get addSeparators(){return this.addSeparatorsMap.get("global")??false},filterMinDuration:"all",get filterMinDurationValue(){return DG[this.filterMinDuration].duration},updateUpList:LG,updateGroups:BG})}zn({followGroupInfo:{}});async function LG(e=false){if(!e&&tn.upList.length&&tn.upListUpdatedAt&&tn.upListUpdatedAt-Date.now()<Qr("5min"))return;const n=await sTe();tn.upList=n,tn.upListUpdatedAt=Date.now();}async function BG(e=false){{const{followGroup:n,whenViewAll:r}=at.dynamicFeed;if(!(n.enabled||!!r.hideIds.filter(i=>i.startsWith(Fu)).length))return}!e&&tn.groups.length&&tn.groupsUpdatedAt&&tn.groupsUpdatedAt-Date.now()<Qr("1h")||(tn.groups=await NG({removeEmpty:true}),tn.groupsUpdatedAt=Date.now());}function kG(){if(oi())return Promise.all([LG(),BG()])}(async()=>Ka&&(await gn(5e3),(!tn.upList.length||!tn.groups.length)&&(await rS(),kG())))();Wa&&dV(tn,["upName","filterText","selectedGroup","viewingSomeUp","viewingAll"],({upName:e,filterText:t,selectedGroup:n,viewingSomeUp:r,viewingAll:o})=>{let i=o?"动态":r?`「${e}」的动态`:`「${n?.name}」分组动态`;t&&(i=`🔍【${t}】 - ${i}`),kR(i);});function dTe(e){const{major:t,additional:n}=e.modules.module_dynamic;if(n?.type===Ko.AdditionalType.Goods)return  true;if(t?.type===Ko.MajorType.Opus){const r=t.opus.title||"";if(["B站密令","大红包"].some(o=>r.includes(o)))return  true}return  false}function zG(e){if(dTe(e))return;const t=e.modules.module_dynamic.major;if(!t)return;const n=e.modules.module_author,r=e.modules.module_dynamic.additional,o=t.type,i={authorName:n.name,authorFace:n.face,authorMid:n.mid.toString(),followed:n.following,pubts:n.pub_ts,statItems:[{field:"like",value:e.modules.module_stat.like.count},{field:"dynamic-feed:comment",value:e.modules.module_stat.comment.count},{field:"dynamic-feed:forward",value:e.modules.module_stat.forward.count}],recommendReason:n.pub_action};if(o===Ko.MajorType.Archive&&t.archive){const s=t.archive;return {...i,avid:s.aid,bvid:s.bvid,goto:"av",href:`/video/${s.bvid}/`,title:s.title,cover:s.cover,duration:Kp(s.duration_text)||0,durationStr:s.duration_text,recommendReason:s.badge.text===bs.Upload?s.badge.text:void 0,topMarkIcon:s.badge.text===bs.Upload?void 0:s.badge.icon_url??void 0,topMarkText:s.badge.text===bs.Upload?void 0:s.badge.text,statItems:[{field:"play",value:s.stat.play},{field:"danmaku",value:s.stat.danmaku}],play:mu(s.stat.play),danmaku:mu(s.stat.danmaku)}}if(o===Ko.MajorType.Opus&&t.opus){const{opus:s}=t,l=r?.type===Ko.AdditionalType.Reserve,u=l&&/直播预告/.test(r.reserve.title),d=!!s.pics?.length,m=(()=>{if(u)return "直播预告";if(l)return r.reserve.title?.split(":")[0]||"预约";if(e.type===Ko.ItemType.Word)return "文字动态";if(e.type===Ko.ItemType.Draw)return d?"图片":"文字动态";if(e.type===Ko.ItemType.Article)return "专栏"})();return {...i,goto:"opus",href:s.jump_url,cover:s.pics?.[0]?.url,title:s.title||s.summary?.text||"",topMarkText:m}}if(o===Ko.MajorType.Pgc&&t.pgc){const{pgc:s}=t;return {...i,cover:s.cover,goto:"bangumi",href:s.jump_url,title:s.title,statItems:[{field:"play",value:s.stat.play},{field:"danmaku",value:s.stat.danmaku}],topMarkText:n.label,pubts:n.pub_ts,pubdateDisplay:n.pub_time}}if(o===Ko.MajorType.UgcSeason&&t.ugc_season){const{ugc_season:s}=t;return {...i,bvid:s.bvid,avid:s.aid.toString(),goto:"av",duration:Kp(s.duration_text),durationStr:s.duration_text,cover:s.cover,href:`/video/${s.bvid}/`,title:s.title,statItems:[{field:"play",value:s.stat.play},{field:"danmaku",value:s.stat.danmaku}],play:mu(s.stat.play),danmaku:mu(s.stat.danmaku),recommendReason:n.pub_action,topMarkText:"合集",authorMid:void 0}}}var FG=function(e){return function(t,n,r){return e(t,n,r)*r}},bM=function(e,t){if(e)throw Error("Invalid sort config: "+t)},HG=function(e){var t=e||{},n=t.asc,r=t.desc,o=n?1:-1,i=n||r;bM(!i,"Expected `asc` or `desc` property"),bM(n&&r,"Ambiguous object with `asc` and `desc` config properties");var s=e.comparer&&FG(e.comparer);return {order:o,sortBy:i,comparer:s}},fTe=function(e){return function t(n,r,o,i,s,l,u){var d,m;if(typeof n=="string")d=l[n],m=u[n];else if(typeof n=="function")d=n(l),m=n(u);else {var p=HG(n);return t(p.sortBy,r,o,p.order,p.comparer||e,l,u)}var g=s(d,m,i);return (g===0||d==null&&m==null)&&r.length>o?t(r[o],r,o+1,i,s,l,u):g}};function VG(e,t,n){if(e===void 0||e===true)return function(i,s){return t(i,s,n)};if(typeof e=="string")return bM(e.includes("."),"String syntax not allowed for nested properties."),function(i,s){return t(i[e],s[e],n)};if(typeof e=="function")return function(i,s){return t(e(i),e(s),n)};if(Array.isArray(e)){var r=fTe(t);return function(i,s){return r(e[0],e,1,n,t,i,s)}}var o=HG(e);return VG(o.sortBy,o.comparer||t,o.order)}var LE=function(e,t,n,r){var o;return Array.isArray(t)?(Array.isArray(n)&&n.length<2&&(o=n,n=o[0]),t.sort(VG(n,r,e))):t};function jG(e){var t=FG(e.comparer);return function(n){var r=Array.isArray(n)&&!e.inPlaceSorting?n.slice():n;return {asc:function(o){return LE(1,r,o,t)},desc:function(o){return LE(-1,r,o,t)},by:function(o){return LE(1,r,o,t)}}}}var UG=function(e,t,n){return e==null?n:t==null?-n:typeof e!=typeof t?typeof e<typeof t?-1:1:e<t?-1:e>t?1:0},WG=jG({comparer:UG});jG({comparer:UG,inPlaceSorting:true});function yM(e,t,n){if(t.length!==n.length)throw new Error("props & orders length not match");const r=t.map((o,i)=>{const s=n[i];return s==="asc"?{asc:o}:s==="desc"?{desc:o}:{asc:o,comparer:s}});return WG(e).by(r)}function Yy(e,t){const n=t.map(({order:r,prop:o})=>r==="asc"?{asc:o}:r==="desc"?{desc:o}:{asc:o,comparer:r});return WG(e).by(n)}function cN(e){return e.replace(/([A-Z])/,"999999$1").replace(/([a-z])/,"999998$1")}function uN(e,t){return e.localeCompare(t,"zh-CN")}function vB(e,t){return Yy(e,[{prop:n=>{const r=typeof t=="function"?t(n):n[t];return cN(r)},order:uN}])}function vm(e){throw new Error(`Unexpected object: ${e}`)}function mTe(e){return e=e.replace(new RegExp("^[\\s\\p{RGI_Emoji}]+","v"),""),e=cN(e),e}function GG(e,t){const n={prop:i=>oN(i.attr)?1:0,order:"desc"},r={prop:i=>mTe(i.title),order:uN},o={prop:"media_count",order:"desc"};if(t==="default")return e;if(t==="name")return Yy(e,[n,r]);if(t==="count")return Yy(e,[n,o,r]);vm(t);}function qG(e){return x(bA,{size:"middle",options:[{label:"默认",value:"default"},{label:"名称",value:"name"},{label:"数量",value:"count"}],...e})}class il{qs;constructor(t){this.qs=new pS(t);}get hasMore(){return !!this.qs.bufferQueue.length||this.hasMoreExceptQueue}restore(){this.qs.restore();}async loadMore(t){if(!this.hasMore)return;if(this.qs.bufferQueue.length)return this.qs.sliceFromQueue();const n=await this.fetchMore(t);return n?.length&&this.qs.bufferQueue.push(...n),this.qs.sliceFromQueue()}}class pS{returnQueue=[];bufferQueue=[];get hasCache(){return !!this.returnQueue.length}ps;constructor(t=20){this.ps=t;}sliceCountFromQueue(t){if(this.bufferQueue.length){const n=this.bufferQueue.slice(0,t);return this.bufferQueue=this.bufferQueue.slice(t),this.doReturnItems(n)??[]}else return []}sliceFromQueue(t=1){return this.sliceCountFromQueue(this.ps*t)}doReturnItems(t){return this.returnQueue=[...this.returnQueue,...t??[]],t}restore(){this.bufferQueue=[...this.returnQueue,...this.bufferQueue],this.returnQueue=[];}get fetchedCount(){return this.returnQueue.length+this.bufferQueue.length}}function Ec(){const e=f.useRef(null),t=f.useCallback(()=>e.current?.closest(`.${Z9}`)?.parentElement||document.body,[]);return {ref:e,getPopupContainer:t}}class hTe{constructor(t){this.anonymous=t;}hasMore=true;page=1;tabbarView=x(pTe,{});async loadMore(){if(!this.hasMore)return;const n=(await Yt.get("/x/web-interface/popular",{params:{ps:20,pn:this.page},withCredentials:!this.anonymous})).data;return Vn(n)?(this.page++,this.hasMore=!n.data.no_more,(n.data.list||[]).map(o=>({...o,api:Ze.PopularGeneral,uniqId:`${Ze.PopularGeneral}:${o.bvid}`}))):(Jt(n.message||ig),void 0)}}function pTe(){const e=go();return x(It,{configPath:"popularGeneralUseAnonymous",tooltip:x(_e,{children:"✅ 匿名访问: 使用游客身份访问"}),label:"匿名访问",extraAction:async()=>{await gn(100),e();}})}function gTe(){const t=localStorage.getItem("bpx_player_profile");if(t)try{return JSON.parse(t)}catch{return}}function KG(){return !!gTe()?.media.autoplay}const Xp={top:e=>X("absolute top-8px",e==="left"?"left-8px":"right-8px",e==="left"?exe:txe),topContainer:e=>X(Xp.top(e),"flex items-center gap-x-5px",e==="left"?"flex-row":"flex-row-reverse"),tooltip:e=>X("pointer-events-none absolute bottom--6px translate-y-100% select-none whitespace-nowrap rounded-4px bg-gate-primary px-8px py-4px text-12px text-white line-height-18px",e==="left"?"left-0":"right-0")},Zs=f.memo(function({inlinePosition:t,icon:n,tooltip:r,visible:o=true,active:i=false,className:s,useMotion:l=false,motionProps:u,ref:d,...m}){const{triggerRef:p,tooltipEl:g}=gS({inlinePosition:t,tooltip:r}),b=f.useMemo(()=>_U("action-button","relative size-28px cursor-pointer rounded-6px bg-[rgb(33_33_33_/_0.7)] color-white","b-1px b-solid",i?"b-gate-primary":"b-#444","hover:b-gate-primary",l||o?"inline-flex":"hidden","items-center justify-center","[&_svg]:pointer-events-none [&_svg]:select-none",s),[i,s,o,l]),y=dS(p,d),S={...m,className:b,ref:y,children:H(_e,{children:[n,g]})};return l?x(rSe,{children:o&&x(bR.div,{...S,...u},"action-button")}):x("div",{...S})});function gS({inlinePosition:e,tooltip:t,tooltipClassName:n}){const r=f.useRef(null),o=iS(r),i=or(Xp.tooltip(e),n,o?"block":"hidden");return {triggerRef:r,tooltipEl:t?x("span",{className:i,children:t}):void 0}}function vTe(e,t,n=true){let r=0,o=t;return (...i)=>{if(r++,r===o)return r=0,n&&o++,e(...i)}}function YG(e,t,n=true){const r=tt(e);return f.useMemo(()=>vTe(r,t,n),[r,t,n])}const bTe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 15 15",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M8.5 6q.049 0 .098.009q.076.017.142.054q.061.034.114.083q.05.052.082.113A.5.5 0 0 1 9 6.5v3a.5.5 0 0 1-1 0V7.707l-5.146 5.147a.5.5 0 1 1-.708-.707L7.293 7H5.5a.5.5 0 0 1 0-1zM12 2a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H8.5a.5.5 0 0 1 0-1H12V3H3v3.5a.5.5 0 0 1-1 0V3a1 1 0 0 1 1-1z"})]}),XG=f.forwardRef(bTe),yTe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 15 15",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M10.969 3.219a.574.574 0 1 1 .812.812L8.313 7.5l3.468 3.469l.074.09a.575.575 0 0 1-.796.796l-.09-.074L7.5 8.312l-3.469 3.47a.574.574 0 1 1-.812-.813L6.688 7.5l-3.47-3.469l-.073-.09a.575.575 0 0 1 .796-.797l.09.075L7.5 6.687z"})]}),STe=f.forwardRef(yTe),CTe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 15 15",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M7.499 0c1.072 0 1.966.338 2.589 1.002c.619.66.912 1.58.912 2.634V6h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h7V3.636c0-.876-.242-1.524-.642-1.95C8.963 1.267 8.357 1 7.5 1c-.888 0-1.502.269-1.895.715l-.077.092C5.197 2.233 5 2.843 5 3.633H4c0-.95.237-1.795.737-2.44l.121-.145C5.482.342 6.4 0 7.5 0M3 13h9V7H3z"})]}),QG=f.forwardRef(CTe),xTe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 15 15",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M7.501.978c1.074 0 1.968.345 2.59 1.014c.616.664.909 1.587.909 2.642V6h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h1V4.636c0-1.055.293-1.979.91-2.643c.622-.67 1.517-1.015 2.591-1.015M3 13h9V7H3zM7.501 1.978c-.855 0-1.461.27-1.857.696C5.243 3.105 5 3.76 5 4.636V6h5V4.634c0-.877-.241-1.531-.642-1.962c-.395-.426-1.001-.694-1.857-.694"})]}),wTe=f.forwardRef(xTe);function ETe(e,t){const n=t.document.head;QU({key:"pip-window",container:n}),Array.from(document.querySelectorAll("style")).filter(i=>[Kr,"ant","rc"].some(s=>i.textContent.includes(s))).forEach(i=>{const s=t.document.createElement("style");s.textContent=i.textContent,t.document.head.appendChild(s);});const r=document.createElement("div");r.classList.add(Ns),r.style.lineHeight="0",t.document.body.appendChild(r),aa.createRoot(r).render(x(rl,{cssInsertContainer:n,cssInsertContainerEmotionKey:"pip-window",children:x(Bo,{getPopupContainer:()=>t.document.body,getTargetContainer:()=>t,children:H(yg,{message:{getContainer:()=>t.document.body},children:[x(aS,{baseGlobalStyle:true}),x(MTe,{newHref:e,pipWindow:t})]})})}));}var $Te={name:"pb1257",styles:"*{box-sizing:border-box;}:root,body,iframe{margin:0;padding:0;overscroll-behavior:none;}"};function MTe({newHref:e,pipWindow:t}){const n=iS(t.document.documentElement),[r,o]=f.useState(()=>at.pipWindow.defaultLocked);return H(_e,{children:[x(BR,{styles:[$Te,"",""]}),x("iframe",{src:e,className:"block h-100vh w-full border-none"}),x(TTe,{locked:r,setLocked:o,pipWindow:t}),H("div",{className:X("fixed right-10px top-10px z-9999 flex-row-reverse items-center gap-x-6px",n?"flex":"hidden"),children:[x(ATe,{pipWindow:t,newHref:e}),x(RTe,{locked:r,setLocked:o})]})]})}const ZG="size-30px [&_svg]:size-16px";function TTe({locked:e,setLocked:t,pipWindow:n}){const{message:r}=yg.useApp(),o=YG(()=>{r.info("请先点击右上角「🔓解锁按钮」解锁");},3);return f.useMemo(()=>yi([{key:"unlock",label:"解锁",icon:x(QG,{}),onClick(){t(false);}}]),[]),e&&x("div",{className:X("locked-overlay","fixed inset-0 z-9999 select-none bg-transparent"),onClick:o})}function ATe({newHref:e,pipWindow:t}){return x(Zs,{inlinePosition:"right",icon:x(XG,{}),tooltip:"新窗口打开",onClick:()=>{t.close();const r=new URL(e);r.searchParams.delete(uc.PlayerScreenMode),r.searchParams.delete(uc.ForceAutoPlay),vi(r.href);},className:ZG})}function RTe({locked:e,setLocked:t}){const[n,r]=e?["锁定","解锁"]:["解锁","锁定"];return x(Zs,{inlinePosition:"right",icon:e?x(wTe,{}):x(QG,{}),tooltip:`已${n}, 点击${r}`,className:ZG,onClick:()=>t(o=>!o)})}const JG=po.extend("VideoCard:useOpenRelated");function NTe({href:e,item:t,cardData:n,actionButtonVisible:r,hasOpenInPopupActionButton:o,getLargePreviewCurrentTime:i,hideLargePreview:s,shouldUseLargePreviewCurrentTime:l}){const{videoLinkOpenMode:u}=Ft();function d(E){const M=new URL(e,location.href);return E?.(M),M.href}const m=tt(E=>{E.stopPropagation(),E.preventDefault(),p(void 0,E);}),p=tt((E,M)=>{E||=at.videoLinkOpenMode;const T=d(P=>{if((E===cr.NormalWebFullscreen||E===cr.Popup&&at.pipWindow.autoWebFullscreen)&&(P.searchParams.set(uc.PlayerScreenMode,Vl.WebFullscreen),E===cr.Popup&&!KG()&&P.searchParams.set(uc.ForceAutoPlay,TR.ON)),l()){const O=i();O&&(s(),P.searchParams.set("t",O.toString()));}}),A=()=>{const O=!(E===cr.Background||!!(M?.metaKey||M?.ctrlKey));vi(T,O);},I=()=>{location.href=T;};({[cr.Normal]:A,[cr.Background]:A,[cr.CurrentPage]:I,[cr.NormalWebFullscreen]:A,[cr.Popup]:()=>g(T),[cr.Iina]:b})[E]?.();});function g(E){const{width:M,height:T}=dN({item:t});return eq(E,n.bvid,M,T)}function b(){let E=e;t.api===Ze.Watchlater&&(E=`/video/${t.bvid}`);const M=new URL(E,location.href).href,T=`iina://open?url=${encodeURIComponent(M)}`;window.open(T,"_self");}const y=f.useMemo(()=>Object.values(cr).filter(E=>gi[E].enabled===void 0).map(E=>({key:j_[E],label:gi[E].label,icon:gi[E].icon,onClick:()=>p(E)})),[]),S=f.useMemo(()=>Object.values(cr).filter(E=>typeof gi[E].enabled=="boolean"&&gi[E].enabled).length?Object.values(cr).filter(E=>typeof gi[E].enabled=="boolean"&&gi[E].enabled).map(E=>({key:j_[E],label:gi[E].label,icon:gi[E].icon,onClick:()=>p(E)})):[],[]),C=f.useMemo(()=>{if(u!==cr.Popup&&t.api!==Ze.Live&&fN&&o)return x(Zs,{visible:r,inlinePosition:"right",icon:gi.Popup.icon,tooltip:gi.Popup.label,onClick:E=>{E.preventDefault(),E.stopPropagation(),p(cr.Popup);}})},[u,r]),w=tt(()=>{p(cr.Popup);});return {onOpenWithMode:p,handleVideoLinkClick:m,consistentOpenMenus:y,conditionalOpenMenus:S,openInPopupActionButtonEl:C,onOpenInPopup:w}}function dN({item:e,dimensionFromApi:t}){let n,r,o;if(t)[n,r]=[t.width,t.height],t.rotate===1&&([n,r]=[r,n]),o=n/r;else if(e?.api===Ze.AppRecommend&&e.uri?.startsWith("bilibili://")){const i=new URL(e.uri).searchParams,s=Number(i.get("player_width")||0),l=Number(i.get("player_height")||0),u=Number(i.get("player_rotate")||0);s&&l&&!Number.isNaN(s)&&!Number.isNaN(l)&&([n,r]=[s,l],u===1&&([n,r]=[r,n]),o=n/r);}else if(e?.api===Ze.Rank&&sN(e)){const i=e.dimension.width,s=e.dimension.height,l=e.dimension.rotate;i&&s&&!Number.isNaN(i)&&!Number.isNaN(s)&&([n,r]=[i,s],l===1&&([n,r]=[r,n]),o=n/r);}return {width:n,height:r,aspectRatio:o}}const fN=!!window.documentPictureInPicture?.requestWindow;async function eq(e,t,n,r){let o=1e3,i=Math.ceil(o/16*9);const s=200;if((!n||!r)&&t){const u=await Promise.race([pG(t),gn(s)]);if(u?.[0]?.dimension){const{dimension:d}=u[0];n=d.width,r=d.height;}}if(n&&r&&n<r){const u=Math.min(Math.floor(window.screen.availHeight*.8),1e3),d=Math.floor(u/r*n);o=Math.min(720,d),i=Math.floor(o/n*r);}JG("openInPipOrPopup newHref=%s size=%sx%s",e,o,i);let l;if(fN)try{l=await window.documentPictureInPicture?.requestWindow({width:o,height:i,disallowReturnToOpener:!0});}catch{}l?ETe(e,l):PTe(e,o,i);}function PTe(e,t,n){const r=(window.innerWidth-t)/2,o=(window.innerHeight-n)/2-50,i=["popup=true",`width=${t}`,`height=${n}`,`left=${r}`,`top=${o}`].join(",");JG("openInPopup: features -> %s",i),window.open(e,"_blank",i);}function tq(){const{videoLinkOpenMode:e}=Ft();return e!==cr.CurrentPage}function vS(){return tq()?"_blank":"_self"}function z0(){return at.videoLinkOpenMode!==cr.CurrentPage?"_blank":"_self"}function Qp(e){const t=vS();return x("a",{...e,target:t,children:e.children})}let Vb=[],BE="";function bB(){const e=Yn();return [e.format("YYYYMMDD"),e.hour()<18?"lt-18":"gte-18"].join("_")}async function ITe(){return Vb.length&&BE&&BE===bB()||(Vb=(await Yt.get("/x/web-interface/popular/series/list")).data.data.list,BE=bB()),Vb}class Xy{constructor(t){this.useShuffle=t;}static PAGE_SIZE=20;episodesLoaded=false;episodes=[];qs=new pS(Xy.PAGE_SIZE);get hasMore(){return this.episodesLoaded?!!this.qs.bufferQueue.length||!!this.episodes.length:true}async loadMore(){if(this.episodesLoaded||(this.episodes=await ITe(),this.episodesLoaded=true,this.useShuffle&&(this.episodes=wi(this.episodes))),!this.hasMore)return;if(!this.useShuffle){if(this.qs.bufferQueue.length)return this.qs.sliceFromQueue();const n=this.episodes[0],r=n.number,o=await yB(r);return this.qs.bufferQueue.push({api:Ze.Separator,uniqId:`${Ze.PopularWeekly}:separator:${r}`,content:x(Qp,{href:`https://www.bilibili.com/v/popular/weekly?num=${r}`,children:n.name})},...o),this.episodes=this.episodes.slice(1),this.qs.sliceFromQueue()}const t=5;for(;this.qs.bufferQueue.length<Xy.PAGE_SIZE*t&&this.episodes.length;){this.episodes=wi(this.episodes);const n=this.episodes.slice(0,t);this.episodes=this.episodes.slice(t);const r=await ac(n.map(o=>o.number),o=>yB(o),2);this.qs.bufferQueue=wi([...this.qs.bufferQueue,...r.flat()]);}return this.qs.sliceFromQueue()}get tabbarView(){return x(OTe,{})}}const kE={};async function yB(e){if(!kE[e]?.length){const o=((await Yt.get("/x/web-interface/popular/series/one",{params:{number:e}})).data.data.list||[]).map(i=>({...i,api:Ze.PopularWeekly,uniqId:`${Ze.PopularWeekly}:${i.bvid}`}));kE[e]=o;}return kE[e]}function OTe(){const e=go();return x(_e,{children:x(Bu,{configPath:"popularWeeklyUseShuffle",checkedChildren:"随机顺序: 开",unCheckedChildren:"随机顺序: 关",extraAction:async()=>{await gn(100),e();}})})}const nq="rank-store-slug",DTe=await( GM.getValue(nq))||iN.slug,Mi=zn({slug:DTe,tabs:[],get currentTab(){return this.tabs.find(e=>e.slug===this.slug)||iN}}),_Te=el(async()=>{if(Mi.tabs.length)return;const e=await EMe();Mi.tabs=e;});PA(Mi,"slug",()=>{GM.setValue(nq,Mi.slug);});class rq{constructor(t){this.slug=t;}loaded=false;qs=new pS(20);tabbarView=x(LTe,{});sidebarView=x(BTe,{});get hasMore(){return this.loaded?!!this.qs.bufferQueue.length:true}get rankTab(){return Gr(Mi).tabs.find(t=>t.slug===this.slug)||iN}async loadMore(t){if(this.hasMore){if(!this.loaded){await _Te();const{url:n,apiType:r}=SG(this.rankTab),i=(await Yt.get(n,{signal:t})).data;if(this.loaded=true,!Vn(i)){Jt(i.message||ig);return}const l=(i?.data?.list||i?.result?.list||[]).map((u,d)=>{const m=d+1;return {...u,api:Ze.Rank,uniqId:`${Ze.Rank}:${this.rankTab.slug}:rankingNo-${m}`,rankingNo:m,slug:this.rankTab.slug,rankTab:this.rankTab,from:r}});this.qs.bufferQueue=l;}return this.qs.sliceFromQueue()}}}function oq(){const{tabs:e}=gt(Mi),{normalList:t,pgcList:n}=f.useMemo(()=>{const r=e.map(s=>({...s,apiType:SG(s).apiType})),o=r.filter(s=>[B0.PgcSeason,B0.PgcWeb].includes(s.apiType));return {normalList:r.filter(s=>s.apiType===B0.Normal),pgcList:o}},[e]);return {normalList:t,pgcList:n}}function LTe(){const{enableSidebar:e}=Ft(),{ref:t,getPopupContainer:n}=Ec(),r=go(),{slug:o,currentTab:i}=gt(Mi),{normalList:s,pgcList:l}=oq(),u=(y,S,C)=>y.length?H("div",{className:"mt-15px max-w-350px first:mt-0",children:[H("p",{className:"mb-5px flex-v-center rounded-5px bg-gate-primary py-5px pl-6px text-white",children:[S,!!C&&x(vr,{children:C})]}),x("div",{className:"grid grid-cols-4 gap-x-10px gap-y-8px px-2px",children:y.map(w=>{const E=w.slug===o;return x(ht,{className:X({"b-gate-primary":E,"color-gate-primary":E}),onClick:M=>{g(false),Mi.slug=w.slug,r();},children:x("span",{children:w.name})},w.slug)})})]}):null,d=tt(y=>{const S=[...s,...l];if(!S.length)return;const C=S.findIndex(M=>M.slug===o);if(C===-1)return;const w=y.shiftKey?-1:1,E=(C+w+S.length)%S.length;Mi.slug=S[E].slug,r();}),m=H(_e,{children:[u(s,"视频"),u(l,"PGC内容","不能提供预览")]}),[p,g]=f.useState(false),b=x(Ps,{arrow:false,open:p,onOpenChange:g,placement:"bottomLeft",getPopupContainer:n,content:m,styles:{container:{border:`1px solid ${Qu()}`}},children:x(ht,{css:[p&&Xu,"",""],onClick:d,className:"outline-none!",children:i.name})});if(!e)return x("div",{ref:t,children:b})}function BTe(){const{slug:e}=gt(Mi),{normalList:t,pgcList:n}=oq(),r=go(),o=tt(s=>{Mi.slug=s,r();}),i=f.useMemo(()=>{const s={type:"group",label:"视频",children:t.map(u=>({key:u.slug,label:u.name,onClick:()=>o(u.slug)}))},l={type:"group",label:"PGC内容",children:n.map(u=>({key:u.slug,label:u.name,onClick:()=>o(u.slug)}))};return [s,l]},[t,n]);return x(vc,{items:i,selectedKeys:[e],mode:"inline",inlineIndent:10})}const kTe={[pr.PopularGeneral]:()=>new hTe(at.popularGeneralUseAnonymous),[pr.PopularWeekly]:()=>new Xy(at.popularWeeklyUseShuffle),[pr.Rank]:()=>new rq(Mi.slug)};function iq(e){const{subtab:t}=Xo;return e??=at.popularWeeklyUseShuffle,t===pr.PopularWeekly&&e}const zE=e=>x("img",{src:e,alt:"",className:"size-18px"}),FE={[pr.PopularGeneral]:{icon:zE("https://s1.hdslb.com/bfs/static/jinkela/popular/assets/icon_popular.png"),label:"综合热门",desc:"各个领域中新奇好玩的优质内容都在这里~",swr:true,anonymousUsage:true},[pr.PopularWeekly]:{icon:zE("https://s1.hdslb.com/bfs/static/jinkela/popular/assets/icon_weekly.png"),label:"每周必看",desc:"每周五晚 18:00 更新",anonymousUsage:true},[pr.Rank]:{icon:zE("https://s1.hdslb.com/bfs/static/jinkela/popular/assets/icon_rank.png"),label:"排行榜",desc:"排行榜根据稿件内容质量,近期的数据综合展示,动态更新",anonymousUsage:true,swr:true}};class zTe extends il{subtab;service;constructor(){super(20),this.subtab=Xo.subtab,this.service=kTe[Xo.subtab]();}get tabbarView(){return x(FTe,{children:this.service.tabbarView})}get sidebarView(){return this.service.sidebarView}get hasMoreExceptQueue(){return this.service.hasMore}fetchMore(t){return this.service.loadMore(t)}}const Xo=await( DA({subtab:pr.PopularGeneral},"hot-store"));Object.values(pr).includes(Xo.subtab)||(Xo.subtab=pr.PopularGeneral);function FTe({children:e}){const{subtab:t}=gt(Xo),{icon:n,label:r}=FE[t],o=go(),{ref:i,getPopupContainer:s}=Ec(),{__internalHotSubUseDropdown:l}=Ft(),u=f.useMemo(()=>[pr.PopularGeneral,pr.PopularWeekly,pr.Rank].map((p,g)=>{const b=FE[p],y=p===t;return [g>0&&{type:"divider"},{key:p,label:x("span",{className:X({"color-gate-primary":y}),children:b.label}),icon:b.icon,onClick(){p!==Xo.subtab&&(Xo.subtab=p,o());}}].filter(Boolean)}).flat(),[t]),d=x(bc,{menu:{items:u},getPopupContainer:s,rootClassName:'![&_[role="separator"]]:mx-0 ![&_[role="separator"]]:my-2px',children:H(ht,{ref:i,className:"w-114px flex items-center justify-start gap-0 pl-16px",children:[n,x("span",{className:"ml-8px",children:r})]})}),m=f.useMemo(()=>x(Tr.Compact,{children:[pr.PopularGeneral,pr.PopularWeekly,pr.Rank].map((p,g)=>{const{icon:b,label:y,desc:S}=FE[p],C=p===t;return x(sn,{title:H(_e,{children:[y,": ",S]}),children:x(ht,{className:"[&_.ant-btn-icon]:line-height-0",icon:b,variant:C?"solid":"outlined",color:C?"primary":"default",onClick:()=>{p!==Xo.subtab&&(Xo.subtab=p,o());},children:y})},p)})}),[t]);return H(_e,{children:[l?d:m,e]})}const sq=x(sc,{className:"[&.ant-divider-horizontal.ant-divider-with-text]:my-5px [&.ant-divider-horizontal.ant-divider-with-text]:text-14px",children:"底线"});function mN(e){const{enableSidebar:t}=Ft(),{usingTwoColumnMode:n}=sG(),r=gt(Xo).subtab,{insideModal:o}=ns();return f.useMemo(()=>!t||o&&n?false:e===nt.DynamicFeed?!Wa:e===nt.Hot?r===pr.Rank:e===nt.Fav,[e,t,r,o,n])}function aq(e,t){const n=f.useRef(null),r=tt(s=>{if(s||=t,!s)return;const l=n.current?.menu?.findItem({key:s});if(l)return l.scrollIntoViewIfNeeded?l.scrollIntoViewIfNeeded():l.scrollIntoView(),true}),o=f.useRef(false),i=tt(()=>{if(o.current)return;r()&&(o.current=true);});return ho(()=>i()),ja(()=>i(),[e]),{menuRef:n,revealSelected:r}}const Hn=zn({multiSelecting:false,selectedIdSet:Or(),shiftMultiSelectAnchorUniqId:void 0});function HTe(){const{multiSelecting:e}=gt(Hn);return e}function VTe(e){const{multiSelecting:t,selectedIdSet:n}=gt(Hn);return t&&!!e&&n.has(e)}const Qy=[];function Ga(){return Qy.at(-1)?.items??[]}function jTe(e){const t=Qy.at(-1);t&&(t.items=e);}function UTe(){ho(()=>(Qy.push({items:[]}),()=>{Qy.pop();}));}function bS(){const{multiSelecting:e,selectedIdSet:t}=Hn;return e?Ga().filter(n=>t.has(n.uniqId)):[]}function WTe(){return bS().map(Ju)}function hN(){const{multiSelecting:e}=Hn;let t=e?bS():Ga();return e&&!t.length&&(t=Ga()),t.map(Ju).toReversed()}function pN(){const t=hN().map(n=>n.bvid).filter(Boolean).join(" ");$u(t,1);}function gN(e){let{bvid:t,authorName:n,pubts:r,title:o}=e;const i=Yn.unix(r??0).format("YYYY-MM-DD");return o=o.replaceAll(/\n+/g," "),`${t} ;; [${n}] ${i} ${o}`}function vN(){const t=hN().filter(n=>n.bvid).map(gN).join(`
`);$u(t,1);}function GTe(){const t=WTe().map(n=>{let r=n.href;if(r)return r.startsWith("/")&&(r=new URL(r,location.href).href),r}).filter(Boolean).join(`
`);$u(t);}function qTe(e,t){const{multiSelecting:n,selectedIdSet:r}=Hn;if(!n||!e||!t||e===t)return;const o=Ga(),i=o.findIndex(g=>g.uniqId===e),s=o.findIndex(g=>g.uniqId===t),l=g=>g>=0&&g<=o.length-1;if(!l(i)||!l(s))return;const u=[i,s],[d,m]=yM(u,[g=>g],["asc"]),p=r.has(e);for(let g=d;g<=m;g++){const b=Ga()[g].uniqId;p?r.add(b):r.delete(b);}}const KTe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 16 16",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M2 10h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1m9-9h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1m0 9a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1zm0-10a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM2 9a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2zm7 2a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2zM0 2a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm5.354.854a.5.5 0 1 0-.708-.708L3 3.793l-.646-.647a.5.5 0 1 0-.708.708l1 1a.5.5 0 0 0 .708 0z"})]}),YTe=f.forwardRef(KTe),XTe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 16 16",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M9.854 5.854a.5.5 0 0 0-.708-.708L6.5 7.793L5.354 6.646a.5.5 0 1 0-.708.708l1.5 1.5a.5.5 0 0 0 .708 0zM2 4.5A2.5 2.5 0 0 1 4.5 2h5A2.5 2.5 0 0 1 12 4.5v5A2.5 2.5 0 0 1 9.5 12h-5A2.5 2.5 0 0 1 2 9.5zM4.5 3A1.5 1.5 0 0 0 3 4.5v5A1.5 1.5 0 0 0 4.5 11h5A1.5 1.5 0 0 0 11 9.5v-5A1.5 1.5 0 0 0 9.5 3zM7 14a2.5 2.5 0 0 1-2-1h4.5A3.5 3.5 0 0 0 13 9.5V4c.607.456 1 1.182 1 2v3.5A4.5 4.5 0 0 1 9.5 14z"})]}),QTe=f.forwardRef(XTe),ZTe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M6.99 11L3 15l3.99 4v-3H14v-2H6.99zM21 9l-3.99-4v3H10v2h7.01v3z"})]}),JTe=f.forwardRef(ZTe),eAe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 512 512",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M320 176v-40a40 40 0 0 0-40-40H88a40 40 0 0 0-40 40v240a40 40 0 0 0 40 40h192a40 40 0 0 0 40-40v-40m64-160l80 80l-80 80m-193-80h273"})]}),tAe=f.forwardRef(eAe);function lq({iconOnly:e,addCopyActions:t=false}){const{multiSelecting:n}=gt(Hn),r=Qu(),o=tt(()=>{Hn.multiSelecting||(Hn.shiftMultiSelectAnchorUniqId=void 0,at.multiSelect.clearWhenExit&&Hn.selectedIdSet.clear());}),i=H(ht,{type:n?"primary":"default",className:X(e?"icon-only-round-button":"inline-flex-center"),onClick:()=>{Hn.multiSelecting=!Hn.multiSelecting,o();},children:[x(YTe,{className:"size-12px"}),!e&&H(_e,{children:["多选",Hn.multiSelecting?"中":""]})]}),s=l=>x(Ps,{styles:{container:{border:`1px solid ${r}`}},content:H("div",{className:"max-w-288px",children:[H("div",{className:"flex items-start gap-x-6px",children:[x(gU,{className:"mt-1 size-14px"}),H("div",{className:"flex-1 break-all",children:["使用 ",x("kbd",{className:X(zf,"mx-1"),children:"Shift"})," 键扩选: 切换选中状态后, 按住"," ",x("kbd",{className:X(zf,"mx-1"),children:"Shift"}),"键再选择区间终点, 整个区间会与起点选中状态同步."]})]}),x(sc,{variant:"solid",className:"my-7px"}),H("div",{className:"flex flex-wrap items-center gap-x-15px gap-y-2px",children:[H(ht,{className:"inline-flex items-center",onClick:()=>Hn.selectedIdSet.clear(),children:[x(cm,{className:"size-18px"}),"清空"]}),H(ht,{className:"inline-flex items-center",onClick:()=>{const u=Ga().map(d=>d.uniqId);Hn.selectedIdSet=Or(u);},children:[x(QTe,{className:"size-18px"}),"全选"]}),H(ht,{className:"inline-flex items-center",onClick:()=>{const u=Ga().filter(d=>!Hn.selectedIdSet.has(d.uniqId)).map(d=>d.uniqId);Hn.selectedIdSet=Or(u);},children:[x(JTe,{className:"size-18px"}),"反选"]}),x("div",{className:"flex-basis-100%"}),H(ht,{className:"inline-flex items-center",onClick:()=>{Hn.multiSelecting=false,o();},children:[x(tAe,{className:"size-18px"}),"退出"]}),x(It,{configPath:"multiSelect.clearWhenExit",label:"退出时清空",tooltip:"退出多选时, 清空所有已选择项"})]}),t&&H(_e,{children:[x(sc,{variant:"solid",className:"my-7px"}),x("div",{className:"flex flex-wrap gap-x-10px gap-y-5px",children:x(hq,{showCopyBvidInfo:true})})]})]}),children:l});return n?s(i):e?x(sn,{title:"多选",arrow:false,children:i}):i}const nAe=Object.prototype.toString,rAe=e=>nAe.call(e)==="[object Error]",oAe=new Set(["network error","Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]);function iAe(e){if(!(e&&rAe(e)&&e.name==="TypeError"&&typeof e.message=="string"))return  false;const{message:n,stack:r}=e;return n==="Load failed"?r===void 0||"__sentry_captured__"in e:n.startsWith("error sending request for url")?true:oAe.has(n)}function sAe(e){if(typeof e=="number"){if(e<0)throw new TypeError("Expected `retries` to be a non-negative number.");if(Number.isNaN(e))throw new TypeError("Expected `retries` to be a valid number or Infinity, got NaN.")}else if(e!==void 0)throw new TypeError("Expected `retries` to be a number or Infinity.")}function jb(e,t,{min:n=0,allowInfinity:r=false}={}){if(t!==void 0){if(typeof t!="number"||Number.isNaN(t))throw new TypeError(`Expected \`${e}\` to be a number${r?" or Infinity":""}.`);if(!r&&!Number.isFinite(t))throw new TypeError(`Expected \`${e}\` to be a finite number.`);if(t<n)throw new TypeError(`Expected \`${e}\` to be ≥ ${n}.`)}}class aAe extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t;}}function lAe(e,t){const n=Math.max(1,e+1),r=t.randomize?Math.random()+1:1;let o=Math.round(r*t.minTimeout*t.factor**(n-1));return o=Math.min(o,t.maxTimeout),o}function SB(e,t){return Number.isFinite(t)?t-(performance.now()-e):t}async function cAe({error:e,attemptNumber:t,retriesConsumed:n,startTime:r,options:o}){const i=e instanceof Error?e:new TypeError(`Non-error was thrown: "${e}". You should only throw errors.`);if(i instanceof aAe)throw i.originalError;const s=Number.isFinite(o.retries)?Math.max(0,o.retries-n):o.retries,l=o.maxRetryTime??Number.POSITIVE_INFINITY,u=Object.freeze({error:i,attemptNumber:t,retriesLeft:s,retriesConsumed:n});if(await o.onFailedAttempt(u),SB(r,l)<=0)throw i;const d=await o.shouldConsumeRetry(u),m=SB(r,l);if(m<=0||s<=0)throw i;if(i instanceof TypeError&&!iAe(i)){if(d)throw i;return o.signal?.throwIfAborted(),false}if(!await o.shouldRetry(u))throw i;if(!d)return o.signal?.throwIfAborted(),false;const p=lAe(n,o),g=Math.min(p,m);return o.signal?.throwIfAborted(),g>0&&await new Promise((b,y)=>{const S=()=>{clearTimeout(C),o.signal?.removeEventListener("abort",S),y(o.signal.reason);},C=setTimeout(()=>{o.signal?.removeEventListener("abort",S),b();},g);o.unref&&C.unref?.(),o.signal?.addEventListener("abort",S,{once:true});}),o.signal?.throwIfAborted(),true}async function cq(e,t={}){if(t={...t},sAe(t.retries),Object.hasOwn(t,"forever"))throw new Error("The `forever` option is no longer supported. For many use-cases, you can set `retries: Infinity` instead.");t.retries??=10,t.factor??=2,t.minTimeout??=1e3,t.maxTimeout??=Number.POSITIVE_INFINITY,t.maxRetryTime??=Number.POSITIVE_INFINITY,t.randomize??=false,t.onFailedAttempt??=()=>{},t.shouldRetry??=()=>true,t.shouldConsumeRetry??=()=>true,jb("factor",t.factor,{min:0,allowInfinity:false}),jb("minTimeout",t.minTimeout,{min:0,allowInfinity:false}),jb("maxTimeout",t.maxTimeout,{min:0,allowInfinity:true}),jb("maxRetryTime",t.maxRetryTime,{min:0,allowInfinity:true}),t.factor>0||(t.factor=1),t.signal?.throwIfAborted();let n=0,r=0;const o=performance.now();for(;!Number.isFinite(t.retries)||r<=t.retries;){n++;try{t.signal?.throwIfAborted();const i=await e(n);return t.signal?.throwIfAborted(),i}catch(i){await cAe({error:i,attemptNumber:n,retriesConsumed:r,startTime:o,options:t})&&r++;}}throw new Error("Retry attempts exhausted without throwing an error.")}var _a=(e=>(e.Latest="pubdate",e.View="click",e.Fav="stow",e))(_a||{});const uAe={pubdate:{icon:x(OCe,{}),label:"最新发布"},click:{icon:x(Ng,{}),label:"最多播放"},stow:{icon:x(Bf,{}),label:"最多收藏"}},dAe=40;async function fAe({mid:e,order:t="pubdate",keyword:n="",pagenum:r=1}){const i=(await Yt.get("/x/space/wbi/arc/search",{params:{mid:e,order:t,keyword:n,ps:dAe,pn:r}})).data;if(!Vn(i))throw new Error(`request json error: ${i.message}`);const s=i.data.list.vlist||[],l=i.data.page.count;let u,d;{const{count:m,pn:p,ps:g}=i.data.page;u=p*g<m,d=m-(p-1)*g;}return {items:s,hasMore:u,count:l,endVol:d}}async function mAe(...e){return await cq(()=>fAe(...e),{retries:5,factor:1.5,onFailedAttempt:t=>console.error(t)})}var Js=(e=>(e.Mid="space-mid",e.GroupId="space-group-id",e.SearchText="space-search-text",e.FilterText="space-filter-text",e.InitialPage="space-initial-page",e))(Js||{}),yS=(e=>(e.All="all",e._5m="5min",e._2m="2min",e._1m="1min",e._30s="30s",e._10s="10s",e))(yS||{});const uq={all:{label:"全部时长",duration:0},"5min":{label:"5分钟",duration:300},"2min":{label:"2分钟",duration:120},"1min":{label:"1分钟",duration:60},"30s":{label:"30秒",duration:30},"10s":{label:"10秒",duration:10}},qg=new URLSearchParams(location.search),hAe=qg.get("space-mid")||void 0,CB=qg.get("space-group-id")||void 0,pAe=qg.get("space-search-text")||void 0,gAe=qg.get("space-filter-text")||void 0,xB=qg.get("space-initial-page")||void 0,dq=(hAe||"").split(/[,_-]/).map(e=>e.trim()).filter(Boolean).filter(e=>/^\d+$/.test(e)),fq=CB?Number(CB):void 0,SM=!!dq.length||fq!==void 0,HE="up:",vAe="group:",wB={hideChargeOnlyVideos:false,filterMinDuration:"all"},bAe=(await( _A("space-upload:filters"))).map,xo=zn({mids:dq,groupId:fq,order:_a.Latest,searchText:pAe,filterText:gAe,filterStateMap:bAe,get isMultipleTraget(){return this.mids.length>1||this.groupId!==void 0},get allowedOrders(){return [_a.Latest,_a.View,!this.isMultipleTraget&&_a.Fav].filter(Boolean)},get usingOrder(){return this.allowedOrders.includes(this.order)?this.order:this.allowedOrders[0]},get currentFilterKey(){if(this.groupId!==void 0)return `${vAe}${this.groupId}`;if(this.mids.length===1)return `${HE}${this.mids[0]}`;if(this.mids.length>1){const e=[...this.mids].sort((t,n)=>Number(t)-Number(n));return `${HE}${e.join(",")}`}return `${HE}unknown`},get currentFilterState(){return this.filterStateMap.get(this.currentFilterKey)??wB},get hideChargeOnlyVideos(){return this.currentFilterState.hideChargeOnlyVideos},get filterMinDuration(){return this.currentFilterState.filterMinDuration},get filterMinDurationValue(){const e=this.currentFilterState.filterMinDuration;return uq[e].duration},setHideChargeOnlyVideos(e){this.filterStateMap.set(this.currentFilterKey,{...this.currentFilterState,hideChargeOnlyVideos:e});},setFilterMinDuration(e){this.filterStateMap.set(this.currentFilterKey,{...this.currentFilterState,filterMinDuration:e});},resetCurrentFilterState(){this.filterStateMap.set(this.currentFilterKey,{...wB});}});function SS(){if(lN)return nt.DynamicFeed;if(i1)return nt.Fav;if(SM)return nt.SpaceUpload;if(CM.get("gate-tab"))return CM.get("gate-tab")}var mq=(e=>(e.MainSwitch="gate",e.Tab="gate-tab",e))(mq||{});const CM=new URL(location.href).searchParams;function yAe(){return CM.has("gate")}function SAe(){const e=new URL(location.href);return e.search="",e.searchParams.set("gate","1"),e.href}const CAe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[H("path",{strokeDasharray:20,d:"M12 4h2v6h2.5l-4.5 4.5M12 4h-2v6h-2.5l4.5 4.5",children:[x("animate",{attributeName:"d",dur:"1.5s",keyTimes:"0;0.5;1",repeatCount:"indefinite",values:"M12 4h2v6h2.5l-4.5 4.5M12 4h-2v6h-2.5l4.5 4.5;M12 4h2v3h2.5l-4.5 4.5M12 4h-2v3h-2.5l4.5 4.5;M12 4h2v6h2.5l-4.5 4.5M12 4h-2v6h-2.5l4.5 4.5"}),x("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.5s",values:"20;0"})]}),x("path",{strokeDasharray:14,strokeDashoffset:14,d:"M6 19h12",children:x("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.5s",dur:"0.2s",to:0})})]})]}),xAe=f.forwardRef(CAe);function hq({showCopyBvidInfo:e}){const{__internalEnableCopyBvidInfo:t}=Ft();return H(_e,{children:[H(ht,{onClick:pN,className:"inline-flex-center",children:[x(Eu,{})," 复制 BVID"]}),(e??t)&&H(ht,{onClick:vN,className:"inline-flex-center",children:[x(Eu,{})," 复制 BVID 信息"]})]})}function Kg(){const{__internalAddTabbarCopyBvidButton:e}=Ft();return e?x("div",{className:"flex items-center gap-x-2",children:H(Bo,{theme:{components:{Button:{paddingInline:6}}},children:[x(wAe,{}),x(lq,{iconOnly:false}),x(hq,{})]})}):null}function wAe(){const e=f.useMemo(pq,[]),{recSharedEmitter:t}=ns(),n=ws(()=>t.emit("load-to-end"),{manual:true});return e&&H(ht,{className:"flex items-center gap-x-1",loading:n.loading,onClick:()=>n.run(),children:[!n.loading&&x(xAe,{className:"size-18px"}),"加载全部"]})}function pq(){const e=SS();return !!e&&[nt.DynamicFeed,nt.SpaceUpload].includes(e)}const gq={overscrollBehavior:"contain",maxHeight:"60vh",overflowY:"scroll",scrollbarWidth:"thin",paddingRight:"12px"},EAe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13"})]}),$Ae=f.forwardRef(EAe),MAe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("rect",{width:8,height:5,x:14,y:17,rx:1}),x("path",{d:"M10 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v2.5"}),x("path",{d:"M20 17v-2a2 2 0 1 0-4 0v2"})]})]}),TAe=f.forwardRef(MAe),AAe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})]}),RAe=f.forwardRef(AAe),NAe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 512 512",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"m434.8 137.65l-149.36-68.1c-16.19-7.4-42.69-7.4-58.88 0L77.3 137.65c-17.6 8-17.6 21.09 0 29.09l148 67.5c16.89 7.7 44.69 7.7 61.58 0l148-67.5c17.52-8 17.52-21.1-.08-29.09M160 308.52l-82.7 37.11c-17.6 8-17.6 21.1 0 29.1l148 67.5c16.89 7.69 44.69 7.69 61.58 0l148-67.5c17.6-8 17.6-21.1 0-29.1l-79.94-38.47"}),x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"m160 204.48l-82.8 37.16c-17.6 8-17.6 21.1 0 29.1l148 67.49c16.89 7.7 44.69 7.7 61.58 0l148-67.49c17.7-8 17.7-21.1.1-29.1L352 204.48"})]}),PAe=f.forwardRef(NAe),vq=$Ae,bN=TAe,yN=RAe,CS=PAe,EB=OA({sidebarFavFolderOrder:"default"},"fav-rec-service:view");function bq(e,t){const{folders:n,collections:r,selectedKey:o}=gt(pn),{sidebarFavFolderOrder:i}=gt(EB),s=go();return {menuItems:f.useMemo(()=>{let u;{let m=n,p;e==="sidebarView"&&(p=x(qG,{value:i,onChange:b=>EB.sidebarFavFolderOrder=b,className:"ml-4"}),m=GG(n,i));const g=m.map(b=>{oN(b.attr);const y=hS(b.attr),S=`fav-folder:${b.id}`,C=y?x(bN,{}):x(yN,{}),w=`${b.title} (${b.media_count})`;return {key:S,icon:C,label:w,async onClick(){pn.selectedFavFolderId=b.id,pn.selectedFavCollectionId=void 0,t?.(),await gn(100),s();}}});u=!!m.length&&{type:"group",label:H("div",{className:"flex items-center justify-between line-height-snug",children:["收藏夹",p]}),children:g};}let d;{const m=gQ(r,b=>b.upper.name);let p=Object.entries(m).map(([b,y])=>({upName:b,collections:vB(y,"title")}));p=vB(p,"upName");const g=[];for(const{upName:b,collections:y}of p){const S=y[0]?.upper.mid,C=S?Gg(S):"#";g.push(...yi([{type:"group",label:H("span",{className:"flex items-center gap-x-2px",children:[x(Oo,{className:"mt-2px size-15px flex-none"}),H("a",{target:"_blank",href:C,children:["@",b]})]}),children:y.map(w=>{const E=`fav-collection:${w.id}`,M=H("span",{className:"ml-8px flex items-center gap-x-2px",children:[x(CS,{className:"size-15px flex-none"}),w.title," (",w.media_count,")"]});return {key:E,label:M,title:`${w.title} (${w.media_count})`,async onClick(){pn.selectedFavFolderId=void 0,pn.selectedFavCollectionId=w.id,t?.(),await gn(100),s();}}})}]));}d=!!r.length&&{type:"group",label:"合集",children:g};}return yi([{key:"all",icon:x(vq,{}),label:"全部",async onClick(){pn.selectedFavFolderId=void 0,pn.selectedFavCollectionId=void 0,t?.(),await gn(100),s();}},u,d])},[n,r,e,i,s]),selectedKey:o}}function IAe({extraContent:e}){const{fav:t,enableSidebar:n}=Ft(),{selectedFavFolder:r,selectedFavCollection:o,selectedLabel:i,selectedKey:s}=gt(pn),l=go(),{ref:u,getPopupContainer:d}=Ec();ho(()=>{BN();}),ja(()=>{(async()=>(await gn(100),l()))();},[t.addSeparator]);const[m,p]=f.useState(false),{menuItems:g}=bq("tabbarView",()=>{p(false);}),b="relative top-[-0.5px] size-15px",y=r?hS(r.attr)?x(bN,{className:b}):x(yN,{className:b}):o?x(CS,{className:b}):x(vq,{className:b}),S=i,C=x(bc,{open:m,onOpenChange:p,placement:"bottomLeft",getPopupContainer:d,menu:{items:g,style:{...gq,border:`1px solid ${Qu()}`},selectedKeys:[s]},children:x(ht,{css:[m&&Xu,"",""],children:H("span",{className:"h-full flex items-center gap-x-4px",children:[y,S]})})});return H("div",{ref:u,className:"flex items-center gap-x-10px",children:[!n&&C,e,x(Kg,{})]})}function OAe({allFavFolderServices:e,state:t}){const{fav:n}=Ft(),r=go(),{ref:o,getPopupContainer:i}=Ec(),{totalCountInFavFolders:s}=gt(t),[l,u]=f.useState(false),d=tt((g,b,y)=>{u(true),at.fav.excludedFolderIds=g.map(S=>S.toString());}),m=f.useMemo(()=>e.filter(g=>!n.excludedFolderIds.includes(g.entry.id.toString())).length,[e,n.excludedFolderIds]),p=tt(g=>{g?u(false):l&&r();});return x(Ps,{getTooltipContainer:i,trigger:"click",placement:"bottom",onOpenChange:p,getPopupContainer:g=>g.parentElement||document.body,content:x(_e,{children:x(W1,{dataSource:e,rowKey:g=>g.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:n.excludedFolderIds,onChange:d,render:g=>g.entry.title,oneWay:true,style:{marginBottom:10}})}),children:H(Cs,{ref:o,color:"success",className:"mx-0 cursor-pointer text-size-12px",children:["收藏夹(",m,") 收藏(",s,")"]})})}function DAe(){const{menuItems:e,selectedKey:t}=bq("sidebarView"),{menuRef:n}=aq(e,t);return H(_e,{children:[x(vc,{ref:n,items:e,selectedKeys:[t],mode:"inline",inlineIndent:10}),sq]})}class SN extends Map{#n=0;#t=new Map;#e=new Map;#r;#s;#i;constructor(t={}){if(super(),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof t.maxAge=="number"&&t.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.#r=t.maxSize,this.#s=t.maxAge||Number.POSITIVE_INFINITY,this.#i=t.onEviction;}get __oldCache(){return this.#e}#a(t){if(typeof this.#i=="function")for(const[n,r]of t)this.#i(n,r.value);}#o(t,n){return typeof n.expiry=="number"&&n.expiry<=Date.now()?(typeof this.#i=="function"&&this.#i(t,n.value),this.delete(t)):false}#l(t,n){if(this.#o(t,n)===false)return n.value}#c(t,n){return n.expiry?this.#l(t,n):n.value}#u(t,n){const r=n.get(t);return this.#c(t,r)}#d(t,n){this.#t.set(t,n),this.#n++,this.#n>=this.#r&&(this.#n=0,this.#a(this.#e),this.#e=this.#t,this.#t=new Map);}#f(t,n){this.#e.delete(t),this.#d(t,n);}*#m(){for(const t of this.#e){const[n,r]=t;this.#t.has(n)||this.#o(n,r)===false&&(yield t);}for(const t of this.#t){const[n,r]=t;this.#o(n,r)===false&&(yield t);}}get(t){if(this.#t.has(t)){const n=this.#t.get(t);return this.#c(t,n)}if(this.#e.has(t)){const n=this.#e.get(t);if(this.#o(t,n)===false)return this.#f(t,n),n.value}}set(t,n,{maxAge:r=this.#s}={}){const o=typeof r=="number"&&r!==Number.POSITIVE_INFINITY?Date.now()+r:void 0;return this.#t.has(t)?this.#t.set(t,{value:n,expiry:o}):this.#d(t,{value:n,expiry:o}),this}has(t){return this.#t.has(t)?!this.#o(t,this.#t.get(t)):this.#e.has(t)?!this.#o(t,this.#e.get(t)):false}peek(t){if(this.#t.has(t))return this.#u(t,this.#t);if(this.#e.has(t))return this.#u(t,this.#e)}expiresIn(t){const n=this.#t.get(t)??this.#e.get(t);if(n)return n.expiry?n.expiry-Date.now():Number.POSITIVE_INFINITY}delete(t){const n=this.#t.delete(t);return n&&this.#n--,this.#e.delete(t)||n}clear(){this.#t.clear(),this.#e.clear(),this.#n=0;}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");const n=[...this.#m()],r=n.length-t;r<0?(this.#t=new Map(n),this.#e=new Map,this.#n=n.length):(r>0&&this.#a(n.slice(0,r)),this.#e=new Map(n.slice(r)),this.#t=new Map,this.#n=0),this.#r=t;}evict(t=1){const n=Number(t);if(!n||n<=0)return;const r=[...this.#m()],o=Math.trunc(Math.min(n,Math.max(r.length-1,0)));o<=0||(this.#a(r.slice(0,o)),this.#e=new Map(r.slice(o)),this.#t=new Map,this.#n=0);}*keys(){for(const[t]of this)yield t;}*values(){for(const[,t]of this)yield t;}*[Symbol.iterator](){for(const t of this.#t){const[n,r]=t;this.#o(n,r)===false&&(yield [n,r.value]);}for(const t of this.#e){const[n,r]=t;this.#t.has(n)||this.#o(n,r)===false&&(yield [n,r.value]);}}*entriesDescending(){let t=[...this.#t];for(let n=t.length-1;n>=0;--n){const r=t[n],[o,i]=r;this.#o(o,i)===false&&(yield [o,i.value]);}t=[...this.#e];for(let n=t.length-1;n>=0;--n){const r=t[n],[o,i]=r;this.#t.has(o)||this.#o(o,i)===false&&(yield [o,i.value]);}}*entriesAscending(){for(const[t,n]of this.#m())yield [t,n.value];}get size(){if(!this.#n)return this.#e.size;let t=0;for(const n of this.#e.keys())this.#t.has(n)||t++;return Math.min(this.#n+t,this.#r)}get maxSize(){return this.#r}get maxAge(){return this.#s}entries(){return this.entriesAscending()}forEach(t,n=this){for(const[r,o]of this.entriesAscending())t.call(n,o,r,this);}get[Symbol.toStringTag](){return "QuickLRU"}toString(){return `QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}const _Ae=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2m8-16h2a2 2 0 0 1 2 2v2m-4 12h2a2 2 0 0 0 2-2v-2M9 10h.01M15 10h.01M9.5 15.05a3.5 3.5 0 0 1 5 0"})]}),LAe=f.forwardRef(_Ae);function BAe(e){return e instanceof Error&&e.name==="AxiosError"}function Ah(e){return e&&x("p",{className:"mt-10px",children:e})}function yq(e){if(!(e&&e instanceof Error))return Ah(JSON.stringify(e));const t=!!e.message&&H(_e,{children:["Error Message: ",e.message]}),n=!!e.stack&&H(_e,{children:["Error Stack: ",x("br",{}),e.stack]});let r,o;if(e.cause&&(r=H(_e,{children:["Error Cause: ",yq(e.cause)]})),BAe(e)){const i=wf(e);i.config?.params?.access_key&&(i.config.params.access_key="*".repeat(i.config.params.access_key.length)),o=H(_e,{children:["axios config: ",JSON.stringify(i.config,null,2)]});}return H(_e,{children:[Ah(t),Ah(n),Ah(r),Ah(o)]})}function kAe(e){return e&&e instanceof Sq&&e.message||e&&e instanceof PR?e.message:"出错了, 请刷新重试!"}class Sq extends Error{constructor(t){super(t),this.name="ShowMessageError";}}function zAe({err:e,tab:t}){const n=vS(),r=f.useMemo(()=>kAe(e),[e]),o=f.useMemo(()=>yq(e),[e]);return H("div",{className:"flex flex-col items-center gap-y-0.5em p-20px text-center text-size-20px",children:[x(sn,{title:H("div",{className:"py-10px",children:[x("h3",{children:"错误详情"}),x("div",{className:"max-h-50vh overflow-hidden overflow-y-auto whitespace-pre-wrap break-normal",children:o})]}),children:H("p",{className:"flex cursor-pointer items-center justify-center",children:[x(LAe,{className:"mr-4px"}),r]})}),t===nt.Hot&&Xo.subtab===pr.PopularWeekly&&H("p",{className:"mt-8px flex items-center justify-center",children:["可能需手动输入验证码",x(Oo,{className:"ml-12px"}),x("a",{href:"https://www.bilibili.com/v/popular/weekly",target:n,className:"ml-2px",children:"每周必看"})]}),t===nt.Liked&&e instanceof PR&&x(tN,{className:"mt-0.5em"})]})}function Cq(e){const t=e==="follow"?1:2;return async function(r){return await gG(r,t)}}const FAe=Cq("follow"),HAe=Cq("unfollow"),VAe={follow:FAe,unfollow:HAe};function jAe(e){return [1,2,6].includes(e.attribute)}async function UAe(e){return (await Yt.get("/x/relation",{params:{fid:e}})).data.data}const WAe=NR(UAe,{cacheKey:([e])=>e.toString()});async function GAe(e){const n=(await Yt.get("/x/space/wbi/acc/info",{params:{mid:e,w_webid:await RG()||""}})).data;if(!Vn(n)){ti("space acc info error for %s: %o",e,n);return}return n.data}const CN=Zu({fn:GAe,generateKey:e=>e.toString(),tableName:"space-acc-info",ttl:Qr("10d"),concurrency:2});async function qAe(e){return (await CN(e))?.name}const Yg=Zu({fn:qAe,generateKey:e=>e.toString(),tableName:"user-nickname",ttl:Qr("10d")});async function VE(e,t){await Yg.cache.set(e.toString(),{val:t,ts:Date.now()});}const xq=H(_e,{children:["1. 可以使用多个过滤词, 用空格分隔, 逻辑关系为且 (AND) ",x("br",{}),'2. 可以使用引号包裹过滤词, 如 "word or sentence" ',x("br",{}),'3. 可以使用 -"word or sentence" 排除; 必须使用引号(单引号 或 双引号) ',x("br",{})]});function wq(e){const t=[],n=[];if(!e.trim())return {includes:t,excludes:n};let r=0;const o=e.length;for(;r<o;){for(;r<o&&e[r]===" ";)r++;if(r>=o)break;let i=false,s="";if(e[r]==="-"){const l=e[r+1];(l==='"'||l==="'")&&(i=true,r++);}if(e[r]==='"'||e[r]==="'"){const l=e[r];r++;let u=false;for(;r<o;){const d=e[r];if(u){s+=d,u=false,r++;continue}if(d==="\\"){const m=e[r+1];if(m==='"'||m==="'"){u=true,r++;continue}s+=d,r++;continue}if(d===l){r++;break}s+=d,r++;}}else for(;r<o&&e[r]!==" ";){if(e[r]==="\\"){r++,r<o&&(s+=e[r],r++);continue}s+=e[r],r++;}s&&(i?n.push(s):t.push(s));}return {includes:t,excludes:n}}function KAe(e){return !!(e.elec_arc_type===1||!e.elec_arc_type&&e.is_charging_arc||e.elec_arc_type===2)}function Eq({Component:e,defaultProps:t,containerClassName:n}){const r=zn(t);function o(){const u=gt(r);return x(e,{...u})}const i=jf(()=>{const u=document.createElement("div");u.className=X(Ns,n),document.body.appendChild(u),aa.createRoot(u).render(x(rl,{children:x(o,{})}));});function s(u){return (...d)=>(i(),u(...d))}const l=s(u=>{Object.assign(r,u);});return {WrappedComponent:o,proxyProps:r,mount:i,wrapAction:s,updateProps:l}}const YAe=[{platform:"pc",text:"内容不感兴趣",value:1,reason:1},{platform:"pc",text:"不想看此UP主",value:2,reason:4}];function xN(e){if(e.platform==="app")return {reasonId:e.id,text:e.name,helpText:e.toast};if(e.platform==="pc")return {reasonId:e.reason,text:e.text};vm(e);}const XAe={show:false,reasons:[],onHide:ZAe,okAction:void 0},{proxyProps:QAe,updateProps:$q}=Eq({Component:eRe,containerClassName:"show-dislike-container",defaultProps:XAe}),Mq=new uo;function ZAe(){Mq.emit("modal-close"),$q({show:false,reasons:[],okAction:void 0});}async function JAe(e,t){$q({show:true,reasons:e,okAction:t}),await Mq.once("modal-close");}const Tq=function(){return gt(QAe).show};function eRe({show:e,reasons:t,onHide:n,okAction:r}){const o=f.useRef(null),i=!!(e&&t?.length),s=ws(async b=>r?.(b),{manual:true}),l=s.loading,[u,d]=f.useState(()=>t.length?t.length-1:0);f.useLayoutEffect(()=>{if(!t.length)return;const b=t[0].platform;b==="app"?d(t.length-1):b==="pc"?d(0):vm(b);},[t]);const m=Bg(()=>new uo,[]);ao(m,"click",({data:b})=>{});const p=tt(b=>{const y=t.length;let S=u+b;S<0&&(S=S%y+y),S>y-1&&(S=S%y),d(S);});Do("ArrowUp",()=>p(-1),{enabled:i}),Do("ArrowDown",()=>p(1),{enabled:i});const g=sS(async b=>{if(u<0||u>t.length-1)return;const y=t[u];if(!y)return;b.preventDefault(),b.stopPropagation(),await s.runAsync(y)&&n();});return Do("Enter",g,{enabled:i}),H(Hg,{show:e,onHide:n,hideWhenMaskOnClick:true,hideWhenEsc:true,width:350,clsModal:"rounded-15px",children:[H("div",{className:_o.modalHeader,children:[H("div",{className:_o.modalTitle,children:[x(SR,{className:"size-25px"}),x("span",{className:"ml-5px",children:"我不想看"}),H(vr,{children:["选择后将减少相似内容推荐 ",x("br",{}),"操作说明: ",x("br",{}),H("div",{className:"ml-10px",children:["1. 使用删除键打开弹窗, Esc 关闭 ",x("br",{}),"2. 数字键 或 方向键选择 ",x("br",{}),"3. 回车键 或 确定按钮提交 ",x("br",{})]})]})]}),x(Vg,{onClick:n})]}),x("div",{className:_o.modalBody,ref:o,children:x(j1,{spinning:l,indicator:LU,children:x("div",{className:"reason-list mb-20px mt-20px flex flex-col gap-y-10px",children:t.map((b,y)=>{const S=y===u,{reasonId:C,text:w}=xN(b),E=y+1;return H("button",{className:X("reason",{active:S},"relative flex cursor-pointer items-center b-2px rounded-6px b-solid bg-transparent px-6px py-12px",S?"b-gate-primary":"b-gate-border"),disabled:l,onClick:()=>{d(y);},children:[H("span",{"data-cls":"reason-no",className:"size-20px flex flex-none items-center justify-center rounded-full bg-gate-primary text-13px color-white",children:[x(tRe,{num:E,enabled:i,onPress:()=>d(y)}),E]}),x("span",{className:"flex-1 px-4px text-14px",children:w}),x("span",{className:"size-20px flex-none",children:S&&x(jp,{className:"h-100% w-100% color-gate-primary",useAnimation:true})})]},C)})})})}),H("div",{className:"mt-2 flex items-center justify-end gap-x-10px",children:[x(ht,{onClick:n,children:"取消"}),x(ht,{type:"primary",onClick:g,loading:l,children:"确定"})]})]})}function tRe({num:e,onPress:t,enabled:n}){return Nr(e>=1&&e<=9,"num must be between 1 and 9"),Do(`${e}`,t,{enabled:n}),null}const La=20,up="ml-30px inline-flex items-center text-15px [&_svg]:mr-5px [&_svg]:mt--1px first:ml-0";function nRe({folderId:e,currentFolderTitle:t,onClosePopover:n}){const r=ws(l=>aMe(e,l),{manual:true}),[o,i]=f.useState(t),s=tt(async()=>{const l=o.trim();if(!l)return Jt("收藏夹名称不能为空!");if(l===t)return Jt("无变更!");if(!await r.runAsync(l))return;n();const d=pn.folders.find(m=>m.id===e);d&&(d.title=o);});return H("div",{className:"flex flex-col gap-y-2",children:[x("div",{children:"重命名收藏夹"}),x(Ji,{placeholder:"收藏夹名称",value:o,onChange:l=>i(l.target.value),onPressEnter:s}),H("div",{className:"flex justify-end gap-x-2",children:[x(ht,{onClick:n,children:"取消"}),x(ht,{type:"primary",loading:r.loading,onClick:s,disabled:!o||o===t,children:"确定"})]})]})}function rRe({service:e}){const[t,n]=f.useState(false),{viewingSomeFolder:r}=gt(pn),{id:o,attr:i,title:s}=e.entry,l=gt(pn.folders).find(d=>d.id===o)?.title??s,u="size-16px";return H(_e,{children:[H(Qp,{href:rN(o,i),className:up,children:[x(Oo,{className:u}),"去个人空间查看收藏夹: ",l]}),H(Qp,{href:Z3e(o),className:up,children:[x(Ng,{className:u}),"播放全部"]}),r&&x(Ps,{open:t,onOpenChange:n,trigger:"click",content:x(nRe,{folderId:o,currentFolderTitle:l,onClosePopover:()=>n(false)}),children:H(ht,{className:X(up,"gap-x-1 px-0 text-15px!"),type:"link",children:[x(xR,{className:u}),"重命名"]})})]})}const oRe=[Ot.FavTimeDesc,Ot.PlayCountDesc,Ot.PubTimeDesc];function $B(e){return oRe.includes(e)}const Aq=gm("fav-folder-all-items");async function F0(e){await Aq.delete(e);}class Rq{constructor(t,n,r){if(this.folderId=t,this.addSeparator=n,this.itemsOrder=r,this.itemsOrder===Ot.Initial)throw new Error("this should not happen!");$B(this.itemsOrder)?this.needLoadAll=false:this.needLoadAll=true;}needLoadAll;get hasMore(){return this.addSeparator&&!this.separatorAdded?true:this.needLoadAll?this.allItemsLoaded?!!this.bufferQueue.length:true:this.innerService?this.innerService.hasMore:true}separatorAdded=false;get separator(){return this.assertInnerService(),{api:Ze.Separator,uniqId:`${Ze.Fav}:folder:separator:${this.folderId}`,content:x(rRe,{service:this.innerService})}}entry;innerService;assertInnerService(){Nr(this.innerService,"this.innerService should not be undefined"),Nr(this.entry,"this.entry should not be undefined");}async createService(){if(this.innerService)return;await BN();const t=Gr(pn.folders).find(n=>n.id===this.folderId);Nr(t,`favStore.favFolders should have this entry[fid=${this.folderId}]`),this.entry=t,$B(this.itemsOrder)?this.innerService=new Cf(t,this.itemsOrder):this.innerService=new Cf(t);}async loadMore(t){if(this.innerService||await this.createService(),!!this.hasMore){if(this.addSeparator&&!this.separatorAdded)return this.separatorAdded=true,[this.separator];if(this.needLoadAll){this.allItemsLoaded||await this.loadAllItems(t),this.itemsOrder===Ot.Shuffle&&(this.bufferQueue=wi(this.bufferQueue));const n=this.bufferQueue.slice(0,La);return this.bufferQueue=this.bufferQueue.slice(La),n}else {const n=await this.innerService?.loadMore(t);return this.runSideEffects(),n}}}allItemsLoaded=false;bufferQueue=[];async loadAllItems(t){const n=await this.fetchAllItems(t);this.bufferQueue=dM(n,this.itemsOrder),this.allItemsLoaded=true,this.runSideEffects();}_fetchAllItems=async t=>{this.assertInnerService();const n=[];for(;this.innerService.hasMore&&!t.aborted;){const r=await this.innerService.loadMore(t)||[];n.push(...r);}return n};_fetchAllItemsWithCache=Zu({fn:this._fetchAllItems,tableName:Aq,generateKey:()=>`${this.folderId}`,ttl:Qr("5min")});fetchAllItems=t=>(this.assertInnerService(),this.entry.media_count>Cf.PAGE_SIZE*3?this._fetchAllItemsWithCache(t):this._fetchAllItems(t));runSideEffects(){this.assertInnerService(),typeof this.innerService.info?.media_count=="number"&&lK(this.folderId,this.innerService.info.media_count);}get extraTabbarView(){return x(LN,{})}}class Cf{constructor(t,n=Ot.FavTimeDesc){this.entry=t,this.itemsOrder=n,this.hasMore=t.media_count>0;}static PAGE_SIZE=20;hasMore;info;page=0;async loadMore(t){if(!this.hasMore)return;const n={[Ot.FavTimeDesc]:"mtime",[Ot.PlayCountDesc]:"view",[Ot.PubTimeDesc]:"pubtime"}[this.itemsOrder],o=(await Yt.get("/x/v3/fav/resource/list",{params:{media_id:this.entry.id,pn:this.page+1,ps:Cf.PAGE_SIZE,keyword:"",order:n,type:"0",tid:"0",platform:"web"}})).data;if(!Vn(o)){Jt(o.message||ig);return}this.page++,this.hasMore=o.data.has_more,this.info=o.data.info;let i=o.data.medias||[];return i=i.filter(s=>s.title!=="已失效视频"),i.map(s=>({...s,from:"fav-folder",folder:this.info,api:Ze.Fav,uniqId:`${Ze.Fav}:folder:${this.info?.id||this.entry.id}:${s.bvid}`}))}}const Nq={modalWidth:60,favFolderOrder:"default"},Fh=OA({...Nq},"modal-fav-manager");function iRe(){const{modalWidth:e,favFolderOrder:t}=gt(Fh),n="text-1.5em",r="text-1.2em";return H("div",{className:"flex flex-col gap-y-10px",children:[H("div",{className:"flex items-center justify-between",children:[x("div",{className:n,children:"窗口设置"}),x(ht,{className:"icon-only-round-button size-24px",onClick:()=>Object.assign(Fh,Nq),children:x(zy,{})})]}),H("div",{children:[H("div",{className:r,children:["窗口宽度 ",e,"%"]}),x(xA,{className:"mt-0",value:e,min:30,max:90,onChange:o=>{Fh.modalWidth=o;}})]}),H("div",{children:[x("div",{className:r,children:"收藏夹排序"}),x(qG,{value:t,onChange:o=>Fh.favFolderOrder=o})]})]})}function sRe({show:e,onHide:t,mode:n,pickOkAction:r,modifyInitialSelectedIds:o,modifyAllowEmpty:i,modifyOkAction:s}){const{modalWidth:l,favFolderOrder:u}=gt(Fh),[d,m]=f.useState(void 0),[p,g]=f.useState(void 0),b=ws(kN,{manual:true}),y=ws(async D=>r?.(D),{manual:true}),S=ws(async D=>s?.(D),{manual:true}),{folders:C}=gt(pn),w=f.useMemo(()=>{const D=C.map((W,z)=>({...W,vol:z+1}));if(!p)return D;const L=D.filter(W=>W.title.includes(p)),F=D.filter(W=>W.title.toLowerCase().includes(p.toLowerCase())),U=D.filter(W=>cQ.match(W.title,p));return mc([...L,...F,...U],W=>W.id)},[C,p]),M=f.useMemo(()=>GG(w,u),[w,u]),T=f.useMemo(()=>new Set([o].flat().filter(D=>typeof D=="number")),[o]),A=aRe(),I=n==="modify"&&i,N=f.useMemo(()=>!I&&!d||n==="modify"&&Ei(Array.from(T),[d]),[I,d,n,T]);Do("R",()=>b.run(true),{enabled:e});const P=tt(async()=>{let D;if(d&&(D=C.find(L=>L.id===d)),!I&&!D)return Qt.error("请选择一个收藏夹");n==="pick"&&(Nr(D,"selectedFolder should not be empty when mode=pick"),await y.runAsync(D)&&t()),n==="modify"&&await S.runAsync(D)&&t();}),O=tt(()=>{if(!(!e||n!=="modify"||!T.size)&&(!d||!T.has(d))){const D=Array.from(T)[0];m(D);}});return f.useEffect(()=>{e&&(b.run(),O());},[e]),ja(()=>{if(e&&(!d||!T.has(d))){const D=Array.from(T)[0];m(D);}},[T]),H(Hg,{show:e,onHide:t,hideWhenMaskOnClick:true,hideWhenEsc:true,width:`${l}vw`,clsModal:"rounded-15px",children:[H("div",{className:_o.modalHeader,children:[H("div",{className:"flex flex-wrap items-center gap-x-10px gap-y-1",children:[H("div",{className:_o.modalTitle,children:[n==="pick"?x(zCe,{className:"size-25px"}):x(xR,{className:"size-25px"}),x("span",{className:"ml-5px",children:n==="pick"?"选择目标收藏夹":"修改收藏"})]}),x(Ji,{className:"w-215px",allowClear:true,placeholder:"过滤: 支持拼音 / 拼音首字母",value:p,onChange:D=>g(D.target.value),spellCheck:false}),!!p&&H("span",{className:"ml-5px",children:[x("span",{className:X({"text-red":C.length&&!M.length}),children:M.length})," ","/ ",x("span",{children:C.length})]}),H(vr,{className:"ml-5px size-1.3em",children:["1. 使用 ",x("kbd",{className:X(zf,"mx-2px"),children:"r"})," 刷新收藏夹 ",x("br",{}),"2. 使用 ",x("kbd",{className:X(zf,"mx-2px"),children:"esc"})," 取消操作, 关闭窗口 ",x("br",{}),"3. 使用 拼音 / 拼音首字母 过滤收藏夹标题 ",x("br",{})]}),x(Ps,{trigger:"click",title:x(iRe,{}),children:x(CR,{className:"size-1.3em cursor-pointer"})})]}),x(Vg,{onClick:t})]}),x("div",{className:X(_o.modalBody),children:x(j1,{spinning:b.loading||y.loading||S.loading,indicator:LU,children:x("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(225px,1fr))] mb-10px min-h-100px content-start items-center gap-10px pr-18px",children:M.length?M.map(D=>{const L=n==="modify"&&T.has(D.id),F=D.id===d;return H("button",{"data-id":D.id,className:X({active:F},"relative min-h-40px flex cursor-pointer items-center b-2px b-gate-border rounded-20px b-solid bg-transparent px-4px line-height-[1.2] hover:bg-gate-bg-lv1",F&&"b-gate-primary color-white bg-gate-primary! hover:bg-gate-primary-lv1!"),onClick:()=>{if(F&&I)return m(void 0);m(D.id);},children:[L&&x(sn,{title:"源收藏夹",placement:"left",children:x("span",{className:X("absolute left-2 top-50% size-2.5 flex-center translate-y--50% rounded-full",A)})}),H("span",{className:"flex-1 px-4px text-14px",children:[D.title," (",D.media_count,")"]}),x("span",{className:"mr-2px size-20px flex-none",children:F&&x(jp,{className:"size-full color-white",useAnimation:true})})]},D.id)}):x(qi,{className:"grid-col-span-full",image:qi.PRESENTED_IMAGE_SIMPLE,description:"未找到收藏夹",children:"无过滤结果, 请检查过滤词 !"})})})}),H("div",{className:"mt-2 flex items-center justify-between",children:[x("div",{className:"flex-v-center gap-x-10px",children:H("a",{href:`https://space.bilibili.com/${oi()}/favlist`,target:"_blank",className:"flex-v-center gap-x-1",children:[x(Oo,{className:"size-1.1em"}),"去个人空间新建收藏夹"]})}),H("div",{className:"flex-v-center gap-x-10px",children:[x(ht,{onClick:t,children:"取消"}),x(ht,{type:"primary",onClick:P,loading:y.loading||S.loading,disabled:N,children:"确定"})]})]})]})}function aRe(){const{theme:e}=Ft();return e===Uy.id?"bg-$brand_blue":"bg-$brand_pink"}const lRe={onHide:uRe,show:false,mode:"pick",pickOkAction:void 0,modifyInitialSelectedIds:void 0,modifyOkAction:void 0},{proxyProps:cRe,updateProps:wN}=Eq({Component:sRe,containerClassName:"ModalFavManager",defaultProps:lRe}),EN=new uo;function uRe(){wN({show:false}),EN.emit("modal-close");}function Pq(){return gt(cRe).show}async function dRe(e){wN({show:true,mode:"pick",pickOkAction:e}),await EN.once("modal-close");}async function Zy(e,t,n=true){wN({show:true,mode:"modify",modifyInitialSelectedIds:e,modifyOkAction:t,modifyAllowEmpty:n}),await EN.once("modal-close");}async function $N(e,t,n){if(Ei(t,[n?.id]))return Qt.warning("请选择不同的收藏夹!"),false;if(!await ku.modifyFav(e,t,n?.id))return  false;[...t??[],n?.id].filter(s=>s!==void 0).forEach(s=>F0(s));let i;return n?i=`${t?.length?"已移动收藏到":"已加入收藏"}「${n.title}」`:i="已取消收藏",Qt.success(i),true}function Iq(){const{modalFeedVisible:e,modalSettingsVisible:t}=qN();return [e,t,Tq(),Pq()].every(r=>r===false)}const MN=function({value:e,onChange:t,disabled:n,list:r,listDisplayConfig:o,dropdownProps:i,extraHelpInfo:s,$ref:l}){const{icon:u,label:d}=o[e],m=tt(S=>{const C=r.filter(T=>T!=="divider"),w=C.indexOf(e);if(w===-1)return;const E=(w+(S.shiftKey?-1:1)+C.length)%C.length,M=C[E];t(M);}),p=f.useMemo(()=>yi(r.map(S=>{if(S==="divider")return {type:"divider"};const{icon:C,label:w}=o[S];return {key:S,icon:C,label:w,onClick:()=>t(S)}})),[r,o,t]),[g,b]=f.useState(false),y=TEe();return H("span",{className:"inline-flex items-center",ref:l,children:[x(bc,{open:g,onOpenChange:b,disabled:n,menu:{items:p,selectedKeys:[e.toString()],styles:{root:y}},placement:"bottomRight",classNames:{root:"text-13px",item:"justify-start",itemContent:"flex-shrink-0"},...i,children:H(ht,{className:X(BU,"px-3"),css:[g&&Xu,"",""],disabled:n,onClick:m,children:[u,d]})}),H(vr,{children:[s,s&&x(cM,{}),"操作说明: ",x("br",{}),"1. 点击/下拉切换 ",x("br",{}),"2. 按住 ",x("kbd",{className:zf,children:"Shift"})," 键点击逆序切换 ",x("br",{})]})]})};function fRe({onRefresh:e,getPopupContainer:t}){const{hideChargeOnlyVideos:n,filterMinDuration:r}=gt(xo),o=x(mRe,{refresh:e}),[i,s]=f.useState(false),l=f.useMemo(()=>n||r!==yS.All,[n,r]);return {popoverTrigger:x(Ps,{open:i,onOpenChange:s,arrow:false,placement:"bottomLeft",getPopupContainer:t,content:o,styles:{container:{border:`1px solid ${Qu()}`}},children:x(Cg,{dot:l,color:ts,offset:[-5,5],children:x(ht,{className:"icon-only-round-button",css:i&&Xu,children:x(MG,{className:"ml-1px"})})})})}}const Il={wrapper:"max-w-320px",section:"mt-10px min-w-240px first:mt-0px",sectionTilte:"flex items-center pb-2px pl-2px text-18px",sectionContent:"flex flex-col items-start gap-x-10px gap-y-6px"};function mRe({refresh:e}){const{hideChargeOnlyVideos:t,filterMinDuration:n}=gt(xo);return H("div",{className:Il.wrapper,children:[H("div",{className:Il.section,children:[x("div",{className:Il.sectionTilte,children:"充电专属"}),x("div",{className:Il.sectionContent,children:x(Ri,{className:"ml-5px",checked:t,onChange:r=>{xo.setHideChargeOnlyVideos(r.target.checked),e?.();},children:x(sn,{title:"隐藏「充电专属」视频",children:x("span",{style:{userSelect:"none"},children:"隐藏「充电专属」"})})})})]}),H("div",{className:Il.section,children:[x("div",{className:Il.sectionTilte,children:"最短时长"}),x("div",{children:x(Rr.Group,{className:"overflow-hidden [&_.ant-radio-button-wrapper]:px-7px",buttonStyle:"solid",value:n,onChange:r=>{xo.setFilterMinDuration(r.target.value),e?.();},children:Object.values(yS).map(r=>{const{label:o}=uq[r];return x(Rr.Button,{value:r,children:o},r)})})})]}),x("div",{className:Il.section,children:x("div",{className:Il.sectionContent,children:x(ht,{onClick:()=>{xo.resetCurrentFilterState(),e?.();},children:"重置筛选"})})})]})}function hRe(){const{searchText:e,filterText:t}=gt(xo,{sync:true}),{allowedOrders:n,usingOrder:r}=gt(xo),{spaceUpload:{useSyncFilterTextFromSearchText:o}}=Ft(),i=go(),{ref:s,getPopupContainer:l}=Ec(),{popoverTrigger:u}=fRe({onRefresh:i,getPopupContainer:l}),d=tt(()=>{m();const{searchText:b,filterText:y}=xo,S=location.href,C=new URL(S);b?C.searchParams.set(Js.SearchText,b):C.searchParams.delete(Js.SearchText),y?C.searchParams.set(Js.FilterText,y):C.searchParams.delete(Js.FilterText),C.href!==S&&history.replaceState({},"",C.href);}),m=tt(()=>{at.spaceUpload.useSyncFilterTextFromSearchText&&(xo.filterText=xo.searchText);});ho(d);const p=f.useRef(null),g=Iq();return Do({shift:true,key:"?"},b=>p.current?.focus(),{eventType:"keyup",enabled:g}),Do("Escape",b=>p.current?.blur(),{target:p.current?.nativeElement,ignoreInputs:false,requireReset:false,enabled:g}),H("div",{ref:s,className:"flex items-center gap-x-10px",children:[x(MN,{value:r,list:n,listDisplayConfig:uAe,onChange:b=>{xo.order=b,i();}}),u,x(Ji.Search,{ref:p,style:{width:200},placeholder:"搜索词",allowClear:true,value:e,onChange:b=>xo.searchText=b.target.value,onSearch:b=>{xo.searchText=b,d(),i();}}),H(Tr.Compact,{children:[x(Tr.Addon,{children:x(sn,{title:x(_e,{children:"精准搜索: 自动将搜索词同步到过滤词"}),children:x(It,{className:"[&>.ant-checkbox-label]:hidden",configPath:"spaceUpload.useSyncFilterTextFromSearchText",extraAction:b=>{b&&(d(),i());}})})}),x(Ji.Search,{style:{width:200},placeholder:"本地过滤词",allowClear:true,value:t,disabled:o,onChange:b=>xo.filterText=b.target.value,onSearch:b=>{xo.filterText=b,d(),i();}})]}),x(It,{configPath:"spaceUpload.showVol",label:"显示序号",className:"flex-none"}),x(Kg,{})]})}const Oq=new SN({maxSize:100}),Jy=Or();async function pRe(e){if(Jy.has(e))return;const t=await WAe(e);jAe(t)&&Jy.add(e);}function Dq(){const e=Gr(xo);return {mids:e.mids,groupId:e.groupId,order:e.usingOrder,searchText:e.searchText,filterText:e.filterText,initialPage:xB?Number(xB):void 0,hideChargeOnlyVideos:e.hideChargeOnlyVideos,filterMinDuration:e.filterMinDuration,filterMinDurationValue:e.filterMinDurationValue}}class TN extends il{constructor(t){if(super(TN.PAGE_SIZE),this.config=t,Object.assign(this,t),this.mids=t.mids,this.order=t.order,this.hideChargeOnlyVideos=t.hideChargeOnlyVideos,this.filterMinDuration=t.filterMinDuration,this.filterMinDurationValue=t.filterMinDurationValue,Nr(this.mids.length||this.groupId!==void 0,"mid & groupId can not both be empty"),this.searchText=this.searchText?.trim(),this.initialPage&&(this.groupId!==void 0||this.mids.length>1))throw new Error("initialPage not supported when merging")}static PAGE_SIZE=20;mids;groupId;order;searchText;filterText;initialPage;hideChargeOnlyVideos;filterMinDuration;filterMinDurationValue;sidebarView=void 0;tabbarView=x(hRe,{});get hasMoreExceptQueue(){return this.service?this.service.hasMore:true}async fetchAvatars(t){await Promise.all(t.map(async n=>{const r=await CN(n);r&&Oq.set(n,r.face);}));}async fetchFollowState(t){await ac(t,pRe,3);}pageTitleSet=false;async setPageTitle(){if(this.pageTitleSet)return;const t=[];this.searchText&&t.push(`🔍【${this.searchText}】`),this.filterText&&t.push(`⏳【${this.filterText}】`);let n;if(this.mids.length)n=(await ac(this.mids,Yg,3)).map(i=>i?.trim()).filter(Boolean).map(i=>`「${i}」`).join("、");else {const i=(await NG()).find(s=>s.tagid===this.groupId)?.name||"";n=i?`「${i}」`:"";}const r=[t.join(""),`${n}的投稿`].map(o=>o.trim()).filter(Boolean).join(" - ");kR(r),this.pageTitleSet=true;}singleUpService;mergeTimelineService;async setupServices(){if(!(this.singleUpService||this.mergeTimelineService)){if(this.mids.length===1){this.singleUpService=new _q(this.mids[0],this.order,this.searchText,this.initialPage);return}if(this.mids.length){this.mergeTimelineService=new MB(this.mids,this.order,this.searchText);return}if(this.groupId!==void 0){const t=await hM(this.groupId);if(t.forEach(n=>Jy.add(n)),!t.length)throw new Error("Group is Empty!");this.mergeTimelineService=new MB(t.map(n=>n.toString()),this.order,this.searchText);return}}}get service(){return this.singleUpService||this.mergeTimelineService}warnNeedLoginOnce=jf(uK);async fetchMore(t){if(!jU())throw this.warnNeedLoginOnce(),new Sq(cK);this.setPageTitle(),await this.setupServices(),Nr(this.service,"this.service should exist after setupServices");const n=await this.service.loadMore(t)||[],r=this.singleUpService?this.singleUpService.endVol:this.mergeTimelineService.count-this.qs.fetchedCount;let o=n.map((i,s)=>({...i,api:Ze.SpaceUpload,uniqId:`${Ze.SpaceUpload}:${i.bvid}`,groupId:this.groupId,vol:r-s,page:this.singleUpService?this.singleUpService.page-1:void 0}));if(this.hideChargeOnlyVideos&&(o=o.filter(i=>!KAe(i))),this.filterMinDuration!==yS.All&&(o=o.filter(i=>Kp(i.length)>=this.filterMinDurationValue)),this.filterText){const{includes:i,excludes:s}=wq(this.filterText);o=o.filter(l=>i.every(u=>l.title.includes(u))&&s.every(u=>!l.title.includes(u)));}{const i=rg(o.filter(s=>s.author.trim()!=="账号已注销")).map(s=>s.mid).filter(Boolean);await Promise.all([this.fetchAvatars(i),this.fetchFollowState(i)]);}return o}}class MB{constructor(t,n,r){this.mids=t,this.order=n,this.searchText=r,Nr(this.mids.length===1||this.mids.length>1&&this.order!==_a.Fav,"SpaceUploadItem.Fav not supported when merging"),this.singleUpServices=t.map(o=>new _q(o,this.order,this.searchText));}singleUpServices;get hasMore(){return this.singleUpServices.some(t=>t.hasMore)}get count(){return this.singleUpServices.reduce((t,n)=>t+n.count,0)}async refillQueues(t){await ac(this.singleUpServices,n=>n.refillQueue(1,t),5);}async loadMore(t){if(!this.hasMore)return;if(this.mids.length===1)return this.singleUpServices[0].loadMore(t);const n=[],r=10;for(;this.hasMore&&n.length<r;){await this.refillQueues(t);const o=this.singleUpServices.filter(l=>l.bufferQueue.length>0),i=Ia(o.map(l=>{const u=l.bufferQueue[0],d={[_a.Latest]:u.created,[_a.View]:u.play,[_a.Fav]:u.play}[this.order];return {service:l,item:u,valueForSort:d}}),["valueForSort"],["desc"]).map(l=>l.service)[0];if(!i)break;const s=i.bufferQueue[0];i.bufferQueue=i.bufferQueue.slice(1),n.push(s);}return n}}class _q{constructor(t,n,r,o){this.mid=t,this.order=n,this.searchText=r,this.initialPage=o,this.page=this.initialPage??1;}bufferQueue=[];hasMoreForApi=true;count=0;endVol=0;get hasMore(){return !!this.bufferQueue.length||this.hasMoreForApi}async refillQueue(t,n){if(this.hasMore)for(;!n?.aborted&&this.hasMoreForApi&&this.bufferQueue.length<t;){const r=await this.loadMore(n)||[];this.bufferQueue.push(...r);}}page;async loadMore(t){const{items:n,hasMore:r,count:o,endVol:i}=await mAe({mid:this.mid,order:this.order,pagenum:this.page,keyword:this.searchText||""});return this.hasMoreForApi=r,this.page++,this.count=o,this.endVol=i,n}}const xM=e=>(e||"").replace(/^http:\/\//,"https://"),AN="·";function gRe(e,t){const n=e.api,r=t[n];return r(e)}function vRe(){const t=new WeakMap;return t.clear??=u9,t.size=0,t}const Ju=$Q(e=>{const t=gRe(e,{[Ze.AppRecommend]:bRe,[Ze.PcRecommend]:SRe,[Ze.DynamicFeed]:CRe,[Ze.Watchlater]:xRe,[Ze.Fav]:wRe,[Ze.PopularGeneral]:ERe,[Ze.PopularWeekly]:$Re,[Ze.Rank]:MRe,[Ze.Live]:TRe,[Ze.SpaceUpload]:ARe,[Ze.Liked]:RRe});return t.authorFace&&(t.authorFace=xM(t.authorFace)),t.cover&&(t.cover=xM(t.cover)),t.bvid||=void 0,t.avid||=void 0,t},{cache:vRe(),getCacheKey:e=>e});function bRe(e){return yRe(e)}function yRe(e){const t=C=>{const{cover_left_text_1:w,cover_left_text_2:E,cover_left_text_3:M}=e,T=[w,E,M].filter(Boolean);if(C==="play"){const A=T.find(N=>/观看|播放$/.test(N));if(!A)return;const I=A.replace(/观看|播放$/,"");return mu(I)}if(C==="danmaku"){const A=T.find(N=>N.endsWith("弹幕"));if(!A)return;const I=A.replace(/弹幕$/,"");return mu(I)}if(C==="bangumi:follow"){const A=T.find(N=>/追[剧番]$/.test(N));if(!A)return;const I=A.replace(/追[剧番]$/,"");return mu(I)}},n=e.param,r=e.bvid||aN(Number(e.param)),o=e.player_args?.cid,i=(()=>{if(e.uri.startsWith("http://")||e.uri.startsWith("https://"))return e.uri;if(e.goto==="av")return `/video/${r}/`;if(e.goto==="bangumi")return ti("bangumi uri should not starts with 'bilibili://': %s",e.uri),e.uri;if(e.goto==="picture"){const C=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri)?.[1];return C?`/read/cv${C}`:e.uri}return e.uri})(),s=t("play"),l=void 0,u=void 0,d=t("danmaku"),m=void 0,p=t("bangumi:follow"),g=[{field:"play",value:s},typeof d=="number"?{field:"danmaku",value:d}:{field:"bangumi:follow",value:p}],b=e.desc||"",[y=void 0,S=void 0]=b.split(AN);return {avid:n,bvid:r,cid:o,goto:e.goto,href:i,title:e.title,cover:e.cover,pubts:void 0,pubdateDisplay:S,duration:e.player_args?.duration||0,durationStr:ol(e.player_args?.duration),recommendReason:e.bottom_rcmd_reason||e.top_rcmd_reason,play:s,like:l,coin:u,danmaku:d,favorite:m,bangumiFollow:p,statItems:g,authorName:e.args.up_name||y,authorFace:e.avatar.cover,authorMid:String(e.args.up_id||""),appBadge:e.cover_badge,appBadgeDesc:e.desc}}function SRe(e){e.goto,Da.AV;const t=e.goto===Da.Live;return {avid:t?void 0:String(e.id),bvid:t?void 0:e.bvid,cid:t?void 0:e.cid,goto:e.goto,href:e.goto==="av"?`/video/${e.bvid}/`:e.uri,title:e.title,cover:e.pic,pubts:e.pubdate,duration:e.duration,durationStr:ol(e.duration),recommendReason:t?e.room_info?.area.area_name:e.rcmd_reason?.content,play:e.stat?.view,like:e.stat?.like,coin:void 0,danmaku:e.stat?.danmaku,favorite:void 0,statItems:t?[{field:"live:viewed-by",value:e.room_info?.watched_show.num}]:[{field:"play",value:e.stat?.view},{field:"danmaku",value:e.stat?.danmaku}],authorName:e.owner?.name,authorFace:e.owner?.face,authorMid:String(e.owner?.mid)}}function CRe(e){const t=zG(e);return Nr(t,"unexpected `normalizeDynamicFeedItem` empty result"),t}function xRe(e){const t=zMe(e.state),n=e.progress>0,r=`${n?"【已观看】· ":""}${e.title}`,o=t?x(sn,{title:H(_e,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:H("del",{children:[n?"【已观看】· ":"",e.title,"`"]})}):void 0,{watchlaterUseNormalVideoUrl:i,watchlaterItemsOrder:s}=tS(),l=(()=>{if(i)return `https://www.bilibili.com/video/${e.bvid}/`;let u=`https://www.bilibili.com/list/watchlater?bvid=${e.bvid}&oid=${e.aid}`;return s===Eo.AddTimeAsc&&(u+="&desc=0"),u})();return {avid:String(e.aid),bvid:e.bvid,cid:e.cid,goto:"av",href:l,title:r,titleRender:o,cover:e.pic,pubts:e.pubdate,pubdateDisplayForTitleAttr:`${k0(e.pubdate,true)} 发布, ${k0(e.add_at,true)} 添加稍后再看`,duration:e.duration,durationStr:ol(e.duration),recommendReason:`${k0(e.add_at)} · 稍后再看`,statItems:[{field:"play",value:e.stat.view},{field:"like",value:e.stat.like},{field:"favorite",value:e.stat.favorite}],play:e.stat.view,like:e.stat.like,danmaku:e.stat.danmaku,authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function wRe(e){const t=e.from==="fav-folder"?e.folder.title:e.collection.title,n={display:"inline-block",verticalAlign:"middle",marginRight:4,marginTop:-2},r="[&_path]:fill-gate-primary",o=e.from==="fav-folder"?hS(e.folder.attr)?x(bN,{className:X("size-15px",r),style:n}):x(yN,{className:X("size-15px",r),style:n}):x(CS,{className:X("size-15px",r),style:n});return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${t}】· ${e.title}`,titleRender:H(_e,{children:["【",o,t,"】· ",e.title]}),cover:e.cover,pubts:e.pubtime,duration:e.duration,durationStr:ol(e.duration),recommendReason:e.from==="fav-folder"?`${k0(e.fav_time)} · 收藏`:void 0,play:e.cnt_info.play,danmaku:e.cnt_info.danmaku,favorite:e.cnt_info.collect,statItems:[{field:"play",value:e.cnt_info.play},{field:"danmaku",value:e.cnt_info.danmaku},{field:"favorite",value:e.cnt_info.collect}],authorName:e.upper.name,authorFace:e.upper.face,authorMid:String(e.upper.mid)}}function ERe(e){return {avid:String(e.aid),bvid:e.bvid,cid:e.cid,goto:"av",href:`/video/${e.bvid}/`,title:e.title,cover:e.pic,pubts:e.pubdate,duration:e.duration,durationStr:ol(e.duration),recommendReason:e.rcmd_reason?.content,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,statItems:[{field:"play",value:e.stat.view},{field:"like",value:e.stat.like}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function $Re(e){return {avid:String(e.aid),bvid:e.bvid,cid:e.cid,goto:"av",href:`/video/${e.bvid}/`,title:e.title,cover:e.pic,pubts:e.pubdate,duration:e.duration,durationStr:ol(e.duration),recommendReason:e.rcmd_reason,play:e.stat.view,like:e.stat.like,danmaku:e.stat.danmaku,statItems:[{field:"play",value:e.stat.view},{field:"like",value:e.stat.like}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function MRe(e){if(TMe(e)||MMe(e)){const n=e.new_ep.cover,r=e.new_ep.index_show;return {avid:"",bvid:"",goto:"bangumi",href:e.url,title:e.title,cover:n,pubts:void 0,pubdateDisplay:void 0,duration:0,durationStr:"",play:e.stat.view,like:e.stat.follow,danmaku:e.stat.danmaku,statItems:[{field:"play",value:e.stat.view},{field:"bangumi:follow",value:e.stat.follow}],rankingDesc:r}}let t=(e.dynamic||e.desc)?.trim();return t==="-"&&(t=void 0),t&&e.title.includes(t)&&(t=void 0),{avid:String(e.aid),bvid:e.bvid,cid:e.cid,goto:"av",href:`/video/${e.bvid}/`,title:e.title,cover:e.pic,pubts:e.pubdate,duration:e.duration,durationStr:ol(e.duration),recommendReason:t,play:e.stat.view,like:e.stat.like,danmaku:e.stat.danmaku,statItems:[{field:"play",value:e.stat.view},{field:"like",value:e.stat.like}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function TRe(e){const t=`${e.area_name_v2}`,n=e.live_status===Ks.Streaming?"":`${AN}${o(e.record_live_time)} 直播过`,r="https://s1.hdslb.com/bfs/static/blive/blfe-link-center/static/img/average-backimg.e65973e.png";function o(i){const s=Yn().format("YYYYMMDD"),l=Yn().subtract(1,"day").format("YYYYMMDD"),u=Yn.unix(i);return u.format("YYYYMMDD")===s?u.format("HH:mm"):u.format("YYYYMMDD")===l?`昨天 ${u.format("HH:mm")}`:u.format("MM-DD HH:mm")}return {goto:"live",href:`https://live.bilibili.com/${e.roomid}`,title:e.title,cover:e.room_cover||r,recommendReason:t,liveExtraDesc:n,statItems:[{field:"live:viewed-by",value:e.text_small}],authorName:e.uname,authorFace:e.face,authorMid:String(e.uid)}}function ARe(e){const t=Kp(e.length),n=ol(t);let r=e.description?.trim();return r==="-"&&(r=void 0),r&&e.title.includes(r)&&(r=void 0),{avid:e.aid.toString(),bvid:e.bvid,cid:void 0,goto:"av",href:`/video/${e.bvid}/`,title:e.title,cover:e.pic,pubts:e.created,duration:t,durationStr:n,recommendReason:r,play:e.play,like:void 0,coin:void 0,danmaku:e.video_review,favorite:void 0,statItems:[{field:"play",value:e.play},{field:"danmaku",value:e.video_review}],authorName:e.author,authorFace:Oq.get(e.mid),authorMid:e.mid.toString(),followed:Jy.has(e.mid)}}function RRe(e){const{videoDetail:t}=e,n=e.param,r=aN(Number(n));return {avid:n,bvid:r,cid:void 0,goto:"av",href:`/video/${r}/`,title:e.title,cover:e.cover,pubts:t?.pubdate??e.ctime,duration:e.duration,durationStr:ol(e.duration),recommendReason:void 0,play:e.play,danmaku:e.danmaku,like:void 0,coin:void 0,favorite:void 0,statItems:[{field:"play",value:e.play},{field:"danmaku",value:e.danmaku}],authorName:e.author,authorFace:t?.owner.face,authorMid:t?.owner.mid?.toString()}}const TB=/^(?<mid>\d+)\((?<remark>[\S ]+)\)$/,NRe=/^\d+$/;function xS(e){if(TB.test(e)){const t=TB.exec(e)?.groups,n=t?.mid,r=t?.remark;return {mid:n,remark:r}}return NRe.test(e)?{mid:e,remark:void 0}:{}}function wM(e){const t=new Set,n=new Set;return e.forEach(r=>{const{mid:o}=xS(r);o?t.add(o):n.add(r);}),{blockUpMids:t,blockUpNames:n}}function AB(e){const t=[],n=[];e.forEach(o=>{if(o.startsWith("/")&&o.endsWith("/")){const i=new RegExp(o.slice(1,-1),"i");t.push(i);}else n.push(o);});function r(o){return n.some(i=>o.includes(i))||t.some(i=>i.test(o))}return {titleKeywordList:n,titleRegexList:t,test:r}}const cs=po.extend("modules:filter");function RN(e){return !!e&&["已关注","新关注"].includes(e)}function Lq(e){return [Ze.AppRecommend,Ze.PcRecommend,Ze.Rank,Ze.PopularGeneral,Ze.PopularWeekly].includes(e)}function e1(e,t){if(!at.filter.enabled&&!cp.size)return e;const n=tS().filter,{minDuration:r,minPlayCount:o,minDanmakuCount:i,byAuthor:s,byTitle:l,dfByTitle:u,dfHideOpusMids:d}=n,{blockUpMids:m,blockUpNames:p}=wM(s.keywords),{test:g}=AB(l.keywords),{test:b}=AB(u.keywords),{blockUpMids:y}=wM(d.keywords);return e.filter(S=>{if(S.api===Ze.Separator)return  true;const{play:C,duration:w,danmaku:E,recommendReason:M,goto:T,authorName:A,authorMid:I,title:N,bvid:P,href:O}=Ju(S),D=RN(M);if(t==="keep-follow-only"&&!D)return  false;function L(){if(I&&cp.size&&cp.has(I))return cs("filter out by blacklist-rule: %s %o",I,{bvid:P,title:N}),false;if(n.enabled&&s.enabled&&(m.size||p.size)&&(A||I)&&(A&&p.has(A)||I&&m.has(I)))return cs("filter out by author-rule: %o",{authorName:A,authorMid:I,rules:s.keywords,blockUpMids:m,blockUpNames:p,bvid:P,title:N}),false;let z=[N];if(S.api===Ze.Rank&&sN(S)&&S.desc&&z.push(S.desc),z=z.filter(Boolean),n.enabled&&l.enabled&&l.keywords.length&&z.length&&z.some(g))return cs("filter out by title-rule: %o",{possibleTitles:z,rules:l.keywords,bvid:P}),false}if(Lq(S.api)&&L()===false)return  false;if((S.api===Ze.AppRecommend||S.api===Ze.PcRecommend)&&n.enabled){const z=T==="av",k=T==="picture",G=T==="bangumi";if(z)return F();if(k)return U();if(G)return W()}function F(){return D&&n.exemptForFollowed.video?true:M==="关注了你"?(cs("filter out by recommendReason-rule: %s %o",M,{bvid:P,title:N}),false):r.enabled&&r.value&&w&&w<r.value?(cs("filter out by min-duration-rule: %s < %s %o",w,r.value,{bvid:P,title:N}),false):o.enabled&&o.value&&typeof C=="number"&&C<o.value?(cs("filter out by min-play-count-rule: %s < %s, %o",C,o.value,{bvid:P,title:N}),false):i.enabled&&i.value&&typeof E=="number"&&E<i.value?(cs("filter out by min-danmaku-count-rule: %s < %s, %o",E,i.value,{bvid:P,title:N}),false):true}function U(){return n.hideGotoTypePicture?D&&n.exemptForFollowed.picture?true:(cs("filter out by goto-type-picture-rule: %s %o",T,{bvid:P,title:N}),false):true}function W(){return n.hideGotoTypeBangumi?(cs("filter out by goto-type-bangumi-rule: %s %o",T,{title:N,href:O}),false):true}if(ff(S)&&n.enabled){const{major:z}=S.modules.module_dynamic,k=z?.type===Ko.MajorType.Opus;if(at.filter.dfByTitle.enabled&&at.filter.dfByTitle.keywords.length){let G=[N];if(k&&G.push(z.opus.summary?.text||""),G=rg(G.filter(Boolean)),G.some(b))return cs("filter out by df-title-rule: %o",{possibleTitles:G,rules:u.keywords,uniqId:S.uniqId,item:S}),false}if(k&&d.enabled&&d.keywords.length&&I&&y.has(I))return cs("filter out by df-hide-opus-mids-rule: %o",{dfHideOpusMids:d,authorMid:I,title:N,uniqId:S.uniqId}),false}return  true})}async function PRe(e){return (await Yt.get("https://api.live.bilibili.com/xlive/web-ucenter/user/following",{params:{page:e,page_size:Xg.PAGE_SIZE,ignoreRecord:1,hit_ab:true}})).data}class Xg extends il{constructor(t=false){super(Xg.PAGE_SIZE),this.streamingOnly=t;}static PAGE_SIZE=20;tabbarView=void 0;sidebarView=void 0;hasMoreExceptQueue=true;separatorAdded=false;liveCount=-1;page=1;totalPage=1/0;async fetchMore(t){if(this.page>this.totalPage){this.hasMoreExceptQueue=false;return}const n=await PRe(this.page);Vn(n)||(Jt(n.message||ig),this.hasMoreExceptQueue=false),this.page++;const{count:r,live_count:o,totalPage:i}=n.data;this.totalPage=i,this.liveCount=o;const s=n.data.list.map(m=>({...m,api:Ze.Live,uniqId:`${Ze.Live}:${m.roomid}`})),l=s.at(-1),u=Yn().subtract(2,"weeks").unix();if(l){const m=l.live_status,p=l.record_live_time;m!==Ks.Streaming&&p&&p<u&&(this.hasMoreExceptQueue=false);}let d=s;if(!this.streamingOnly&&!this.separatorAdded&&s.some(m=>m.live_status!==Ks.Streaming)){this.separatorAdded=true;const m=s.findIndex(p=>p.live_status!==Ks.Streaming);d.splice(m,0,{api:Ze.Separator,uniqId:`${Ze.Live}:separator:recent`,content:"最近直播过"});}return this.streamingOnly&&s.some(m=>m.live_status!==Ks.Streaming)&&(this.hasMoreExceptQueue=false,d=s.filter(m=>m.live_status===Ks.Streaming)),d}}const IRe=po.extend("modules:rec-services:dynamic-feed:api");async function Qg({videoOnly:e,offset:t,page:n,upMid:r,abortSignal:o}){const i={timezone_offset:"-480",type:e?"video":"all",platform:"web",features:"itemOpusStyle",web_location:"0.0","x-bili-device-req-json":JSON.stringify({platform:"web",device:"pc"}),"x-bili-web-req-json":JSON.stringify({spm_id:"0.0"}),page:n};t&&(i.offset=t);const s="/x/polymer/web-dynamic/v1/feed/all";r&&(i.host_mid=r);const u=(await Yt.get(s,{signal:o,params:i})).data;if(!Vn(u)){const m=u.message||ig;throw Jt(m),new Error(m,{cause:u})}const d=u.data;return d?.items?.length&&(d.items=d.items.filter(m=>{const p=!!zG(m);return p||IRe("dynamic-feed filter out: %o",{type:m.type,majorType:m.modules.module_dynamic.major?.type,additionalType:m.modules.module_dynamic.additional?.type,item:m}),p})),d}const t1=gm("dynamic-feed-items"),Zg=gm("dynamic-feed-items-info");async function wS(e){return !!(await Zg.get(e))?.count}function ORe(e,t){const n=s=>`update-filter-cache:${s}`,o=qa((s,l)=>{vs.info({icon:x(zA,{className:"size-16px"}),key:n(e),title:"过滤缓存更新中...",description:`「${t}」更新中: Page(${s}) Total(${l})`,duration:false});},200);return {notifyOnProgress:o,notifyOnSuccess:()=>{o.flush(),vs.success({key:n(e),title:"缓存更新成功",description:`「${t}」的过滤缓存更新成功`,duration:false});}}}async function DRe(e,t){await wS(e)?await Bq(e):await LRe(e,void 0,t);}async function _Re(e,t=false){const n=await Zg.get(e);if(!(!t&&n&&n.count&&n.updatedAt&&Date.now()-n.updatedAt<60*1e3))return Bq(e)}async function Bq(e){if(!await wS(e))return;const t=await t1.get(e)||[],n=new Set(t.map(u=>u.id_str));let r=1,o="",i=true,s=[];for(;i;){const u=await Qg({upMid:e,page:r,offset:o,videoOnly:true}),d=u.items;s=[...s,...d],o=u.offset,i=u.has_more,r++,i&&n.size&&d.every(p=>n.has(p.id_str))&&(i=false);}const l=mc([...s,...t],u=>u.id_str);await t1.set(e,l),await Zg.set(e,{count:l.length,updatedAt:Date.now()});}const jE=gm("dynamic-feed-items-in-progress");async function LRe(e,t=false,n){const r=t?void 0:await jE.get(e);let o=r?.page??1,i=r?.offset??"",s=r?.items??[],l=true;for(;l;){const d=await Qg({upMid:e,page:o,offset:i,videoOnly:true}),m=d.items;s=[...s,...m],i=d.offset,l=d.has_more,o++,await jE.set(e,{page:o,offset:i,items:s}),n?.(o,s.length);}const u=mc(s,d=>d.id_str);await t1.set(e,u),await Zg.set(e,{count:u.length,updatedAt:Date.now()}),await jE.delete(e);}const kq=Zu({fn:Qg,generateKey:({upMid:e,videoOnly:t})=>`upMid=${e}&videoOnly=${t}`,tableName:"dynamic-feed-newest-items",ttl:300*1e3});class BRe{constructor(t,n,r=false){this.upMid=t,this.videoOnly=n,this.enableHeadCache=r;}bufferQueue=[];hasMoreForApi=true;offset="";page=1;get hasMore(){return !!this.bufferQueue.length||this.hasMoreForApi}async loadMore(){const r=await(this.page===1&&!this.offset&&this.enableHeadCache?kq:Qg)({videoOnly:this.videoOnly,upMid:this.upMid,page:this.page,offset:this.offset});return this.offset=r.offset,this.hasMoreForApi=r.has_more,this.page++,Ei(r,{has_more:true,items:[],offset:"",update_baseline:"",update_num:0})&&(this.hasMoreForApi=false),r.items}async fillQueue(t,n){for(;!n?.aborted&&this.hasMoreForApi&&this.bufferQueue.length<t;){const r=await this.loadMore();this.bufferQueue.push(...r);}}}class Ba{constructor(t,n){this.upMids=t,this.videoOnly=n;const r=t.length>Ba.ENABLE_HEAD_CACHE_UPMID_COUNT_THRESHOLD;this.upServices=t.map(o=>new BRe(o,n,r));}static ENABLE_MERGE_TIMELINE_UPMID_COUNT_THRESHOLD=20;static ENABLE_HEAD_CACHE_UPMID_COUNT_THRESHOLD=10;upServices=[];get hasMore(){return this.upServices.some(t=>t.hasMore)}async loadMore(t){if(!this.hasMore)return [];const n=async()=>{await ac(this.upServices,s=>s.fillQueue(1,t),5);},r=[],o=10;for(;this.hasMore&&r.length<o;){await n();const i=this.upServices.filter(u=>u.hasMore),s=Ia(i.map(u=>{const d=u.bufferQueue[0],m=BigInt(d.id_str);return {service:u,item:d,id:m}}),["id"],["desc"]).map(u=>u.service)[0];if(!s)break;const l=s.bufferQueue[0];s.bufferQueue=s.bufferQueue.slice(1),r.push(l);}return r}}function kRe(){return new Promise((e,t)=>{const n=new Image;n.onload=()=>e(true),n.onerror=r=>e(false),n.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=";})}const zRe=!Pg&&await( kRe());function NN(e){const t=zRe?".avif":".webp";return `${xM(e)}@96w_96h_1c_1s_!web-avatar${t}`}function RB(e){return new Promise(t=>{const n=new Image;n.src=e,n.onload=()=>t(true),n.onerror=()=>t(false);})}function FRe({externalFilterInput:e,onRefresh:t,getPopupContainer:n}){const{upMid:r,dynamicFeedVideoType:o,filterMinDuration:i,filterText:s,hideChargeOnlyVideos:l}=gt(tn),u=x(Ji.Search,{style:{width:e?"250px":void 0},placeholder:"按标题关键字过滤",type:"search",autoCorrect:"off",autoCapitalize:"off",name:`filterText_${r}`,variant:"outlined",defaultValue:tn.filterText,autoComplete:"off",allowClear:true,onChange:S=>{jRe({filterText:S.target.value,upMid:r,onRefresh:t});},onSearch:async S=>{tn.filterText=S||void 0,await gn(100),t();}}),d=x(HRe,{externalFilterInput:e,filterInput:u,refresh:t}),[m,p]=f.useState(false),g=p,b=f.useMemo(()=>!!(o!==Ys.All||l||s||i!==Tu.All),[o,l,s,i]),y=x(Ps,{open:m,onOpenChange:g,arrow:false,placement:"bottomLeft",getPopupContainer:n,content:d,styles:{container:{border:`1px solid ${Qu()}`}},children:x(Cg,{dot:b,color:ts,offset:[-5,5],children:x(ht,{className:"icon-only-round-button",css:m&&Xu,children:x(MG,{className:"ml-1px"})})})});return {filterInput:u,popoverContent:d,popoverTrigger:y}}const ro={wrapper:"max-w-350px",section:"mt-10px min-w-300px first:mt-0px",sectionTilte:"flex items-center pb-2px pl-2px text-20px",sectionContent:"flex flex-col items-start gap-x-10px gap-y-6px"};function HRe({externalFilterInput:e,filterInput:t,refresh:n}){const{viewingSomeUp:r,selectedGroup:o,viewingSomeGroup:i,selectedKey:s,dynamicFeedVideoType:l,filterMinDuration:u,hideChargeOnlyVideos:d,addSeparators:m,filterText:p}=gt(tn);let g;{const b=lN&&!!p,y=p===PG,{href:S}=f.useMemo(()=>{const C=new URL(location.href);return C.searchParams.has(bi.FilterTextFull)?C.searchParams.set(bi.FilterTextFull,p||""):C.searchParams.has(bi.FilterTextShort)?C.searchParams.set(bi.FilterTextShort,p||""):C.searchParams.set(bi.FilterTextFull,p||""),{href:C.href,path:`${C.pathname}?${C.search}`}},[p]);g=b&&x(sn,{title:S,children:H(ht,{disabled:y,href:S,children:["转到过滤词为「",p||"空","」的链接"]})});}return H("div",{className:ro.wrapper,children:[H("div",{className:ro.section,children:[H("div",{className:ro.sectionTilte,children:["视频类型",H(vr,{children:["「",bs.ChargeOnly,"」在此程序中归类为「投稿视频」",x("br",{}),"「动态视频」时长通常较短"]})]}),x("div",{children:x(Rr.Group,{buttonStyle:"solid",value:l,onChange:async b=>{tn.dynamicFeedVideoType=b.target.value,await gn(100),n?.();},children:Object.values(Ys).map(b=>x(Rr.Button,{value:b,children:lTe[b]},b))})})]}),l!==Ys.DynamicOnly&&H("div",{className:ro.section,children:[x("div",{className:ro.sectionTilte,children:"充电专属"}),x("div",{className:ro.sectionContent,children:x(Ri,{className:"ml-5px",checked:d,onChange:async b=>{const y=b.target.checked,S=tn.hideChargeOnlyVideosForKeysSet;y?S.add(s):S.delete(s),await gn(100),n?.();},children:x(sn,{title:H(_e,{children:["隐藏「",bs.ChargeOnly,"」视频 ",x("br",{}),"仅对当前 UP 或 分组生效"]}),children:H("span",{style:{userSelect:"none"},children:["隐藏「",bs.ChargeOnly,"」"]})})})})]}),H("div",{className:ro.section,children:[x("div",{className:ro.sectionTilte,children:"最短时长"}),x("div",{children:x(Rr.Group,{className:"overflow-hidden [&_.ant-radio-button-wrapper]:px-10px",buttonStyle:"solid",value:u,onChange:async b=>{tn.filterMinDuration=b.target.value,await gn(100),n?.();},children:Object.values(Tu).map(b=>{const{label:y}=DG[b];return x(Rr.Button,{value:b,children:y},b)})})})]}),(!e||g)&&H("div",{className:ro.section,children:[x("div",{className:ro.sectionTilte,children:"过滤"}),H("div",{className:ro.sectionContent,children:[!e&&t,g]})]}),x(VRe,{}),H("div",{className:ro.section,children:[H("div",{className:ro.sectionTilte,children:[i?"分组":r?"UP":"全部",H(vr,{children:["当前",i?"分组":r?"UP":"范围","的一些操作~"]}),i&&o&&H("span",{className:"ml-15px inline-flex items-center text-size-14px",children:["(",H("a",{href:TG(o?.tagid||""),target:"_blank",className:`mx-4px inline-flex items-center text-size-16px ${dW}`,children:[x(Oo,{className:"mr-2px size-18px"}),o?.name]}),")"]})]}),H("div",{className:ro.sectionContent,children:[x(Ri,{checked:m,onChange:async b=>{tn.addSeparatorsMap.set("global",b.target.checked),await gn(100),n?.();},children:x(sn,{title:H(_e,{children:["添加今日/更早分割线 ",x("br",{}),"当前实现为全局共享此设置"]}),children:"添加分割线"})}),i&&!!o&&x(URe,{followGroup:o,refresh:n})]})]})]})}function VRe(){const{cacheAllItemsEntry:e,cacheAllItemsUpMids:t}=Ft().dynamicFeed.__internal,{viewingSomeUp:n,upMid:r,upName:o}=gt(tn),i=ws(async(u,d)=>{const{notifyOnProgress:m,notifyOnSuccess:p}=ORe(u,d);await DRe(u,m),p();},{manual:true}),s=f.useMemo(()=>!!r&&t.includes(r.toString()),[r,t]),l=f.useCallback(async u=>{if(!r)return;const m=u.target.checked?{add:[r]}:{remove:[r]};await Ha("dynamicFeed.__internal.cacheAllItemsUpMids",m);},[]);return x(_e,{children:e&&n&&r&&o&&H("div",{className:ro.section,children:[H("div",{className:ro.sectionTilte,children:["过滤缓存",H(vr,{children:["开启过滤缓存后, 会加载并缓存 UP 所有的动态 ",x("br",{}),"当本地有缓存且总条数 <= 5000时, 过滤框成为及时过滤, 无需点击过滤按钮"]})]}),H("div",{className:ro.sectionContent,children:[H("div",{className:"flex flex-wrap items-center gap-x-10px gap-y-3px",children:[x(Ri,{className:"inline-flex items-center",checked:s,onChange:l,children:x(sn,{title:"只有开启此项, 过滤时才会使用缓存",children:H("span",{children:["为「",o,"」开启"]})})}),x(ht,{loading:i.loading,onClick:async()=>{await i.runAsync(r,o);},children:"更新缓存"})]}),x(It,{configPath:"dynamicFeed.advancedFilter",label:"使用高级过滤",tooltip:xq})]})]})})}const jRe=qa(async function({filterText:e,upMid:t,onRefresh:n}){if(!t||!(e||!e&&tn.filterText)||!at.dynamicFeed.__internal.cacheAllItemsEntry||!at.dynamicFeed.__internal.cacheAllItemsUpMids.includes(t.toString())||!await wS(t))return;const r=await Zg.get(t);!r||!r.count||r.count>=5e3||(tn.filterText=e,await gn(0),n());},100);function zq(){return H(_e,{children:[x("p",{children:"机制介绍:"}),H("ul",{className:"text-13px",children:[H("li",{className:"flex items-start gap-x-10px",children:[x("div",{children:"「从全部过滤」:"}),x("div",{children:'基于全部动态 + 分组UP过滤, 速度可能巨慢, 且过滤后的数量取决于B站记录的"全部"动态范围'})]}),H("li",{className:"flex items-start gap-x-10px",children:[x("div",{children:"「拼接时间线」:"}),H("div",{children:["可以理解为: 去看一遍分组所有 UP 的动态, 然后将它们拼接起来 ",x("br",{}),"启动慢, 但可以加载所有动态; 且分组 UP 越多, 启动越慢 ",x("br",{}),"默认分组 UP 数量不超过 ",Ba.ENABLE_MERGE_TIMELINE_UPMID_COUNT_THRESHOLD," ","时会使用「拼接时间线」 ",x("br",{}),"详见",x("a",{className:"mx-5px",href:"https://magicdawn.fun/2024/12/01/bilibili-gate-dynamic-feed-merge-timeline/",target:"_blank",children:"介绍博客"})]})]})]})]})}function URe({followGroup:e,refresh:t}){const{whenViewAll:n}=gt(at.dynamicFeed),r=e.count;let o;const i=NB(e.tagid,"dynamicFeed.followGroup.forceUseMergeTimelineIds");{const{checked:u,onChange:d}=i,m=r<=Ba.ENABLE_MERGE_TIMELINE_UPMID_COUNT_THRESHOLD;o=x(Ri,{checked:u,onChange:p=>{d(p),t?.();},disabled:m,children:x(sn,{title:H(_e,{children:[x(zq,{}),m&&H("p",{className:"text-yellow-400 italic",children:["当前分组 UP 数量: ",r,", 无需设置"]})]}),children:"分组动态: 强制使用「拼接时间线」"})});}let s;s=(r<=Ba.ENABLE_MERGE_TIMELINE_UPMID_COUNT_THRESHOLD||i.checked)&&r>Ba.ENABLE_HEAD_CACHE_UPMID_COUNT_THRESHOLD&&x(sn,{title:H(_e,{children:["当分组 UP 数量"," >  ",Ba.ENABLE_HEAD_CACHE_UPMID_COUNT_THRESHOLD,"时, 「拼接时间线」功能会缓存每个 UP 的最新动态5分钟. ",x("br",{}),"这里可以手动清除缓存"]}),children:x(ht,{onClick:()=>{kq.cache.db.clear(),Qt.success("已清除缓存");},children:"清除「拼接时间线」- 队头缓存"})});let l;{const{checked:u,onChange:d}=NB(`${Fu}${e.tagid}`,"dynamicFeed.whenViewAll.hideIds");l=n.enableHideSomeContents&&x(Ri,{checked:u,onChange:d,children:x(sn,{title:H(_e,{children:["在「全部」动态中隐藏来自此 ",e.name," 的动态"]}),children:"在「全部」动态中隐藏来自此分组的动态"})});}return H(_e,{children:[l,o,s]})}function NB(e,t){const n=YU(t),r=f.useMemo(()=>n.includes(e),[n]),o=tt(async s=>{await Ha(t,s?{add:[e]}:{remove:[e]});}),i=f.useCallback(s=>{o(s.target.checked);},[]);return {checked:r,setChecked:o,onChange:i}}function WRe(e){if(Object.assign(tn,e),e.upMid){const t=tn.upList.find(n=>n.mid.toString()===e.upMid);t&&(t.has_update=false);}}const UE={upMid:void 0,upName:void 0,upFace:void 0,filterText:void 0,selectedGroupId:void 0,dynamicFeedVideoType:Ys.All,filterMinDuration:Tu.All};function Fq(e){const{upList:t,groups:n,selectedKey:r}=gt(tn),o=go(),{followGroup:{enabled:i}}=Ft().dynamicFeed,{recSharedEmitter:s}=ns(),l=tt(async m=>{WRe(m),await gn(100),o();}),u=tt(()=>{l({...UE}),s.emit("dynamic-feed:clear");});return {menuItems:f.useMemo(()=>{const m={key:"all",icon:x(vu,{size:"small",children:"全"}),label:"全部",title:"全部",onClick:u};let p=[];i&&(p=n.map(y=>({key:`group:${y.tagid}`,icon:x(vu,{size:"small",children:y.name[0]||"组"}),label:`${y.name} (${y.count})`,title:`${y.name} (${y.count})`,onClick:()=>l({...UE,selectedGroupId:y.tagid})})));let g=t;e==="dropdown"&&(g=Yy(t,[{prop:y=>y.has_update?1:0,order:"desc"},{prop:y=>cN(y.uname),order:uN}]));const b=g.map(y=>{let S=x(vu,{size:"small",src:NN(y.face)});return y.has_update&&(S=x(Cg,{dot:true,children:S})),{key:`up:${y.mid}`,icon:S,label:x("span",{title:y.uname,className:"block max-w-130px overflow-hidden text-ellipsis whitespace-nowrap",children:y.uname}),title:y.uname,onClick(){l({...UE,upMid:y.mid.toString(),upName:y.uname,upFace:y.face});}}});return [m,...p,...b]},[t,i,n,e]),selectedKey:r,onClear:u,onSelect:l}}function GRe(){const{dynamicFeed:{__internal:{externalFilterInput:e}}}=Ft(),{viewingSomeUp:t,upName:n,upFace:r,selectedGroup:o}=gt(tn),i=go(),{ref:s,getPopupContainer:l}=Ec(),u=mN(nt.DynamicFeed),{menuItems:d,selectedKey:m,onClear:p}=Fq("dropdown");ho(()=>{kG();});const g=o?.count,b=x(EG,{className:"mt--2px size-14px"}),y=r?x(vu,{size:20,src:NN(r)}):void 0,S=t?y||b:o?x($G,{className:"size-18px"}):void 0,C=t?n:o?o.name+(g?` (${g})`:""):"全部",[w,E]=f.useState(false),M=x(bc,{open:w,onOpenChange:E,placement:"bottomLeft",getPopupContainer:l,menu:{items:d,style:{...gq,border:`1px solid ${Qu()}`},selectedKeys:[m]},children:x(ht,{icon:S,className:"gap-4px",css:[w&&Xu,"",""],children:C})}),{popoverTrigger:T,filterInput:A}=FRe({externalFilterInput:e,onRefresh:i,getPopupContainer:l});return H("div",{ref:s,className:"inline-flex items-center gap-x-8px",children:[!u&&M,u?H(ht,{onClick:p,className:"gap-0",disabled:!(t||o),children:[x(zy,{className:"mr-5px size-14px"}),x("span",{children:"清除"})]}):(t||o)&&H(ht,{onClick:p,className:"gap-0",children:[x(zy,{className:"mr-5px size-14px"}),x("span",{children:"清除"})]}),T,e&&A,x(Kg,{})]})}function qRe(){const e=mN(nt.DynamicFeed),{menuItems:t,selectedKey:n}=Fq("sidebar"),{menuRef:r,revealSelected:o}=aq(t,n),{recSharedEmitter:i}=ns();if(ao(i,"dynamic-feed:clear",()=>{o(Yp);}),!!e)return H(_e,{children:[x(vc,{ref:r,items:t,selectedKeys:[n],mode:"inline",inlineIndent:10}),sq]})}function PN(e=tn){const t=Gr(e);return {upMid:t.upMid,groupId:t.selectedGroupId,filterText:t.filterText,dynamicFeedVideoType:t.dynamicFeedVideoType,hideChargeOnlyVideos:t.hideChargeOnlyVideos,filterMinDuration:t.filterMinDuration,filterMinDurationValue:t.filterMinDurationValue,selectedKey:t.selectedKey,viewingAll:t.viewingAll,viewingSomeUp:t.viewingSomeUp,viewingSomeGroup:t.viewingSomeGroup,addSeparators:t.addSeparators,showLiveInDynamicFeed:at.dynamicFeed.showLive,videoOnly:at.dynamicFeed.videoOnly,whenViewAllEnableHideSomeContents:at.dynamicFeed.whenViewAll.enableHideSomeContents,whenViewAllHideIds:new Set(at.dynamicFeed.whenViewAll.hideIds),advancedFilter:at.dynamicFeed.advancedFilter,filterCacheEnabled:!!t.upMid&&at.dynamicFeed.__internal.cacheAllItemsEntry&&at.dynamicFeed.__internal.cacheAllItemsUpMids.includes(t.upMid.toString()),forceUseMergeTime:!!t.selectedGroup&&at.dynamicFeed.followGroup.forceUseMergeTimelineIds.includes(t.selectedGroup.tagid),startingOffset:aTe,minId:PB(gM)?BigInt(gM):void 0,minTs:PB(gB)?Number(gB):void 0}}function PB(e){return !!e&&/^\d+$/.test(e)}const KRe=po.extend("modules:rec-services:dynamic-feed");class ES extends il{constructor(t){super(ES.PAGE_SIZE),this.config=t,this.config.showLiveInDynamicFeed&&!this.upMid&&this.groupId===void 0&&!this.filterText&&this.dynamicFeedVideoType===Ys.All&&this.filterMinDuration===Tu.All&&(this.liveRecService=new Xg(true)),this.config.startingOffset&&(this.offset=this.config.startingOffset);}static PAGE_SIZE=15;tabbarView=x(GRe,{});sidebarView=x(qRe,{});hasMoreExceptQueue=true;get hasMore(){return this.qs.bufferQueue.length||this.liveRecService?.hasMore?true:this.viewingSomeGroup&&this.groupMergeTimelineService?this.groupMergeTimelineService.hasMore:!!this.hasMoreExceptQueue}async shouldReduceMinCount(){return this.viewingAll,this.viewingSomeGroup?(await this.loadGroupMids(),!this.groupMergeTimelineService):!!(this.filterText||this.dynamicFeedVideoType===Ys.DynamicOnly||this.filterMinDuration!==Tu.All)}get upMid(){return this.config.upMid}get groupId(){return this.config.groupId}get filterText(){return this.config.filterText}get dynamicFeedVideoType(){return this.config.dynamicFeedVideoType}get hideChargeOnlyVideos(){return this.config.hideChargeOnlyVideos}get filterMinDuration(){return this.config.filterMinDuration}get filterMinDurationValue(){return this.config.filterMinDurationValue}get viewingSomeUp(){return this.config.viewingSomeUp}get viewingSomeGroup(){return this.config.viewingSomeGroup}shouldEnableMergeTimeline(t){return this.config.forceUseMergeTime||t>0&&t<=Ba.ENABLE_MERGE_TIMELINE_UPMID_COUNT_THRESHOLD}groupMergeTimelineService;groupMids=new Set;groupMidsLoaded=false;async loadGroupMids(){if(this.groupId!==void 0&&!this.groupMidsLoaded)try{const t=await hM(this.groupId);this.groupMids=new Set(t),this.shouldEnableMergeTimeline(t.length)&&(this.groupMergeTimelineService=new Ba(t.map(n=>n.toString()),this.config.videoOnly));}finally{this.groupMidsLoaded=true;}}get viewingAll(){return this.config.viewingAll}viewingAllHideMids=new Set;viewingAllHideMidsLoaded=false;async loadViewingAllHideMids(){if(!this.viewingAll||!this.config.whenViewAllEnableHideSomeContents||!this.config.whenViewAllHideIds.size||this.viewingAllHideMidsLoaded)return;const t=Array.from(this.config.whenViewAllHideIds).filter(i=>i.startsWith(Vf)).map(i=>i.slice(Vf.length)),n=Array.from(this.config.whenViewAllHideIds).filter(i=>i.startsWith(Fu)).map(i=>i.slice(Fu.length)),r=this.viewingAllHideMids;t.forEach(i=>r.add(i)),(await ac(n,i=>hM(i),3)).flat().forEach(i=>r.add(i.toString())),this.viewingAllHideMidsLoaded=true;}async fetchMore(t){const n=await this._fetchMore(t);return this.handleAddSeparators(n)}liveRecService;_queueForFilterCache;offset="";page=0;async _fetchMore(t){if(this.liveRecService?.hasMore)return (await this.liveRecService.loadMore(t)||[]).filter(p=>p.api!==Ze.Separator);let n;this.viewingSomeGroup&&await this.loadGroupMids(),this.viewingAll&&(await this.loadViewingAllHideMids(),KRe("viewingAll: hide-mids = %o",this.viewingAllHideMids));const r=!!(this.upMid&&this.filterText&&this.config.filterCacheEnabled&&await wS(this.upMid)),o=r&&this.config.advancedFilter,i=o?wq((this.filterText||"").toLowerCase()):void 0;if(r)this._queueForFilterCache||(await _Re(this.upMid),this._queueForFilterCache=new pS(20),this._queueForFilterCache.bufferQueue=(await t1.get(this.upMid)||[]).filter(m=>{const p=Th(m);if(!p)return  false;const g=p.title;return l({filterText:this.filterText,title:g,useAdvancedFilter:o,useAdvancedFilterParsed:i})})),n=this._queueForFilterCache.sliceFromQueue(this.page+1)||[],this.page++,this.hasMoreExceptQueue=!!this._queueForFilterCache.bufferQueue.length;else if(this.viewingSomeGroup&&this.groupMergeTimelineService)n=await this.groupMergeTimelineService.loadMore(t);else {const m=await Qg({videoOnly:this.config.videoOnly,abortSignal:t,page:this.page+1,offset:this.offset,upMid:this.upMid});if(this.page++,this.hasMoreExceptQueue=m.has_more,this.offset=m.offset,n=m.items,this.config.minId){const p=this.config.minId,g=n.findIndex(b=>BigInt(b.id_str)<=p);g!==-1&&(this.hasMoreExceptQueue=false,n=n.slice(0,g+1));}if(this.config.minTs){const p=this.config.minTs,g=n.findIndex(b=>b.modules.module_author.pub_ts<=p);g!==-1&&(this.hasMoreExceptQueue=false,n=n.slice(0,g+1));}}const s=n.filter(m=>{if(!this.viewingSomeGroup||this.groupMergeTimelineService||!this.groupMids.size)return  true;const p=m.modules.module_author.mid;return this.groupMids.has(p)}).filter(m=>{if(this.dynamicFeedVideoType===Ys.All)return  true;const p=Th(m);if(!p)return  false;const g=p.badge.text;return this.dynamicFeedVideoType===Ys.DynamicOnly?g===bs.Dynamic:this.dynamicFeedVideoType===Ys.UploadOnly?g===bs.Upload||g===bs.ChargeOnly:false}).filter(m=>{if(!this.hideChargeOnlyVideos)return  true;const p=Th(m);return p?!(p.badge.text===bs.ChargeOnly):true}).filter(m=>{if(this.filterMinDuration===Tu.All)return  true;const p=Th(m);return p?Kp(p.duration_text)>=this.filterMinDurationValue:false}).filter(m=>{if(!this.filterText)return  true;const p=Th(m);if(!p)return  false;const g=p.title||"";return l({filterText:this.filterText,title:g,useAdvancedFilter:o,useAdvancedFilterParsed:i})}).filter(m=>{if(this.config.selectedKey!==Yp)return  true;const p=this.viewingAllHideMids;if(!p.size)return  true;const g=m.modules.module_author.mid;return !p.has(g.toString())}).map(m=>({...m,api:Ze.DynamicFeed,uniqId:`${Ze.DynamicFeed}:${m.id_str||crypto.randomUUID()}`,groupId:this.viewingSomeGroup?this.groupId:void 0}));function l({title:m,filterText:p,useAdvancedFilter:g,useAdvancedFilterParsed:b}){return m=m.toLowerCase(),p=p.toLowerCase(),g?(b?.includes??[]).every(C=>m.includes(C))&&(b?.excludes??[]).every(C=>!m.includes(C)):m.includes(p)}const{upMid:u,upName:d}=tn;if(Wa&&u&&d&&d===u.toString()&&s[0]){const m=s[0].modules.module_author.name,p=s[0].modules.module_author.face;tn.upName=m,tn.upFace=p;}if(this.viewingSomeGroup&&tn.groups.length){const m=tn.groups.find(p=>p.tagid===this.groupId);m&&(m.count=this.groupMids.size);}return s}separatorsConfig={today:{added:false,content:"今日",getInsertIndex:YRe},earlier:{added:false,content:"更早",getInsertIndex:Hq(-1/0,Yn().startOf("day").unix())}};handleAddSeparators(t){if(!this.config.addSeparators)return t;const n=t;{const r=this.separatorsConfig.today,{getInsertIndex:o,content:i,added:s}=r;if(!s){const l=o(t);l!==-1&&(n.splice(l,0,{api:Ze.Separator,uniqId:`${Ze.DynamicFeed}:separator:today`,content:i}),r.added=true);}}{const r=this.separatorsConfig.earlier,{getInsertIndex:o,content:i,added:s}=r;if(!s){const l=o(t);l!==-1&&(n.splice(l,0,{api:Ze.Separator,uniqId:`${Ze.DynamicFeed}:separator:earlier`,content:i}),r.added=true);}}return n}}function Hq(e,t){return n=>n.findIndex(r=>{if(r.api!==Ze.DynamicFeed)return  false;const o=r.modules.module_author.pub_ts;return o>=e&&o<t})}function YRe(e){const t=e.findIndex(r=>r.api===Ze.Live&&r.live_status===Ks.Streaming);return t!==-1?t:Hq(Yn().startOf("day").unix(),Yn().endOf("day").unix())(e)}class Vq{constructor(t,n,r){this.collectionId=t,this.addSeparator=n,this.itemsOrder=r;}get hasMore(){return this.addSeparator&&!this.separatorAdded||!this.loaded?true:!!this.bufferQueue.length}loaded=false;bufferQueue=[];separatorAdded=false;get separator(){return {api:Ze.Separator,uniqId:`${Ze.Fav}:collection:separator:${this.collectionId}`,content:x(XRe,{service:this})}}state=zn({firstBvid:void 0,info:void 0});async loadMore(t){if(!this.hasMore)return;if(this.addSeparator&&!this.separatorAdded)return this.separatorAdded=true,[this.separator];if(!this.loaded){const r=await uMe(this.collectionId,1),o=r?.medias||[],i=r?.info;await c1(()=>this.loadUserAvatarFromSpaceAccInfo(o,t));let s=o.map(u=>({...u,api:Ze.Fav,uniqId:`${Ze.Fav}:collection:${this.collectionId}:${u.bvid}`,collection:r.info,from:"fav-collection"}));[Ot.PubTimeDesc,Ot.PubTimeAsc,Ot.Shuffle].includes(this.itemsOrder)&&(s=dM(s,Ot.PubTimeDesc),s.forEach((u,d,m)=>{u.vol=m.length-d,u.volTooltip=H(_e,{children:["按投稿时间 Vol.",u.vol]});})),s=dM(s,this.itemsOrder),this.bufferQueue=s,this.loaded=true,this.state.firstBvid=s[0]?.bvid,this.state.info=wf(i),pn.selectedFavCollectionDetailInfo=wf(i);}this.itemsOrder===Ot.Shuffle&&(this.bufferQueue=wi(this.bufferQueue));let n;return [n,this.bufferQueue]=[this.bufferQueue.slice(0,La),this.bufferQueue.slice(La)],n}async loadUserAvatarFromSpaceAccInfo(t,n){if(!t.length)return;const r=pQ(t,s=>s.upper.mid),o=Object.entries(r).map(([s,l])=>({mid:s,count:l})),i=Ia(o,[s=>s.count],["desc"]).slice(0,3).map(s=>s.mid);await Promise.all(i.map(async s=>{if(n?.aborted)return;const u=(await CN(s))?.face;u&&t.filter(d=>d.upper.mid.toString()===s).forEach(d=>{d.upper.face||=u;});}));}get extraTabbarView(){return x(LN,{})}}function XRe({service:e}){const{firstBvid:t,info:n}=gt(e.state);return H(_e,{children:[x(sn,{title:H(_e,{children:["UP: ",n?.upper.name," ",x("br",{}),"简介: ",n?.intro||"无"]}),children:H(Qp,{href:uG(e.collectionId),className:up,children:[x(Oo,{className:"size-16px"}),"去个人空间查看合集: ",n?.title]})}),t&&H(Qp,{href:J3e(t),className:up,children:[x(Ng,{className:"size-16px"}),"播放全部"]})]})}class QRe{constructor(t,n,r){if(this.addSeparator=t,this.itemsOrder=n,this.excludedFolderIds=r,![Ot.Initial,Ot.Shuffle].includes(this.itemsOrder))throw new Error("invalid items order")}get useShuffle(){return this.itemsOrder===Ot.Shuffle}shuffleBufferQueue=[];get hasMoreInService(){return this.serviceCreated?this.allServices.some(t=>t.hasMore):true}get hasMore(){return this.useShuffle?!!this.shuffleBufferQueue.length||this.hasMoreInService:this.hasMoreInService}get extraTabbarView(){return H(_e,{children:[x(LN,{}),x(OAe,{allFavFolderServices:this.allFolderServices,state:this.state})]})}async loadMore(t){if(this.serviceCreated||await this.createServices(),!this.hasMore)return;if(!this.useShuffle)return this.allServices.find(o=>o.hasMore)?.loadMore(t);if(this.shuffleBufferQueue.length<La)for(;this.hasMoreInService&&this.shuffleBufferQueue.length<La*3;){const i=this.allServices.filter(u=>u.hasMore),s=wi(i).slice(0,6),l=(await ac(s,async u=>await u.loadMore(t)||[],2)).flat().filter(u=>u.api!==Ze.Separator);this.shuffleBufferQueue=wi([...this.shuffleBufferQueue,...wi(l)]);}const n=this.shuffleBufferQueue.slice(0,La);return this.shuffleBufferQueue=this.shuffleBufferQueue.slice(La),n}allFolderServices=[];state=zn({totalCountInFavFolders:0});serviceCreated=false;allServices=[];async createServices(){await BN();const{folders:t,collections:n}=wf(Gr(pn));this.allFolderServices=t.map(r=>new Cf(r)),this.state.totalCountInFavFolders=t.filter(r=>!this.excludedFolderIds.includes(r.id.toString())).reduce((r,o)=>r+o.media_count,0);{const r=t.filter(i=>!this.excludedFolderIds.includes(i.id.toString()));let o=this.itemsOrder;o===Ot.Initial&&(o=Ot.FavTimeDesc),this.allServices.push(...r.map(i=>new Rq(i.id,this.addSeparator,o)));}this.allServices.push(...n.map(r=>new Vq(r.id,this.addSeparator,this.itemsOrder))),this.serviceCreated=true;}}function IN(){const e=Gr(pn);return {selectedKey:e.selectedKey,viewingAll:e.viewingAll,viewingSomeFolder:e.viewingSomeFolder,viewingSomeCollection:e.viewingSomeCollection,itemsOrder:_N(e.selectedKey,e.savedOrderMap),selectedFavFolderId:e.selectedFavFolderId,selectedFavCollectionId:e.selectedFavCollectionId,addSeparator:at.fav.addSeparator,excludedFolderIds:at.fav.excludedFolderIds}}class $S extends il{constructor(t){super($S.PAGE_SIZE),this.config=t;const{viewingAll:n,viewingSomeFolder:r,viewingSomeCollection:o}=this.config;if(n)this.innerService=new QRe(this.config.addSeparator,this.config.itemsOrder,this.config.excludedFolderIds);else if(r)this.innerService=new Rq(this.config.selectedFavFolderId,this.config.addSeparator,this.config.itemsOrder);else if(o)this.innerService=new Vq(this.config.selectedFavCollectionId,this.config.addSeparator,this.config.itemsOrder);else throw new Error("unexpected case!")}static PAGE_SIZE=La;innerService;get tabbarView(){const{tabbarView:t,extraTabbarView:n}=this.innerService;return t||x(IAe,{extraContent:n})}sidebarView=x(DAe,{});get hasMoreExceptQueue(){return this.innerService.hasMore}fetchMore(t){return this.innerService.loadMore(t)}decreaseTotal(){this.config.viewingAll?this.innerService.state.totalCountInFavFolders-=1:this.config.viewingSomeFolder&&this.config.selectedFavFolderId?lK(this.config.selectedFavFolderId,t=>t-1):this.config.viewingSomeCollection&&this.config.selectedFavCollectionId;}}async function ON({asc:e=false,searchText:t="",abortSignal:n,extraParams:r}={}){const i=(await Yt.get("/x/v2/history/toview/web",{signal:n,params:await J1({asc:e,key:t,viewed:0,web_location:333.881,...r})})).data;return Vn(i)?{total:i.data.count,items:ZRe(i.data.list||[])}:(ti("getAllWatchlaterItems error %s, fulljson %o",i.message,i),{err:i.message})}function ZRe(e){return e.filter(t=>!(t.title==="以下为更早添加的视频"&&t.aid===0&&t.bvid===""&&t.add_at===0))}async function JRe(e){const t=new FormData;t.append("resources",e.join(",")),t.append("csrf",Cc());const n=await J1({}),o=(await Yt.post("/x/v2/history/toview/v2/dels",t,{params:n})).data;return Vn(o)?true:(Jt(o?.message||"出错了"),false)}const jq=()=>Yn().subtract(2,"days").unix(),Uq="最近 48 小时内",EM={api:Ze.Separator,uniqId:`${Ze.Watchlater}:separator:recent`,content:H(_e,{children:["近期",x(vr,{children:Uq})]})},$M={api:Ze.Separator,uniqId:`${Ze.Watchlater}:separator:earlier`,content:"更早"},dp=zn({searchText:void 0});function eNe({service:e}){const{watchlaterAddSeparator:t,watchlaterItemsOrder:n,watchlaterUseNormalVideoUrl:r}=Ft(),o=go(),{searchText:i}=gt(dp,{sync:true}),s=HTe(),{recSharedEmitter:l}=ns();ja(()=>{(async()=>(await gn(100),o()))();},[t,n,r]);const{total:u}=gt(e.state),d=i?`共 ${u} 条搜索结果`:`共 ${u} 个视频`,m=typeof u=="number"&&x(Cs,{color:"success",style:{marginRight:0,marginTop:1,cursor:"pointer"},title:d,onClick:()=>{Jt(`稍后再看: ${d}`);},children:u});return H("div",{className:"flex items-center gap-x-12px",children:[x(nNe,{}),x(Ji.Search,{allowClear:true,placeholder:"搜索稍后再看",style:{width:180},value:i,onChange:p=>dp.searchText=p.target.value,onSearch:p=>{dp.searchText=p,o();}}),m,s&&x(sn,{arrow:false,title:"移除稍后再看 (多选)",children:x(ht,{className:"icon-only-round-button",onClick:()=>sNe(l),children:x(cm,{})})}),x(Kg,{})]})}const Wq={[Eo.AddTimeDesc]:{icon:x(q3,{}),label:"最近添加",helpInfo:"按添加时间倒序"},[Eo.AddTimeAsc]:{icon:x(G3,{}),label:"最早添加",helpInfo:"按添加时间增序"},[Eo.Shuffle]:{icon:x(vU,{}),label:"随机顺序",helpInfo:`随机但不包括近期添加的稍后再看, 近期指: ${Uq}`}},Gq=Object.values(Eo),tNe=x("div",{className:"grid grid-cols-[repeat(2,max-content)] gap-x-1 gap-y-0 line-height-normal",children:Gq.map(e=>{const{icon:t,label:n,helpInfo:r}=Wq[e];return H(_e,{children:[H("div",{className:"flex-center gap-x-1",children:[t,n,": "]}),x("div",{children:r})]})})});function nNe(){const e=go(),{ref:t,getPopupContainer:n}=Ec(),{watchlaterItemsOrder:r}=Ft(),{searchText:o}=gt(dp),i=!!o;return x(MN,{disabled:i,value:i?Eo.AddTimeDesc:r,onChange:s=>{at.watchlaterItemsOrder=s,e();},list:Gq,listDisplayConfig:Wq,$ref:t,dropdownProps:{getPopupContainer:n},extraHelpInfo:tNe})}const Hu=zn({updatedAt:0,bvidSet:Or()});function rNe(e){const t=gt(Hu).bvidSet;return !!e&&t.has(e)}function qq(e){Hu.updatedAt=Date.now(),Hu.bvidSet=Or(e);}function oNe(e,t){Hu.updatedAt&&Hu.bvidSet.add(t);}async function iNe(){if(!eS()||!oi())return;const{items:e=[]}=await ON();e.length&&qq(e.map(t=>t.bvid));}Ka&&(async()=>(await rS(),await cq(iNe,{retries:3,onFailedAttempt(e){ti(`Try updateWatchlaterState ${e.attemptNumber} failed. There are ${e.retriesLeft} retries left`);}})))();async function sNe(e){const t=bS().map(s=>({item:s,cardData:Ju(s)})).filter(s=>s.cardData.avid).map(s=>[s.cardData.avid,s.item.uniqId,s.cardData.title]).filter(Boolean),n=t.map(s=>s[0]),r=t.map(s=>s[1]),o=t.map(s=>s[2]);if(!n.length)return Jt("没有选中的视频");await JRe(n)&&e.emit("remove-cards",[r,o]);}class Zp extends il{constructor(t,n,r,o){super(Zp.PAGE_SIZE),this.searchText=o,this.innerService=t===Eo.Shuffle&&!this.searchText?new IB(n,r):new aNe(t,n,this.searchText);}static PAGE_SIZE=10;sidebarView=void 0;innerService;get hasMoreExceptQueue(){return this.innerService.hasMore}fetchMore(t){return this.innerService.loadMore(t)}get tabbarView(){return x(eNe,{service:this})}get state(){return this.innerService.state}decreaseTotal(){this.innerService.state.total!==void 0&&this.innerService.state.total--;}getServiceSnapshot(){return {bvidIndexMap:this.innerService instanceof IB?this.innerService.currentBvidIndexMap:void 0}}}function Kq(e){return {...e,api:Ze.Watchlater,uniqId:`${Ze.Watchlater}:${e.bvid}`}}function Yq(e){throw Jt(`获取稍后再看失败: ${e}`),new Error(`获取稍后再看失败: ${e}`,{cause:e})}class IB{constructor(t,n){this.addSeparator=t,n?.size?(this.keepOrder=true,this.prevBvidIndexMap=n):this.keepOrder=false;}hasMore=true;state=zn({total:void 0});keepOrder;prevBvidIndexMap;async loadMore(t){if(!this.hasMore)return;const n=await this.fetch(t);return this.hasMore=false,n}currentBvidIndexMap;async fetch(t){const{items:n=[],err:r}=await ON({asc:false,searchText:void 0,abortSignal:t});r!==void 0&&Yq(r),qq(n.map(u=>u.bvid).filter(Boolean));const o=n.map(Kq),i=jq(),s=o.findIndex(u=>u.add_at<i);let l=o;if(s!==-1){const u=o.slice(0,s);let d=o.slice(s);this.keepOrder&&this.prevBvidIndexMap?.size?d=Ia(d,[m=>this.prevBvidIndexMap?.get(m.bvid)??-1],["asc"]):d=wi(d),l=[!!u.length&&this.addSeparator&&EM,...u,!!d.length&&this.addSeparator&&$M,...d].filter(Boolean);}return this.state.total=n.length,this.currentBvidIndexMap=new Map(l.filter(u=>u.api!==Ze.Separator).map((u,d)=>[u.bvid,d])),l}}class aNe{constructor(t,n,r){this.order=t,this.addSeparator=n,this.searchText=r,this.searchText||Nr(t!==Eo.Shuffle,"shuffle not supported in NormalOrderService");}firstPageLoaded=false;state=zn({total:void 0});hasMore=true;page=1;async loadMore(){if(!this.hasMore)return;const t=await ON({asc:this.order===Eo.AddTimeAsc,searchText:this.searchText,extraParams:{need_split:"true",ps:20,pn:this.page}});if(t.err!==void 0){this.hasMore=false,Yq(t.err);return}const{items:n,total:r}=t,o=Math.ceil(r/20);this.firstPageLoaded=true,this.state.total=t.total,this.hasMore=this.page<o,this.page++,n.forEach(s=>{s.bvid&&oNe("add",s.bvid);});const i=n.map(Kq);return this.insertSeparator(i)}recentSeparatorInserted=false;earlierSeparatorInserted=false;insertSeparator(t){if(!this.addSeparator)return t;let n=[...t];const r=jq(),o=t.some(s=>s.add_at<r),i=t.some(s=>s.add_at>=r);if(this.order===Eo.AddTimeAsc){if(!this.earlierSeparatorInserted&&o&&(n=[$M,...n],this.earlierSeparatorInserted=true),!this.recentSeparatorInserted&&i){const s=n.findIndex(l=>l.api===Ze.Watchlater&&l.add_at>=r);n=[...n.slice(0,s),EM,...n.slice(s)],this.recentSeparatorInserted=true;}}else if(!this.recentSeparatorInserted&&i&&(n=[EM,...t],this.recentSeparatorInserted=true),!this.earlierSeparatorInserted&&o){const s=n.findIndex(l=>l.api===Ze.Watchlater&&l.add_at<r);n=[...n.slice(0,s),$M,...n.slice(s)],this.earlierSeparatorInserted=true;}return n}}function lNe(){return {addOtherTabContents:tS().appRecommend.addOtherTabContents}}const Xq=e=>x(It,{configPath:"appRecommend.addOtherTabContents",label:"显示来自其他 Tab 的内容",tooltip:H(_e,{children:["显示来自其他 Tab 的内容 ",x("br",{}),"如动态 / 收藏 / 稍后再看 ",x("br",{}),"但是: 刷新时间会更长"]}),extraAction:async()=>{await gn(100),e?.();}});function cNe(){const e=go(),{hidingTabKeys:t}=Ft(),n=t.includes(nt.Liked);return H("div",{className:"flex items-center gap-x-10px",children:[Xq(e),n&&x(sn,{title:"查看「我」点赞的视频",children:x("a",{href:`/?${mq.Tab}=${nt.Liked}`,target:"_blank",children:x(pU,{className:"size-18px align-top"})})})]})}class xf extends il{constructor(t){super(xf.PAGE_SIZE),this.config=t,this.innerService=new uNe,this.allServices=[this.innerService],this.initOtherTabServices();}static PAGE_SIZE=20;tabbarView=x(cNe,{});sidebarView=void 0;innerService;allServices=[];otherTabServices=[];initOtherTabServices(){if(!eS()||!this.config.addOtherTabContents)return;let t,n,r;{const s=_G();s.upMid=void 0,s.selectedGroupId=void 0;const l=PN(s);Object.assign(l,{showLiveInDynamicFeed:true,whenViewAllEnableHideSomeContents:false,filterCacheEnabled:false}),t=new ES(l);}{const s=Object.assign(IN(),{selectedKey:"all",viewingAll:true,viewingSomeFolder:false,viewingSomeCollection:false,itemsOrder:Ot.Shuffle,selectedFavFolderId:void 0,selectedFavCollectionId:void 0,addSeparator:false});n=new $S(s);}r=new Zp(Eo.AddTimeDesc,false),this.otherTabServices=[t,n,r];const o=[],i=7/3;o.push(...this.otherTabServices),KQ(Math.round(i*this.otherTabServices.length),()=>o.push(this.innerService)),this.allServices=wi(o);}get hasMore(){return !!this.qs.bufferQueue.length||this.innerService.hasMore||this.otherTabServices.some(t=>t.hasMore)}hasMoreExceptQueue=true;fetchMore(t){return this.config.addOtherTabContents?this._fetchWithOtherTabsChecked(t):this._fetchFromApi(t,2)}async _fetchWithOtherTabsChecked(t){let n=[];for(;this.hasMore&&n.length<xf.PAGE_SIZE*3;){const r=this.allServices.filter(s=>s.hasMore);if(!r.length)break;const o=wi(r).slice(0,3),i=(await Promise.all(o.map(async s=>await s.loadMore(t)||[]))).flat().filter(s=>s.api!==Ze.Separator);n.push(...i),n=wi(n);}return n}_fetchFromApi(t,n){return this.innerService.getRecommendTimes(t,n)}async preloadTimesFromApiIfNeeded(t,n){this.qs.bufferQueue.length<xf.PAGE_SIZE&&this.qs.bufferQueue.push(...await this._fetchFromApi(t,n));}}class uNe{static PAGE_SIZE=16;hasMore=true;async getRecommend(){const t=await Og.get(`${Y9}/x/v2/feed/index`,{timeout:2e4,responseType:"json",params:{build:"1",mobi_app:"iphone",device:"pad",idx:Math.floor(Date.now()/1e3)+yQ(1e3)}}),n=t.data;if(!n.data)throw new Error("Request fail with none invalid json",{cause:{type:"invalid-json",statusCode:t.status,json:n}});return n?.data?.items||[]}loadMore(t,n=2){return this.getRecommendTimes(t,n)}async getRecommendTimes(t,n){let r=(await Promise.all(d9(n).map(()=>this.getRecommend()))).flat();return r=r.filter(i=>!(i.card_goto?.includes("ad")||i.goto?.includes("ad")||i.ad_info||i.card_goto==="banner"||i.goto==="av"&&i.player_args===void 0)),r=mc(r,i=>i.param),r.map(i=>({...i,api:Ze.AppRecommend,uniqId:`${Ze.AppRecommend}:${i.param}`}))}}async function dNe(e,t){const{bvid:n,goto:r,recommendReason:o}=t,i=r==="av";return dc(e)&&i&&!!n&&RN(o)?(await hG(n))?.pubdate:void 0}async function fNe(e=20,t=1){const n=oi();return (await Og.get(`https://app.bilibili.com/x/v2/space/likearc?mid=${n}`,{responseType:"json",params:{...Iwe,vmid:n,ps:e,pn:t}})).data}function mNe({service:e}){const{count:t}=e.useStore();return Number.isFinite(t)?H(_e,{children:[x(sn,{title:`共 ${t} 个视频`,children:x(Cs,{color:"success",variant:"outlined",className:"cursor-pointer",children:t})}),x(Kg,{})]}):null}class n1 extends il{static PAGE_SIZE=20;constructor(){super(n1.PAGE_SIZE);}tabbarView=x(mNe,{service:this});sidebarView;get hasMoreExceptQueue(){return this.errorJson?false:n1.PAGE_SIZE*this.pn<this.store.count}pn=0;errorJson=void 0;store=zn({count:1/0});useStore=()=>gt(this.store);showErrorNotification(t){vs.error({key:"LikedRecService:error",title:"获取喜欢列表失败",...t});}async fetchMore(t){if(!at.accessKey)throw new PR;vs.destroy("LikedRecService:error");const n=await fNe(this.qs.ps,this.pn+1);if(!Vn(n))throw this.errorJson=n,this.showErrorNotification({title:"获取喜欢列表失败",description:n.message}),new Error("Request fail with none invalid json",{cause:n});const{count:r,item:o}=n.data,[i,s]=await c1(()=>Promise.all(o.map(u=>u.state?hG(aN(u.param)):void 0))),l=o.map((u,d)=>({...u,api:Ze.Liked,uniqId:`${Ze.Liked}:${u.param}`,videoDetail:s?.[d]}));return this.pn++,this.store.count=r,l}}const Qq=po.extend("modules:rec-services:pc");class Au extends il{constructor(t){super(Au.PAGE_SIZE),this.isKeepFollowOnly=t;}static PAGE_SIZE=30;tabbarView=void 0;sidebarView=void 0;hasMoreExceptQueue=true;fetchMore(t){const n=this.isKeepFollowOnly?5:2;return this.getRecommendTimes(t,n)}async preloadTimesFromApiIfNeeded(t,n){this.qs.bufferQueue.length<Au.PAGE_SIZE&&this.qs.bufferQueue.push(...await this.getRecommendTimes(t,n));}async preloadPcInitialRecItems(t){const n=await hNe(t);this.qs.bufferQueue.push(...n);}getRecommendTimes=async(t,n)=>{const r=(await Promise.all(d9(n).map(()=>this.getRecommend(t)))).flat();return Zq(r)};page=0;getRecommend=async t=>{const n=++this.page,r="/x/web-interface/wbi/index/top/feed/rcmd",o={fresh_type:8,fresh_idx_1h:n,fresh_idx:n,ps:Au.PAGE_SIZE,web_location:1430650,feed_version:"V8",homepage_ver:1},s=(await Yt.get(r,{signal:t,params:o})).data;return !Vn(s)&&s.code===-62011&&s.message==="暂时没有更多内容了"?(this.hasMoreExceptQueue=false,[]):(s.data?.item||Jt(s.message||"API 请求没有返回结果"),s.data?.item||[])}}function Zq(e){const t=new Set([Da.AV,Da.Live,Da.Ad]);e.forEach(o=>{t.has(o.goto)||Qq("uknown goto from API: %s %o",o.goto,o);});const n=new Set([Da.AV]);return e=e.filter(o=>n.has(o.goto)),e=mc(e,o=>o.id),e.forEach(o=>{o.rcmd_reason?.reason_type===1&&(o.rcmd_reason.content||="已关注");}),e.map(o=>({...o,uniqId:`${Ze.PcRecommend}:${o.bvid||o.room_info?.room_id||crypto.randomUUID()}`,api:Ze.PcRecommend}))}async function hNe(e){const n=(await dm(()=>{const[i,s]=Pu(()=>unsafeWindow.__pinia);return s},{interval:100,timeout:1e3,abortSignal:e}))?.feed?.data?.recommend?.item||[];Qq("initial rec rawList: %o",n);const[r,o]=Pu(()=>{const i=Zq(n);return i.forEach(s=>Ju(s)),i});return o||[]}const pNe=[nt.KeepFollowOnly,nt.PcRecommend,nt.AppRecommend];function Jp(e){return pNe.includes(e)}const gNe={[nt.AppRecommend]:()=>new xf(lNe()),[nt.PcRecommend]:()=>new Au(false),[nt.KeepFollowOnly]:()=>new Au(true),[nt.DynamicFeed]:()=>new ES(PN()),[nt.Watchlater]:({existingService:e})=>{const{watchlaterAddSeparator:t,watchlaterItemsOrder:n}=at,r=e&&e instanceof Zp?e.getServiceSnapshot().bvidIndexMap:void 0;return new Zp(n,t,r,Gr(dp).searchText)},[nt.Fav]:()=>new $S(IN()),[nt.Hot]:()=>new zTe,[nt.Live]:()=>new Xg,[nt.SpaceUpload]:()=>new TN(Dq()),[nt.Liked]:()=>new n1};function Jq(e,t){const n=e[t];return Nr(n,`serviceRegistry[tab=${t}] should not be nil`),n}const eK=new uo;class tK{constructor(t){this.insideModal=t;}recSharedEmitter=new uo;serviceRegistry={};serviceQueueMap={};store=zn({refreshing:false,refreshingTab:void 0,tabbarView:void 0,sidebarView:void 0,serviceQueueStateMap:{}});get refreshing(){return this.store.refreshing}get refreshingTab(){return this.store.refreshingTab}useStore=()=>gt(this.store);setStore=t=>{const n=["tabbarView","sidebarView"];for(const r of n){const o=t[r];typeof o=="object"&&o!==null&&(t[r]=W9(o));}Object.assign(this.store,t);};useTabServiceQueueState=t=>gt(this.store.serviceQueueStateMap)[t];getTabServiceQueueState=t=>Gr(this.store.serviceQueueStateMap)[t];setTabServiceQueueState=(t,n)=>{this.store.serviceQueueStateMap[t]=n;};_calcTabBackForwardStatus=(t,n)=>{if(!Jp(t)||!n||n.len<=1)return [false,false];const{len:r,cursor:o}=n;return [o>0,o<r-1]};getTabBackForwardStatus=t=>this._calcTabBackForwardStatus(t,this.getTabServiceQueueState(t));useTabBackForwardStatus=t=>{const n=this.useTabServiceQueueState(t);return f.useMemo(()=>this._calcTabBackForwardStatus(t,n),[t,n])}}const DN=f.createContext(new tK);function nK(...e){return Bg(()=>new tK(...e),[])}function ns(){return f.useContext(DN)}function go(){const{recSharedEmitter:e}=ns();return sS(t=>e.emit("refresh",t))}const Ol="size-16px",vNe={[Ot.Initial]:{icon:x(ICe,{className:Ol}),label:"初始顺序"},[Ot.Shuffle]:{icon:x(vU,{className:Ol}),label:"随机顺序"},[Ot.PubTimeDesc]:{icon:x(q3,{className:Ol}),label:"最新投稿"},[Ot.PubTimeAsc]:{icon:x(G3,{className:Ol}),label:"最早投稿"},[Ot.PlayCountDesc]:{icon:x(Ng,{className:Ol}),label:"最多播放"},[Ot.CollectCountDesc]:{icon:x(Bf,{className:X(Ol)}),label:"最多收藏"},[Ot.FavTimeDesc]:{icon:x(q3,{className:X(Ol)}),label:"最近收藏"},[Ot.FavTimeAsc]:{icon:x(G3,{className:X(Ol)}),label:"最早收藏"}},bNe={all:[Ot.Initial,Ot.Shuffle],"fav-folder":[Ot.FavTimeDesc,Ot.PubTimeDesc,Ot.PlayCountDesc,Ot.CollectCountDesc,"divider",Ot.FavTimeAsc,Ot.PubTimeAsc,"divider",Ot.Shuffle],"fav-collection":[Ot.Initial,Ot.PubTimeDesc,Ot.PlayCountDesc,Ot.CollectCountDesc,"divider",Ot.PubTimeAsc,"divider",Ot.Shuffle]};function rK(e){return e.split(":")[0]}function oK(e){const t=rK(e);return bNe[t]||Object.values(Ot)}function OB(e){const t=rK(e);return t==="fav-folder"?Ot.FavTimeDesc:t==="fav-collection"?Ot.PubTimeDesc:Ot.Initial}function _N(e,t){const n=oK(e).filter(o=>o!=="divider"),r=t.get(e)||OB(e);return n.includes(r)?r:OB(e)}function yNe(e,t){return f.useMemo(()=>_N(e,t),[t,e])}function LN(){const e=go(),{ref:t,getPopupContainer:n}=Ec(),{selectedKey:r,savedOrderMap:o}=gt(pn),i=yNe(r,o),s=f.useMemo(()=>oK(r),[r]);return x(MN,{value:i,onChange:async l=>{pn.savedOrderMap.set(r,l),await gn(100),e();},list:s,listDisplayConfig:vNe,$ref:t,dropdownProps:{getPopupContainer:n}})}const SNe=po.extend("modules:rec-services:fav:store");var r1=(e=>(e.CollectionIdFull="fav-collection-id",e.CollectionId="fav-cid",e.FolderIdFull="fav-folder-id",e.FolderId="fav-fid",e))(r1||{});const iK=e=>{if(!e)return;const t=Number(e);if(!Number.isNaN(t))return t},o1=new URLSearchParams(location.search),sK=iK(o1.get("fav-collection-id")??o1.get("fav-cid")),aK=iK(o1.get("fav-folder-id")??o1.get("fav-fid")),i1=Ka&&(typeof aK=="number"||typeof sK=="number"),pn=zn({folders:[],foldersUpdateAt:0,selectedFavFolderId:aK,get selectedFavFolder(){if(typeof this.selectedFavFolderId=="number")return this.folders.find(e=>e.id===this.selectedFavFolderId)},collections:[],collectionsUpdateAt:0,selectedFavCollectionId:sK,selectedFavCollectionDetailInfo:void 0,get selectedFavCollection(){if(typeof this.selectedFavCollectionId=="number")return this.collections.find(e=>e.id===this.selectedFavCollectionId)},get selectedKey(){let e,t;if(this.selectedFavFolderId!==void 0)e="fav-folder",t=this.selectedFavFolderId;else if(this.selectedFavCollectionId!==void 0)e="fav-collection",t=this.selectedFavCollectionId;else return "all";return `${e}:${t}`},get selectedLabel(){if(this.selectedFavFolder)return `${this.selectedFavFolder.title} (${this.selectedFavFolder.media_count})`;if(typeof this.selectedFavCollectionId=="number"){if(this.selectedFavCollection)return `${this.selectedFavCollection.title} (${this.selectedFavCollection.media_count})`;const e=this.selectedFavCollectionDetailInfo;return e?.id===this.selectedFavCollectionId?`${e.title} (${e.media_count})`:void 0}return "全部"},savedOrderMap:(await( _A("fav-saved-order"))).map,get usingShuffle(){return _N(this.selectedKey,this.savedOrderMap)===Ot.Shuffle},get viewingAll(){return this.selectedKey==="all"},get viewingSomeFolder(){return typeof this.selectedFavFolderId=="number"},get viewingSomeCollection(){return typeof this.selectedFavCollectionId=="number"}});function lK(e,t){const n=pn.folders.find(o=>o.id===e);if(!n)return;const r=typeof t=="function"?t(n.media_count):t;r!==n.media_count&&(n.media_count=r,SNe("update folder(id=%s title=%s) media_count to %s",n.id,n.title,r));}function BN(e=false){return Promise.all([kN(e),wNe(e)])}const CNe=el(async()=>{const e=await oMe();pn.folders=e,pn.foldersUpdateAt=Date.now();});async function kN(e=false){if(!e){const{folders:t,foldersUpdateAt:n}=pn;if(t.length&&n&&Date.now()-n<Qr("5min"))return}return CNe()}const xNe=el(async()=>{const e=await cMe();pn.collections=e,pn.collectionsUpdateAt=Date.now();});async function wNe(e=false){if(!e){const{collections:t,collectionsUpdateAt:n}=pn;if(t.length&&n&&Date.now()-n<Qr("5min"))return}return xNe()}i1&&PA(pn,"selectedLabel",()=>{pn.selectedLabel&&kR(pn.selectedLabel);});ENe();async function ENe(){if(!(Ka||cG)||i1)return;const e="fav-store",t=["selectedFavFolderId","selectedFavCollectionId","folders"],n=await GM.getValue(e);if(n)for(const o of t)Xi(n[o])||(pn[o]=n[o]);const r=NA(1);dV(pn,t,o=>{if(i1)return;const i=Nu(o,t);r(async()=>{await GM.setValue(e,i);});});}const bm={[nt.AppRecommend]:{icon:x(DCe,{className:"size-18px"}),label:"推荐",desc:"使用 Bilibili App 端推荐 API",anonymousUsage:true},[nt.PcRecommend]:{icon:x(_Ce,{className:"size-18px"}),label:"推荐",desc:"使用新版首页顶部推荐 API",anonymousUsage:true},[nt.KeepFollowOnly]:{icon:x(LCe,{className:"size-18px"}),label:"已关注",desc:"从PC端推荐中筛选出「已关注」,可能比较慢; 关注的UP更新在动态~"},[nt.DynamicFeed]:{icon:x(By,{className:"size-18px"}),label:"动态",desc:"视频投稿动态",swr:true},[nt.Watchlater]:{icon:x(ER,{className:"size-17px [&_.circle]:stroke-current"}),label:"稍后再看",desc:"「我」的稍后再看",swr:true},[nt.Fav]:{icon:x(Bf,{className:"mt--1px size-16px"}),label:"收藏",desc:"「我」的收藏",get swr(){return !pn.usingShuffle}},[nt.Hot]:{icon:x(kCe,{className:"size-16px"}),label:"热门",desc:"各个领域中新奇好玩的优质内容都在这里~",anonymousUsage:true,get swr(){return !iq()}},[nt.Live]:{icon:x(wR,{className:"size-16px"}),label:"直播",desc:"直播~",swr:true},[nt.SpaceUpload]:{icon:x(ky,{className:"size-16px"}),label:"投稿",desc:"UP 视频投稿",anonymousUsage:true,extraHelpInfo:H("div",{className:"ml-20px",children:["搜索词: 搜索相关作品 ",x("br",{}),"本地过滤词: 本地过滤搜索结果; 本地过滤词支持高级规则:",x("div",{className:"ml-20px",children:xq})]})},[nt.Liked]:{icon:x(pU,{className:"size-16px"}),label:"赞",desc:"「我」的点赞. 使用 App 端个人空间 API, 需要 access_key"}};function xi({tabKey:e,active:t,className:n}){const{icon:r}=bm[e],o=r.props,i={...o,className:or(o.className,n),active:e===nt.Live?t:void 0};return f.cloneElement(r,i)}const cK="你需要登录B站后使用该功能! 如已完成登录, 请刷新网页重试~";function uK(){return Jt(cK)}function $Ne({enabled:e,minIndex:t=0,maxIndex:n,gridRef:r,getScrollerRect:o,changeScrollY:i,videoCardEmitters:s,activeLargePreviewItemIndex:l}){const u=(A,I,N)=>Do(A,I,{enabled:e,...N}),[d,m]=f.useState(void 0),p=tt(()=>{if(typeof d!="number"||!r.current)return  false;const A=o(),I=r.current.querySelector(`.${Kl}.${X9}`)?.getBoundingClientRect();return !(!A||!I||I.top-A.top<-(A.height+I.height)||I.top-A.top>A.height*2+I.height)});function g(A){const I=M(d),N=I.getBoundingClientRect().left,P=F=>Math.abs(N-F)<1;{const F=dK(r.current),U=A==="down"?F:-F,W=M(d+U);if(W){const z=W.getBoundingClientRect().left;if(P(z))return U}}let O=0,D=I;const L=()=>A==="down"?D.nextElementSibling:D.previousElementSibling;for(;L();){if(D=L(),!D.classList.contains(Kl))continue;A==="down"?O++:O--;const F=D.getBoundingClientRect().left;if(P(F))return O}return 0}const b=A=>I=>{if(!e)return;I?.preventDefault();let N;if(p()){const P=typeof A=="number"?A:g(A);N=d+P;}else N=C();if(N<t){T(t);return}if(N>n){T(n);return}m(N),T(N);};u("ArrowLeft",b(-1),{requireReset:false}),u("ArrowRight",b(1),{requireReset:false}),u("Tab",b(1),{requireReset:false}),u("Shift+Tab",b(-1),{requireReset:false}),u("ArrowUp",b("up"),{requireReset:false}),u("ArrowDown",b("down"),{requireReset:false});const y=()=>{e&&m(void 0);},S=()=>{if(!(!e||typeof d!="number"))return s[d]};u("Escape",y),Do("Enter",A=>{if(typeof d=="number")return A.preventDefault(),s[d]?.emit("open");if(typeof l=="number")return A.preventDefault(),s[l]?.emit("open-with-large-preview-visible")},{enabled:e}),u("X",()=>S()?.emit("open-in-popup")),u("Backspace",()=>S()?.emit("trigger-dislike")),u("S",()=>S()?.emit("toggle-watch-later")),u("W",()=>S()?.emit("toggle-watch-later")),u(".",()=>S()?.emit("hotkey-preview-animation")),u("P",()=>S()?.emit("hotkey-preview-animation"));function C(){const A=o();if(!A)return 0;const I=E();for(const[N,P]of I.entries())if(P.getBoundingClientRect().top>=A.top)return N;return 0}const w=`.${Kl}`;function E(){return [...r.current?.querySelectorAll(w)||[]]}function M(A){return E()[A]}function T(A){const I=M(A);I?.scrollIntoViewIfNeeded?.(false);const N=o(),P=I.getBoundingClientRect();if(!(!N||!P)){if(P.top<=N.top){const O=-(N.top-P.top+10);i?.({offset:O});return}if(N.bottom-P.bottom<20){const O=20-(N.bottom-P.bottom);i?.({offset:O});return}}}return {activeIndex:d,clearActiveIndex:y}}const MNe=new Map,TNe=new Map;function dK(e,t=true){const{gridDisplayMode:n,useCustomGrid:r,enableForceColumn:o,forceColumnCount:i,cardMinWidth:s}=at.grid;if(n===Wr.List)return 1;if(t&&n===Wr.TwoColumnGrid)return 2;if(r&&o&&i)return i;if(e||=document.querySelector(`.${_M}`),!e)return ti("getColumnCount(): gridEl not found"),0;const l=r?MNe:TNe,u=new URLSearchParams({width:Math.round(e.clientWidth).toString(),cardMinWidth:r?s.toString():""}).toString();{const p=l.get(u);if(p)return p}const d=window.getComputedStyle(e);if(d.display!=="grid")return ti('getColumnCount(): gridEl.style.display !== "grid"'),0;const m=d.gridTemplateColumns.split(" ").length;return l.set(u,m),m}const Ub=po.extend("service"),ANe=e=>{if(e.api===Ze.Separator)return e.uniqId;const{bvid:t}=Ju(e);return t||e.uniqId};function MM(e,t){return mc([...e,...t],ANe)}const DB=e=>e===nt.PcRecommend||e===nt.KeepFollowOnly;async function RNe(e,t,n=5){const{tab:r,service:o,abortSignal:i,firstFetch:s}=t;let l=[],u=true;const d=async m=>{if(!Jp(r)){let b=await o.loadMore(i)??[];b=e1(b,r),l=MM(l,b),u=o.hasMore;return}let p;if(r===nt.KeepFollowOnly)p=8,Ub("getMinCount: addMore(restCount = %s) times=%s",m,p);else {const b=DB(r)?Au.PAGE_SIZE:xf.PAGE_SIZE,S=(()=>{const{enabled:C,byAuthor:w,byTitle:E,minDuration:M,minPlayCount:T,minDanmakuCount:A}=at.filter;return C||w.enabled||E.enabled||M.enabled||T.enabled||A.enabled})()?n:1.2;p=Math.ceil(m*S/b),Ub("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",m,S,b,p);}if(DB(r)){const b=o;s&&await b.preloadPcInitialRecItems(i),await b.preloadTimesFromApiIfNeeded(i,p);}else {const b=o;b.config.addOtherTabContents||await b.preloadTimesFromApiIfNeeded(i,p);}let g=await o.loadMore(i)||[];g=e1(g,r),l=MM(l,g),u=o.hasMore;};for(await d(e);;){if(i?.aborted){Ub("getMinCount: break for abortSignal");break}if(!u){Ub("getMinCount: break for tab=%s hasMore=false",r);break}if(l.filter(p=>p.api!==Ze.Separator).length>=e)break;await d(e-l.length);}return l}const zN=()=>dK()*4;async function NNe(e){let t=zN();return e.tab===nt.DynamicFeed&&await e.service.shouldReduceMinCount()&&(t=1),RNe(t,e,5)}function PNe(e,t){let n;switch(e){case nt.DynamicFeed:return n=t[nt.DynamicFeed],!Ei(n?.config,PN());case nt.Fav:return n=t[nt.Fav],!Ei(n?.config,IN());case nt.Hot:return n=t[nt.Hot],n?.subtab!==Xo.subtab||n.subtab===pr.Rank&&n.service instanceof rq&&n.service.rankTab.slug!==Mi.slug;case nt.SpaceUpload:return n=t[nt.SpaceUpload],!Ei(n?.config,Dq());default:return  false}}const fK=5;function INe({tab:e,debug:t,fetcher:n,preAction:r,postAction:o,updateViewFromService:i,self:s}){const l=ns(),{serviceRegistry:u}=l;ho(()=>{d("reuse");}),fm(()=>{s.abortController.abort();});const d=tt(async(p="refresh")=>{if(l.refreshing&&l.refreshingTab===e)if(PNe(e,u))t("refresh(): tab=%s [start], current refreshing, sametab but conditions change, abort existing",e),s.abortController.abort();else {t("refresh() tab=%s [start], current refreshing, prevent same tab refresh()",e);return}else t("refresh(): tab=%s [start]",e);const b=performance.now();l.setStore({refreshing:true,refreshingTab:e}),s.setStore({refreshError:void 0,hasMore:true,items:[],refreshTs:Date.now()});const y=new AbortController,{signal:S}=y;s.abortController=y,await r?.();function C(){l.setStore({refreshing:false,refreshingTab:void 0}),s.setStore({showSkeleton:false});}function w(N){C(),s.setStore({refreshError:N}),console.error(N);}function E(){C(),s.setStore({hasMore:Jq(u,e).hasMore});}async function M(N,P){const[O,D]=await c1(()=>n({tab:e,service:N,abortSignal:S,firstFetch:P}));return S.aborted?t("refresh(): tab=%s [aborted], ignoring rest code",e):O?w(O):(s.setStore({items:D??[]}),true)}let T,A;switch(p){case "refresh":break;case "reuse":T=u[e];break;case "back":case "forward":{Nr(Jp(e),"only rec tab can perform back/forward");const[N,P]=l.getTabBackForwardStatus(e);if(p==="back"&&!N)throw new Error("cannot go back");if(p==="forward"&&!P)throw new Error("cannot go forward");const O=l.getTabServiceQueueState(e);Nr(O,"state should not be nil");const{len:D,cursor:L}=O,U=L+(p==="back"?-1:1);if(U<0||U>D-1)throw new Error("cannot go back/forward");const W=l.serviceQueueMap[e]?.get(U);Nr(W,"service should not be nil"),T=W,l.setTabServiceQueueState(e,{cursor:U,len:D}),u[e]=W,A=false;break}default:vm(p);break}if(T){T.restore();const N=e1(T.qs.bufferQueue,e).slice(0,zN());s.setStore({items:N});const P=!!await M(T);A??=P&&!!bm[e].swr;}else s.setStore({showSkeleton:true}),A=true;if(A){const[N,P]=Pu(()=>gNe[e]({existingService:T}));if(N)return w(N);const O=u[e]?void 0:true;if(u[e]=P,i?.(),Jp(e)){l.serviceQueueMap[e]||=new X3e.RingBuffer(fK);const L=l.serviceQueueMap[e];L.add(P);const F=L.getBufferLength();l.setTabServiceQueueState(e,{len:F,cursor:F-1});}if(!await M(P,O))return}E(),await o?.();const I=performance.now()-b;t("refresh(): tab=%s [success] cost %s ms",e,I.toFixed(0));}),{recSharedEmitter:m}=ns();return ao(m,"refresh",({data:p})=>d(p)),{refresh:d}}const ONe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",children:[x("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M24 44a19.94 19.94 0 0 0 14.142-5.858A19.94 19.94 0 0 0 44 24a19.94 19.94 0 0 0-5.858-14.142A19.94 19.94 0 0 0 24 4A19.94 19.94 0 0 0 9.858 9.858A19.94 19.94 0 0 0 4 24a19.94 19.94 0 0 0 5.858 14.142A19.94 19.94 0 0 0 24 44Z"}),x("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M24 28.625v-4a6 6 0 1 0-6-6"}),x("path",{fill:"currentColor",fillRule:"evenodd",d:"M24 37.625a2.5 2.5 0 1 0 0-5a2.5 2.5 0 0 0 0 5",clipRule:"evenodd"})]})]}),DNe=f.forwardRef(ONe),_Ne=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0-4 0"}),x("path",{d:"M12 18q-.492 0-.97-.05Q6.271 17.452 3 12q3.6-6 9-6q5.197 0 8.727 5.558M15 18a3 3 0 1 0 6 0a3 3 0 1 0-6 0m5.2 2.2L22 22"})]})]}),LNe=f.forwardRef(_Ne);function BNe(){const{grid:{useCustomGrid:e,enableForceColumn:t,forceColumnCount:n,cardMinWidth:r},style:o,enableSidebar:i,sidebarAlign:s}=Ft();ho(()=>PA(at,"pureRecommend",async m=>{await gn(0),fS();}));const l=tt(()=>{const m="v0.34.14";GM.setClipboard(m),Qt.success(`已复制当前版本: ${m}`);}),u=f.useRef(null),d=iS(u);return H("div",{className:On.tabPane,children:[x(co,{title:H(_e,{children:[x(xi,{tabKey:nt.AppRecommend,className:"mr-5px mt-2px size-30px"}),"access_key",H(vr,{className:"ml-5px mt-6px size-18px",IconComponent:DNe,tooltipProps:{classNames:{root:"text-14px"}},children:["App 端登录凭证, 使用情况: ",x("br",{}),x(cM,{}),H("div",{className:"group flex items-start",children:[H("div",{className:"w-55px flex flex-none items-center",children:[x(xi,{tabKey:nt.AppRecommend,className:"mr-1"})," 推荐"]}),H("ul",{className:"flex-1 list-disc pl-20px",children:[x("li",{className:"w-max",children:"获取推荐"}),x("li",{className:"w-max",children:"提交不喜欢"})]})]}),x(cM,{}),H("div",{className:"group flex items-start",children:[H("div",{className:"w-55px flex flex-none items-center",children:[x(xi,{tabKey:nt.Liked,className:"mr-1"}),"赞"]}),x("ul",{className:"w-max flex-1 list-disc pl-20px",children:x("li",{className:"w-max",children:"获取点赞列表"})})]})]})]}),children:x(tN,{})}),x(co,{title:"开关",resetSettingPaths:["pureRecommend","multiSelect.showIcon","showBackForwardButtons"],children:H("div",{className:On.settingsLine,children:[x(It,{configPath:"pureRecommend",label:"覆盖默认推荐",tooltip:H(_e,{children:[jr("覆盖默认推荐内容",`保留默认首页; 你可以从屏幕边缘找到入口面板, 使用 ${Zo} 的功能.`),"P.S 需要刷新网页"]})}),x(It,{configPath:"multiSelect.showIcon",label:"「多选」按钮",tooltip:"是否显示「多选」按钮"}),x(It,{configPath:"showBackForwardButtons",label:"「后退 / 前进」按钮",tooltip:H(_e,{children:["是否显示「后退 / 前进」按钮 ",x("br",{}),"仅推荐 Tab 支持, 最多保留 ",fK," 次刷新历史"]})})]})}),H(co,{title:H(_e,{children:["布局",x(sn,{title:"透视",children:x(LNe,{ref:u,title:"透视",className:X("ml-1.5 size-1em cursor-pointer b-1px b-transparent rounded-md b-solid p-2px hover:b-gate-primary",{peeking:d})})})]}),resetSettingPaths:["grid.useCustomGrid","grid.enableForceColumn","grid.cardMinWidth","grid.forceColumnCount","enableSidebar","sidebarAlign","grid.gridDisplayMode","grid.twoColumnModeAlign"],children:[x("div",{className:On.settingsLine,children:x(It,{configPath:"grid.useCustomGrid",label:"使用自定义网格配置",tooltip:H(_e,{children:["网格配置指: 网格宽度, 间距, 列数等. ",x("br",{}),jr(H(_e,{children:["使用 ",Zo," 自定义网格配置: 宽度为90%; 可跟随 Bilibili-Evolved 自定义顶栏配置"]}),x(_e,{children:"使用 bili-feed4 版本B站首页默认的网格配置"}))]})})}),H("div",{className:On.settingsLine,children:["网格列数:",x(q3e,{})]}),H("div",{className:"flex items-center gap-x-4px",children:[x(It,{configPath:"enableSidebar",label:"使用侧边栏",tooltip:jr("使用侧边栏(如动态 分组/UP 选择)","使用下拉面板")}),H(Rr.Group,{disabled:!i,buttonStyle:"solid",size:"small",value:s,onChange:m=>{at.sidebarAlign=m.target.value;},children:[x(Rr.Button,{value:kf.Left,className:"inline-flex-center",children:x(nG,{className:"size-16px"})}),x(Rr.Button,{value:kf.Right,className:"inline-flex-center",children:x(rG,{className:"size-16px"})})]})]}),H("div",{className:"flex items-center",children:["网格显示模式",x(G3e,{className:"ml-xl"})]})]}),H(co,{title:"样式",resetSettingPaths:["style.general.popoverBorderColorUseColorPrimary","style.pureRecommend.useStickyTabbar","style.pureRecommend.stickyTabbarShadow","grid.useCustomGrid","style.pureRecommend.useWhiteBackground","style.pureRecommend.hideTopChannel"],children:[x("div",{className:On.settingsLine,children:x(It,{configPath:"style.general.popoverBorderColorUseColorPrimary",label:"下拉面板使用主题色边框"})}),H("div",{children:[x("div",{className:"flex items-center text-1.2em",children:"全屏推荐"}),H("div",{className:On.settingsLine,children:[x(It,{configPath:"style.pureRecommend.useStickyTabbar",label:"固定 Tab 栏",tooltip:jr("Tab 栏会吸附在顶栏下方","Tab 栏会随页面一起滚动")}),x(It,{disabled:!o.pureRecommend.useStickyTabbar,configPath:"style.pureRecommend.stickyTabbarShadow",label:"固定 Tab 栏时添加边框 & 阴影",tooltip:jr("Tab 栏在吸附状态下: 加宽, 添加边框 & 阴影","不改变")}),x(It,{configPath:"style.pureRecommend.useWhiteBackground",label:"使用纯白背景",tooltip:H(_e,{children:[jr("纯白背景","浅灰色背景"),"仅影响白色/浅色模式"]})}),x(It,{configPath:"style.pureRecommend.hideTopChannel",label:"隐藏顶部分区和Banner"})]})]})]}),x(co,{title:H(_e,{children:["帮助",H("span",{className:"relative top-4px ml-8px mr-4px inline-flex items-center text-size-14px",children:["当前版本",H(Cs,{color:"green",className:"mx-4px cursor-pointer",onClick:l,children:[Zo," v","0.34.14"]}),x(Eu,{className:"size-16px cursor-pointer",onClick:l})]})]}),children:H("div",{className:On.settingsLine,children:[x(sn,{title:"来个 Star 支持一下",children:x(ht,{href:"https://github.com/magicdawn/Bilibili-Gate",target:"_blank",children:"GitHub 主页"})}),x(ht,{href:"https://afdian.com/a/magicdawn",target:"_blank",children:"「爱发电」支持"}),x(ht,{href:"http://greasyfork.icu/zh-CN/scripts/443530-bilibili-gate",target:"_blank",children:"GreasyFork 主页"}),x(ht,{href:"https://github.com/magicdawn/Bilibili-Gate/#%E5%BF%AB%E6%8D%B7%E9%94%AE%E8%AF%B4%E6%98%8E",target:"_blank",children:"查看可用的快捷键"}),x(ht,{href:"https://github.com/magicdawn/Bilibili-Gate/releases",target:"_blank",children:"更新日志"})]})})]})}const s1=["filter.byAuthor.keywords","filter.byTitle.keywords","filter.dfByTitle.keywords","filter.dfHideOpusMids.keywords"],FN=tl.filter(e=>e.startsWith("filter.")),_B=Zl(FN,s1);async function kNe(){const e=await _g();s1.reduce((n,r)=>n+(er(e,r)?.length??0),0)||Qt.warning("列表数据为空!"),await YW(FN,"filter");}async function zNe(){const e=await XW();if(!e)return;const{pickedPaths:t,pickedSettings:n}=xc(e,FN);if(!t.length)return Jt("没有有效的设置!");const r=await _g();if(!!!(_B.some(l=>{const u=er(n,l),d=er(r,l);if(!(Xi(u)||Ei(u,d)))return  true})||s1.some(l=>{const u=er(n,l),d=er(r,l)??[];if(!(!u?.length||!Zl(u,d).length))return  true})))return Jt("没有可导入内容, 导入内容与现有设置相同!",5e3);let i=0,s=0;_B.forEach(l=>{const u=er(n,l),d=er(r,l);Xi(u)||Ei(u,d)||(es({[l]:u}),i+=1);}),s1.forEach(l=>{const u=er(n,l),d=er(r,l)??[];if(!u?.length)return;const m=Zl(u,d);m.length&&(es({[l]:rg([...d,...m])}),s+=m.length);}),Qt.success(`已导入 ${i} 条常规数据, ${s} 条列表数据!`);}const FNe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"m14 14l20 20m-20 0l20-20"})]}),HNe=f.forwardRef(FNe),{Search:VNe}=Ji;var jNe={name:"1mzc5hv",styles:"color:var(--ant-color-text-disabled);background-color:var(--ant-color-bg-container-disabled);box-shadow:none;opacity:1;pointer-events:none;cursor:not-allowed"};function a1({configPath:e,searchProps:t,disabled:n,className:r,inputClassName:o,listClassName:i,renderHeader:s=c9}){const l=YU(e),u=f.useMemo(()=>rg(l).toReversed(),[l]),d=["filter.byAuthor.keywords","filter.dfHideOpusMids.keywords"].includes(e),m=x(VNe,{className:X("my-5px",o),enterButton:"添加",allowClear:true,disabled:n,size:"middle",...t,onSearch:async(S,C)=>{if(!S)return;if(new Set(await XU(e)).has(S)){Qt.warning(`${S} 已存在`);return}await Ha(e,{add:[S]}),C?.target&&C.target.closest(".ant-input-wrapper")?.querySelector(".ant-input-clear-icon")?.click();}}),p=!!u.length,g=!p,b=or(g?"rounded-lg":["max-h-250px flex flex-wrap items-start gap-x-10px gap-y-5px overflow-y-auto pr-10px",i]),y=H("div",{className:b,css:n&&jNe,children:[g&&x(qi,{image:qi.PRESENTED_IMAGE_SIMPLE,description:"空空如也",className:"[&.ant-empty-normal]:my-1 [&.ant-empty-normal]:py-5px"}),p&&u.map(S=>x(mK,{tag:S.toString(),TagComponent:d?UNe:void 0,onDelete:C=>Ha(e,{remove:[C]})},S))]});return H(_e,{children:[s(m),y]})}const mK=f.memo(function({tag:e,renderTag:t,TagComponent:n,onDelete:r,className:o,...i}){const s=f.useMemo(()=>n?x(n,{tag:e}):(t??=c9,t(e)),[n,t,e]);return H("div",{...i,className:X("relative inline-flex items-center b-1px b-gate-border rounded-5px b-solid px-6px py-2px hover:b-gate-primary hover:color-gate-primary",o),children:[s,x(HNe,{className:"ml-2px size-16px cursor-pointer text-size-12px",onClick:()=>r?.(e)})]})}),UNe=f.memo(function({tag:e}){const{mid:t,remark:n}=f.useMemo(()=>xS(e),[e]),[r,o]=f.useState(void 0);f.useEffect(()=>{(async()=>{if(!t)return;const l=await Yg(t);l&&o(l);})();},[t]);const i=t?r||n||t:e;return x(_e,{children:x(sn,{title:H(_e,{children:[!!t&&H(_e,{children:["mid: ",t," ",x("br",{})]}),!!n&&H(_e,{children:["备注: ",n," ",x("br",{}),n===r&&H(_e,{children:['P.S "备注" 与 "用户昵称" 相同, 是之前的数据, 现在你只需要填写 mid, 会自动获取昵称 ',x("br",{})]})]}),!t&&H(_e,{children:["使用用户名过滤: 用户可能改名, 建议使用 mid 过滤 ",x("br",{})]})]}),children:H("span",{className:X("inline-flex items-center justify-center",t?"cursor-pointer":"cursor-[edit]"),children:[t&&x(wG,{className:"mr-2px size-12px"}),t?x("a",{href:Gg(t),target:"_blank",style:{color:"inherit"},children:i}):i]})})})}),l1={blockContainer:"b-1px b-gate-border rounded-lg b-solid p-x-2 p-y-1 light:hover:b-gate-primary"};function WNe(){const{filter:{byAuthor:e,byTitle:t,dfByTitle:n,dfHideOpusMids:r}}=Ft();return x("div",{className:X(On.tabPane,"pr-15px"),children:x(co,{title:H(_e,{children:[x("span",{children:"内容过滤"}),x(Bu,{configPath:"filter.enabled",className:"ml-10px"}),x("div",{className:"flex-1"}),H(Tr,{size:5,children:[H(ht,{onClick:kNe,disabled:!(e.keywords.length||t.keywords.length||n.keywords.length||r.keywords.length),children:[x(QW,{}),"导出"]}),H(ht,{onClick:zNe,children:[x(ZW,{}),"导入"]})]})]}),children:x(vA,{items:[{key:"recommend",label:H("span",{className:"inline-flex-center gap-x-1",children:[x(xi,{tabKey:nt.AppRecommend}),"推荐 / 热门",H(vr,{className:"ml-1",children:["生效范围: ",x("br",{}),"视频/图文/影视: 推荐类 Tab ",x("br",{}),"UP/标题: 推荐类、热门 Tab ",x("br",{})]})]}),children:x(GNe,{})},{key:"dynamic-feed",label:H("span",{className:"inline-flex-center gap-x-1",children:[x(xi,{tabKey:nt.DynamicFeed}),"动态",H(vr,{className:"ml-1",children:["使用场景: 关注的 UP 发布的部分内容 ",x("br",{}),H("ol",{children:[x("li",{children:"如果有规律可以按标题关键字过滤"}),x("li",{children:"没有规律可以屏蔽 UP 发布的全部图文动态"})]})]})]}),children:x(qNe,{})}]})})})}function GNe(){const{enabled:e,minDuration:t,minPlayCount:n,minDanmakuCount:r,hideGotoTypeBangumi:o,hideGotoTypePicture:i,byAuthor:s,byTitle:l}=Ft().filter,u=d=>({label:"「已关注」豁免",tooltipProps:{color:qW},tooltip:H(_e,{children:["「已关注」内容不考虑过滤条件, 总是展示",x("br",{}),'"豁免" 一词来源'," ",x("a",{target:"_blank",href:"https://github.com/magicdawn/Bilibili-Gate/issues/1#issuecomment-2197868587",children:"pilipala"})]})});return x(_e,{children:H("div",{className:"grid grid-cols-2 gap-15px",children:[H("div",{children:[x("div",{className:On.settingsGroupSubTitle,children:"视频"}),H("div",{className:"flex flex-col gap-y-1",children:[H("div",{className:"flex items-center",children:[x(It,{configPath:"filter.minDuration.enabled",label:"按视频时长过滤",tooltip:x(_e,{children:"不显示短视频"}),disabled:!e,className:"min-w-130px"}),H(Tr.Compact,{children:[x(yu,{className:"w-130px",size:"small",min:1,step:10,value:t.value,onChange:d=>!Xi(d)&&(at.filter.minDuration.value=d),disabled:!e||!t.enabled}),x(Tr.Addon,{children:"秒"})]})]}),H("div",{className:"flex items-center",children:[x(It,{disabled:!e,configPath:"filter.minPlayCount.enabled",label:"按播放次数过滤",tooltip:x(_e,{children:"不显示播放次数很少的视频"}),className:"min-w-130px"}),H(Tr.Compact,{children:[x(yu,{className:"w-130px",size:"small",min:1,step:1e3,value:n.value,onChange:d=>!Xi(d)&&(at.filter.minPlayCount.value=d),disabled:!e||!n.enabled}),x(Tr.Addon,{children:"次"})]})]}),H("div",{className:"flex items-center",children:[x(It,{disabled:!e,configPath:"filter.minDanmakuCount.enabled",label:"按弹幕条数过滤",tooltip:x(_e,{children:"不显示弹幕条数很少的视频"}),className:"min-w-130px"}),H(Tr.Compact,{children:[x(yu,{className:"w-130px",size:"small",min:1,step:100,value:r.value,onChange:d=>!Xi(d)&&(at.filter.minDanmakuCount.value=d),disabled:!e||!r.enabled}),x(Tr.Addon,{children:"条"})]})]}),x(It,{configPath:"filter.exemptForFollowed.video",disabled:!e,...u()})]})]}),H("div",{children:[x("div",{className:On.settingsGroupSubTitle,children:"图文"}),x(It,{configPath:"filter.hideGotoTypePicture",label:"过滤图文类型推荐",disabled:!e,className:"flex",tooltip:H(_e,{children:["过滤 ",x("kbd",{children:"goto = picture"})," 的内容: 包括 (动态 & 专栏) 等"]})}),x(It,{className:"flex",disabled:!e||!i,configPath:"filter.exemptForFollowed.picture",...u()}),x("div",{className:X(On.settingsGroupSubTitle,"mt-2"),children:"影视"}),x(It,{configPath:"filter.hideGotoTypeBangumi",label:"过滤影视类型推荐",tooltip:H(_e,{children:["过滤 ",x("kbd",{children:"goto = bangumi"})," 的内容: 包括 (番剧 / 电影 / 国创 / 纪录片) 等"]}),disabled:!e})]}),H("div",{className:X(l1.blockContainer,"col-span-full"),children:[H("div",{className:On.settingsGroupSubTitle,children:["UP",H(vr,{children:["根据 UP 过滤视频 ",x("br",{}),"使用 mid 屏蔽时支持备注, 格式: ",x(Cs,{color:"success",children:"mid(备注)"})," 如"," ",x(Cs,{color:"success",children:"8047632(B站官方)"}),x("br",{}),H("div",{className:"mt-4px flex items-start",children:[x(gU,{className:"mt-3px"}),H("div",{className:"ml-8px flex-1",children:["B站官方支持黑名单, 对于不喜欢的 UP 可以直接拉黑 ",x("br",{}),"此脚本会拉取官方黑名单, 并无视此页开关, 总是会过滤掉 ",x("br",{}),"这里是客户端过滤, 与黑名单功能重复, 优先使用黑名单功能 ",x("br",{})]})]})]}),x(Bu,{configPath:"filter.byAuthor.enabled",disabled:!e,className:"ml-10px"}),x("div",{className:"flex-1"}),H(ht,{onClick:KNe,children:[x(cm,{}),"清理无效备注数据"]})]}),x(a1,{configPath:"filter.byAuthor.keywords",searchProps:{placeholder:"添加UP: 全名 / mid / mid(备注)"},disabled:!e||!s.enabled,className:"mt-2",listClassName:"max-h-130px"})]}),H("div",{className:X(l1.blockContainer,"col-span-full"),children:[H("div",{className:X(On.settingsGroupSubTitle),children:[x("span",{children:"标题"}),H(vr,{children:["根据标题关键词过滤视频 ",x("br",{}),"支持普通关键字和正则(i), 语法:",x(Cs,{color:"success",variant:"solid",children:"/abc|\\d+/"})]}),x(Bu,{configPath:"filter.byTitle.enabled",disabled:!e,className:"ml-10px"})]}),x(a1,{configPath:"filter.byTitle.keywords",searchProps:{placeholder:"添加过滤关键词"},disabled:!e||!l.enabled,listClassName:"max-h-130px"})]})]})})}function qNe(){const{filter:{enabled:e,dfByTitle:t,dfHideOpusMids:n}}=Ft();return H("div",{className:"flex flex-col gap-y-15px",children:[H("div",{className:l1.blockContainer,children:[H("div",{className:On.settingsGroupSubTitle,children:[x("span",{children:"标题"}),H(vr,{children:["支持普通关键字和正则(i), 语法:",x(Cs,{color:"success",variant:"solid",children:"/abc|\\d+/"}),x("br",{}),"作用范围: 支持的动态类型: 视频 / 图文"]}),x(Bu,{configPath:"filter.dfByTitle.enabled",disabled:!e,className:"ml-10px"})]}),x(a1,{configPath:"filter.dfByTitle.keywords",searchProps:{placeholder:"添加过滤关键词"},disabled:!e||!t.enabled})]}),H("div",{className:l1.blockContainer,children:[H("div",{className:On.settingsGroupSubTitle,children:[x("span",{children:"屏蔽 UP 的图文动态"}),H(vr,{children:["支持 mid 或 mid(备注) ",x("br",{}),"右键图文动态可快速添加"]}),x(Bu,{configPath:"filter.dfHideOpusMids.enabled",disabled:!e,className:"ml-10px"})]}),x(a1,{configPath:"filter.dfHideOpusMids.keywords",searchProps:{placeholder:"添加 UP: mid / mid(备注)"},disabled:!e||!n.enabled,listClassName:"max-h-130px"})]})]})}async function KNe(){const e=at.filter.byAuthor.keywords,t=await ac(e,async n=>{const{mid:r,remark:o}=xS(n);return !r||!o||await Yg(r)!==o?n:r},1/0);return Ei(t,e)?Qt.warning("没有「无效备注」数据!"):(at.filter.byAuthor.keywords=t,Qt.success("已清理「无效备注」数据!"))}function YNe(){return H("div",{className:On.tabPane,children:[x("div",{className:"mb-10px flex justify-start",children:x(JR,{paths:["fav.useCustomFavPicker.onPlayPage","videoCard.videoPreview.addTo.searchPage"]})}),x(co,{title:"视频播放页",children:x(It,{configPath:"fav.useCustomFavPicker.onPlayPage",label:"使用自定义收藏弹窗",tooltip:H(_e,{children:["使用「",Zo,"」提供的选择收藏夹弹窗 ",x("br",{}),H("ul",{className:"ml-20px list-circle",children:[x("li",{children:"支持拼音搜索, 帮你快速找到收藏夹"}),x("li",{children:H("span",{className:"flex-v-center",children:["支持从收藏夹图标 或 快捷键",x(Pa,{k:"E",className:"mx-1 h-14px py-0 line-height-13px"}),"触发"]})}),x("li",{children:H("span",{className:"flex-v-center",children:[x(Pa,{k:"Shift+E",className:"mx-1 h-14px flex py-0 line-height-13px"}),"无视此开关, 总是生效"]})})]})]})})}),x(co,{title:"搜索页",children:x(It,{configPath:"videoCard.videoPreview.addTo.searchPage",label:"浮动预览: 添加到「搜索页」",tooltip:x(_e,{children:"在搜索页的视频也添加「浮动预览」"})})})]})}function XNe(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}const QNe=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return !n||!t?r:XNe(r,n,t)},ZNe=e=>{let{transform:t}=e;return {...t,x:0}};function eg(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function JNe(e,t){return e.reduce((n,r,o)=>{const i=t.get(r);return i&&(n[o]=i),n},Array(e.length))}function Wb(e){return e!==null&&e>=0}function e6e(e,t){if(e===t)return  true;if(e.length!==t.length)return  false;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return  false;return  true}function t6e(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const hK=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=eg(t,r,n),s=t[o],l=i[o];return !l||!s?null:{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}},Gb={scaleX:1,scaleY:1},n6e=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:s}=e;const l=(t=i[n])!=null?t:r;if(!l)return null;if(o===n){const d=i[s];return d?{x:0,y:n<s?d.top+d.height-(l.top+l.height):d.top-l.top,...Gb}:null}const u=r6e(i,o,n);return o>n&&o<=s?{x:0,y:-l.height-u,...Gb}:o<n&&o>=s?{x:0,y:l.height+u,...Gb}:{x:0,y:0,...Gb}};function r6e(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?n<t?o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}const pK="Sortable",gK=q.createContext({activeIndex:-1,containerId:pK,disableTransforms:false,items:[],overIndex:-1,useDragOverlay:false,sortedRects:[],strategy:hK,disabled:{draggable:false,droppable:false}});function o6e(e){let{children:t,id:n,items:r,strategy:o=hK,disabled:i=false}=e;const{active:s,dragOverlay:l,droppableRects:u,over:d,measureDroppableContainers:m}=J2e(),p=Wg(pK,n),g=l.rect!==null,b=f.useMemo(()=>r.map(I=>typeof I=="object"&&"id"in I?I.id:I),[r]),y=s!=null,S=s?b.indexOf(s.id):-1,C=d?b.indexOf(d.id):-1,w=f.useRef(b),E=!e6e(b,w.current),M=C!==-1&&S===-1||E,T=t6e(i);ia(()=>{E&&y&&m(b);},[E,b,y,m]),f.useEffect(()=>{w.current=b;},[b]);const A=f.useMemo(()=>({activeIndex:S,containerId:p,disabled:T,disableTransforms:M,items:b,overIndex:C,useDragOverlay:g,sortedRects:JNe(b,u),strategy:o}),[S,p,T.draggable,T.droppable,M,b,C,u,g,o]);return q.createElement(gK.Provider,{value:A},t)}const i6e=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return eg(n,r,o).indexOf(t)},s6e=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:s,previousItems:l,previousContainerId:u,transition:d}=e;return !d||!r||l!==i&&o===s?false:n?true:s!==o&&t===u},a6e={duration:200,easing:"ease"},vK="transform",l6e=Hf.Transition.toString({property:vK,duration:0,easing:"linear"}),c6e={roleDescription:"sortable"};function u6e(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,s]=f.useState(null),l=f.useRef(n);return ia(()=>{if(!t&&n!==l.current&&r.current){const u=o.current;if(u){const d=pm(r.current,{ignoreTransform:true}),m={x:u.left-d.left,y:u.top-d.top,scaleX:u.width/d.width,scaleY:u.height/d.height};(m.x||m.y)&&s(m);}}n!==l.current&&(l.current=n);},[t,n,r,o]),f.useEffect(()=>{i&&s(null);},[i]),i}function d6e(e){let{animateLayoutChanges:t=s6e,attributes:n,disabled:r,data:o,getNewIndex:i=i6e,id:s,strategy:l,resizeObserverConfig:u,transition:d=a6e}=e;const{items:m,containerId:p,activeIndex:g,disabled:b,disableTransforms:y,sortedRects:S,overIndex:C,useDragOverlay:w,strategy:E}=f.useContext(gK),M=f6e(r,b),T=m.indexOf(s),A=f.useMemo(()=>({sortable:{containerId:p,index:T,items:m},...o}),[p,o,T,m]),I=f.useMemo(()=>m.slice(m.indexOf(s)),[m,s]),{rect:N,node:P,isOver:O,setNodeRef:D}=n3e({id:s,data:A,disabled:M.droppable,resizeObserverConfig:{updateMeasurementsFor:I,...u}}),{active:L,activatorEvent:F,activeNodeRect:U,attributes:W,setNodeRef:z,listeners:k,isDragging:G,over:j,setActivatorNodeRef:K,transform:Q}=GW({id:s,data:A,attributes:{...c6e,...n},disabled:M.draggable}),_=O$e(D,z),B=!!L,Y=B&&!y&&Wb(g)&&Wb(C),J=!w&&G,ee=J&&Y?Q:null,re=Y?ee??(l??E)({rects:S,activeNodeRect:U,activeIndex:g,overIndex:C,index:T}):null,ie=Wb(g)&&Wb(C)?i({id:s,items:m,activeIndex:g,overIndex:C}):T,de=L?.id,ne=f.useRef({activeId:de,items:m,newIndex:ie,containerId:p}),ae=m!==ne.current.items,ce=t({active:L,containerId:p,isDragging:G,isSorting:B,id:s,index:T,items:m,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:d,wasDragging:ne.current.activeId!=null}),se=u6e({disabled:!ce,index:T,node:P,rect:N});return f.useEffect(()=>{B&&ne.current.newIndex!==ie&&(ne.current.newIndex=ie),p!==ne.current.containerId&&(ne.current.containerId=p),m!==ne.current.items&&(ne.current.items=m);},[B,ie,p,m]),f.useEffect(()=>{if(de===ne.current.activeId)return;if(de!=null&&ne.current.activeId==null){ne.current.activeId=de;return}const le=setTimeout(()=>{ne.current.activeId=de;},50);return ()=>clearTimeout(le)},[de]),{active:L,activeIndex:g,attributes:W,data:A,rect:N,index:T,newIndex:ie,items:m,isOver:O,isSorting:B,isDragging:G,listeners:k,node:P,overIndex:C,over:j,setNodeRef:_,setActivatorNodeRef:K,setDroppableNodeRef:D,setDraggableNodeRef:z,transform:se??re,transition:$e()};function $e(){if(se||ae&&ne.current.newIndex===T)return l6e;if(!(J&&!KR(F)||!d)&&(B||ce))return Hf.Transition.toString({...d,property:vK})}}function f6e(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:false}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}$n.Down,$n.Right,$n.Up,$n.Left;const TM=Object.values(nt),m6e=[nt.SpaceUpload],HN=Zl(TM,m6e),VN=await( DA({value:nt.AppRecommend},"video-source-tab"));{const e=SS();e&&(VN.value=e);}function bK(e){return HN.slice().sort((t,n)=>{let r=e.indexOf(t),o=e.indexOf(n);return r===-1&&(r=TM.indexOf(t)),o===-1&&(o=TM.indexOf(n)),r-o})}function jN(e){const{customTabKeysOrder:t}=Ft(e);return f.useMemo(()=>bK(t),[t])}function yK(){const{hidingTabKeys:e,customTabKeysOrder:t}=Ft(),n=DR(),r=f.useMemo(SS,[]),o=f.useMemo(()=>bK(t).filter(s=>s===nt.AppRecommend&&!n?true:!e.includes(s)),[e,t,n]);return r?[r]:o}function h6e(){const e=yK();return f.useMemo(()=>e.map(t=>({key:t,...bm[t]})),[e])}function SK(){const e=gt(VN).value,t=yK(),n=DR(),r=nt.AppRecommend;return !t.includes(e)||!n&&!bm[e].anonymousUsage?r:e}function CK(){const e=f.useDeferredValue(SK()),t=jR(e),n=jN(),r=f.useMemo(()=>t?n.indexOf(e)>n.indexOf(t)?"right":"left":void 0,[n,e]);return {tab:e,prevTab:t,direction:r}}const p6e={name:"18r7nz9",styles:"height:32px;line-height:unset;--ant-border-radius:16px;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"};function xK({className:e}){const t=DR(),n=SK(),r=h6e(),{__internalRecTabRenderAsSegments:o}=Ft(),i=tt(u=>{if(!t&&!bm[u].anonymousUsage&&!jU())return uK();VN.value=u;}),s=x(Rr.Group,{optionType:"button",buttonStyle:"solid",size:"middle",value:n,className:X("inline-flex items-center",e),onFocus:u=>{u.target.blur();},onChange:u=>{const d=u.target.value;i(d);},children:r.map(({key:u,label:d})=>x(Rr.Button,{css:p6e,className:"video-source-tab",tabIndex:-1,value:u,children:H("span",{className:"h-full flex items-center line-height-unset",children:[x(xi,{tabKey:u,className:"mr-4px",active:u===n}),d]})},u))});let l;{const u=f.useMemo(()=>r.map(({key:d,label:m})=>({value:d,label:H("div",{className:"flex items-center gap-x-6px",children:[x(xi,{tabKey:d,active:d===n}),m]})})),[r,n]);l=x(bA,{size:"middle",options:u,value:n,onChange:i});}return H("div",{className:"flex-v-center",children:[o?l:s,x(vr,{className:"ml-6px size-16px",children:x(_e,{children:r.map(({key:u,label:d,desc:m,extraHelpInfo:p})=>H(f.Fragment,{children:[H("div",{className:"h-22px flex items-center",children:[x(xi,{tabKey:u,className:"mr-4px",active:true}),d,": ",m]}),!!p&&p]},u))})})]})}const g6e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",fillRule:"evenodd",d:"M19 10a4 4 0 1 1-8 0a4 4 0 0 1 8 0m-4 18a4 4 0 1 0 0-8a4 4 0 0 0 0 8m0 14a4 4 0 1 0 0-8a4 4 0 0 0 0 8m22-32a4 4 0 1 1-8 0a4 4 0 0 1 8 0m-4 18a4 4 0 1 0 0-8a4 4 0 0 0 0 8m0 14a4 4 0 1 0 0-8a4 4 0 0 0 0 8",clipRule:"evenodd"})]}),wK=f.forwardRef(g6e);function v6e(){const{dynamicFeed:e}=Ft(),t=jN(),n=r=>({order:t.indexOf(r)+1});return x("div",{className:On.tabPane,children:H("div",{className:"grid grid-cols-[250px_1fr] gap-x-50px",children:[x(co,{title:H(_e,{children:["Tab 设置",x(vr,{className:"ml-5px",children:"勾选显示, 拖动排序"})]}),resetSettingPaths:["hidingTabKeys","customTabKeysOrder"],children:x(y6e,{})}),H(co,{title:"更多设置",contentClassName:"gap-y-15px",resetSettingPaths:["watchlaterAddSeparator","watchlaterUseNormalVideoUrl","fav.addSeparator","dynamicFeed.followGroup.enabled","dynamicFeed.showLive","dynamicFeed.videoOnly","dynamicFeed.whenViewAll.enableHideSomeContents","appRecommend.addOtherTabContents"],children:[H("div",{style:n(nt.Watchlater),children:[H("div",{className:"flex items-center text-size-1.3em",children:[x(xi,{tabKey:nt.Watchlater,className:"mr-5px mt--1px"}),"稍后再看"]}),H("div",{className:On.settingsLine,children:[x(It,{configPath:"watchlaterAddSeparator",label:"添加分割线",tooltip:"添加「近期」「更早」分割线"}),x(It,{configPath:"watchlaterUseNormalVideoUrl",label:"使用普通视频链接",tooltip:jr("使用普通视频链接","使用「稍后再看」自动列表链接")})]})]}),H("div",{style:n(nt.Fav),children:[H("div",{className:"flex items-center text-size-1.3em",children:[x(xi,{tabKey:nt.Fav,className:"mr-5px mt--2px"}),"收藏"]}),x("div",{className:On.settingsLine,children:x(It,{configPath:"fav.addSeparator",label:"添加分割线",tooltip:"顺序显示时, 按收藏夹添加分割线"})})]}),H("div",{style:n(nt.DynamicFeed),children:[H("div",{className:"flex items-center text-size-1.3em",children:[x(xi,{tabKey:nt.DynamicFeed,className:"mr-5px mt--2px"}),"动态"]}),H("div",{className:On.settingsLine,children:[x(It,{configPath:"dynamicFeed.followGroup.enabled",label:"启用分组筛选",tooltip:H(_e,{children:["动态 Tab 启用分组筛选 ",x("br",{}),x(zq,{})]})}),x(It,{configPath:"dynamicFeed.showLive",label:"在动态中显示直播",tooltip:H(_e,{children:["动态里显示正在直播的 UP",x("br",{}),"P.S 仅在选择「全部」时展示"]})}),x(It,{configPath:"dynamicFeed.videoOnly",label:"只显示视频",tooltip:jr("只获取视频动态: 投稿视频 / 动态视频","获取全部动态: 包含视频 / 图片 / 文章等")}),x(It,{configPath:"dynamicFeed.whenViewAll.enableHideSomeContents",label:"「全部」动态过滤",tooltip:H(_e,{children:["查看「全部」动态时 ",x("br",{}),jr("将添加右键菜单, 点击可添加到「全部」动态的过滤列表","关闭此功能")]})}),e.whenViewAll.enableHideSomeContents&&x(fF,{size:"small",className:"w-full",items:[{key:"1",label:"在「全部」动态中隐藏 UP/分组 的动态",children:x(C6e,{})}]})]})]}),H("div",{style:n(nt.AppRecommend),children:[H("div",{className:"flex items-center text-size-1.3em",children:[x(xi,{tabKey:nt.AppRecommend,className:"mr-5px"}),"App 推荐"]}),x("div",{className:On.settingsLine,children:x("div",{className:"flex items-center",children:Xq()})})]})]})]})})}function b6e(){const{hidingTabKeys:e}=Ft();return f.useMemo(()=>HN.filter(t=>!e.includes(t)),[e])}function y6e({className:e,style:t}){const n=b6e(),r=jN({sync:true}),o=q$e(G$e(ZR)),i=tt(s=>{const{over:l,active:u}=s;if(!l?.id||l.id===u.id)return;const d=r.indexOf(u.id.toString()),m=r.indexOf(l.id.toString()),p=eg(r,d,m);at.customTabKeysOrder=p;});return x("div",{className:e,style:t,children:x(Ri.Group,{className:"block line-height-[unset]",value:n,onChange:s=>{if(!s.length)return Qt.error("至少选择一项!");es({hidingTabKeys:HN.filter(l=>!s.includes(l))});},children:x(WW,{sensors:o,collisionDetection:Z$e,onDragEnd:i,modifiers:[ZNe,QNe],children:x(o6e,{items:r,strategy:n6e,children:r.map(s=>x(S6e,{id:s},s))})})})})}function S6e({id:e}){const{label:t,desc:n}=bm[e],{attributes:r,listeners:o,setNodeRef:i,transform:s,transition:l,setActivatorNodeRef:u}=d6e({id:e}),d={transform:Hf.Transform.toString(s),transition:l};return H("div",{ref:i,style:d,className:"mt-8px h-35px flex items-center justify-between b-1px b-gate-bg-lv-2 rounded-6px b-solid pl-10px pr-6px",children:[H(Ri,{value:e,className:"inline-flex items-center [&_.ant-checkbox-label]:inline-flex [&_.ant-checkbox-label]:select-none [&_.ant-checkbox-label]:items-center",children:[x(xi,{tabKey:e,className:"mr-5px"}),x(sn,{align:{offset:[0,-6]},title:n,children:t})]}),x("div",{...o,...r,ref:u,className:"cursor-grab rounded-5px px-5px py-3px text-size-0 hover:bg-gate-bg-lv-3",children:x(wK,{className:"size-18px"})})]},e)}function C6e(){const{hideIds:e}=gt(at.dynamicFeed.whenViewAll),t=tt(async o=>{await Ha("dynamicFeed.whenViewAll.hideIds",{remove:[o]});}),{groups:n}=gt(tn);return ho(()=>{tn.updateGroups();}),e.length?x("div",{className:"max-h-250px flex flex-wrap gap-10px overflow-y-auto",children:e.map(o=>x(mK,{tag:o,onDelete:t,renderTag:i=>x(x6e,{tag:i,followGroups:n})},o))}):x("div",{className:"flex items-center justify-center",children:x(qi,{})})}function x6e({tag:e,followGroups:t}){let n,r;e.startsWith(Vf)?n=e.slice(Vf.length):e.startsWith(Fu)&&(r=e.slice(Fu.length));const[o,i]=f.useState(void 0);ho(async()=>{if(!n)return;const g=await Yg(n);g&&i(g);});const[s,l]=f.useState(void 0);ho(()=>{if(!r)return;const g=t?.find(b=>b.tagid.toString()===r)?.name;g&&l(g);});const u=f.useMemo(()=>n?o||n:r?s||r:"无效数据",[n,o,r,s]),d=f.useMemo(()=>n?`mid: ${n}`:r?`分组: ${r}`:`Tag: ${e}`,[n,r,e]),m=f.useMemo(()=>n?x(EG,{className:"mr-2px size-12px"}):r?x($G,{className:"mr-2px size-16px"}):void 0,[n,r]),p=f.useMemo(()=>n?Gg(n):r?TG(r):void 0,[n,r]);return x(_e,{children:x(sn,{title:d,children:H("span",{className:X("inline-flex items-center",n?"cursor-pointer":"cursor-text"),children:[m,p?x("a",{href:p,target:"_blank",children:u}):u]})})})}const WE=[{useBorder:false},{useBorder:true,useBorderOnlyOnHover:true},{useBorder:true,useBorderOnlyOnHover:false}],EK=["「卡片边框」: 禁用","「卡片边框」: 仅在悬浮时显示","「卡片边框」: 总是显示"];function w6e(){return Do("Shift+B",e=>{const t=Nu(at.style.videoCard,["useBorder","useBorderOnlyOnHover"]),n=WE.findIndex(s=>Ei(s,Nu(t,Object.keys(s))));if(n===-1)throw new Error("unexpected curIndex = -1");const r=(n+1)%WE.length,o=WE[r];Object.assign(at.style.videoCard,o);const i=EK[r];Qt.success(i);})}function E6e(){const{videoCard:{actions:{showLargePreview:e,openInPipWindow:t},imgPreview:{enabled:n}},videoLinkOpenMode:r,style:o,autoPreviewUpdateInterval:i}=Ft(),s=f.useMemo(()=>Object.values(cr).filter(l=>gi[l].enabled??true).map(l=>{const u=gi[l];return {config:u,value:l,label:H("span",{className:"flex-v-center gap-x-8px",children:[u.icon,x("span",{children:u.label})]})}}),[]);return H("div",{className:On.tabPane,children:[x(co,{title:"视频链接",resetSettingPaths:["videoLinkOpenMode"],children:H("div",{className:"flex-v-center",children:["打开方式",H(vr,{useBlackBg:true,children:["选择点击视频(封面图片 或 标题)时打开的模式 ",x("br",{}),s.map(({value:l,config:u})=>!!u.desc&&H("div",{className:"mt-10px flex items-start first:mt-0",children:[H("span",{className:"inline-flex items-center",children:[u.icon,x("span",{className:"ml-4px mr-10px min-w-95px",children:u.label})]}),x("span",{className:"desc",children:u.desc})]},l))]}),x(pc,{className:"ml-8px w-160px",options:s,value:r,onChange:l=>{es({videoLinkOpenMode:l});}})]})}),x(co,{title:"边框样式",resetSettingPaths:["style.videoCard.useBorder","style.videoCard.useBorderOnlyOnHover","style.videoCard.useBoxShadow"],children:H("div",{className:On.settingsLine,children:[x(It,{configPath:"style.videoCard.useBorder",label:"使用卡片边框",tooltip:H(_e,{children:["勾选后, 视频卡片会有边框包裹, 更像是一个卡片~ ",x("br",{}),"整个卡片区域可点击 / 可触发预览 / 可使用右键菜单 ",x("br",{}),"否则只是封面区域可以 ",x("br",{}),"使用快捷键 ",x(Pa,{k:"Shift+B"})," 切换状态 ",x("br",{}),EK.map(l=>x(Cs,{color:"success",className:"mx-1",children:l},l))]})}),x(It,{configPath:"style.videoCard.useBorderOnlyOnHover",label:"仅在悬浮时显示",disabled:!o.videoCard.useBorder,tooltip:jr("仅在悬浮时显示","常驻显示")}),x(It,{configPath:"style.videoCard.useBoxShadow",disabled:!o.videoCard.useBorder,label:"悬浮卡片时使用发光效果",tooltip:x(_e,{children:"悬浮卡片时使用发光效果, 看起来比较花哨~"})})]})}),H(co,{title:H(_e,{children:["快照预览",x(Bu,{configPath:"videoCard.imgPreview.enabled",tooltip:"关闭此功能",className:"ml-3"})]}),resetSettingPaths:["videoCard.imgPreview.enabled","videoCard.imgPreview.autoPreviewWhenKeyboardSelect","videoCard.imgPreview.autoPreviewWhenHover","videoCard.imgPreview.disableWhenMultiSelecting","useDelayForHover","autoPreviewUpdateInterval"],children:[H("div",{className:On.settingsLine,children:[x(It,{disabled:!n,configPath:"videoCard.imgPreview.autoPreviewWhenHover",label:"鼠标悬浮后自动开始",tooltip:H(_e,{children:[jr("鼠标悬浮后自动开始预览, 不跟随鼠标位置","预览进度跟随鼠标位置(百分比)"),"切换设置快捷键: ",x(Pa,{k:"Shift+M"})]})}),x(It,{disabled:!n,configPath:"videoCard.imgPreview.disableWhenMultiSelecting",label:"多选时禁用",tooltip:jr("多选开启时, 禁用快照预览","不禁用")}),x(It,{disabled:!n,configPath:"useDelayForHover",label:"延迟悬浮预览",tooltip:"延迟悬浮预览"}),x(It,{disabled:!n,configPath:"videoCard.imgPreview.autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始",tooltip:H(_e,{children:["手动预览快捷键: ",x(Pa,{k:"."})," or ",x(Pa,{k:"P"})," ",x("br",{}),"切换设置快捷键: ",x(Pa,{k:"Shift+P"})]})})]}),H("div",{className:On.settingsLine,children:["自动预览更新间隔",x(xA,{disabled:!n,className:"w-500px",min:0,max:1e3,keyboard:true,onChange:l=>at.autoPreviewUpdateInterval=l,value:i}),H("span",{style:{width:"65px"},children:["(",i,"ms)"]})]})]}),x(co,{title:H(_e,{children:["操作按钮",H(vr,{children:["视频卡片右上角「稍后再看」按钮旁 ",x("br",{}),"「稍后再看」因其通用性不提供关闭选项"]})]}),resetSettingPaths:["videoCard.actions.showLargePreview","videoCard.actions.openInPipWindow","videoCard.videoPreview.useMp4","videoCard.videoPreview.usePreferredCdn","videoCard.videoPreview.useScale","videoCard.videoPreview.useVideoCardAsTrigger","pipWindow.defaultLocked","pipWindow.autoWebFullscreen"],children:H("div",{className:"grid grid-cols-[repeat(2,max-content)_1fr] items-start gap-x-20px",children:[x(It,{configPath:"videoCard.actions.showLargePreview",label:"浮动预览",tooltip:H(_e,{children:["创意来源「浮图秀」, 但使用视频预览 ",x("br",{}),"操作说明: ",x("br",{}),"1. 鼠标悬浮打开 「浮动预览」, 离开关闭 ",x("br",{}),"2. 点击固定「浮动预览」, 固定指: 不再随鼠标移出关闭预览 ",x("br",{}),"3. 可使用以下方式关闭固定的「浮动预览」",H("ul",{className:"ml-30px list-circle",children:[x("li",{children:"再次点击视频卡片按钮"}),x("li",{children:"点击预览视频右上方的「关闭」按钮"}),x("li",{children:"触发其他卡片的「浮动预览」"}),x("li",{children:"Esc键"}),x("li",{children:"点击页面空白处"})]})]})}),x(It,{configPath:"videoCard.actions.openInPipWindow",label:"小窗打开",tooltip:x(_e,{children:"仅当「文档画中画」API 可用时, 勾选生效"})}),x(sc,{className:"grid-col-span-full my-2px py-0"}),H("div",{className:"flex flex-col",children:[x(It,{configPath:"videoCard.videoPreview.useMp4",disabled:!e,label:"浮动预览: 使用 mp4",tooltip:jr("使用 mp4, 最高 720p, 有声音","使用 dash, 最高 1080p, 无声音, 理论上更快")}),x(It,{configPath:"videoCard.videoPreview.usePreferredCdn",disabled:!e,label:"浮动预览: 使用优选 CDN",tooltip:jr("使用优选 CDN (降低 MCDN & PCDN 优先级)","使用默认 CDN")}),x(It,{configPath:"videoCard.videoPreview.useScale",disabled:!e,label:"浮动预览: 使用放大效果",tooltip:jr("浮动预览面板: 放大展开 (类似浮图秀)","浮动预览面板: 滑动展开")}),x(It,{configPath:"videoCard.videoPreview.useVideoCardAsTrigger",label:"浮动预览: 使用视频卡片作为触发器",tooltip:H(_e,{children:[jr("使用「视频卡片」作为触发器","使用「视频卡片右上角按钮」作为触发器, 悬浮视频卡片 1 秒后展开"),x(sc,{className:"my-1"}),x("ul",{className:"ml-25px list-circle",children:x("li",{children:"与上面「浮动预览」开关独立"})})]})})]}),H("div",{className:"flex flex-col",children:[x(It,{configPath:"pipWindow.defaultLocked",disabled:!t,label:"小窗: 默认锁定",tooltip:jr("小窗打开时: 默认锁定","小窗打开时: 不锁定")}),x(It,{configPath:"pipWindow.autoWebFullscreen",disabled:!t,label:"小窗: 自动网页全屏",tooltip:jr("自动网页全屏","不启用")})]})]})})]})}function $6e(){const e=MW().id,t=jR(e),{colorPickerThemeSelectedColor:n}=Ft(),[r,o]=f.useState(n||Wf.Pink),i=f.useMemo(()=>typeof r=="string"?r:r.toHexString(),[r]);return ho(()=>{Eg.updateThrottled();}),x("div",{children:$W.map(({name:s,themes:l,tooltip:u})=>H(f.Fragment,{children:[H("div",{className:"mt-2 flex items-center text-size-1.5em",children:[s,x(vr,{className:"size-16px",useBlackBg:true,children:u})]}),x("div",{className:"flex flex-wrap gap-x-5px gap-y-2px",children:l.map(d=>{const m=e===d.id,p=d.isCustom,g=!!t&&t!==d.id,b=28,y=b+8;let S=x("div",{"data-role":"preview-wrapper",style:{width:y},className:X("mx-auto my-0 aspect-1 b-2px rounded-full b-solid",m?"b-gate-primary":"b-transparent","flex items-center justify-center text-size-0"),children:x("div",{"data-role":"preview",className:"aspect-1 flex items-center justify-center rounded-full text-white",css:un("width:",b,"px;background-color:",p?i:d.colorPrimary,";",""),children:m&&x(jp,{size:18,useAnimation:g})})});d.isCustom&&(S=x(wA,{value:r,onChange:w=>o(w),onOpenChange:w=>{w||es({colorPickerThemeSelectedColor:i});},children:S}));let C=H("div",{className:"min-w-60px cursor-pointer text-center",onClick:w=>{es({theme:d.id});},children:[S,d.name]});return (d.tooltip||KL[d.id])&&(C=x(sn,{title:H(_e,{children:[d.tooltip,KL[d.id]]}),color:d.colorPrimary,children:C})),C=x(f.Fragment,{children:C},d.id),C})})]},s))})}function LB(e,t,n){return Do(e,r=>{const i=!!!er(at,t);Uf(at,t,i),Qt.success(`已${i?"启用":"禁用"}「${n}」`);})}const M6e="basic",BB=zn({tab:M6e});function T6e(){return LB("Shift+P","videoCard.imgPreview.autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),LB("Shift+M","videoCard.imgPreview.autoPreviewWhenHover","鼠标悬浮后自动开始预览"),w6e(),null}const A6e={name:"4k370z",styles:"&.ant-tabs{.ant-tabs-tab{justify-content:end;padding-inline:5px 15px;}.ant-tabs-nav-operations{display:none;}}"};function R6e({show:e,onHide:t}){const{tab:n}=gt(BB);return H(Hg,{show:e,onHide:t,hideWhenMaskOnClick:true,hideWhenEsc:true,width:900,clsModalMask:"[&:has(svg.peeking)]:bg-transparent",clsModal:"max-h-unset [&:has(svg.peeking)]:opacity-10",children:[H("div",{className:_o.modalHeader,children:[H("div",{className:_o.modalTitle,children:[x(CR,{className:"mr-4px mt--2px size-26px"}),"设置"]}),x(Vg,{onClick:t})]}),x("main",{className:_o.modalBody,style:{overflow:"hidden"},children:x(vA,{tabPlacement:"start",size:"middle",css:A6e,activeKey:n,onChange:r=>BB.tab=r,items:[{label:"常规设置",key:"basic",children:x(BNe,{})},{label:"视频卡片",key:"video-card",children:x(E6e,{})},{label:"内容过滤",key:"filter",children:x(WNe,{})},{label:"主题选择",key:"theme-select",children:x("div",{className:On.tabPane,children:x($6e,{})})},{label:"Tab 设置",key:"video-source-tab-config",children:x(v6e,{})},{label:"其他页面",key:"other-pages",children:x(YNe,{})},{label:"高级设置",key:"advance",children:x(E3e,{})}]})})]})}const N6e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"m19 12l12 12l-12 12"})]}),$K=f.forwardRef(N6e);function P6e({children:e,initialOpen:t=false,ref:n}){const[r,o]=SW(t);f.useImperativeHandle(n,()=>o,[o]);const i=x(ht,{onClick:o.toggle,className:"icon-only-round-button",children:x($K,{className:X("size-13px",r?"rotate-z-0":"rotate-z-180deg")})});return H(_e,{children:[i,r&&e]})}var AM=new Map,qb=new WeakMap,kB=0,I6e;function O6e(e){return e?(qb.has(e)||(kB+=1,qb.set(e,kB.toString())),qb.get(e)):"0"}function D6e(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?O6e(e.root):e[t]}`).toString()}function _6e(e){const t=D6e(e);let n=AM.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(s=>{s.forEach(l=>{var u;const d=l.isIntersecting&&o.some(m=>l.intersectionRatio>=m);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=d),[...(u=r.get(l.target))!=null?u:[]].forEach(m=>{m(d,l);});});},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},AM.set(t,n);}return n}function L6e(e,t,n={},r=I6e){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const u=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:u,intersectionRect:u,rootBounds:u}),()=>{}}const{id:o,observer:i,elements:s}=_6e(n),l=s.get(e)||[];return s.has(e)||s.set(e,l),l.push(t),i.observe(e),function(){l.splice(l.indexOf(t),1),l.length===0&&(s.delete(e),i.unobserve(e)),s.size===0&&(i.disconnect(),AM.delete(o));}}function B6e({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:s,initialInView:l,fallbackInView:u,onChange:d}={}){var m;const[p,g]=f.useState(null),b=f.useRef(d),y=f.useRef(l),[S,C]=f.useState({inView:!!l,entry:void 0});b.current=d,f.useEffect(()=>{if(y.current===void 0&&(y.current=l),s||!p)return;let T;return T=L6e(p,(A,I)=>{const N=y.current;y.current=A,!(N===void 0&&!A)&&(C({inView:A,entry:I}),b.current&&b.current(A,I),I.isIntersecting&&i&&T&&(T(),T=void 0));},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},u),()=>{T&&T();}},[Array.isArray(e)?e.toString():e,p,o,r,i,s,n,u,t]);const w=(m=S.entry)==null?void 0:m.target,E=f.useRef(void 0);!p&&w&&!i&&!s&&E.current!==w&&(E.current=w,C({inView:!!l,entry:void 0}),y.current=l);const M=[g,S.inView,S.entry];return M.ref=M[0],M.inView=M[1],M.entry=M[2],M}function zB(e){return !f.Children.toArray(e.props?.children).length}function k6e(e){const[t,n]=f.useState(e),r=f.useRef(t),o=f.useCallback(s=>{const l=typeof s=="function"?s(r.current):s;r.current=l,n(l);},[n]),i=f.useCallback(()=>r.current,[]);return [t,o,i]}function ql(e){const[t,n,r]=k6e(e),o=f.useMemo(()=>({state:t,get:r,set:n,get val(){return r()},set val(i){n(i);}}),[r,n]);return o.state=t,o}function RM(e){const t=f.useRef(e),n=f.useCallback(()=>t.current,[]),r=f.useCallback(o=>t.current=o,[]);return f.useMemo(()=>({get:n,set:r,get val(){return n()},set val(o){r(o);}}),[n,r])}function MK({src:e,avif:t,webp:n,imgProps:r,className:o,...i}){return t??=!Pg,n??=true,H("picture",{className:or("h-full w-full object-cover",o),...i,children:[t&&x("source",{srcSet:`${e}.avif`,type:"image/avif"}),n&&x("source",{srcSet:`${e}.webp`,type:"image/webp"}),x("img",{src:e,loading:"lazy",className:"block h-full w-full",...r})]})}const MS=uV();function z6e(e){const t=gt(MS);return e?t.get(e):void 0}function F6e(e){MS.delete(e);}function UN(e){if(dc(e))return e.param;if(fc(e))return e.id.toString()}const H6e=typeof unsafeWindow<"u"?unsafeWindow:globalThis,WN=(e,t)=>{Pu(()=>H6e[e]=t);},V6e=`${WM}_gridItems`;function j6e(e){const t=e.filter(n=>n.api!==Ze.Separator);jTe(t),WN(V6e,t);}const U6e={getGenericCardDatas:hN,copyBvidsSingleLine:pN,copyBvidInfos:vN};setTimeout(()=>{Object.entries(U6e).forEach(([e,t])=>{WN(`${WM}_${e}`,t);});});function W6e(e){const{enabled:t,keywords:n}=gt(at.filter.byAuthor),{blockUpMids:r}=f.useMemo(()=>wM(n),[n]);return e?t&&r.has(e):false}var Kb={},Ro={},GE={exports:{}},FB;function G6e(){return FB||(FB=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=true,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=true,e.exports.default=e.exports;})(GE)),GE.exports}var HB;function q6e(){if(HB)return Ro;HB=1;var e=Lg();Object.defineProperty(Ro,"__esModule",{value:true}),Ro.isUndef=Ro.isString=Ro.isObject=Ro.isNumber=Ro.isFunction=Ro.isBoolean=void 0;var t=e(G6e());return Ro.isObject=function(r){return r!==null&&(0, t.default)(r)==="object"},Ro.isFunction=function(r){return typeof r=="function"},Ro.isString=function(r){return typeof r=="string"},Ro.isBoolean=function(r){return typeof r=="boolean"},Ro.isNumber=function(r){return typeof r=="number"},Ro.isUndef=function(r){return typeof r>"u"},Ro}var qE={},VB;function K6e(){return VB||(VB=1,(function(e){Object.defineProperty(e,"__esModule",{value:true}),e.default=void 0;var t=!!(typeof window<"u"&&window.document&&window.document.createElement);e.default=t;})(qE)),qE}var jB;function Y6e(){if(jB)return Kb;jB=1;var e=Lg();Object.defineProperty(Kb,"__esModule",{value:true}),Kb.getTargetElement=r;var t=q6e(),n=e(K6e());function r(o,i){if(n.default){if(!o)return i;var s;return (0, t.isFunction)(o)?s=o():"current"in o?s=o.current:s=o,s}}return Kb}var TK=Y6e();async function X6e(e,t,n=false,r=false){const o={cid:t,fnver:0,fnval:n?1:16},i=e.toString();if(i.startsWith("BV"))o.bvid=i;else if(/^\d+$/.test(i))o.avid=i;else throw new Error("Invalid videoId provided, must be avid | bvid");const l=(await Yt.get("/x/player/wbi/playurl",{params:o})).data;function u(p){return yM(p,[g=>Q6e(g,r)],["desc"])}if(l?.data?.durl){const p=(l.data.durl||[]).map(g=>[g.url,...g.backup_url||[]]).flat().filter(Boolean);if(p.length)return u(p)}return yM(l.data?.dash?.video||[],["id","codecid"],["desc","desc"]).map(p=>u([p.baseUrl,...p.backupUrl||[]])[0]).filter(Boolean)}function Q6e(e,t){if(!t)return 10;const{hostname:n,searchParams:r,pathname:o}=new URL(e);return n.includes("mcdn")||r.get("os")==="mcdn"?2:o.startsWith("/v1/resource/")?1:n.includes("-mirror")?100:10}function GN(e){return !!(e?.image?.length&&e?.index?.length)}function UB(e){return Vn(e)?GN(e.data):true}async function Z6e(e){const n=(await Yt.get("/x/player/videoshot",{params:{bvid:e,index:"1"}})).data;return Vn(n)||ti("videoshot error for %s: %o",e,n),GN(n.data)||ti("videoshot data invalid bvid=%s: %o",e,n.data),n}const KE=new SN({maxSize:1e4}),J6e=el(async e=>{if(KE.has(e)){const s=KE.get(e);if(s)return s}const t=5,n=200;let r=0,o;do{if(r++,o=await Z6e(e),UB(o))break;await gn(n);}while(r<t);UB(o)&&KE.set(e,o);const i=o.data;if(at.videoCard.imgPreview.autoPreviewWhenHover){const s=i?.image||[];await RB(s[0]),(async()=>{for(const l of s.slice(1))await RB(l);})();}return o}),ePe=po.extend("VideoCard:services");function AK(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:Cc()}),i=(await Yt.post(`/x/v2/history/toview/${e}`,r)).data,s=Vn(i);return s||Jt(i?.message||"出错了"),s}}const NM=AK("add"),tPe=AK("del");async function nPe(e){return {videoshotJson:await J6e(e)}}function rPe(e){return GN(e?.videoshotJson?.data)}const oPe=e=>!!e?.playUrls?.length,WB=new SN({maxSize:1e4,maxAge:Qr("1h")}),iPe=el(async({bvid:e,cid:t,useMp4:n,usePreferredCdn:r,aspectRatioFromItem:o})=>{const i=JSON.stringify([e,n,r]),s=WB.get(i);if(s)return s;let l;if(t===void 0||o===void 0){const m=await pG(e);if(t=m[0]?.cid,l=m[0]?.dimension,t===void 0)throw new TypeError(`can not get cid by bvid=${e}`)}const[u,d]=await c1(()=>X6e(e,t,n,r));if(ePe("playUrl: bvid=%s cid=%s %s",e,t,d),u)throw vs.error({title:"获取视频播放地址失败",description:u.message||u}),u;return d?.length&&WB.set(i,{playUrls:d,dimension:l}),{playUrls:d??void 0,dimension:l}}),YE=po.extend("large-preview:LargePreview"),RK={right:{multiplier:1,axis:"x",reverse:"left"},left:{multiplier:-1,axis:"x",reverse:"right"},bottom:{multiplier:1,axis:"y",reverse:"top"},top:{multiplier:-1,axis:"y",reverse:"bottom"}},So={border:40,card:10};function sPe(e){return e?.closest(eM(Kl,"bili-video-card"))?.querySelector(eM(Q9,"bili-video-card__image"))?.getBoundingClientRect()}const aPe=f.memo(function({children:t,aspectRatio:n=1.7777777777777777,cardDescendantTarget:r,ref:o,...i}){const s=dS(o),[l,u]=f.useState(false),[d,m]=f.useState(void 0);YE("render state: %o",{visible:l,position:d});const p=tt(()=>{u(false),m(void 0);}),g=tt(()=>{const E=sPe(TK.getTargetElement(r)??void 0);if(!E)return p();const[M,T]=[document.documentElement.clientWidth,document.documentElement.clientHeight],A=40;if(E.top>T-A||E.bottom<0+A||E.left>M-A||E.right<0+A)return p();const I={top:{x:0,y:0,width:M,height:E.top},bottom:{x:0,y:E.bottom,width:M,height:T-E.bottom},left:{x:0,y:0,width:E.left,height:T},right:{x:E.right,y:0,width:M-E.right,height:T}},N=J=>{const ee=n,te=1,re=J.width/ee,ie=J.height/te;return {scale:Math.min(re,ie),scaleLimit:re>ie?"height":"width"}},P=Ia(Object.entries(I).map(([J,ee])=>({direction:J,bbox:ee,...N(ee)})),["scale",J=>{switch(J.direction){case "top":return E.top;case "bottom":return T-E.bottom;case "left":return E.left;case "right":return M-E.right}}],["desc","desc"])[0];YE("picked direction",P);const{direction:O,bbox:D,scale:L,scaleLimit:F}=P;let U,W;if(F==="width")U=Math.floor(D.width-(So.card+So.border)),W=U/n;else if(F==="height")W=Math.floor(D.height-(So.card+So.border)),U=W*n;else throw new Error("unexpected scaleLimit");let z=0,k=0,G=0,j=0;const K=()=>{G=E.y+E.height/2-k;},Q=()=>{j=E.x+E.width/2-z;},_=()=>{if(z<So.border){z=So.border;return}if(z+U>M-So.border){z=M-So.border-U;return}},B=()=>{if(k<So.border){k=So.border;return}if(k+W>T-So.border){k=T-So.border-W;return}};switch(O){case "top":z=E.x+E.width/2-U/2,k=E.top-So.card-W,_(),Q();break;case "bottom":z=E.x+E.width/2-U/2,k=E.bottom+So.card,_(),Q();break;case "right":z=E.right+So.card,k=E.y+E.height/2-W/2,B(),K();break;case "left":z=E.left-So.card-U,k=E.y+E.height/2-W/2,B(),K();break}z=Math.floor(z),k=Math.floor(k);const Y={direction:O,elWidth:U,elHeight:W,elPosX:z,elPosY:k,arrowTop:G,arrowLeft:j};YE("updating state to: visible: ✅, position: %o ",Y),u(true),m(Y);}),b=f.useMemo(()=>qa(g,100),[g]);ho(g),Es("resize",b,{target:window}),Es("scroll",b,{target:window});const{useScale:y}=Ft().videoCard.videoPreview,S=y?.2:.3,C=f.useMemo(()=>{const E=d?.direction;if(!E)return;const{axis:M,multiplier:T,reverse:A}=RK[E];if(y)return M==="x"?{scale:.5,transformOrigin:`${A} ${d.arrowTop}px`}:{scale:.5,transformOrigin:`${d.arrowLeft}px ${A}`};{let I=30;return E==="top"&&(I=20),M==="x"?{x:-T*I,y:0}:{x:0,y:-T*I}}},[d,y]);return x("div",{...i,ref:s,className:X("fixed",qxe,l?"block":"hidden"),css:d&&un("width:",d.elWidth,"px;height:",d.elHeight,"px;top:",d.elPosY,"px;left:",d.elPosX,"px;",""),children:l&&H(bR.div,{className:"relative h-100%",initial:{opacity:0,...C},animate:{opacity:1,x:0,y:0,scale:1},transition:{bounce:0,duration:S},children:[d?.direction&&x(lPe,{size:7,direction:d.direction,arrowTop:d.arrowTop,arrowLeft:d.arrowLeft}),x("div",{className:"h-full overflow-hidden rounded-20px bg-white/50% backdrop-blur-10px",css:un("box-shadow:0px 0px 1px 1px ",ts,";",""),children:t})]})})});function lPe({size:e,direction:t,arrowTop:n,arrowLeft:r}){const{axis:o,multiplier:i,reverse:s}=RK[t],l=f.useMemo(()=>o==="x"?un`
        ${t}: 100%;
        margin-${t}: -1px;
        top: ${n}px;
        margin-top: -${e/2}px;
      `:un`
        ${t}: 100%;
        margin-${t}: -1px;
        left: ${r}px;
        margin-left: -${e/2}px;
      `,[e,t,o,n,r]);return x("div",{className:"absolute box-content h-0 w-0",css:[un("border:",e,"px solid transparent;",""),l,un`
          border-${t}-color: ${ts};
        `,"",""]})}const Yd=await( DA({volume:void 0,muted:void 0},"large-preview-store")),cPe=function({currentTimeRef:e,ref:t,...n}){const r=dS(t),o=f.useRef(false);ho(()=>{r.current&&(typeof e.current=="number"&&(r.current.currentTime=e.current),typeof Yd.volume=="number"&&(r.current.volume=Yd.volume),typeof Yd.muted=="boolean"&&(r.current.muted=Yd.muted)),o.current=true;});const i=tt(()=>{o.current&&(e.current=r.current?.currentTime);}),s=tt(()=>{o.current&&r.current&&(Yd.volume=r.current.volume,Yd.muted=r.current.muted);});return x("video",{ref:r,...n,onTimeUpdate:i,onVolumeChange:s})},uPe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M10.696 17.504c2.639-2.638 5.774-2.565 9.182-.696L32.62 9.745l-.721-4.958L43.213 16.1l-4.947-.71l-7.074 12.73c1.783 3.638 1.942 6.544-.697 9.182l-7.778-7.778L6.443 41.556l11.995-16.31z"})]}),dPe=f.forwardRef(uPe),fPe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M39 6H9a3 3 0 0 0-3 3v30a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3"}),x("path",{d:"M20.5 28v-6.062l5.25 3.03L31 28l-5.25 3.031l-5.25 3.031zM6 15h36m-9-9l-6 9m-6-9l-6 9"})]})]}),mPe=f.forwardRef(fPe);function GB(e){e.current!==void 0&&(clearTimeout(e.current),e.current=void 0);}const Yb=wZ.extend("large-preview:trigger");function NK({shouldFetchPreviewData:e,hasLargePreviewActionButton:t,actionButtonVisible:n,actionButtonProps:r,actionButtonCss:o,bvid:i,cid:s,uniqId:l,recSharedEmitter:u,cardTarget:d,aspectRatioFromItem:m,cover:p,videoCardAsTriggerRef:g}){const{useMp4:b,useVideoCardAsTrigger:y,usePreferredCdn:S}=gt(at.videoCard.videoPreview),C=ql(void 0),w=sS(async()=>{if(!e||oPe(C.val))return;const ne=await iPe({bvid:i,cid:s,useMp4:b,usePreferredCdn:S,aspectRatioFromItem:m});C.set(ne);});ja(()=>{C.set(void 0);},[b,S]);const E=ws(w,{manual:true,loadingDelay:100}),[M,T]=f.useState(false),A=ql(void 0),I=ql(void 0),N=ql(void 0),P=RM({}),O=tt(()=>N.val?Date.now()-N.val<1200:false),D=f.useRef(void 0),L=f.useRef(void 0),F=tt(()=>{GB(D),GB(L);}),U=tt((ne,ae)=>{Yb("%s: showBy %s %s",i,ne,ae),T(true),A.set(ne),I.set(ae),u.emit("show-large-preview",l),N.set(void 0);}),W=tt((ne=true)=>{ne&&Yb("%s: hide",i),T(false),A.set(void 0),I.set(void 0),N.set(Date.now());});ao(u,"show-large-preview",({data:ne})=>{ne!==l&&(F(),W(false));});const z=tt(ne=>{if(Yb("%s: onMouseEnter %s",i,ne),P.set({...P.val,[ne]:true}),A.val==="click")return;E.run(),F();let ae=0;ne==="video-card-action-button"&&(ae=200),ne==="video-card"&&(ae=1e3),ae?D.current=setTimeout(()=>U("hover",ne),ae):U("hover",ne);}),k=tt(ne=>{if(Yb("%s: onMouseLeave %s",i,ne),P.set({...P.val,[ne]:false}),A.val==="click")return;const ae=()=>{P.val.popover||P.val["video-card-action-button"]||W();};F(),ne==="video-card-action-button"||ne==="video-card"||ne==="popover"?L.current=setTimeout(ae,250):ae();}),G=tt(ne=>{F(),A.val==="click"?W():U("click",ne);}),j=tt(()=>{if(Y.current)return Math.floor(Y.current)}),K=tt(()=>!!(M||O())),Q=tt(()=>{if(!i)return;const ne=new URL(`https://${Jl.Main}/video/${i}`),ae=j();ae&&ne.searchParams.set("t",ae.toString()),vi(ne.href),B.current?.pause(),W();}),_=f.useMemo(()=>dN({dimensionFromApi:C.state?.dimension})?.aspectRatio??m,[C.state?.dimension]),B=f.useRef(null),Y=f.useRef(void 0),J=f.useRef(null),ee=M&&!!C.state?.playUrls?.length;let te;{const ne=f.useCallback(()=>z("popover"),[z]),ae=f.useCallback(()=>k("popover"),[k]);te=ee&&H(aPe,{ref:J,aspectRatio:_,onMouseEnter:ne,onMouseLeave:ae,cardDescendantTarget:d,children:[x(cPe,{ref:B,currentTimeRef:Y,autoPlay:true,controls:true,loop:true,poster:p,className:"size-full object-contain",children:C.state?.playUrls?.map((ce,se)=>x("source",{src:ce},se))}),H("div",{className:"absolute right-10px top-10px flex flex-row-reverse items-center justify-start gap-x-5px",children:[A.state==="click"?x(Zs,{inlinePosition:"right",icon:x(STe,{className:"size-14px"}),tooltip:"关闭",onClick:ce=>{ce.preventDefault(),ce.stopPropagation(),W();}}):x(Zs,{inlinePosition:"right",icon:x(dPe,{className:"size-14px"}),tooltip:"固定",onClick:ce=>{ce.preventDefault(),ce.stopPropagation(),G("popover-action-button");}}),x(Zs,{inlinePosition:"right",icon:x(XG,{className:"size-14px"}),tooltip:"新窗口打开",onClick:ce=>{ce.preventDefault(),ce.stopPropagation(),Q();}})]})]});}let re;{const ne=f.useCallback(()=>z("video-card-action-button"),[z]),ae=f.useCallback(()=>k("video-card-action-button"),[k]),ce=f.useCallback(se=>{se.preventDefault(),se.stopPropagation(),G("video-card-action-button");},[G]);re=t&&e&&x(Zs,{css:o,...r,visible:n,active:ee,inlinePosition:"right",icon:E.loading?x(bU,{className:"size-16px"}):x(mPe,{className:"size-15px"}),tooltip:A.state==="click"&&M?"关闭浮动预览":"浮动预览",onMouseEnter:ne,onMouseLeave:ae,onClick:ce});}Do("Escape",W),v$e(()=>W(),[J,()=>TK.getTargetElement(d)?.closest(eM(Kl,"bili-video-card"))]),Es("fullscreenchange",()=>{document.fullscreenElement&&(!M||A.val==="click"||document.fullscreenElement===B.current&&U("click","popover-video-fullscreen-button"));},{target:document});const ie=f.useRef(null),de=g||ie;return Es("mouseenter",()=>{!y||!g||z("video-card");},{target:de}),Es("mouseleave",()=>{!y||!g||k("video-card");},{target:de}),{largePreviewActionButtonEl:re,largePreviewEl:te,getLargePreviewCurrentTime:j,shouldUseLargePreviewCurrentTime:K,largePreviewVisible:M,hideLargePreview:W}}const hPe=$3e(ts,.1),Gi={normalBorder:un("border-color:",uW,";",""),activeBorder:un("border-color:",ts,";box-shadow:0px 0px 9px 4px ",hPe,";",""),rounded:un("border-radius:",FR,";",""),bgLv1:un("background-color:",jy,";",""),coverZoomEffect:{name:"dj03ws",styles:".bili-video-card__cover{transform-origin:center center;transition:transform 0.2s ease-out;transform:scale(1.05);}"}},pPe=un(Gi.activeBorder," &:hover{",Gi.activeBorder,";}","");function gPe(e){const t=`--${Kr}--separator-color`;return f.useMemo(()=>{if(e)return un`
      ${Gi.rounded}
      ${Gi.normalBorder}

      background-color: ${tM};
      ${t}:  ${jy};
      &:hover {
        background-color: ${jy};
        ${t}: ${$Ee};
      }

      /* disable padding */
      margin-inline: 0;
      .bili-video-card__wrap {
        padding: 0;
      }
    `},[e])}var vPe={name:"7dle4o",styles:"border:1px solid transparent;transition-property:border-color,box-shadow,background-color;transition-duration:0.3s;transition-timing-function:ease-in-out"};function bPe(){const{useDelayForHover:e,style:{videoCard:{useBorder:t,useBorderOnlyOnHover:n,useBoxShadow:r}}}=Ft(),{multiSelecting:o}=gt(Hn),i=W3e();return f.useMemo(()=>[vPe,(o||t&&!i)&&[un("cursor:pointer;",Gi.rounded," &:hover{",Gi.bgLv1," ",Gi.normalBorder," ",r&&Gi.activeBorder," ",e&&Gi.coverZoomEffect,";}",""),(o||!n)&&Gi.normalBorder]],[t,n,r,e,i,o])}function yPe(e){return e&&[Gi.rounded,Gi.activeBorder]}const SPe={withStackTrace:false},PK=(e,t,n=SPe)=>{const r=t.isOk()?{type:"Ok",value:t.value}:{type:"Err",value:t.error},o=n.withStackTrace?new Error().stack:void 0;return {data:r,message:e,stack:o}};function Qc(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i);})}return new(n||(n=Promise))(function(i,s){function l(m){try{d(r.next(m));}catch(p){s(p);}}function u(m){try{d(r.throw(m));}catch(p){s(p);}}function d(m){m.done?i(m.value):o(m.value).then(l,u);}d((r=r.apply(e,[])).next());})}function qB(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qs(e){return this instanceof qs?(this.v=e,this):new qs(e)}function KB(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(b){return function(y){return Promise.resolve(y).then(b,p)}}function l(b,y){r[b]&&(o[b]=function(S){return new Promise(function(C,w){i.push([b,S,C,w])>1||u(b,S);})},y&&(o[b]=y(o[b])));}function u(b,y){try{d(r[b](y));}catch(S){g(i[0][3],S);}}function d(b){b.value instanceof qs?Promise.resolve(b.value.v).then(m,p):g(i[0][2],b);}function m(b){u("next",b);}function p(b){u("throw",b);}function g(b,y){b(y),i.shift(),i.length&&u(i[0][0],i[0][1]);}}function CPe(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,i){t[o]=e[o]?function(s){return (n=!n)?{value:qs(e[o](s)),done:false}:i?i(s):s}:i;}}function xPe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof qB=="function"?qB(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(l,u){s=e[i](s),o(l,u,s.done,s.value);})};}function o(i,s,l,u){Promise.resolve(u).then(function(d){i({value:d,done:l});},s);}}class io{constructor(t){this._promise=t;}static fromSafePromise(t){const n=t.then(r=>new Fs(r));return new io(n)}static fromPromise(t,n){const r=t.then(o=>new Fs(o)).catch(o=>new fs(n(o)));return new io(r)}static fromThrowable(t,n){return (...r)=>new io(Qc(this,void 0,void 0,function*(){try{return new Fs(yield t(...r))}catch(o){return new fs(n?n(o):o)}}))}static combine(t){return wPe(t)}static combineWithAllErrors(t){return EPe(t)}map(t){return new io(this._promise.then(n=>Qc(this,void 0,void 0,function*(){return n.isErr()?new fs(n.error):new Fs(yield t(n.value))})))}andThrough(t){return new io(this._promise.then(n=>Qc(this,void 0,void 0,function*(){if(n.isErr())return new fs(n.error);const r=yield t(n.value);return r.isErr()?new fs(r.error):new Fs(n.value)})))}andTee(t){return new io(this._promise.then(n=>Qc(this,void 0,void 0,function*(){if(n.isErr())return new fs(n.error);try{yield t(n.value);}catch{}return new Fs(n.value)})))}orTee(t){return new io(this._promise.then(n=>Qc(this,void 0,void 0,function*(){if(n.isOk())return new Fs(n.value);try{yield t(n.error);}catch{}return new fs(n.error)})))}mapErr(t){return new io(this._promise.then(n=>Qc(this,void 0,void 0,function*(){return n.isOk()?new Fs(n.value):new fs(yield t(n.error))})))}andThen(t){return new io(this._promise.then(n=>{if(n.isErr())return new fs(n.error);const r=t(n.value);return r instanceof io?r._promise:r}))}orElse(t){return new io(this._promise.then(n=>Qc(this,void 0,void 0,function*(){return n.isErr()?t(n.error):new Fs(n.value)})))}match(t,n){return this._promise.then(r=>r.match(t,n))}unwrapOr(t){return this._promise.then(n=>n.unwrapOr(t))}safeUnwrap(){return KB(this,arguments,function*(){return yield qs(yield qs(yield*CPe(xPe(yield qs(this._promise.then(n=>n.safeUnwrap()))))))})}then(t,n){return this._promise.then(t,n)}[Symbol.asyncIterator](){return KB(this,arguments,function*(){const n=yield qs(this._promise);return n.isErr()&&(yield yield qs(H0(n.error))),yield qs(n.value)})}}function H0(e){return new io(Promise.resolve(new fs(e)))}const IK=io.fromThrowable,OK=e=>{let t=Xs([]);for(const n of e)if(n.isErr()){t=Yo(n.error);break}else t.map(r=>r.push(n.value));return t},wPe=e=>io.fromSafePromise(Promise.all(e)).andThen(OK),DK=e=>{let t=Xs([]);for(const n of e)n.isErr()&&t.isErr()?t.error.push(n.error):n.isErr()&&t.isOk()?t=Yo([n.error]):n.isOk()&&t.isOk()&&t.value.push(n.value);return t},EPe=e=>io.fromSafePromise(Promise.all(e)).andThen(DK);var PM;(function(e){function t(o,i){return (...s)=>{try{const l=o(...s);return Xs(l)}catch(l){return Yo(i?i(l):l)}}}e.fromThrowable=t;function n(o){return OK(o)}e.combine=n;function r(o){return DK(o)}e.combineWithAllErrors=r;})(PM||(PM={}));function Xs(e){return new Fs(e)}function Yo(e){return new fs(e)}class Fs{constructor(t){this.value=t;}isOk(){return  true}isErr(){return !this.isOk()}map(t){return Xs(t(this.value))}mapErr(t){return Xs(this.value)}andThen(t){return t(this.value)}andThrough(t){return t(this.value).map(n=>this.value)}andTee(t){try{t(this.value);}catch{}return Xs(this.value)}orTee(t){return Xs(this.value)}orElse(t){return Xs(this.value)}asyncAndThen(t){return t(this.value)}asyncAndThrough(t){return t(this.value).map(()=>this.value)}asyncMap(t){return io.fromSafePromise(t(this.value))}unwrapOr(t){return this.value}match(t,n){return t(this.value)}safeUnwrap(){const t=this.value;return (function*(){return t})()}_unsafeUnwrap(t){return this.value}_unsafeUnwrapErr(t){throw PK("Called `_unsafeUnwrapErr` on an Ok",this,t)}*[Symbol.iterator](){return this.value}}class fs{constructor(t){this.error=t;}isOk(){return  false}isErr(){return !this.isOk()}map(t){return Yo(this.error)}mapErr(t){return Yo(t(this.error))}andThrough(t){return Yo(this.error)}andTee(t){return Yo(this.error)}orTee(t){try{t(this.error);}catch{}return Yo(this.error)}andThen(t){return Yo(this.error)}orElse(t){return t(this.error)}asyncAndThen(t){return H0(this.error)}asyncAndThrough(t){return H0(this.error)}asyncMap(t){return H0(this.error)}unwrapOr(t){return t}match(t,n){return n(this.error)}safeUnwrap(){const t=this.error;return (function*(){throw yield Yo(t),new Error("Do not use this generator out of `safeTry`")})()}_unsafeUnwrap(t){throw PK("Called `_unsafeUnwrap` on an Err",this,t)}_unsafeUnwrapErr(t){return this.error}*[Symbol.iterator](){const t=this;return yield t,t}}PM.fromThrowable;function _K(e){const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const o=await IK(Og.get,VU)(Y9+t,{responseType:"json",params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}});if(o.isErr())return Yo(o.error);const s=o.value.data;let l=s?.message;return Vn(s)?Xs(l):(l||=qM,l+=`(code: ${s?.code})`,l+=`
请重新获取 access_key 后重试`,Yo(new IR(s,l)))}}const $Pe=_K("dislike"),MPe=_K("cancel");function LK(e){const t={dislike:"/x/web-interface/feedback/dislike",cancel:"/x/web-interface/feedback/dislike/cancel"}[e];return async function(n,r){const o=new URLSearchParams({app_id:"100",platform:"5",from_spmid:"",spmid:"333.1007.0.0",goto:n.goto,id:n.id.toString()||"0",mid:n.owner?.mid?.toString()||"0",track_id:n.track_id,feedback_page:"1",reason_id:r.toString()}),i=await IK(Yt.post,VU)(t,o);if(i.isErr())return Yo(i.error);const s=i.value.data;return Vn(s)?Xs(s?.message):Yo(new IR(s))}}const TPe=LK("dislike"),APe=LK("cancel");function BK(e){return async function(t,n){const{reasonId:r}=xN(n);let o;if(n.platform==="app"?(Nr(dc(t),"expect app recommend"),o=await(e==="dislike"?$Pe:MPe)(t,r)):n.platform==="pc"?(Nr(fc(t),"expect pc recommend"),o=await(e==="dislike"?TPe:APe)(t,r)):vm(n),o.isErr()){const s=o.error;console.error(s?.stack||s);const l=s?.message;return Qt.error(l,8),false}const i=UN(t);return Nr(i,"dislikeKey should not be empty"),e==="dislike"&&(Qt.success("已标记不想看"),MS.set(i,{...n})),e==="cancel"&&(Qt.success("已撤销"),F6e(i)),true}}const RPe=BK("dislike"),NPe=BK("cancel"),PPe="_skeleton-active_wlycr_12";function IPe(e,t){const[n,r]=f.useState(void 0),[o,i]=f.useState(void 0),[s,l]=f.useState(void 0),u=tt(async()=>{if(!t)return;const{enable:d}=kK(e.api);if(!(d||zu(e)&&e.from==="fav-folder"))return;const m=await ku.getVideoFavState(t);m&&(r(m.favFolderNames),i(m.favFolderUrls),l(m.favFolderIds));});return f.useMemo(()=>({folderNames:n,folderUrls:o,folderIds:s,updateFavFolderNames:u}),[n,o,s,u])}function kK(e){const t=![Ze.Separator,Ze.Live,Ze.Fav].includes(e),n=e===Ze.Watchlater||e===Ze.Liked;return {enable:t,enableDetailMenu:n}}function OPe(e,t,n){if(!n)return;const{enable:r,enableDetailMenu:o}=kK(t.api);if(!r)return;const i=e.folderNames??[],s=e.folderUrls??[],l=e.folderIds??[],u=yi([{key:"quick-fav:faved:modify-fav",icon:x(BCe,{className:X(An,"color-gate-primary")}),label:`已收藏在 ${(i||[]).map(p=>`「${p}」`).join("")}`,async onClick(){Nr(l.length,"folderIds.length should not be empty"),await Zy(l,p=>$N(n,l,p));}},{test:o,key:"quick-fav:faved:browse-fav-folder-in-self-space",icon:x(Oo,{className:An}),label:"去个人空间查看收藏夹",onClick(){s.forEach(p=>{window.open(p,z0());});}}]),d=yi([{key:"quick-fav:unfaved:add-fav",icon:x(Bf,{className:An}),label:"收藏到",async onClick(){await dRe(async p=>{const g=await ku.addFav(n,p.id);return g&&Qt.success(`已加入收藏夹「${p.title}」`),g});}},{test:o,key:"quick-fav:unfaved:add-fav-to-default-folder",icon:x(Bf,{className:An}),label:"收藏到「默认收藏夹」",async onClick(){await ku.addFav(n)&&Qt.success(`已加入收藏夹「${uM}」`);}}]);return !!i.length?u:d}function DPe({ctx:e,item:t,cardData:n,tab:r,multiSelecting:o,multiSelectingAppendix:i,onRemoveCurrent:s,recSharedEmitter:l}){if(!zu(t))return [];const{avid:u}=n;e.folderNames,e.folderUrls;const d=e.folderIds??[];if(t.from==="fav-folder"){const m=o?[{key:"fav:batch-move-fav",label:`移动到其他收藏夹${i}`,icon:x(yV,{className:An}),async onClick(){if(!Hn.multiSelecting)return;const p=bS().filter(w=>zu(w)&&w.from==="fav-folder").toReversed(),g=new Set(p.map(w=>w.folder.id));if(!g.size)return Jt("至少选择一项视频");if(g.size>1)return Jt("多选移动: 只能批量移动同一源收藏夹下的视频");const b=p[0].folder.id,y=p.map(w=>`${w.id}:${w.type}`),S=p.map(w=>w.uniqId),C=p.map(w=>w.title);await Zy([t.folder.id],async w=>{Nr(w,"targetFolder should not be empty");const E=await ku.moveFavs(y,b,w.id);if(E)return F0(t.folder.id),F0(w.id),l.emit("remove-cards",[S,C,true]),Qt.success(`已移动 ${S.length} 个视频到「${w.title}」收藏夹`),E},false);}}]:[];return yi([{key:"fav:browse-fav-folder-in-self-space",label:"去个人空间查看收藏夹",icon:x(Oo,{className:An}),onClick(){const{id:p}=t.folder,g=rN(p);window.open(g,z0());}},{key:"fav:view-fav-in-new-window",label:"在新窗口中查看收藏夹",icon:x(Oo,{className:An}),onClick(){const{id:p}=t.folder,g=`/?${r1.FolderIdFull}=${p}`;window.open(g,z0());}},{test:!!u,key:"modify-fav",icon:x(xR,{className:An}),label:"编辑收藏",async onClick(){await Zy(d,async p=>{const g=await $N(u,d,p);return g&&p?.id!==t.folder.id&&s?.(t,n,true),g},false);}},{key:"remove-fav",label:"移除收藏",icon:x(cm,{className:An}),async onClick(){if(!await kA.confirm({centered:true,title:"移除收藏",content:H(_e,{children:["确定将视频「",t.title,"」",x("br",{}),"从收藏夹「",t.folder.title,"」中移除?"]})}))return;const g=`${t.id}:${t.type}`;await ku.removeFavs(t.folder.id,g)&&(F0(t.folder.id),s?.(t,n));}},...m])}return t.from==="fav-collection"?yi([{key:"open-fav-collection",label:"浏览合集",icon:x(Oo,{className:An}),onClick(){const{id:m}=t.collection,p=r!==nt.Fav||pn.selectedKey==="all"&&pn.usingShuffle?`/?${r1.CollectionIdFull}=${m}`:uG(m);window.open(p,z0());}}]):[]}const _Pe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:4,children:[x("path",{d:"M33 7.263A18.9 18.9 0 0 0 24 5C13.507 5 5 13.507 5 24s8.507 19 19 19a18.9 18.9 0 0 0 8-1.761"}),x("path",{strokeLinejoin:"round",d:"M31 30h12m-28-8l7 7l19-18m-4 13v12"})]})]}),LPe=f.forwardRef(_Pe),BPe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",children:[x("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M19 20a7 7 0 1 0 0-14a7 7 0 0 0 0 14Z"}),x("path",{d:"M30 35h12z",clipRule:"evenodd"}),x("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M30 35h12m-15-7h-8.2c-4.48 0-6.72 0-8.432.872a8 8 0 0 0-3.496 3.496C6 34.08 6 36.32 6 40.8V42h21"})]})]}),kPe=f.forwardRef(BPe),zPe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",children:[x("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.92 12.799Q16 12.41 16 12a4 4 0 0 0-4.799-3.92zM8.667 9.788a4 4 0 0 0 5.545 5.545l-1.474-1.474a2 2 0 0 1-2.597-2.597z",clipRule:"evenodd"}),x("path",{fill:"currentColor",fillRule:"evenodd",d:"m16.52 17.64l-1.47-1.469c-.972.51-2.002.829-3.05.829c-1.526 0-3.014-.678-4.34-1.632c-1.32-.95-2.396-2.112-3.076-2.938c-.1-.121-.174-.212-.236-.291a2 2 0 0 1-.1-.139q.028-.045.1-.139c.062-.08.136-.17.236-.291c.665-.808 1.71-1.938 2.99-2.875l-1.43-1.43C4.797 8.297 3.723 9.47 3.04 10.3l-.073.088c-.314.375-.737.883-.737 1.613s.423 1.238.737 1.613l.073.088c.74.899 1.94 2.203 3.451 3.29C7.994 18.073 9.891 19 12 19c1.67 0 3.206-.581 4.52-1.36M8.806 5.686C9.79 5.269 10.864 5 12 5c2.11 0 4.006.927 5.509 2.009c1.51 1.087 2.711 2.391 3.45 3.29l.074.088c.314.375.737.883.737 1.613s-.423 1.238-.737 1.613l-.073.088a20.5 20.5 0 0 1-2.015 2.123l-1.416-1.416a18.5 18.5 0 0 0 2.123-2.27a2 2 0 0 0 .1-.138a2 2 0 0 0-.1-.139a14 14 0 0 0-.236-.291c-.68-.826-1.756-1.989-3.075-2.938C15.014 7.678 13.526 7 12 7c-.551 0-1.097.088-1.632.246z",clipRule:"evenodd"}),x("path",{stroke:"currentColor",strokeWidth:2,d:"m5 2l16 16"})]})]}),YB=f.forwardRef(zPe),An="size-16px";function FPe(e){const{item:t,cardData:n,tab:r,favContext:o,watchlaterContext:i,hasDislikeEntry:s,onTriggerDislike:l,onRemoveCurrent:u,consistentOpenMenus:d,conditionalOpenMenus:m,multiSelecting:p}=e,{avid:g,bvid:b,cover:y,href:S,recommendReason:C,authorName:w,authorMid:E}=n,{watchlaterItemsOrder:M,filter:{dfHideOpusMids:{enabled:T}},dynamicFeed:{whenViewAll:{enableHideSomeContents:A}}}=Ft(),I=M===Eo.AddTimeAsc?"end":"start",N=M===Eo.AddTimeAsc?"移到最后":"移到最前",{recSharedEmitter:P}=ns(),O=tt(()=>{let se=S;S.startsWith("/")&&(se=new URL(S,location.href).href),$u(se);}),D=!!E&&Lq(t.api)&&r!==nt.KeepFollowOnly,L=tt(async()=>{if(!E)return Qt.error("UP mid 为空!");await vG.add(E)&&Qt.success(`已加入黑名单: ${w}`);}),F=tt(async()=>{if(!E)return Qt.error("UP mid 为空!");const se=`${E}`;if(at.filter.byAuthor.keywords.includes(se))return Jt(`已在过滤名单中: ${se}`);await Ha("filter.byAuthor.keywords",{add:[se]}),w&&VE(E,w),Qt.success(`已加入过滤名单: ${w||E}`);}),U=Xi(n.followed)?r===nt.DynamicFeed&&qp(t)||r===nt.Live&&qp(t)?true:dc(t)||fc(t)?RN(C):false:n.followed,W=U,z=tt(async()=>{if(!E||!await kA.confirm({centered:true,title:"取消关注",content:H(_e,{children:["确定取消关注「",w,"」?"]})}))return;await VAe.unfollow(E)&&Qt.success("已取消关注");}),k=!!E&&!!w,G=tt(()=>{E&&vi(`/?${bi.Mid}=${E}`);}),j=tt(()=>{E&&vi(`/?${Js.Mid}=${E}`);}),K=A&&ff(t)&&tn.selectedKey===Yp&&!!E,Q=tt(async()=>{K&&(await Ha("dynamicFeed.whenViewAll.hideIds",{add:[Vf+E]}),VE(E,w||""),Qt.success(`在「全部」动态中隐藏【${w}】的动态`));}),_=T&&ff(t)&&t.modules.module_dynamic.major?.type===Ko.MajorType.Opus&&!!E,B=tt(async()=>{if(!E)return Qt.error("UP mid 为空!");const se=`${E}`;if(at.filter.dfHideOpusMids.keywords.includes(se))return Jt(`已在过滤名单中: ${se}`);await Ha("filter.dfHideOpusMids.keywords",{add:[se]}),w&&VE(E,w),Qt.success(`已屏蔽【${w||E}】的图文动态`);}),Y=!!(ff(t)&&Wa&&tn.viewingSomeUp&&E),J=f.useMemo(()=>Y&&{label:"动态: 从此项开始查看",key:"动态: 从此项开始查看",icon:x(H_,{className:An}),onClick(){const se=new URL("/",location.href);se.searchParams.set(bi.Mid,E);const $e=Ga().findIndex(pe=>pe.api===Ze.DynamicFeed&&pe.id_str===t.id_str),le=Ga()[$e-1]?.id_str||t.id_str;se.searchParams.set(bi.Offset,le),vi(se.href);}},[Y,t,E]),ee=f.useMemo(()=>Y&&{icon:x(PCe,{className:An}),label:"动态: 从此项开始截止",key:"动态: 从此项开始截止",onClick(){const se=new URL("/",location.href);se.searchParams.set(bi.Mid,E),se.searchParams.set(bi.MinId,t.id_str),vi(se.href);}},[Y,t,E]),te=f.useMemo(()=>SM&&fM(t)&&!!t.page&&{key:"space-upload-view-start-from-here",label:`投稿: 从此页开始查看 (当前第${t.page}页)`,icon:x(H_,{className:An}),onClick(){const se=new URL(location.href);se.searchParams.set(Js.InitialPage,t.page.toString()),vi(se.href);}},[SM,t]),re=ff(t)||fM(t)?t.groupId:void 0,ie=re!==void 0,de=gt(tn.groups),ne=re!==void 0?de.find(se=>se.tagid===re):void 0,ae=ne?.name,ce=ne?.count;return f.useMemo(()=>{const{watchlaterAdded:se,hasWatchlaterEntry:$e,onToggleWatchlater:le}=i,pe={type:"divider"},be=p?" (多选)":"",Ce=yi([{key:"copy-link",label:`复制视频链接${be}`,icon:x(Eu,{className:An}),onClick(){Hn.multiSelecting?GTe():O();}},{test:!!b,key:"copy-bvid",label:`复制 BVID${be}`,icon:x(Eu,{className:An}),onClick(){Hn.multiSelecting?pN():$u(b);}},{test:!!b&&at.__internalEnableCopyBvidInfo,key:"copy-bvid-info",label:`复制 BVID 信息${be}`,icon:x(Eu,{className:An}),onClick(){Hn.multiSelecting?vN():$u(gN(n));}},{test:!!y,key:"view-cover",label:"查看封面",icon:x(Oo,{className:An}),onClick(){if(!y)return;vi(y);}}]),Ae=yi([{test:k&&U,key:"查看「投稿」与「动态」的区别",label:"查看「投稿」与「动态」的区别",icon:x(Oo,{className:An}),onClick:()=>vi("https://github.com/magicdawn/Bilibili-Gate?tab=readme-ov-file#%E5%8F%B3%E9%94%AE%E8%8F%9C%E5%8D%95-%E6%9F%A5%E7%9C%8B-up-%E7%9A%84%E6%8A%95%E7%A8%BF--%E6%9F%A5%E7%9C%8B-up-%E7%9A%84%E5%8A%A8%E6%80%81")},{test:k,key:"查看 UP 的投稿",label:"查看 UP 的投稿",icon:x(ky,{className:An}),onClick:j},te,{test:k&&U,key:"查看 UP 的动态",label:"查看 UP 的动态",icon:x(By,{className:An}),onClick:G},ee,J,...k&&ie?yi([{type:"divider"},{test:k&&ie&&(ce===void 0||ce<=30),key:"查看分组的投稿",label:"查看分组的投稿",icon:x(ky,{className:An}),onClick:()=>vi(`/?${Js.GroupId}=${re}`)},{test:k&&ie,key:"查看分组的动态",label:"查看分组的动态",icon:x(By,{className:An}),onClick:()=>vi(`/?${bi.GroupId}=${re}`)},{type:"divider"}]):[],{test:$e,key:"watchlater",label:se?"移除稍后再看":"稍后再看",icon:se?x(cm,{className:An}):x(ER,{className:An}),onClick(){le();}},{test:$e&&se,key:"watchlater-readd",label:`重新添加稍候再看${r===nt.Watchlater?` (${N})`:""}`,icon:x(LPe,{className:An}),async onClick(){const{success:ve}=await le(void 0,NM);ve&&(Qt.success("已重新添加"),r===nt.Watchlater&&P.emit("move-card-to",[t.uniqId,I]));}},...OPe(o,t,g)??[]]),Ye=yi([{test:s,key:"dislike",label:"我不想看",icon:x(SR,{width:15,height:15}),onClick(){l();}},{test:W,key:"unfollow-up",label:"取消关注",icon:x(kPe,{className:An}),onClick:z},{test:K,key:"hasEntry_addMidTo_dynamicFeedWhenViewAllHideIds",label:"在「全部」动态中隐藏 UP 的动态",icon:x(YB,{className:An}),onClick:Q},{test:_,key:"hide-up-opus-dynamic",label:"屏蔽此 UP 的图文动态",icon:x(YB,{className:An}),onClick:B},{test:D,key:"blacklist-up",label:"将 UP 加入黑名单",icon:x(K3,{className:An}),onClick:L},{test:D,key:"add-up-to-filterlist",label:"将 UP 加入过滤列表",icon:x(K3,{className:An}),onClick:F}]),Re=DPe({ctx:o,item:t,cardData:n,tab:r,multiSelecting:p,multiSelectingAppendix:be,onRemoveCurrent:u,recSharedEmitter:P});return yi([...d,!!Ce.length&&pe,...Ce,!!Ae.length&&pe,...Ae,!!Ye.length&&pe,...Ye,!!Re.length&&pe,...Re,!!m.length&&pe,...m])},[t,n,r,i,o,s,W,D,k,K,_,d,m,p,re,ie,ae,ce,P,u])}function Hh(e){if(e.altKey)return e.stopPropagation(),true}const tg=yc(()=>Date.now()),HPe=(Yn().add(1,"minute").startOf("minute").valueOf()-tg.get())%3e4;setTimeout(()=>{tg.update(),setInterval(tg.update,3e4);},HPe);document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&tg.update();});const VPe=f.memo(function({ts:t}){return t?LMe(t)?x(jPe,{ts:t}):x(zK,{ts:t}):null});function zK({ts:e}){return f.useMemo(()=>BMe(e),[e])}function jPe({ts:e}){const t=tg.use();return x(zK,{ts:e},t)}const UPe=X($Z,"max-w-[calc(100%-6px)] w-max cursor-default overflow-hidden text-ellipsis whitespace-nowrap b-1px b-gate-border rounded-9px b-solid px-8px py-0 text-12px color-gate-primary line-height-17px"),WPe=X("line-clamp-2 mt-10px h-auto whitespace-normal"),GPe=un("background-color:oklch(from ",ts," calc(l * 0.1 + 0.88) calc(c * 0.25) h);",sW," &{background-color:oklch(from ",ts," calc(l * 0.3 + 0.175) calc(c * 0.25) h);}",""),qPe=un("color:",ts,";border-radius:2px;border:1px ",ts," solid;line-height:20px;padding:0 10px;transform:scale(0.8);transform-origin:center left;",""),Xb={name:"nux2qa",styles:"font-size:var(--subtitle-font-size);line-height:var(--subtitle-line-height);color:var(--text3);a&:visited{color:var(--text3);}display:inline-flex;width:max-content;max-width:100%;align-items:center;justify-content:flex-start"};var KPe={name:"15xw6zv",styles:"display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis;max-width:100%"},YPe={name:"feo88y",styles:".bili-video-card .bili-video-card__info--tit>a&{font-family:inherit;font-weight:initial;}"},XPe={name:"1eyh0r6",styles:"text-indent:0!important;.bili-video-card &.bili-video-card__info--tit{padding-right:0;height:auto;max-height:calc(2 * var(--title-line-height));}"};const FK=f.memo(function({item:e,cardData:t,handleVideoLinkClick:n,className:r,gridDisplayMode:o}){const{useBorder:i}=gt(at.style.videoCard),s=vS(),l=nN(o),{goto:u,href:d,title:m,titleRender:p,pubts:g,pubdateDisplay:b,pubdateDisplayForTitleAttr:y,recommendReason:S,authorName:C,authorFace:w,authorMid:E,appBadge:M,appBadgeDesc:T,rankingDesc:A,liveExtraDesc:I}=t,N=u==="av",P=E?Gg(E):d,O=e.api===Ze.Live&&e.live_status===Ks.Streaming,{data:D}=ws(()=>dNe(e,t),{refreshDeps:[e,t]}),L=f.useMemo(()=>{if(N&&(C||g||D||b||y)){let W;return g||D?W=Yn.unix(g||D).format("YYYY年M月D日 HH:mm"):W=b,[C,y||W].filter(Boolean).join(" · ")}},[N,C,g,D,b,y]),F=or(UPe,l&&WPe);return H("div",{className:X(l?"pt-5px":"pt-15px","flex gap-x-5px overflow-hidden px-5px",i?"mb-10px":"mb-5px",r),children:[!!E&&H("a",{href:P,target:s,className:X("relative flex-center self-start rounded-full p-1px ring-1px",O?"ring-gate-primary":"ring-gate-border"),children:[w?x(vu,{src:NN(w)}):x(vu,{children:C?.[0]||T?.[0]||""}),O&&x(wR,{active:true,className:"absolute bottom-0 right-0 size-12px rounded-full bg-gate-primary"})]}),H("div",{className:"ml-5px flex flex-1 flex-col gap-y-4px overflow-hidden",children:[x("h3",{className:"bili-video-card__info--tit",title:m,css:XPe,children:x("a",{onClick:n,onContextMenu:Hh,href:d,target:s,rel:"noopener",css:YPe,children:p??m})}),U()]})]});function U(){const W=!!S&&x("div",{title:S,css:GPe,className:F,children:S}),z=()=>{let k;return g||D?k=x(VPe,{ts:g||D}):b&&(k=b),H(_e,{children:[H("a",{className:"bili-video-card__info--owner",href:P,target:s,title:L,css:Xb,onContextMenu:Hh,children:[x("span",{className:"bili-video-card__info--author",children:C}),!!k&&H("span",{className:"bili-video-card__info--date",children:[AN,k]})]}),W]})};return N?z():M||T?H("a",{className:"bili-video-card__info--owner",css:Xb,href:d,target:s,onContextMenu:Hh,children:[!!M&&x("span",{css:qPe,children:M}),!!T&&x("span",{children:T})]}):mG(e)&&A?x("div",{css:Xb,children:A}):qp(e)||fc(e)&&e.goto===Da.Live?H(_e,{children:[H("a",{css:[Xb,KPe,"",""],href:P,target:s,title:(C||"")+(I||""),onContextMenu:Hh,children:[C,I&&x("span",{className:"ml-4px",children:I})]}),W]}):z()}}),QPe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4S4 12.954 4 24s8.954 20 20 20Z"}),x("path",{strokeLinecap:"round",d:"M24 29c5 0 7 4 7 4H17s2-4 7-4m8-12l-3 3l3 3m-16-6l3 3l-3 3"})]})]}),ZPe=f.forwardRef(QPe),JPe=f.memo(function({loading:t}){return H("div",{className:X("bili-video-card__skeleton",{hide:!t,[PPe]:t}),children:[x("div",{className:"bili-video-card__skeleton--cover",style:{borderRadius:FR}}),H("div",{className:"bili-video-card__skeleton--info px-5px",children:[x("div",{className:"bili-video-card__skeleton--avatar size-32px rounded-full"}),H("div",{className:"bili-video-card__skeleton--right ml-10px flex-1",children:[x("p",{className:"bili-video-card__skeleton--text"}),x("p",{className:"bili-video-card__skeleton--text short"}),x("p",{className:"bili-video-card__skeleton--light"}),x("p",{className:"bili-video-card__skeleton--text tiny"})]})]})]})}),Si={wrapper:"h-full flex flex-col overflow-hidden",cover:"relative aspect-16/9 rounded-t-6px",coverInner:"absolute left-0 top-0 h-full w-full flex flex-col items-center justify-center gap-y-2",dislikeReason:"text-center text-1.4em",dislikeDesc:"text-center text-1em",action:"relative flex-1",actionInner:"absolute left-0 top-0 h-full w-full flex items-center justify-center b-t-1px b-t-$bilibili-gate--separator-color b-t-solid transition-duration-300 transition-property-[border-color]",actionButton:"flex cursor-pointer items-center rounded-lg bg-transparent p-15px text-1.2em color-inherit"},e4e=f.memo(function({item:t,cardData:n,dislikedReason:r,emitter:o=SU}){const i=tt(async()=>{await NPe(t,r);});ao(o,"cancel-dislike",i);const{text:s,helpText:l}=f.useMemo(()=>xN(r),[r]);return H("div",{className:Si.wrapper,children:[x("div",{className:Si.cover,children:H("div",{className:Si.coverInner,children:[x(ZPe,{className:"size-2.5em"}),x("div",{className:Si.dislikeReason,children:s}),x("div",{className:Si.dislikeDesc,children:l||"将减少此类内容推荐"})]})}),x(HK,{item:t,cardData:n,onClick:i})]})});function HK({item:e,cardData:t,onClick:n}){return H("div",{className:Si.action,children:[x(FK,{item:e,cardData:t,className:"invisible"}),x("div",{className:Si.actionInner,children:H("button",{className:Si.actionButton,onClick:n,children:[x(zy,{className:"mr-4px mt--2px"}),"撤销"]})})]})}const XB=f.memo(function({item:t,cardData:n,blockType:r}){const{authorMid:o,authorName:i}=n,s=r==="blacklist"?"已拉黑":"已加入过滤列表",l=tt(()=>r==="blacklist"?u():d()),u=tt(async()=>{if(!o)return;await vG.remove(o)&&Qt.success(`已移出黑名单: ${i}`);}),d=tt(()=>{if(!o)return;const m=at.filter.byAuthor.keywords.filter(p=>xS(p).mid===o);Ha("filter.byAuthor.keywords",{remove:m}),Qt.success(`已移出过滤列表: ${i}`);});return H("div",{className:Si.wrapper,children:[x("div",{className:Si.cover,children:H("div",{className:Si.coverInner,children:[x(K3,{className:"size-32px"}),x("div",{className:Si.dislikeReason,children:s}),H("div",{className:Si.dislikeDesc,children:["UP: ",i]})]})}),x(HK,{item:t,cardData:n,onClick:l})]})}),t4e=X("pointer-events-none absolute inset-0 overflow-hidden",ZCe,"rounded-b-none rounded-t-gate-video-card"),n4e=f.memo(function({videoDuration:t,pvideo:n,progress:r,t:o,className:i,ref:s,...l}){const u=f.useRef(null),[d,m]=f.useState(()=>({width:0,height:0}));ho(()=>{const S=u.current?.getBoundingClientRect();S&&m({width:S.width,height:S.height});});const p=f.useMemo(()=>{function S(){return typeof r=="number"&&!Number.isNaN(r)?r:0}return Of(S()??0,0,1)},[r]),g=f.useMemo(()=>o??Math.floor((t||0)*p),[o,t,p]),b=tt(()=>g);f.useImperativeHandle(s,()=>({getT:b}),[b]);const y={progress:p,t:g,pvideo:n,elWidth:d.width,elHeight:d.height};return x("div",{...l,ref:u,className:X(t4e,i),children:!!(n&&d.width&&d.height&&p)&&x(r4e,{...y})})}),r4e=f.memo(function({t,progress:n,pvideo:r,elWidth:o,elHeight:i}){let s=f.useMemo(()=>o4e(r?.index||[],t)??0,[r,t]);const{img_x_len:l,img_y_len:u,img_x_size:d,img_y_size:m}=r,p=u*l;s=s+1;const g=Math.floor(s/p),b=s-g*p,y=r.image?.[g]||"",S=Math.floor(b/l)+1,C=b-(S-1)*l,w=o*l,E=i*u,M=(S-1)*i,T=(C-1)*o;return x("div",{className:"size-full",style:{backgroundColor:"black",backgroundImage:`url(${y})`,backgroundPosition:`-${T}px -${M}px`,backgroundSize:`${w}px ${E}px`},children:x(VK,{progress:n})})});function VK({progress:e,className:t,...n}){return x("div",{...n,"data-role":"track",className:X("absolute inset-x-0 bottom-0 h-2px bg-gate-bg-lv1",t),children:x("div",{"data-role":"bar",className:"h-full bg-gate-primary",style:{width:`${e*100}%`}})})}function o4e(e,t){let n=i4e(e,t);if(n!==-1)return n;if(t>e.at(-1))return n=e.length-1,n}function i4e(e,t){let n=0,r=e.length-1,o=-1;for(;n<=r;){const l=Math.floor((n+r)/2),u=e[l];if(t===u)return l;u<t?(n=l+1,o=l):r=l-1;}if(o===-1)return  -1;const i=e[o],s=e[o+1]??0;return i<t&&t<s?o:-1}const s4e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 256 256",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M248 80a28 28 0 1 0-51.12 15.77l-26.79 33L146 73.4a28 28 0 1 0-36.06 0l-24.03 55.34l-26.79-33a28 28 0 1 0-26.6 12L47 194.63A16 16 0 0 0 62.78 208h130.44A16 16 0 0 0 209 194.63l14.47-86.85A28 28 0 0 0 248 80M128 40a12 12 0 1 1-12 12a12 12 0 0 1 12-12M24 80a12 12 0 1 1 12 12a12 12 0 0 1-12-12m196 12a12 12 0 1 1 12-12a12 12 0 0 1-12 12"})]}),a4e=f.forwardRef(s4e),l4e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("circle",{cx:12,cy:24,r:3,fill:"currentColor"}),x("circle",{cx:24,cy:24,r:3,fill:"currentColor"}),x("circle",{cx:36,cy:24,r:3,fill:"currentColor"})]}),c4e=f.forwardRef(l4e),jK="pointer-events-none h-19px flex-center whitespace-nowrap rounded-2px bg-gate-primary px-4px text-center text-12px color-white";function UK({children:e,className:t}){return x("span",{className:or(jK,t),children:e})}function WK(e){const{topMarkIcon:t,topMarkText:n}=e;return !!(t||n)}function u4e({cardData:e}){if(!WK(e))return;const{topMarkIcon:t,topMarkText:n}=e,r=!!t;return H(UK,{className:X("min-w-32px",r?"pl-4px pr-6px":"px-4px"),children:[r&&x(MK,{src:`${t}@!web-dynamic`,className:"h-16px w-16px"}),n]})}function d4e(e){return ["#FFD700","#C0C0C0","#B36700"][e-1]??ts}function f4e({item:e}){const t=e.rankingNo<=3,n=x(a4e,{});let r=false,o=[];sN(e)&&e.others?.length&&(r=true,o=e.others);const i=`「${e.rankTab.name}」排行第 ${e.rankingNo} 名`,{triggerRef:s,tooltipEl:l}=gS({inlinePosition:"left",tooltip:i,tooltipClassName:"left--2px"}),u="relative size-28px flex-center whitespace-nowrap rounded-full text-14px color-white",d=f.useMemo(()=>({backgroundColor:d4e(e.rankingNo)}),[e.rankingNo]),m=tq();return H(_e,{children:[H("div",{ref:s,className:u,style:d,children:[t?n:x("span",{style:{marginLeft:-1},children:e.rankingNo}),l]}),r&&x(bc,{placement:"bottomLeft",menu:{items:[{type:"group",label:"「其他上榜视频」",children:o.map(p=>({key:p.bvid,label:p.title,onClick(){const g=new URL(`/video/${p.bvid}`,location.href).href;m?vi(g):location.href=g;}}))}]},children:x("div",{className:u,style:d,children:x(c4e,{})})})]})}function m4e(){return H(UK,{children:[x(wR,{active:true,className:"size-14px"}),"直播中"]})}function h4e({item:e}){const t=f.useMemo(()=>ff(e)?"动态":fG(e)?"稍后再看":zu(e)?e.from==="fav-folder"?"收藏夹":"合集":e.api,[e]),n=f.useMemo(()=>{if(zu(e)&&e.from==="fav-collection")return e.volTooltip},[e]),{triggerRef:r,tooltipEl:o}=gS({inlinePosition:"left",tooltip:n});return H("span",{ref:r,className:or(jK,"pointer-events-auto"),children:[t,o]})}function p4e({vol:e,volTooltip:t}){const{triggerRef:n,tooltipEl:r}=gS({inlinePosition:"left",tooltip:t,tooltipClassName:"left--2px"});return H("div",{ref:n,className:"relative h-24px min-w-24px flex-center whitespace-nowrap rounded-8px bg-gate-primary px-6px text-center text-14px color-white",children:[e,r]})}const g4e=x(SR,{className:"size-16px"});function v4e({item:e,authed:t,actionButtonVisible:n}){const r=dc(e)&&!!e.three_point?.dislike_reasons?.length||fc(e),o=tt(async s=>{if(s?.preventDefault(),s?.stopPropagation(),!r)return Qt.error("当前视频不支持提交「我不想看」");const l=UN(e);if(l&&MS.has(l))return;let u;if(dc(e)){if(!t)return Jt("请先获取 access_key !");u=(e.three_point?.dislike_reasons||[]).map(d=>({platform:"app",...d}));}else fc(e)?u=YAe:vm(e);await JAe(u,d=>RPe(e,d));});return {dislikeButtonEl:r&&x(Zs,{visible:n,inlinePosition:"left",icon:g4e,tooltip:"我不想看",onClick:o}),hasDislikeEntry:r,onTriggerDislike:o}}const b4e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("circle",{cx:12,cy:12,r:10,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})]}),y4e=f.forwardRef(b4e),S4e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("circle",{cx:12,cy:12,r:10}),x("path",{d:"m9 12l2 2l4-4"})]})]}),C4e=f.forwardRef(S4e),x4e=y4e,w4e=C4e;function E4e({multiSelecting:e,multiSelected:t,uniqId:n}){const r=tt(l=>{const{selectedIdSet:u,multiSelecting:d}=Hn;if(!d)return;l?.preventDefault(),l?.stopPropagation();const m=!!l?.shiftKey;Hn.shiftMultiSelectAnchorUniqId??=n,m||(Hn.shiftMultiSelectAnchorUniqId=n),m?qTe(Hn.shiftMultiSelectAnchorUniqId,n):t?u.delete(n):u.add(n);}),o=e&&x("div",{onClick:r,className:X("absolute inset-0 flex items-center justify-center bg-black/10",JCe)}),s=e&&x(t?w4e:x4e,{onClick:r,className:X("size-30px cursor-pointer text-white [&_g]:fill-inherit",t?"fill-gate-primary":"fill-none")});return {toggleMultiSelect:r,multiSelectBgEl:o,multiSelectEl:s}}function $4e(...e){}function M4e({uniqId:e,recSharedEmitter:t,title:n,active:r,videoDuration:o,tryFetchImagePreviewData:i,imagePreviewDataBox:s,autoPreviewWhenHover:l,videoPreviewWrapperRef:u}){const d=tt(()=>{const B=s.val?.videoshotJson?.data;return !!(B?.index?.length&&B?.image?.length)}),[m,p]=f.useState(false),[g,b]=qL(),[y,S]=qL(),C=tt(()=>g||0),[w,E]=f.useState(false),M=ql(false),T=ql(false),A=RM(false),[I,N]=f.useState(void 0),P=B=>{const Y=u.current?.getBoundingClientRect();if(!Y)return;const{x:J,width:ee}=Y,te=B.pageX-window.scrollX-J;N(te/ee);};Es("mouseenter",async B=>{t.emit("mouseenter",e),M.set(true),P(B);const Y=i(),J=800;let ee;at.useDelayForHover&&(ee=gn(J)),await Promise.all([Y,ee].filter(Boolean)),M.val&&(T.set(true),l&&!D.val&&d()&&W(true));},{target:u});const O=tt(()=>{M.set(false),T.set(false);});Es("mouseleave",O,{target:u}),ao(t,"mouseenter",({data:B})=>{B!==e&&O();}),Es("mousemove",B=>{E(true),M.val&&(!T.val||!l)&&P(B),l||F.stop();},{target:u});const D=RM(void 0),L=f.useRef(void 0),F=T4e({startByHoverBox:A,isHoveringBox:M,active:r,mouseMoved:w,idBox:D,autoPreviewWhenHover:l,setAutoPreviewing:p,setPreviewT:S,setPreviewProgress:b,onResume(){L.current?.();}}),U=tt(async()=>{if(!D.val){await i(),d()&&W(false);return}F.togglePaused();}),W=tt(B=>{A.set(B),E(false),F.reset(),F.stop(true),p(true),b(re=>re===void 0?0:re),S(void 0);const Y=8e3;let J=performance.now(),ee=0;L.current=()=>{J=performance.now()-C()*Y;};function te(re){if(F.shouldStop())return F.stop();if(!F.paused){const ie=performance.now(),de=ie-J,ne=Of(de%Y/Y,0,1);if(b(ne),(!ee||ie-ee>=at.autoPreviewUpdateInterval)&&(b(ne),ee=ie,o)){const ae=Of(Math.round(ne*o),0,o);S(ae);}}D.val=requestAnimationFrame(te);}D.val=requestAnimationFrame(te);}),z=M.state,k=T.state,G=s.state?.videoshotJson?.data,j=!!G?.image?.length&&!!o&&(k||r)&&(l?m:true),K=f.useRef(null);let Q,_;if(j){const B={videoDuration:o,pvideo:G};l?Q={...B,progress:g,t:y}:Q={...B,progress:I},_=x(n4e,{ref:K,...Q});}return {onHotkeyPreviewAnimation:U,onStartPreviewAnimation:W,autoPreviewing:m,mouseProgress:I,previewProgress:g,previewT:y,isHovering:z,isHoveringAfterDelay:k,shouldShowPreview:j,previewImageRef:K,previewImgProps:Q,previewImageEl:_}}function T4e({startByHoverBox:e,isHoveringBox:t,idBox:n,active:r,mouseMoved:o,autoPreviewWhenHover:i,setAutoPreviewing:s,setPreviewT:l,setPreviewProgress:u,onResume:d}){const m=xW(),p=tt(()=>{if(m.current)return  true;if(e.val){if(!t.val)return  true}else if(!r||o)return  true;return  false}),g=tt((S=false)=>{S||$4e("stopAnimation: %o",{autoPreviewWhenHover:i,unmounted:m.current,isHovering:t.val,active:r,mouseMoved:o}),n.val&&cancelAnimationFrame(n.val),n.val=void 0,s(false),u(void 0),l(void 0),y.reset();}),b=f.useRef(false),y=f.useMemo(()=>({shouldStop:p,stop:g,get paused(){return b.current},set paused(S){b.current=S;},togglePaused(){const S=this.paused;this.paused=!this.paused,S&&d?.();},reset(){this.paused=false;}}),[p,g,b,d]);return y}function A4e({item:e,cardData:t,onRemoveCurrent:n,actionButtonVisible:r,watchlaterAdded:o}){const{avid:i,bvid:s}=t,l=f.useMemo(()=>dc(e)||fc(e)?e.goto==="av":e.api===Ze.Rank?t.goto==="av":e.api===Ze.Live?false:!!s,[e,t]),u=ws((C,w)=>C(w),{manual:true}),d=jR(o),m=tt(async(C,w)=>{if(C?.preventDefault(),C?.stopPropagation(),u.loading)return {success:false};if(!i||!s)return {success:false};w??=o?tPe:NM;const E=await u.runAsync(w,i),M=w===NM;return E&&(M?Hu.bvidSet.add(s):Hu.bvidSet.delete(s),e.api===Ze.Watchlater?M||(await gn(250),n?.(e,t)):Qt.success(`已${M?"添加":"移除"}稍后再看`)),{success:E,targetState:M}}),p=18,g=u.loading?x(bU,{className:"size-16px"}):e.api===Ze.Watchlater?o?x(cm,{className:"size-16px"}):x(jp,{size:p,useAnimation:d===true}):o?x(jp,{size:p,useAnimation:d===false}):x(ER,{className:"size-20px"}),b=e.api===Ze.Watchlater?o?"已添加稍后再看, 点击移除":"已移除稍后再看":o?"已添加稍后再看, 点击移除":"稍后再看",y=l&&x(Zs,{visible:r,inlinePosition:"right",icon:g,tooltip:b,onClick:m});return {context:f.useMemo(()=>({watchlaterAdded:o,hasWatchlaterEntry:l,onToggleWatchlater:m}),[m,o,l]),watchlaterButtonEl:y}}const QB=f.memo(function({style:t,className:n,item:r,loading:o,active:i,onRemoveCurrent:s,emitter:l,recSharedEmitter:u,tab:d,baseCss:m,gridDisplayMode:p,multiSelecting:g,...b}){o=o??!r;const y=f.useMemo(()=>r&&Ju(r),[r]),S=f.useMemo(()=>r?UN(r):void 0,[r]),C=z6e(S),w=bMe(y?.authorMid),E=W6e(y?.authorMid),M=rNe(y?.bvid),T=VTe(r?.uniqId),A=!!C,I=w,N=E,O=gPe(A||I||N),D=X("bili-video-card",Kl,{[X9]:i},"relative",n),L=[m,O,nN(p)&&Y3.card,g&&T&&pPe];return x("div",{"data-bvid":y?.bvid,style:t,className:D,css:L,...b,children:o?x(JPe,{loading:o}):r&&y&&(A?x(e4e,{item:r,cardData:y,emitter:l,dislikedReason:C}):I?x(XB,{item:r,cardData:y,blockType:"blacklist"}):N?x(XB,{item:r,cardData:y,blockType:"filter"}):x(N4e,{item:r,cardData:y,active:i,emitter:l,recSharedEmitter:u,tab:d,onRemoveCurrent:s,watchlaterAdded:M,gridDisplayMode:p,multiSelecting:g,multiSelected:T}))})});var R4e={name:"vpmszz",styles:"background-color:unset;position:static;height:100%"};const N4e=f.memo(function({item:t,cardData:n,tab:r,active:o=false,onRemoveCurrent:i,emitter:s=SU,recSharedEmitter:l=eK,watchlaterAdded:u,gridDisplayMode:d,multiSelecting:m=false,multiSelected:p}){const{accessKey:g,style:{videoCard:{useBorder:b,useBorderOnlyOnHover:y}},videoCard:{actions:S,imgPreview:{enabled:C,autoPreviewWhenHover:w,disableWhenMultiSelecting:E}},spaceUpload:{showVol:M},__internalEnableCopyBvidInfo:T}=Ft(),{avid:A,bvid:I,cid:N,goto:P,href:O,title:D,cover:L,duration:F,durationStr:U,recommendReason:W,statItems:z,authorName:k,authorMid:G}=n,j=!!g,K=P==="av",Q=["av","bangumi","picture","live","opus"];Q.includes(P)||ti(`none (${Q.join(",")}) goto type %s`,P,t);const _=nN(d),B=f.useMemo(()=>dN({item:t})?.aspectRatio,[t]),Y=f.useMemo(()=>!(!I||!I.startsWith("BV")||P!=="av"),[I,P]),J=!(!C||E&&m),ee=ql(void 0),te=sS(async()=>{if(!Y||!J||rPe(ee.val))return;const et=await nPe(I);ee.set(et),Vn(et.videoshotJson)||re(et.videoshotJson);}),re=YG(et=>{vs.warning({title:`${et.message} (code: ${et.code})`,description:`${D} (${I})`,duration:2});},3,false),ie=f.useRef(null),de=f.useRef(null),ne=b&&!_?ie:de,{onStartPreviewAnimation:ae,onHotkeyPreviewAnimation:ce,isHovering:se,previewImageEl:$e}=M4e({uniqId:t.uniqId,recSharedEmitter:l,title:D,active:o,videoDuration:F,tryFetchImagePreviewData:te,imagePreviewDataBox:ee,autoPreviewWhenHover:w,videoPreviewWrapperRef:ne});ja(()=>{o&&(WN(`${WM}_activeItem`,t),at.videoCard.imgPreview.autoPreviewWhenKeyboardSelect&&te().then(()=>{ae(false);}));},[o]);const le=o||se,{watchlaterButtonEl:pe,context:be}=A4e({item:t,cardData:n,onRemoveCurrent:i,actionButtonVisible:le,watchlaterAdded:u}),{dislikeButtonEl:Ce,hasDislikeEntry:Ae,onTriggerDislike:Ye}=v4e({item:t,authed:j,actionButtonVisible:le}),{largePreviewActionButtonEl:Re,largePreviewEl:fe,shouldUseLargePreviewCurrentTime:ve,getLargePreviewCurrentTime:Ne,largePreviewVisible:He,hideLargePreview:Ge}=NK({shouldFetchPreviewData:Y,actionButtonVisible:le,hasLargePreviewActionButton:S.showLargePreview,bvid:I,cid:N,uniqId:t.uniqId,recSharedEmitter:l,cardTarget:ie,aspectRatioFromItem:B,cover:L,videoCardAsTriggerRef:ne}),je=IPe(t,A),{onOpenWithMode:rt,handleVideoLinkClick:ot,consistentOpenMenus:Ke,conditionalOpenMenus:De,openInPopupActionButtonEl:qe,onOpenInPopup:Je}=NTe({href:O,item:t,cardData:n,actionButtonVisible:le,hasOpenInPopupActionButton:S.openInPipWindow,getLargePreviewCurrentTime:Ne,hideLargePreview:Ge,shouldUseLargePreviewCurrentTime:ve}),{multiSelectBgEl:Be,multiSelectEl:Ie,toggleMultiSelect:lt}=E4e({multiSelecting:m,multiSelected:p,uniqId:t.uniqId}),Dt=tt(et=>{b&&(et.target.closest(".ant-dropdown-menu")||et.target.closest("a")||rt());});ao(s,"open",()=>rt()),ao(s,"open-in-popup",Je),ao(s,"open-with-large-preview-visible",()=>{He&&(Ge(),rt());}),ao(s,"toggle-watch-later",()=>{be.onToggleWatchlater();}),ao(s,"trigger-dislike",()=>{Ye();}),ao(s,"start-preview-animation",ae),ao(s,"hotkey-preview-animation",ce);const pt=FPe({item:t,cardData:n,tab:r,watchlaterContext:be,favContext:je,hasDislikeEntry:Ae,onTriggerDislike:Ye,onRemoveCurrent:i,consistentOpenMenus:Ke,conditionalOpenMenus:De,multiSelecting:m}),Lt=tt(et=>{et&&je.updateFavFolderNames();}),xt=WK(n),Pt=mG(t),ut=qp(t)&&t.live_status===Ks.Streaming||fc(t)&&t.goto===Da.Live,ct=r===nt.AppRecommend&&!dc(t)&&!qp(t),bt=fM(t)&&M||zu(t)&&!!t.vol&&!ct,Fe=T&&I&&x(Zs,{visible:le,inlinePosition:"right",icon:x(Eu,{className:"size-14px"}),tooltip:"复制 BVID 信息",onClick:et=>{et.stopPropagation(),et.preventDefault(),$u(gN(n));}}),Ue=H(_e,{children:[m&&Ie,Ce,xt&&x(u4e,{cardData:n}),Pt&&x(f4e,{item:t}),ut&&x(m4e,{}),ct&&x(h4e,{item:t}),bt&&!!t.vol&&x(p4e,{vol:t.vol,volTooltip:zu(t)?t.volTooltip:void 0})]}),ye=H(_e,{children:[pe,Fe,qe,Re]}),Me=!zB(Ue),Se=!zB(ye),he=or("left-top-marks",Xp.topContainer("left"),m&&"gap-x-10px"),Oe=fG(t)&&t.progress>0?x(VK,{progress:t.progress/t.duration,className:X("h-3px",QCe)}):void 0,xe=`.${Ns} .${Kl}`,ke=f.useMemo(()=>[un(xe," &{overflow:hidden;border-radius:",FR,";transition:border-radius 0.2s ease;}",""),!_&&[(o||m||b&&!y)&&un(xe," &{border-bottom-left-radius:0;border-bottom-right-radius:0;}",""),b&&un(xe,":hover &{border-bottom-left-radius:0;border-bottom-right-radius:0;}","")]],[_,o,m,b,y]),Xe=f.useMemo(()=>b&&!y||m?false:!b||b&&y&&!se,[b,y,se,m]),it=vS(),dt=H("a",{ref:de,href:O,target:it,className:X(Q9,"relative isolate block overflow-hidden",Xe&&"ring-1px ring-gate-border"),css:[ke,_&&Y3.cover,"",""],onClick:ot,onContextMenu:et=>{Hh(et)||et.preventDefault();},children:[x("div",{className:"bili-video-card__image",style:{aspectRatio:"16 / 9"},children:L?x("div",{className:"bili-video-card__image--wrap",children:x(MK,{src:`${L}@672w_378h_1c_!web-home-common-cover`,className:X("bili-video-card__cover v-img"),style:{borderRadius:0},imgProps:{alt:D}})}):x("div",{className:"size-full flex-center px-4 py-2",children:x("div",{className:"line-clamp-3 text-center text-1.2em color-gate-text line-height-snug hover:color-gate-primary",children:D})})}),H("div",{className:"bili-video-card__stats",css:un(xe," &{pointer-events:none;border-radius:0;}",""),children:[x("div",{className:"bili-video-card__stats--left gap-x-4px xl:gap-x-8px",children:z.map(({field:et,value:Qe})=>x(JMe,{field:et,value:Qe},et))}),x("span",{className:"bili-video-card__stats__duration relative top-0.5px",children:K&&U})]}),Oe,J&&$e,Be,Me&&x("div",{className:he,children:Ue}),Se&&x("div",{className:X("right-actions",Xp.topContainer("right")),children:ye})]}),Et=x(FK,{item:t,cardData:n,gridDisplayMode:d,handleVideoLinkClick:m?lt:ot}),Tt=x(_e,{children:fe});function At(et){return x(bc,{trigger:["contextMenu"],onOpenChange:Lt,getPopupContainer:()=>ie.current?.closest(`.${Kl}`)??document.body,rootClassName:X(Kxe,mQ),menu:{items:pt,className:"w-max"},children:et})}function yn(et){return x("div",{className:"bili-video-card__wrap",ref:ie,css:[R4e,_&&Y3.cardWrap,"",""],onClick:m?lt:Dt,onContextMenu:Qe=>{b&&Qe.preventDefault();},children:et})}const Un=b&&!_?At(yn(H(_e,{children:[dt,Et]}))):yn(H(_e,{children:[At(dt),Et]}));return H(_e,{children:[Un,Tt]})}),P4e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M4 24c0 11.046 8.954 20 20 20v0c11.046 0 20-8.954 20-20S35.046 4 24 4"}),x("path",{d:"M36 24c0-6.627-5.373-12-12-12s-12 5.373-12 12s5.373 12 12 12v0"})]})]}),I4e=f.forwardRef(P4e),Rh=po.extend("components:RecGrid"),ZB="grid-col-span-full";class O4e{store=zn({refreshTs:-1,showSkeleton:false,hasMore:true,refreshError:void 0,items:[]});useStore=()=>gt(this.store);setStore=t=>{const n=["items","refreshError"];for(const r of n)typeof t[r]=="object"&&(t[r]=W9(t[r]));Object.assign(this.store,t);};loadedPage=0;abortController=new AbortController;loadMoreLocker={};isLocked=t=>!!this.loadMoreLocker[t];lock=t=>{this.loadMoreLocker={[t]:true};};unlock=t=>{this.loadMoreLocker[t]=false;};get loadMoreRunning(){return this.isLocked(this.store.refreshTs)}}const GK=f.memo(function({className:t,containerClassName:n,shortcutEnabled:r,tab:o,infiniteScrollUseWindow:i,onScrollToTop:s,scrollerRef:l,ref:u}){const d=ns(),{serviceRegistry:m,recSharedEmitter:p}=d,{refreshing:g}=d.useStore(),b=Bg(()=>new O4e,[]),{useCustomGrid:y,gridDisplayMode:S,enableForceColumn:C,forceColumnCount:w,cardMinWidth:E}=gt(at.grid),{multiSelecting:M}=gt(Hn),T=xW();UTe();const A=tt(()=>{T.current||d.setStore({tabbarView:m[o]?.tabbarView,sidebarView:m[o]?.sidebarView});});ho(A);const I=tt(()=>{de(),A(),s?.();}),N=tt(()=>{de(),A(),b.loadedPage=1,z();}),{refresh:P}=INe({tab:o,debug:Rh,fetcher:NNe,preAction:I,postAction:N,updateViewFromService:A,self:b});f.useImperativeHandle(u,()=>({refresh:P}),[P]);const{items:O,hasMore:D,refreshError:L,refreshTs:F,showSkeleton:U}=b.useStore();f.useEffect(()=>j6e(O),[O]);const W=f.useRef(void 0);Es("visibilitychange",fe=>{if(!(document.visibilityState==="visible")){W.current=Date.now();return}d.refreshing||b.loadMoreRunning||o===nt.Watchlater&&W.current&&Date.now()-W.current>Qr("1h")&&P("reuse");},{target:document});const z=tt(async()=>{if(await gn(Pg?100:0),Rh("checkShouldLoadMore(): footerInViewRef = %s",le.current),le.current)return G()}),k=tt(()=>!(T.current||d.refreshing||b.abortController.signal.aborted||b.loadMoreRunning||b.store.refreshTs<0||b.store.refreshError||!b.store.hasMore)),G=tt(async()=>{if(!k())return;const fe=b.store.refreshTs;b.lock(fe);let ve=b.store.items,Ne=true,He;try{const Ge=Jq(m,o);let je=await Ge.loadMore(b.abortController.signal)||[];je=e1(je,o),ve=MM(ve,je),Ne=Ge.hasMore;}catch(Ge){He=Ge;}if(He)throw b.unlock(fe),vs.error({title:"加载失败",description:He.message||He.stack}),He;{const Ge=b.store.refreshTs;if(fe!==Ge){Rh("loadMore: skip update for mismatch refreshTs, %o != %o",fe,Ge),b.unlock(fe);return}}b.loadedPage++,Rh("loadMore: loadedPage(%s) len(%s -> %s)",b.loadedPage,b.store.items.length,ve.length),b.setStore({hasMore:Ne,items:ve}),b.unlock(fe),z();}),j=tt(async()=>{const ve={key:"RecGrid:loadToEnd"+":error",title:"加载全部",duration:15},Ne={title:"加载全部"},He=Ge=>{throw vs.error({...ve,description:Ge}),new Error("loadToEnd error",{cause:Ge})};if(!pq())return He("当前 Tab 不支持加载全部");if(b.store.refreshError)return He("预检查失败: 先前错误");if(!b.store.hasMore)return vs.success({...Ne,description:"没有更多了"});for(;!k();)await gn(500);for(;k();)await G();vs.success({...Ne,description:"已完成"});});ao(p,"load-to-end",j);const K=O,Q=f.useMemo(()=>K.filter(fe=>fe.api!==Ze.Separator),[K]),_=f.useRef(null),B=tt(()=>{if(i){const fe=_u.get()+50;return new DOMRect(0,fe,window.innerWidth,window.innerHeight-fe)}else return l?.current?.getBoundingClientRect()}),Y=f.useMemo(()=>new Map,[F]),J=f.useMemo(()=>Q.map(({uniqId:fe})=>{const ve=fe;return Y.get(ve)||(()=>{const Ne=new uo;return Y.set(ve,Ne),Ne})()}),[Q]),[ee,te]=f.useState(void 0);ao(p,"show-large-preview",({data:fe})=>te(fe));const re=f.useMemo(()=>{if(ee)return Q.findIndex(fe=>fe.uniqId===ee)},[K,ee]),{activeIndex:ie,clearActiveIndex:de}=$Ne({enabled:r,maxIndex:Q.length-1,gridRef:_,getScrollerRect:B,videoCardEmitters:J,activeLargePreviewItemIndex:re,changeScrollY:i?function({offset:fe,absolute:ve}){const Ne=document.documentElement;if(typeof fe=="number"){Ne.scrollTop+=fe;return}if(typeof ve=="number"){Ne.scrollTop=ve;return}}:void 0}),ne=tt(fe=>{const ve=b.store.items;b.setStore({items:fe(ve)??ve});}),ae=tt((fe,ve,Ne)=>{ne(He=>{const Ge=He.slice(),je=[];for(const[rt,ot]of fe.entries()){const Ke=Ge.findIndex(qe=>qe.uniqId===ot);if(Ke===-1)continue;Ge.splice(Ke,1);const De=ve?.[rt];De&&je.push(De),o===nt.Watchlater&&m[o]?.decreaseTotal(),o===nt.Fav&&m[o]?.decreaseTotal();}return !Ne&&je.length&&(je.length<=3?je.forEach(rt=>Qt.success(`已移除: ${je.join(", ")}`)):Qt.success(`已移除: ${je.length}个视频`)),Ge});}),ce=tt((fe,ve)=>{ne(Ne=>{const He=Ne.findIndex(Ge=>Ge.uniqId===fe);if(He!==-1){if(ve==="start"){const Ge=Ne.findIndex(je=>je.api!==Ze.Separator);return eg(Ne,He,Ge)}else if(ve==="end")return eg(Ne,He,Ne.length-1)}});});ao(p,"remove-cards",({data:fe})=>ae(...fe)),ao(p,"move-card-to",({data:fe})=>ce(...fe));const{ref:se,inView:$e}=B6e({root:i?null:l?.current||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(fe){fe&&(Rh("footerInView change to visible"),Pu(()=>le.current=!0),z());}}),le=kg($e),pe=x("div",{ref:se,className:X(ZB,"flex items-center justify-center py-30px text-size-120%"),children:!g&&x(_e,{children:D?H(_e,{children:[x(I4e,{className:"mr-10px size-40px animate-spin color-gate-primary"}),"加载中~"]}):x(_e,{children:"没有更多了~"})})}),be=X("min-h-100vh @container-inline-size",n),Ce=f.useMemo(()=>{const{videoGrid:fe,videoGridBiliFeed4:ve,videoGridCustom:Ne,videoGridAddonCenterEmpty:He,gridTemplateColumnsUsingVarCol:Ge,gridTemplateColumnsUsingCardMinWidth:je,narrowMode:rt}=OI,ot=y&&!(C&&w)&&S!==Wr.TwoColumnGrid?je:Ge,Ke=[EZ,fe,ot,y?Ne:ve],De=(...qe)=>X(Ke,...qe,t);return S===Wr.TwoColumnGrid?{className:De(rt)}:(S===Wr.CenterEmptyGrid&&Ke.push(He),y?C&&w?{className:De(),style:{"--col":w.toString()}}:{className:De(),style:{"--card-min-width":`${E}px`}}:{className:De()})},[OI,y,S,C,w,E,t]),Ae=bPe(),Ye=({gridChildren:fe,gridSiblings:ve}={})=>H("div",{"data-tab":o,className:be,children:[x("div",{"data-tab":o,ref:_,...Ce,children:fe}),ve]});if(L)return console.error("RecGrid.refresh error:",L.stack||L),Ye({gridSiblings:x(zAe,{tab:o,err:L})});if(g&&U){const fe=zN();return Ye({gridChildren:Array.from({length:fe}).fill(0).map((ve,Ne)=>x(QB,{loading:true,tab:o},Ne))})}const Re=fe=>{if(fe.api===Ze.Separator)return x(sc,{className:X(ZB,fQ),orientation:"horizontal",titlePlacement:"left",children:fe.content},fe.uniqId);{const ve=Q.findIndex(He=>He.uniqId===fe.uniqId),Ne=ve===ie;return x(QB,{baseCss:[Ae,yPe(Ne)],tab:o,item:fe,active:Ne,onRemoveCurrent:(He,Ge,je)=>ae([He.uniqId],[Ge.title],je),emitter:J[ve],recSharedEmitter:p,gridDisplayMode:S,multiSelecting:M},fe.uniqId)}};return Ye({gridChildren:H(_e,{children:[K.map(Re),pe]})})});function qK({className:e="",style:t,tab:n,refreshHotkeyEnabled:r,ref:o}){r??=true;const{refreshing:i}=ns().useStore(),s=go(),l=f.useRef(null),u=tt(()=>{l.current&&(l.current.disabled||l.current.click());});f.useImperativeHandle(o,()=>({click:u}),[]),Do("R",u,{enabled:r});const{watchlaterItemsOrder:d,popularWeeklyUseShuffle:m}=Ft(),{usingShuffle:p}=gt(pn),g=n===nt.AppRecommend||n===nt.PcRecommend||n===nt.KeepFollowOnly||n===nt.Watchlater&&d===Eo.Shuffle||n===nt.Fav&&p||n===nt.Hot&&iq(m)?"换一换":"刷新",[b,y]=NCe(),S=tt(C=>{y(b.current,{rotate:[0,360]},{duration:.5,type:"tween"}),s();});return H(ht,{ref:l,style:t,className:X(BU,"[&:disabled]:cursor-wait",e),disabled:i,onClick:S,children:[x(OMe,{ref:b,className:"size-14px"}),g]})}const D4e={name:"x4d4ct",styles:"scrollbar-width:thin;.ant-menu-item-group-title{padding:4px 8px;}.ant-menu-item{margin-block:1px;}ul.ant-menu-item-group-list{font-size:inherit;}"};function _4e(e){const t=gt(Xo).subtab;if(e===nt.Fav)return "max-w-300px";if(e===nt.DynamicFeed)return "min-w-200px";if(e===nt.Hot&&t===pr.Rank)return "min-w-130px"}function KK({className:e,style:t,sidebarView:n,tab:r}){const o=mN(r),i=or("h-fit max-w-250px w-max flex-none overflow-x-hidden overflow-y-auto b-1px b-gate-border rounded-15px b-solid",_4e(r),e);return o&&n&&x("div",{className:i,css:D4e,style:t,children:x(Bo,{theme:{components:{Menu:{itemHeight:30}}},children:n})})}const L4e=f.memo(function({show:t,onHide:n}){const{grid:{gridDisplayMode:r},modalFeedFullScreen:o,sidebarAlign:i}=Ft(),{usingTwoColumnMode:s}=iG(r),l=!s&&o,u=f.useRef(null),d=f.useMemo(()=>X(l?"b-5px":"b-1px","b-gate-primary b-solid"),[l]),m=tt(()=>{u.current&&(u.current.scrollTop=0);}),{modalSettingsVisible:p}=qN(),g=[t,!p,!Tq(),!Pq()].every(Boolean),b=nK(true),{tabbarView:y,sidebarView:S}=b.useStore(),{tab:C,direction:w}=CK(),E=()=>H("div",{className:X(_o.modalHeader,"gap-x-15px pr-15px"),children:[H("div",{className:"left flex flex-shrink-1 flex-wrap items-center gap-x-15px gap-y-4px",children:[x(xK,{}),y]}),H("div",{className:"right flex flex-shrink-0 items-center gap-x-8px",children:[r===Wr.TwoColumnGrid?null:x(P6e,{initialOpen:true,children:x(B4e,{})}),x(qK,{refreshHotkeyEnabled:g,tab:C}),x(Vg,{onClick:n,className:"ml-5px"})]})]}),M=X(s&&"bg-black/90%"),I=X("h-[calc(100vh-30px)] max-h-unset w-[calc(100vw-30px)] pr-0",l&&"h-full w-full",s&&oG,d);return x(DN.Provider,{value:b,children:H(Hg,{show:t,onHide:n,clsModalMask:M,clsModal:I,children:[E(),H("div",{"data-role":"modal-body",className:X("flex flex-1 gap-x-25px overflow-hidden",i===kf.Right&&"flex-row-reverse"),children:[x(KK,{tab:C,sidebarView:S,className:"max-h-full"}),x("div",{className:"h-full flex-1 overflow-y-auto pr-15px",ref:u,children:x(GK,{tab:C,direction:w,shortcutEnabled:g,onScrollToTop:m,infiniteScrollUseWindow:false,scrollerRef:u},C)})]})]})})});function B4e(){return x(_e,{children:x(It,{configPath:"modalFeedFullScreen",label:"全屏",tooltip:"世界清净了~"})})}const ed=zn({modalFeedVisible:false,modalSettingsVisible:false});function qN(){return gt(ed)}function k4e(){ed.modalFeedVisible?YK():z4e();}function z4e(){ZK(),ed.modalFeedVisible=true;}function YK(){ed.modalFeedVisible=false;}function F4e(){ed.modalSettingsVisible?XK():KN();}function KN(){ZK(),ed.modalSettingsVisible=true;}function XK(){ed.modalSettingsVisible=false;}function QK(){GM.registerMenuCommand?.("⚙️ 设置",KN);}const ZK=jf(function(){const t=document.createElement("div");t.classList.add("modals-container",Ns),document.body.appendChild(t),aa.createRoot(t).render(x(rl,{children:x(H4e,{})}));});function H4e(){const{modalFeedVisible:e,modalSettingsVisible:t}=qN();return H(_e,{children:[x(L4e,{show:e,onHide:YK}),x(R6e,{show:t,onHide:XK})]})}const Zc=OA({align:"right",top:100},"float-entry"),XE={wrapperInner:"flex flex-col items-center gap-y-8px b-1px b-gate-primary rounded-18px b-solid bg-gate-bg p-4px",buttonIcon:"size-18px"};function V4e(){return x(WW,{children:x(j4e,{})})}function j4e(){const{align:e,top:t}=gt(Zc,{sync:true}),n=f.useMemo(()=>({arrow:false,placement:e==="right"?"left":"right",align:{offset:[10*(e==="right"?-1:1),0]}}),[e]),r=f.useMemo(SAe,[]),{attributes:o,listeners:i,setNodeRef:s,setActivatorNodeRef:l,transform:u}=GW({id:"GateFloatEntry"});PW({onDragEnd(b){if(b.active.id==="GateFloatEntry"){Sf.update();const y=d.current?.getBoundingClientRect();if(!y)return;const S=Of(Math.round(y.top),0,window.innerHeight-y.height);let C=Zc.align;(Zc.align==="right"&&y.left<window.innerWidth/4||Zc.align==="left"&&y.right>window.innerWidth/4*3)&&(C=Zc.align==="right"?"left":"right"),AZ("new pos",{align:C,top:S}),Zc.align=C,Zc.top=S,d.current?.animate([{transform:C==="right"?`translateX(-${window.innerWidth-y.right}px)`:`translateX(${y.left}px)`},{transform:"translateX(0)"}],{duration:200,easing:"ease-in-out"});}}});const d=dS(s),m=or("fixed transition-200 transition-ease-in-out transition-property-right,left",Wxe,e==="right"&&"right--30px pr-6px hover:right-0",e==="left"&&"left--30px pl-6px hover:left-0");ho(Sf.updateThrottled);const{height:p}=Sf.use(),g=f.useMemo(()=>Of(t,0,p-150),[t,p]);return x("div",{ref:d,className:m,style:{top:`${g}px`,transform:Hf.Transform.toString(u)},children:H("div",{className:XE.wrapperInner,children:[x(sn,{title:H(_e,{children:[Zo,": 在新窗口打开"]}),...n,children:x(ht,{className:"icon-only-round-button",href:r,target:"_blank",children:x(Oo,{className:XE.buttonIcon})})}),x(sn,{title:H(_e,{children:[Zo,": 弹窗打开"]}),...n,children:x(ht,{className:"icon-only-round-button",onClick:k4e,children:x($K,{className:XE.buttonIcon})})}),x(ht,{className:"icon-only-round-button cursor-move",...i,...o,ref:l,children:x(wK,{className:"size-14px"})})]})})}function U4e(e,t,n){const r=tt(t),o=ql(n);return f.useEffect(()=>{const i=new ResizeObserver(s=>{for(const l of s)if(l.target===e&&l.contentRect){const u=r(l);Ei(o.val,u)||o.set(u);}});return i.observe(e),()=>{i.disconnect();}},[e,r]),o.state}function W4e(){const e=f.useRef(null),[t,n]=f.useState(false);return f.useEffect(()=>{const r=qa(()=>{if(!e.current)return;const o=Math.trunc(e.current.getBoundingClientRect().top*10)/10,i=Number.parseInt(getComputedStyle(e.current).top),s=o<=i;n(s);},16);return r(),document.addEventListener("scroll",r),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),()=>{document.removeEventListener("scroll",r),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",r);}},[t]),[e,t]}const G4e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M42 24H6m24-12l12 12l-12 12"})]}),q4e=f.forwardRef(G4e),K4e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M5.799 24h36m-24 12l-12-12l12-12"})]}),Y4e=f.forwardRef(K4e),X4e=po.extend("RecHeader");function Q4e({tab:e,leftSlot:t,rightSlot:n,shortcutEnabled:r,ref:o}){const{pureRecommend:i,showBackForwardButtons:s,multiSelect:{showIcon:l},style:{pureRecommend:{useStickyTabbar:u,stickyTabbarShadow:d,useWhiteBackground:m}}}=Ft(),p=go(),g=f.useMemo(()=>Jp(e),[e]),b=ns(),{refreshing:y}=b.useStore(),[S,C]=b.useTabBackForwardStatus(e),w=b.useTabServiceQueueState(e),E=w?H(_e,{children:[" ","(当前 ",w.cursor+1,"/",w.len,")"]}):void 0;Do({shift:true,key:"<"},F4e,{eventType:"keyup"});const[M,T]=W4e(),A=tt(()=>{if(!i)return;const W=M.current?.parentElement;if(!W)return;const z=W.getBoundingClientRect(),k=_u.get();if(z.top<k){const G=CEe(W).top;X4e("[refresh:scroll] rect.top = %s, headerHeight = %s",z.top,k),document.documentElement.scrollTop=G-k+2;}});f.useImperativeHandle(o,()=>({scrollToTop:A}));const I=_u.use(),N=J4e(e),P=LA.use(),O=oS(),D=Z4e(),L=(()=>{let W;return P?W=O?"rgba(0, 0, 0, 26%) 0px 2px 10px 1px":"rgba(0, 0, 0, 13%) 0 1px 10px 1px;":W=`0 2px 4px ${O?"rgb(255 255 255 / 5%)":"rgb(0 0 0 / 8%)"}`,un("box-shadow:",W,";","")})(),F=or(i&&u&&["sticky  mb-10px b-b-1px b-b-transparent b-b-solid",Uxe,T&&["bg-gate-bg","b-b-gate-bg-lv1"]],T&&"sticky-state-on"),U=f.useMemo(()=>{if(!(i&&u))return;const z=[un("top:",I-1,"px;","")];return d&&T&&z.push(L,D),z},[i,u,d,T,I,L,D]);return x("div",{ref:M,"data-role":"tab-bar-wrapper",className:F,css:U,children:H("div",{"data-role":"tab-bar",className:X(Z9,"relative mb-0 h-auto flex flex-row items-center justify-between gap-x-15px px-0 py-8px"),children:[H("div",{"data-class-name":"left",className:"h-full flex flex-wrap items-center gap-x-15px gap-y-8px",children:[x(xK,{className:"flex-none"}),t]}),H("div",{"data-class-name":"right",className:"h-full min-w-180px flex flex-row-reverse flex-wrap items-center justify-right gap-x-8px gap-y-8px",children:[x(qK,{tab:e,refreshHotkeyEnabled:r}),s&&g&&H(_e,{children:[x(sn,{arrow:false,title:H(_e,{children:["前进",E]}),children:x(ht,{className:"icon-only-round-button",disabled:y||!C,onClick:()=>p("forward"),children:x(q4e,{})})}),x(sn,{arrow:false,title:H(_e,{children:["后退",E]}),children:x(ht,{className:"icon-only-round-button",disabled:y||!S,onClick:()=>p("back"),children:x(Y4e,{})})})]}),x(sn,{title:"设置",arrow:false,children:H(ht,{onClick:KN,className:"icon-only-round-button",children:[x(T6e,{}),x(CR,{className:"size-14px"})]})}),l&&x(lq,{iconOnly:true,addCopyActions:true}),N&&x(tN,{style:{marginLeft:5}}),n]})]})})}function Z4e(){const{xScrolling:e,bodyWidth:t}=U4e(document.body,n=>{const r=n.contentRect.width,o=!!(r&&Math.round(r)>Math.round(window.innerWidth));return o?{xScrolling:o,bodyWidth:r}:{xScrolling:o}},()=>({xScrolling:false}));return f.useMemo(()=>{if(e){const n=Math.floor(t);return un("margin-inline:calc((100% - ",n,"px) / 2);padding-inline:calc((",n,"px - 100%) / 2);","")}else {const n=$R||Pg?"0px":"20px";return un("margin-inline:calc((100% - 100vw + ",n,") / 2);padding-inline:calc((100vw - ",n," - 100%) / 2);","")}},[e,t])}function J4e(e){const{accessKey:t}=Ft();return !t&&[nt.AppRecommend,nt.Liked].includes(e)}function eIe(){const{grid:{twoColumnModeAlign:e},sidebarAlign:t}=Ft(),{usingTwoColumnMode:n}=sG(),r=Iq(),o=nK(),{tabbarView:i,sidebarView:s}=o.useStore(),{tab:l,direction:u}=CK(),d=f.useRef(null),m=tt(()=>d.current?.scrollToTop()),p=_u.use(),g=f.useMemo(()=>un("position:sticky;top:",p+55,"px;max-height:calc(100vh - ",p+55+20,"px);",""),[p]);let b,y,S;return b=X("flex gap-x-25px",t===kf.Right&&"flex-row-reverse"),y="flex-1",S=X(n&&[oG,z3e(e,"margin")]),H(DN.Provider,{value:o,children:[x(Q4e,{ref:d,tab:l,leftSlot:i,shortcutEnabled:r}),H("div",{className:b,children:[x(KK,{css:g,tab:l,sidebarView:s}),x(GK,{tab:l,direction:u,containerClassName:y,className:S,shortcutEnabled:r,infiniteScrollUseWindow:true,onScrollToTop:m},l)]})]})}const JK="html.bewly-design:not(:has(#i_cecream,#app))";function tIe(){return !!document.querySelector(JK)}function nIe(){return nS(JK,()=>{ti("unmount for using bewly-design"),ng?.unmount();},{pollTimeout:5e3,warnOnTimeout:false})}let ng;async function rIe(){if(ip(".adblock-tips"),ip(".vip-login-tip"),nS("html.gray",t=>t.classList.remove("gray")),QK(),tIe())return ti("quit for using bewly-design");at.pureRecommend||yAe()||SS()?(await iIe(),nIe()):oIe();}function oIe(){const e=document.createElement("section");e.classList.add(Ns),document.body.append(e),ng=aa.createRoot(e),ng.render(H(rl,{children:[x(aS,{antd:true,baseGlobalStyle:true}),x(V4e,{})]}));}async function iIe(){Pg&&await gn(500),ip("#i_cecream .bili-feed4-layout, body > #app .bili-feed4-layout"),ip(".bili-feed4 .header-channel"),ip(".palette-button-wrap");const e=document.createElement("div");e.classList.add("bili-feed4-layout","pure-recommend",Ns),await dm(()=>document.querySelector(".bili-feed4 .bili-header"),{interval:20,timeout:2e3}),document.body.append(e);const t=document.createElement("div");e.append(t),ng=aa.createRoot(t),ng.render(H(rl,{children:[x(aS,{antd:true,baseGlobalStyle:true,homePageGlobalStyle:true}),x(eIe,{}),x(Ku.BackTop,{style:{insetInlineEnd:"var(--back-top-right, 24px)"}})]}));}function YN(){aIe(),QK();}const sIe=jf(()=>{const e=document.createElement("div");document.body.appendChild(e),aa.createRoot(e).render(x(rl,{children:x(aS,{antd:true,baseGlobalStyle:true})}));});function aIe(){sIe();}function lIe(){try{return globalThis.self!==window.top}catch{return  true}}const XN=new uo,cIe=jf(()=>{window.navigation?.addEventListener?.("navigatesuccess",()=>{XN.emit("navigate-success");});});queueMicrotask(cIe);function uIe(){lIe()||(YN(),at.videoCard.videoPreview.addTo.searchPage&&dIe());}function dIe(){const e=qa(()=>{const r=Array.from(document.querySelectorAll(".video-list-item:has(> .bili-video-card),div:has(> .bili-video-card)"));for(const o of r)fIe(o);},1e3);e(),new MutationObserver(()=>e()).observe(document.body,{childList:true,subtree:true});}const JB=new WeakSet,e9=`${Kr}-add-large-preview-processed`;function fIe(e){if(JB.has(e)||e.getAttribute(e9))return;const t=e.querySelector(".bili-watch-later--wrap");if(!t)return;const n=document.createElement("div");t.after(n),JB.add(e),e.setAttribute(e9,"true"),aa.createRoot(n).render(x(rl,{children:x(hIe,{el:e})}));}const mIe={useMotion:true,motionProps:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:0}},transition:{duration:.2,ease:"linear",delay:.2}}};function hIe({el:e}){const{bvid:t="",cover:n}=f.useMemo(()=>pIe(e),[e]),r=f.useMemo(()=>e.querySelector(".bili-video-card")??e,[e]),o=f.useMemo(()=>r.querySelector(".bili-video-card__wrap > a"),[e]),i=iS(o),s=f.useRef(o),{largePreviewActionButtonEl:l,largePreviewEl:u}=NK({shouldFetchPreviewData:!!t,hasLargePreviewActionButton:true,actionButtonVisible:i,actionButtonProps:mIe,bvid:t,cid:void 0,uniqId:t,recSharedEmitter:eK,cardTarget:r,cover:n,videoCardAsTriggerRef:s});return H(_e,{children:[x("div",{className:or(Xp.top("right"),"right-[calc(8px+28px+5px)]"),children:l}),No.createPortal(u,r)]})}function pIe(e){let t;{const r=e.querySelector(".bili-video-card__wrap > a")?.href;r&&(t=/^\/video\/(?<bvid>BV\w+)\//i.exec(new URL(r).pathname)?.groups?.bvid);}const n=e.querySelector("picture.v-img.bili-video-card__cover img")?.currentSrc;return {bvid:t,cover:n}}const gIe=`${Kr}-${crypto.randomUUID()}`;async function vIe(){if(!Ru.mid)return;const e=".h-action",t=".upinfo .operations";await nS([e,t].join(","),n=>{Ru.href=location.href,Ru.usingNewSpacePage=n.matches(t),eY();const r=document.createElement("span");r.id=gIe,r.classList.add("mr-24px"),n.prepend(r),aa.createRoot(r).render(x(rl,{children:x(bIe,{})}));},{pollTimeout:1e4,pollInterval:1e3});}const Ru=zn({href:location.href,usingNewSpacePage:false,followed:false,get mid(){return yIe(this.href)},get collectionId(){const e=new URL(this.href);{const t=/https:\/\/space.bilibili.com\/(?<mid>\d+)\/lists\/(?<collectionId>\d+)(?:\?type=season)?/,n=this.href.match(t);if(n?.groups?.collectionId&&(e.searchParams.get("type")==="season"||!e.searchParams.get("type")))return Number(n?.groups?.collectionId)}if(/https:\/\/space.bilibili.com\/\d+\/channel\/collectiondetail\?/.test(this.href)){const r=new URL(this.href).searchParams.get("sid")?.trim();if(r)return Number(r)}},get isCollectionPage(){return typeof this.collectionId=="number"},get searchKeyword(){return /https:\/\/space.bilibili.com\/\d+\/search/.test(this.href)?new URLSearchParams(location.search).get("keyword")??void 0:void 0},get isSearching(){return !!this.searchKeyword?.trim()}}),eY=el(async()=>{const e=await dm(()=>{if(Array.from(document.querySelectorAll(".space-follow-btn")).filter(n=>n.textContent?.trim()==="已关注").length>0)return  true},{interval:100,timeout:5e3});Ru.followed=!!e;});XN.on("navigate-success",()=>{Ru.href=location.href,eY();});function bIe(){const{mid:e,collectionId:t,followed:n,isSearching:r,searchKeyword:o}=gt(Ru);if(!e)return;const i="w-34px b-white/33% rounded-full hover:b-gate-primary hover:bg-gate-primary",s="size-17px";let l;{let m=`https://www.bilibili.com/?${Js.Mid}=${e}`;r&&o&&(m+=`&${Js.SearchText}=${o}`),l=x(QE,{className:i,href:m,tooltip:`在「${Zo}」中查看 UP 的投稿`,children:x(ky,{className:s})},"btnSpaceUpload");}let u;if(n){const m=`https://www.bilibili.com/?${bi.Mid}=${e}`;u=x(QE,{className:i,href:m,tooltip:`在「${Zo}」中查看 UP 的动态`,children:x(By,{className:s})},"btnDynamicFeed");}let d;return typeof t=="number"&&(d=x(QE,{className:i,href:`https://www.bilibili.com/?${r1.CollectionIdFull}=${t}`,target:"_blank",tooltip:`在「${Zo}」中查看合集`,children:x(CS,{className:s})},"btnViewCollection")),H("span",{className:"inline-flex items-center gap-x-8px",children:[d,l,u]})}function QE({href:e,children:t,className:n,style:r,tooltip:o,...i}){const{usingNewSpacePage:s}=gt(Ru),l=or("h-34px w-150px flex cursor-pointer items-center justify-center b-1px b-white/20% rounded-6px b-solid bg-white/14% text-14px color-white font-700 transition-duration-300 transition-property-all hover:bg-white/40%",n),u=s?x("a",{...i,href:e,className:l,style:r,children:t}):x("a",{href:e,className:X("h-f-btn",n),style:{width:"auto",paddingInline:"15px",...r},...i,children:t});return o?x(sn,{title:o,children:u}):u}function yIe(e=location.href){const n=new URL(e).pathname.split("/").map(r=>r.trim()).find(Boolean);if(!(!n||!/^\d+$/.test(n)))return n}function SIe(){XN.on("navigate-success",CIe);}function CIe(){const e=new URL(location.href);if(e.hostname!=="space.bilibili.com")return;const t=/^\/(?<mid>\d+)\/lists\?sid=(?<sid>\d+)$/.exec(e.pathname+e.search);if(!t)return;const n=new URL(`/${t.groups?.mid}/lists/${t.groups?.sid}`,location.href).href;location.href=n;}function xIe(){YN(),SIe(),vIe();}function IM(){if(!(typeof unsafeWindow>"u"))return unsafeWindow.player}const V0=po.extend("main:video-play-page");async function wIe(){YN(),EIe(),IIe(),await TIe(),await AIe();}function EIe(){$Ie(),MIe(),PIe();}function $Ie(){fN&&GM.registerMenuCommand?.("🎦 小窗打开",()=>{tY(),RIe();});}function MIe(){$R&&GM.registerMenuCommand?.("▶️ IINA 打开",()=>{tY(),NIe();});}async function TIe(){const e=new URL(location.href).searchParams.get(uc.PlayerScreenMode);if(V0("targetMode=%s",e),!(e===Vl.WebFullscreen||e===Vl.Fullscreen))return;let n;e===Vl.WebFullscreen&&(n=()=>document.querySelector('[role="button"][aria-label="网页全屏"]')?.click()),e===Vl.Fullscreen&&(n=()=>document.querySelector('[role="button"][aria-label="全屏"]')?.click());const r=()=>document.querySelector("#bilibili-player .bpx-player-container")?.dataset.screen||Vl.Normal,o=Date.now()+Qr("30s");for(;r()!==e&&Date.now()<=o;)V0("current mode: %s",r()),n?.(),await gn(100);V0("handleFullscreen to %s complete",e);}async function AIe(){if(KG()||!(new URL(location.href).searchParams.get(uc.ForceAutoPlay)===TR.ON))return;const t=()=>{const r=IM();return !!r&&!r.isPaused()},n=Date.now()+Qr("30s");for(;Date.now()<=n&&!t();)IM()?.play(),await gn(1e3);V0("handleForceAutoPlay complete, playing = %s",t());}function tY(){const e=IM();e&&!e.isPaused()&&e.pause();}function RIe(){const e=new URL(location.href);e.searchParams.set(uc.PlayerScreenMode,Vl.WebFullscreen);const t=e.href;eq(t,"");}function NIe(){const e=`iina://open?url=${encodeURIComponent(location.href)}`;window.open(e,"_self");}function PIe(){GM.registerMenuCommand?.("⭐️ 加入收藏",()=>OM());}async function IIe(){if(!L0())return;const e=()=>at.fav.useCustomFavPicker.onPlayPage;document.addEventListener("keydown",t=>{if(Fy(t,"Shift+E")||e()&&Fy(t,"E")){if(!L0()||SEe()||t.target.closest("bili-comments"))return;t.stopImmediatePropagation(),t.preventDefault(),OM();}},{capture:true}),e()&&(await dm(()=>document.querySelector(".video-fav.video-toolbar-left-item"),{interval:100,timeout:5e3}))?.addEventListener("click",n=>{!e()||!L0()||(n.stopImmediatePropagation(),n.preventDefault(),OM());},{capture:true});}async function OM(e){const t=L0();if(!t)return Qt.error("无法解析视频 BVID !");const n=NMe(t);if(e===void 0){const r=await ku.getVideoFavState(n);r&&(e=r.favFolderIds);}await Zy(e,async r=>{if(!await $N(n,e,r))return;const i=!!r;return document.querySelector(".video-fav.video-toolbar-left-item")?.classList.toggle("on",i),true});}Yn.extend(Xwe);(function(){if(Ka)return rIe();if(cG)return wIe();if(MZ)return xIe();if(TZ)return uIe()})();

})(UAParser, axios, SparkMD5, localforage, PinyinMatch);