Bilibili-Gate

Bilibili 自定义首页

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         Bilibili-Gate
// @namespace    https://magicdawn.fun
// @version      0.34.15
// @author       magicdawn
// @description  Bilibili 自定义首页
// @license      MIT
// @icon         https://www.bilibili.com/favicon.ico
// @homepageURL  https://greasyfork.org/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/1.13.6/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 (VX, DM, sparkMd5, $I, jX) {
  'use strict';

  const d=new Set;const HX = 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));};

  HX(' ._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-15px{margin-bottom:15px}.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-5px{margin-top:5px}.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-1\\.6em{font-size:1.6em}.text-12px,.text-size-12px{font-size:12px}.text-13px,.text-size-13px{font-size:13px}.text-15px{font-size:15px}.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))}.color-\\$text_1{color:var(--text_1)}.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\\.2em{line-height:1.2em}.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}.tracking-1{letter-spacing:4px}.tracking-normal{letter-spacing:0em}.word-spacing-1{word-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 UX(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 WX='@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)}#slide_ad{display:none!important}';HX(WX);const GX="_cls--gate-video-grid--divider_h4766_1",qX="_cls--gate-video-card--context-menu--root_h4766_13",_M="_video-grid_ucv12_1",Ik="_grid-template-columns-using-var-col_ucv12_9",Ok="_grid-template-columns-using-card-min-width_ucv12_14",Dk="_video-grid-addon-center-empty_ucv12_19",_k="_video-grid-bili-feed4_ucv12_26",Lk="_video-grid-custom_ucv12_47",kk="_narrow-mode_ucv12_63",KX={videoGrid:_M,gridTemplateColumnsUsingVarCol:Ik,gridTemplateColumnsUsingCardMinWidth:Ok,videoGridAddonCenterEmpty:Dk,videoGridBiliFeed4:_k,videoGridCustom:Lk,narrowMode:kk},MI=Object.freeze(Object.defineProperty({__proto__:null,default:KX,gridTemplateColumnsUsingCardMinWidth:Ok,gridTemplateColumnsUsingVarCol:Ik,narrowMode:kk,videoGrid:_M,videoGridAddonCenterEmpty:Dk,videoGridBiliFeed4:_k,videoGridCustom:Lk},Symbol.toStringTag,{value:"Module"}));function YX(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 rc(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function Bk(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 XX(e,t,n){return e<t?n==="asc"?-1:1:e>t?n==="asc"?1:-1:0}function ka(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=XX(m,p,l);if(g!==0)return g}return 0})}function QX(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 ZX(e,t){return Math.floor(QX(e,t))}function $i(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 zk(e){return typeof e=="symbol"||e instanceof Symbol}function JX(e){return zk(e)?NaN:Number(e)}function eQ(e){return e?(e=JX(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function tQ(e){const t=eQ(e),n=t%1;return n?t-n:t}function ig(e){return [...new Set(e)]}function vc(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 nQ=class extends Error{constructor(t="The operation was aborted"){super(t),this.name="AbortError";}};function rQ(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(...x){if(n?.aborted)return;o=this,i=x;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 Fk(e){return e}function oQ(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 Hk(){}function qf(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 nQ);},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 ca(e,t,{signal:n,edges:r=["leading","trailing"]}={}){let o=null;const i=rQ(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 Vk(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 jk(e){return e==null||typeof e!="object"&&typeof e!="function"}function Uk(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Fx(e){if(jk(e))return e;if(Array.isArray(e)||Uk(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 YE(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function XE(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Wk="[object RegExp]",Gk="[object String]",qk="[object Number]",Kk="[object Boolean]",QE="[object Arguments]",Yk="[object Symbol]",Xk="[object Date]",Qk="[object Map]",Zk="[object Set]",Jk="[object Array]",iQ="[object Function]",eB="[object ArrayBuffer]",ey="[object Object]",sQ="[object Error]",tB="[object DataView]",nB="[object Uint8Array]",rB="[object Uint8ClampedArray]",oB="[object Uint16Array]",iB="[object Uint32Array]",aQ="[object BigUint64Array]",sB="[object Int8Array]",aB="[object Int16Array]",lB="[object Int32Array]",lQ="[object BigInt64Array]",cB="[object Float32Array]",uB="[object Float64Array]";function of(e,t,n,r=new Map,o=void 0){const i=o?.(e,t,n,r);if(i!==void 0)return i;if(jk(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]=of(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,of(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(of(l,void 0,n,r,o));return s}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(Uk(e)){const s=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,s);for(let l=0;l<e.length;l++)s[l]=of(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),_l(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),_l(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),_l(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,_l(s,e,n,r,o),s}if(e instanceof Boolean){const s=new Boolean(e.valueOf());return r.set(e,s),_l(s,e,n,r,o),s}if(e instanceof Number){const s=new Number(e.valueOf());return r.set(e,s),_l(s,e,n,r,o),s}if(e instanceof String){const s=new String(e.valueOf());return r.set(e,s),_l(s,e,n,r,o),s}if(typeof e=="object"&&cQ(e)){const s=Object.create(Object.getPrototypeOf(e));return r.set(e,s),_l(s,e,n,r,o),s}return e}function _l(e,t,n=e,r,o){const i=[...Object.keys(t),...YE(t)];for(let s=0;s<i.length;s++){const l=i[s],u=Object.getOwnPropertyDescriptor(e,l);(u==null||u.writable)&&(e[l]=of(t[l],l,n,r,o));}}function cQ(e){switch(XE(e)){case QE:case Jk:case eB:case tB:case Kk:case Xk:case cB:case uB:case sB:case aB:case lB:case Qk:case qk:case ey:case Wk:case Zk:case Gk:case Yk:case nB:case rB:case oB:case iB:return  true;default:return  false}}function Tf(e){return of(e,void 0,e,new Map,void 0)}function Af(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 mp(e){return e==="__proto__"}function La(e,t,n){const r=Object.keys(t);for(let o=0;o<r.length;o++){const i=r[o];if(mp(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]=La(l,s,n):e[i]=La([],s,n):Af(s)?Af(l)?e[i]=La(l,s,n):e[i]=La({},s,n):(l===void 0||s!==void 0)&&(e[i]=s);}return e}function dB(e,t){const n={...e};for(let r=0;r<t.length;r++){const o=t[r];delete n[o];}return n}function ku(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 uQ=new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+","gu");function dQ(e){return Array.from(e.match(uQ)??[])}function fQ(e,t){return La(Fx(e),t,function n(r,o){if(Array.isArray(o))return Array.isArray(r)?La(Fx(r),o,n):La([],o,n);if(Af(o))return Af(r)?La(Fx(r),o,n):La({},o,n)})}function fB(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function mQ(e,t,n){return Oh(e,t,void 0,void 0,void 0,void 0,n)}function Oh(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 Wh(e,t,i,s)}return Wh(e,t,i,s)}function Wh(e,t,n,r){if(Object.is(e,t))return  true;let o=XE(e),i=XE(t);if(o===QE&&(o=ey),i===QE&&(i=ey),o!==i)return  false;switch(o){case Gk:return e.toString()===t.toString();case qk:{const u=e.valueOf(),d=t.valueOf();return fB(u,d)}case Kk:case Xk:case Yk:return Object.is(e.valueOf(),t.valueOf());case Wk:return e.source===t.source&&e.flags===t.flags;case iQ: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 Qk:{if(e.size!==t.size)return !1;for(const[u,d]of e.entries())if(!t.has(u)||!Oh(d,t.get(u),u,e,t,n,r))return !1;return !0}case Zk:{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=>Oh(p,b,void 0,e,t,n,r));if(g===-1)return !1;d.splice(g,1);}return !0}case Jk:case nB:case rB:case oB:case iB:case aQ:case sB:case aB:case lB:case lQ:case cB:case uB:{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(!Oh(e[u],t[u],u,e,t,n,r))return !1;return !0}case eB:return e.byteLength!==t.byteLength?!1:Wh(new Uint8Array(e),new Uint8Array(t),n,r);case tB:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:Wh(new Uint8Array(e),new Uint8Array(t),n,r);case sQ:return e.name===t.name&&e.message===t.message;case ey:{if(!(Wh(e.constructor,t.constructor,n,r)||Af(e)&&Af(t)))return !1;const d=[...Object.keys(e),...YE(e)],m=[...Object.keys(t),...YE(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(!Oh(b,y,g,e,t,n,r))return !1}return !0}default:return !1}}finally{n.delete(e),n.delete(t);}}function Mi(e,t){return mQ(e,t,Hk)}function Qi(e){return e==null}function hQ(e){const t=dQ(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 pQ(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 gQ(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 vQ(e,t){return t===void 0?e.trim():gQ(pQ(e,t),t)}function oc(e){try{return [null,e()]}catch(t){return [t,null]}}async function f1(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 bQ(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 mB(e){if(e==null)return "";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(mB).join(",");const t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function hB(e){if(Array.isArray(e))return e.map(LM);if(typeof e=="symbol")return [e];e=mB(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 tr(e,t,n){if(e==null)return n;switch(typeof t){case "string":{if(mp(t))return n;const r=e[t];return r===void 0?bQ(t)?tr(e,hB(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 yQ(e,t,n);if(Object.is(t?.valueOf(),-0)?t="-0":t=String(t),mp(t))return n;const r=e[t];return r===void 0?n:r}}}function yQ(e,t,n){if(t.length===0)return n;let r=e;for(let o=0;o<t.length;o++){if(r==null||mp(t[o]))return n;r=r[t[o]];}return r===void 0?n:r}function TI(e){return e!==null&&(typeof e=="object"||typeof e=="function")}const SQ=/^(?:0|[1-9]\d*)$/;function CQ(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 SQ.test(e)}}const xQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wQ=/^\w*$/;function EQ(e,t){return Array.isArray(e)?false:typeof e=="number"||typeof e=="boolean"||e==null||zk(e)?true:typeof e=="string"&&(wQ.test(e)||!xQ.test(e))||t!=null&&Object.hasOwn(t,e)}const $Q=(e,t,n)=>{const r=e[t];(!(Object.hasOwn(e,t)&&fB(r,n))||n===void 0&&!(t in e))&&(e[t]=n);};function MQ(e,t,n,r){if(e==null&&!TI(e))return e;let o;EQ(t,e)?o=[t]:Array.isArray(t)?o=t:o=hB(t);const i=n(tr(e,o));let s=e;for(let l=0;l<o.length&&s!=null;l++){const u=LM(o[l]);if(mp(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:TI(m)?m:CQ(o[l+1])?[]:{};}$Q(s,u,d),s=s[u];}return e}function Kf(e,t,n){return MQ(e,t,()=>n,()=>{})}function TQ(e,t){if(e=tQ(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 AQ=Symbol(),kM=Symbol(),Dh="a",pB="f",AI="p",gB="c",vB="t",BM="h",Gh="w",zM="o",FM="k";let RQ=(e,t)=>new Proxy(e,t);const ZE=Object.getPrototypeOf,JE=new WeakMap,bB=e=>e&&(JE.has(e)?JE.get(e):ZE(e)===Object.prototype||ZE(e)===Array.prototype),qy=e=>typeof e=="object"&&e!==null,NQ=e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(t=>!t.configurable&&!t.writable),PQ=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(ZE(e),t)},IQ=(e,t)=>{const n={[pB]:t};let r=false;const o=(l,u)=>{if(!r){let d=n[Dh].get(e);if(d||(d={},n[Dh].set(e,d)),l===Gh)d[Gh]=true;else {let m=d[l];m||(m=new Set,d[l]=m),m.add(u);}}},i=()=>{r=true,n[Dh].delete(e);},s={get(l,u){return u===kM?e:(o(FM,u),yB(Reflect.get(l,u),n[Dh],n[gB],n[vB]))},has(l,u){return u===AQ?(i(),true):(o(BM,u),Reflect.has(l,u))},getOwnPropertyDescriptor(l,u){return o(zM,u),Reflect.getOwnPropertyDescriptor(l,u)},ownKeys(l){return o(Gh),Reflect.ownKeys(l)}};return t&&(s.set=s.deleteProperty=()=>false),[s,n]},HM=e=>e[kM]||e,yB=(e,t,n,r)=>{if(!bB(e))return e;let o=r&&r.get(e);if(!o){const u=HM(e);NQ(u)?o=[u,PQ(u)]:o=[u],r?.set(e,o);}const[i,s]=o;let l=n&&n.get(i);return (!l||l[1][pB]!==!!s)&&(l=IQ(i,!!s),l[1][AI]=RQ(s||i,l[0]),n&&n.set(i,l)),l[1][Dh]=t,l[1][gB]=n,l[1][vB]=r,l[1][AI]},OQ=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some((o,i)=>o!==r[i])},SB=(e,t,n,r,o=Object.is)=>{if(o(e,t))return  false;if(!qy(e)||!qy(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[BM]||[])if(s=Reflect.has(e,l)!==Reflect.has(t,l),s)return s;if(i[Gh]===true){if(s=OQ(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=SB(e[l],t[l],n,r,o),s)return s;if(s===null)throw new Error("invalid used");return s},DQ=e=>bB(e)&&e[kM]||null,RI=(e,t=true)=>{JE.set(e,t);},_Q=(e,t,n)=>{const r=[],o=new WeakSet,i=(s,l)=>{var u,d,m;if(o.has(s))return;qy(s)&&o.add(s);const p=qy(s)&&t.get(HM(s));if(p){if((u=p[BM])===null||u===void 0||u.forEach(g=>{const b=`:has(${String(g)})`;r.push(l?[...l,b]:[b]);}),p[Gh]===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},Ky={},VM=e=>typeof e=="object"&&e!==null,LQ=e=>VM(e)&&!sg.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),CB=(e,t)=>{const n=e$.get(e);if(n?.[0]===t)return n[1];const r=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return RI(r,true),e$.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(sg.has(i))RI(i,false);else if(qa.has(i)){const[u,d]=qa.get(i);l.value=CB(u,d());}Object.defineProperty(r,o,l);}),Object.preventExtensions(r)},kQ=(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&&(Yy(d,s)||hp.has(s)&&Yy(d,hp.get(s))))return  true;n(i),VM(s)&&(s=DQ(s)||s);const m=!qa.has(s)&&n$(s)?Dn(s):s;return t(i,m),Reflect.set(o,i,m,l),r(void 0),true}}),qa=new WeakMap,sg=new WeakSet,e$=new WeakMap,ty=[1],hp=new WeakMap;let Yy=Object.is,t$=(e,t)=>new Proxy(e,t),n$=LQ,r$=CB,o$=kQ;function Dn(e={}){if(!VM(e))throw new Error("object required");const t=hp.get(e);if(t)return t;let n=ty[0];const r=new Set,o=(x,w=++ty[0])=>{n!==w&&(i=n=w,r.forEach(E=>E(x,w)));};let i=n;const s=(x=ty[0])=>(i!==x&&(i=x,u.forEach(([w])=>{const E=w[1](x);E>n&&(n=E);})),n),l=x=>(w,E)=>{let M;w&&(M=[...w],M[1]=[x,...M[1]]),o(M,E);},u=new Map,d=(x,w)=>{const E=!sg.has(w)&&qa.get(w);if(E){if((Ky?"production":void 0)!=="production"&&u.has(x))throw new Error("prop listener already exists");if(r.size){const M=E[2](l(x));u.set(x,[E,M]);}else u.set(x,[E]);}},m=x=>{var w;const E=u.get(x);E&&(u.delete(x),(w=E[1])==null||w.call(E));},p=x=>(r.add(x),r.size===1&&u.forEach(([E,M],T)=>{if((Ky?"production":void 0)!=="production"&&M)throw new Error("remove already exists");const A=E[2](l(T));u.set(T,[E,A]);}),()=>{r.delete(x),r.size===0&&u.forEach(([E,M],T)=>{M&&(M(),u.set(T,[E]));});});let g=true;const b=o$(()=>g,d,m,o),y=t$(e,b);hp.set(e,y);const S=[e,s,p];return qa.set(y,S),Reflect.ownKeys(e).forEach(x=>{const w=Object.getOwnPropertyDescriptor(e,x);"value"in w&&w.writable&&(y[x]=e[x]);}),g=false,y}function NI(e){const t=qa.get(e);return t?.[1]()}function ua(e,t,n){const r=qa.get(e);(Ky?"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 Br(e){const t=qa.get(e);(Ky?"production":void 0)!=="production"&&!t&&console.warn("Please use proxy object");const[n,r]=t;return r$(n,r())}function xB(e){return sg.add(e),e}function jM(){return {proxyStateMap:qa,refSet:sg,snapCache:e$,versionHolder:ty,proxyCache:hp}}function BQ(e,t){switch(e){case "objectIs":Yy=t(Yy);break;case "newProxy":t$=t(t$);break;case "canProxy":n$=t(n$);break;case "createSnapshot":r$=t(r$);break;case "createHandler":o$=t(o$);break;default:throw new Error("unknown function")}}var fb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hx={exports:{}},Vt={};var PI;function zQ(){if(PI)return Vt;PI=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(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return  false},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,x={};function w(k,V,Q){this.props=k,this.context=V,this.refs=x,this.updater=Q||y;}w.prototype.isReactComponent={},w.prototype.setState=function(k,V){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,V,"setState");},w.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate");};function E(){}E.prototype=w.prototype;function M(k,V,Q){this.props=k,this.context=V,this.refs=x,this.updater=Q||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(k,V,Q){var J=Q.ref;return {$$typeof:e,type:k,key:V,ref:J!==void 0?J:null,props:Q}}function D(k,V){return O(k.type,V,k.props)}function _(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function H(k){var V={"=":"=0",":":"=2"};return "$"+k.replace(/[=:]/g,function(Q){return V[Q]})}var U=/\/+/g;function W(k,V){return typeof k=="object"&&k!==null&&k.key!=null?H(""+k.key):V.toString(36)}function z(k){switch(k.status){case "fulfilled":return k.value;case "rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(I,I):(k.status="pending",k.then(function(V){k.status==="pending"&&(k.status="fulfilled",k.value=V);},function(V){k.status==="pending"&&(k.status="rejected",k.reason=V);})),k.status){case "fulfilled":return k.value;case "rejected":throw k.reason}}throw k}function L(k,V,Q,J,te){var ne=typeof k;(ne==="undefined"||ne==="boolean")&&(k=null);var re=false;if(k===null)re=true;else switch(ne){case "bigint":case "string":case "number":re=true;break;case "object":switch(k.$$typeof){case e:case t:re=true;break;case m:return re=k._init,L(re(k._payload),V,Q,J,te)}}if(re)return te=te(k),re=J===""?"."+W(k,0):J,A(te)?(Q="",re!=null&&(Q=re.replace(U,"$&/")+"/"),L(te,V,Q,"",function(ee){return ee})):te!=null&&(_(te)&&(te=D(te,Q+(te.key==null||k&&k.key===te.key?"":(""+te.key).replace(U,"$&/")+"/")+re)),V.push(te)),1;re=0;var ie=J===""?".":J+":";if(A(k))for(var ue=0;ue<k.length;ue++)J=k[ue],ne=ie+W(J,ue),re+=L(J,V,Q,ne,te);else if(ue=b(k),typeof ue=="function")for(k=ue.call(k),ue=0;!(J=k.next()).done;)J=J.value,ne=ie+W(J,ue++),re+=L(J,V,Q,ne,te);else if(ne==="object"){if(typeof k.then=="function")return L(z(k),V,Q,J,te);throw V=String(k),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return re}function G(k,V,Q){if(k==null)return k;var J=[],te=0;return L(k,J,"","",function(ne){return V.call(Q,ne,te++)}),J}function j(k){if(k._status===-1){var V=k._result;V=V(),V.then(function(Q){(k._status===0||k._status===-1)&&(k._status=1,k._result=Q);},function(Q){(k._status===0||k._status===-1)&&(k._status=2,k._result=Q);}),k._status===-1&&(k._status=0,k._result=V);}if(k._status===1)return k._result.default;throw k._result}var K=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:true,cancelable:true,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k);},X={map:G,forEach:function(k,V,Q){G(k,function(){V.apply(this,arguments);},Q);},count:function(k){var V=0;return G(k,function(){V++;}),V},toArray:function(k){return G(k,function(V){return V})||[]},only:function(k){if(!_(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Vt.Activity=p,Vt.Children=X,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(k){return N.H.useMemoCache(k)}},Vt.cache=function(k){return function(){return k.apply(null,arguments)}},Vt.cacheSignal=function(){return null},Vt.cloneElement=function(k,V,Q){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var J=S({},k.props),te=k.key;if(V!=null)for(ne in V.key!==void 0&&(te=""+V.key),V)!P.call(V,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&V.ref===void 0||(J[ne]=V[ne]);var ne=arguments.length-2;if(ne===1)J.children=Q;else if(1<ne){for(var re=Array(ne),ie=0;ie<ne;ie++)re[ie]=arguments[ie+2];J.children=re;}return O(k.type,te,J)},Vt.createContext=function(k){return k={$$typeof:s,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:i,_context:k},k},Vt.createElement=function(k,V,Q){var J,te={},ne=null;if(V!=null)for(J in V.key!==void 0&&(ne=""+V.key),V)P.call(V,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(te[J]=V[J]);var re=arguments.length-2;if(re===1)te.children=Q;else if(1<re){for(var ie=Array(re),ue=0;ue<re;ue++)ie[ue]=arguments[ue+2];te.children=ie;}if(k&&k.defaultProps)for(J in re=k.defaultProps,re)te[J]===void 0&&(te[J]=re[J]);return O(k,ne,te)},Vt.createRef=function(){return {current:null}},Vt.forwardRef=function(k){return {$$typeof:l,render:k}},Vt.isValidElement=_,Vt.lazy=function(k){return {$$typeof:m,_payload:{_status:-1,_result:k},_init:j}},Vt.memo=function(k,V){return {$$typeof:d,type:k,compare:V===void 0?null:V}},Vt.startTransition=function(k){var V=N.T,Q={};N.T=Q;try{var J=k(),te=N.S;te!==null&&te(Q,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(I,K);}catch(ne){K(ne);}finally{V!==null&&Q.types!==null&&(V.types=Q.types),N.T=V;}},Vt.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Vt.use=function(k){return N.H.use(k)},Vt.useActionState=function(k,V,Q){return N.H.useActionState(k,V,Q)},Vt.useCallback=function(k,V){return N.H.useCallback(k,V)},Vt.useContext=function(k){return N.H.useContext(k)},Vt.useDebugValue=function(){},Vt.useDeferredValue=function(k,V){return N.H.useDeferredValue(k,V)},Vt.useEffect=function(k,V){return N.H.useEffect(k,V)},Vt.useEffectEvent=function(k){return N.H.useEffectEvent(k)},Vt.useId=function(){return N.H.useId()},Vt.useImperativeHandle=function(k,V,Q){return N.H.useImperativeHandle(k,V,Q)},Vt.useInsertionEffect=function(k,V){return N.H.useInsertionEffect(k,V)},Vt.useLayoutEffect=function(k,V){return N.H.useLayoutEffect(k,V)},Vt.useMemo=function(k,V){return N.H.useMemo(k,V)},Vt.useOptimistic=function(k,V){return N.H.useOptimistic(k,V)},Vt.useReducer=function(k,V,Q){return N.H.useReducer(k,V,Q)},Vt.useRef=function(k){return N.H.useRef(k)},Vt.useState=function(k){return N.H.useState(k)},Vt.useSyncExternalStore=function(k,V,Q){return N.H.useSyncExternalStore(k,V,Q)},Vt.useTransition=function(){return N.H.useTransition()},Vt.version="19.2.4",Vt}var II;function UM(){return II||(II=1,Hx.exports=zQ()),Hx.exports}var f=UM();const q=bc(f),i$=UX({__proto__:null,default:q},[f]),FQ={},HQ=(e,t)=>{const n=f.useRef(void 0);f.useEffect(()=>{n.current=_Q(e,t);}),f.useDebugValue(n.current);},VQ=HQ,jQ=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=ua(e,u,n);return u(),d},[e,n]),()=>{const u=Br(e);try{if(!i&&o.current&&!SB(o.current,u,r,new WeakMap))return o.current}catch{}return u},()=>Br(e));i=false,f.useLayoutEffect(()=>{o.current=s;}),(FQ?"production":void 0)!=="production"&&VQ(s,r);const l=f.useMemo(()=>new WeakMap,[]);return yB(s,r,l,jQ)}function UQ(e){return e instanceof Error?e.stack||e.message:e}function WQ(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 OI(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 GQ(e){return e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`}let Xy="";function wB(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]=UQ(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 wB(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!==Xy&&(o=Xy,i=KQ(e)),i),set:l=>{r=l;}}),s}let s$=[],a$=[];function qQ(e){Xy=e,s$=[],a$=[];const t=Xy.trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const n of t)n[0]==="-"?a$.push(n.slice(1)):s$.push(n);}function KQ(e){for(const t of a$)if(OI(e,t))return  false;for(const t of s$)if(OI(e,t))return  true;return  false}var YQ={};const XQ=["#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 QQ(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 ZQ=console.debug||console.log||(()=>{}),DI=eZ(),JQ={useColors:true,formatArgs:QQ,formatters:{j(e){try{return JSON.stringify(e)}catch(t){return `[UnexpectedJSONParseError]: ${t.message}`}}},inspectOpts:{},humanize:GQ,log:ZQ};function EB(e,t){var n;const r=(n=t)!==null&&n!==void 0?n:WQ(XQ,e);return wB(e,Object.assign(JQ,{color:r},t))}function eZ(){try{return localStorage}catch{}}function tZ(){let e;try{e=DI.getItem("debug")||DI.getItem("DEBUG");}catch{}return !e&&typeof process<"u"&&"env"in process&&(e=YQ.DEBUG),e||""}qQ(tZ());var Vx={exports:{}},fh={},jx={exports:{}},Ux={};var _I;function nZ(){return _I||(_I=1,(function(e){function t(L,G){var j=L.length;L.push(G);e:for(;0<j;){var K=j-1>>>1,X=L[K];if(0<o(X,G))L[K]=G,L[j]=X,j=K;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var G=L[0],j=L.pop();if(j!==G){L[0]=j;e:for(var K=0,X=L.length,k=X>>>1;K<k;){var V=2*(K+1)-1,Q=L[V],J=V+1,te=L[J];if(0>o(Q,j))J<X&&0>o(te,Q)?(L[K]=te,L[J]=j,K=J):(L[K]=Q,L[V]=j,K=V);else if(J<X&&0>o(te,j))L[K]=te,L[J]=j,K=J;else break e}}return G}function o(L,G){var j=L.sortIndex-G.sortIndex;return j!==0?j:L.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,x=false,w=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function T(L){for(var G=n(d);G!==null;){if(G.callback===null)r(d);else if(G.startTime<=L)r(d),G.sortIndex=G.expirationTime,t(u,G);else break;G=n(d);}}function A(L){if(S=false,T(L),!y)if(n(u)!==null)y=true,I||(I=true,H());else {var G=n(d);G!==null&&z(A,G.startTime-L);}}var I=false,N=-1,P=5,O=-1;function D(){return x?true:!(e.unstable_now()-O<P)}function _(){if(x=false,I){var L=e.unstable_now();O=L;var G=true;try{e:{y=!1,S&&(S=!1,E(N),N=-1),b=!0;var j=g;try{t:{for(T(L),p=n(u);p!==null&&!(p.expirationTime>L&&D());){var K=p.callback;if(typeof K=="function"){p.callback=null,g=p.priorityLevel;var X=K(p.expirationTime<=L);if(L=e.unstable_now(),typeof X=="function"){p.callback=X,T(L),G=!0;break t}p===n(u)&&r(u),T(L);}else r(u);p=n(u);}if(p!==null)G=!0;else {var k=n(d);k!==null&&z(A,k.startTime-L),G=!1;}}break e}finally{p=null,g=j,b=!1;}G=void 0;}}finally{G?H():I=false;}}}var H;if(typeof M=="function")H=function(){M(_);};else if(typeof MessageChannel<"u"){var U=new MessageChannel,W=U.port2;U.port1.onmessage=_,H=function(){W.postMessage(null);};}else H=function(){w(_,0);};function z(L,G){N=w(function(){L(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(L){L.callback=null;},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<L?Math.floor(1e3/L):5;},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(L){switch(g){case 1:case 2:case 3:var G=3;break;default:G=g;}var j=g;g=G;try{return L()}finally{g=j;}},e.unstable_requestPaint=function(){x=true;},e.unstable_runWithPriority=function(L,G){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3;}var j=g;g=L;try{return G()}finally{g=j;}},e.unstable_scheduleCallback=function(L,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,L){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3;}return X=j+X,L={id:m++,callback:G,priorityLevel:L,startTime:j,expirationTime:X,sortIndex:-1},j>K?(L.sortIndex=j,t(d,L),n(u)===null&&L===n(d)&&(S?(E(N),N=-1):S=true,z(A,j-K))):(L.sortIndex=X,t(u,L),y||b||(y=true,I||(I=true,H()))),L},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(L){var G=g;return function(){var j=g;g=G;try{return L.apply(this,arguments)}finally{g=j;}}};})(Ux)),Ux}var LI;function rZ(){return LI||(LI=1,jx.exports=nZ()),jx.exports}var Wx={exports:{}},bo={};var kI;function oZ(){if(kI)return bo;kI=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 BI;function $B(){if(BI)return Wx.exports;BI=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(),Wx.exports=oZ(),Wx.exports}var zI;function iZ(){if(zI)return fh;zI=1;var e=rZ(),t=UM(),n=$B();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 F=false,Z=$.child;Z;){if(Z===h){F=true,h=$,v=R;break}if(Z===v){F=true,v=$,h=R;break}Z=Z.sibling;}if(!F){for(Z=R.child;Z;){if(Z===h){F=true,h=R,v=$;break}if(Z===v){F=true,v=R,h=$;break}Z=Z.sibling;}if(!F)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"),x=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"),_=Symbol.iterator;function H(a){return a===null||typeof a!="object"?null:(a=_&&a[_]||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 x: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,L=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=[],X=-1;function k(a){return {current:a}}function V(a){0>X||(a.current=K[X],K[X]=null,X--);}function Q(a,c){X++,K[X]=a.current,a.current=c;}var J=k(null),te=k(null),ne=k(null),re=k(null);function ie(a,c){switch(Q(ne,c),Q(te,a),Q(J,null),c.nodeType){case 9:case 11:a=(a=c.documentElement)&&(a=a.namespaceURI)?K4(a):0;break;default:if(a=c.tagName,c=c.namespaceURI)c=K4(c),a=Y4(c,a);else switch(a){case "svg":a=1;break;case "math":a=2;break;default:a=0;}}V(J),Q(J,a);}function ue(){V(J),V(te),V(ne);}function ee(a){a.memoizedState!==null&&Q(re,a);var c=J.current,h=Y4(c,a.type);c!==h&&(Q(te,a),Q(J,h));}function ae(a){te.current===a&&(V(J),V(te)),re.current===a&&(V(re),lh._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 Ae=Pe;}Reflect.construct(a,[],Ve);}else {try{Ve.call();}catch(Pe){Ae=Pe;}a.call(Ve.prototype);}}else {try{throw Error()}catch(Pe){Ae=Pe;}(Ve=a())&&typeof Ve.catch=="function"&&Ve.catch(function(){});}}catch(Pe){if(Pe&&Ae&&typeof Pe.stack=="string")return [Pe.stack,Ae.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(),F=R[0],Z=R[1];if(F&&Z){var de=F.split(`
`),we=Z.split(`
`);for($=v=0;v<de.length&&!de[v].includes("DetermineComponentFrameRoot");)v++;for(;$<we.length&&!we[$].includes("DetermineComponentFrameRoot");)$++;if(v===de.length||$===we.length)for(v=de.length-1,$=we.length-1;1<=v&&0<=$&&de[v]!==we[$];)$--;for(;1<=v&&0<=$;v--,$--)if(de[v]!==we[$]){if(v!==1||$!==1)do if(v--,$--,0>$||de[v]!==we[$]){var Le=`
`+de[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 Ee(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 Te=Object.prototype.hasOwnProperty,Ye=e.unstable_scheduleCallback,Re=e.unstable_cancelCallback,fe=e.unstable_shouldYield,ge=e.unstable_requestPaint,Ne=e.unstable_now,He=e.unstable_getCurrentPriorityLevel,We=e.unstable_ImmediatePriority,je=e.unstable_UserBlockingPriority,et=e.unstable_NormalPriority,it=e.unstable_LowPriority,Ke=e.unstable_IdlePriority,Oe=e.log,qe=e.unstable_setDisableYieldValue,Je=null,ke=null;function Ie(a){if(typeof Oe=="function"&&qe(a),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(Je,a);}catch{}}var lt=Math.clz32?Math.clz32:Dt,Tt=Math.log,pt=Math.LN2;function Dt(a){return a>>>=0,a===0?32:31-(Tt(a)/pt|0)|0}var xt=256,Ot=262144,dt=4194304;function ut(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,F=a.pingedLanes;a=a.warmLanes;var Z=v&134217727;return Z!==0?(v=Z&~R,v!==0?$=ut(v):(F&=Z,F!==0?$=ut(F):h||(h=Z&~a,h!==0&&($=ut(h))))):(Z=v&~R,Z!==0?$=ut(Z):F!==0?$=ut(F):h||(h=v&~a,h!==0&&($=ut(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=dt;return dt<<=1,(dt&62914560)===0&&(dt=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 F=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,de=a.expirationTimes,we=a.hiddenUpdates;for(h=F&~h;0<h;){var Le=31-lt(h),Ve=1<<Le;Z[Le]=0,de[Le]=-1;var Ae=we[Le];if(Ae!==null)for(we[Le]=null,Le=0;Le<Ae.length;Le++){var Pe=Ae[Le];Pe!==null&&(Pe.lane&=-536870913);}h&=~Ve;}v!==0&&De(a,v,0),R!==0&&$===0&&a.tag!==0&&(a.suspendedLanes|=R&~(F&~c));}function De(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 Ce(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 Be(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 st(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function ft(){var a=G.p;return a!==0?a:(a=window.event,a===void 0?32:bI(a.type))}function Et(a,c){var h=G.p;try{return G.p=a,c()}finally{G.p=h;}}var At=Math.random().toString(36).slice(2),Rt="__reactFiber$"+At,yn="__reactProps$"+At,Wn="__reactContainer$"+At,tt="__reactEvents$"+At,Qe="__reactListeners$"+At,Ge="__reactHandles$"+At,mt="__reactResources$"+At,Nt="__reactMarker$"+At;function Ut(a){delete a[Rt],delete a[yn],delete a[tt],delete a[Qe],delete a[Ge];}function Jt(a){var c=a[Rt];if(c)return c;for(var h=a.parentNode;h;){if(c=h[Wn]||h[Rt]){if(h=c.alternate,c.child!==null||h!==null&&h.child!==null)for(a=nI(a);a!==null;){if(h=a[Rt])return h;a=nI(a);}return c}a=h,h=a.parentNode;}return null}function nn(a){if(a=a[Rt]||a[Wn]){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[mt];return c||(c=a[mt]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Sn(a){a[Nt]=true;}var vo=new Set,ha={};function Gn(a,c){Ho(a,c),Ho(a+"Capture",c);}function Ho(a,c){for(ha[a]=c,a=0;a<c.length;a++)vo.add(c[a]);}var Em=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]*$"),Bt={},Fr={};function Hr(a){return Te.call(Fr,a)?true:Te.call(Bt,a)?false:Em.test(a)?Fr[a]=true:(Bt[a]=true,false)}function _s(a,c,h){if(Hr(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 Vo(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 Nc(a){var c=a.type;return (a=a.nodeName)&&a.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function ev(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(F){h=""+F,R.call(this,F);}}),Object.defineProperty(a,c,{enumerable:v.enumerable}),{getValue:function(){return h},setValue:function(F){h=""+F;},stopTracking:function(){a._valueTracker=null,delete a[c];}}}}function Pc(a){if(!a._valueTracker){var c=Nc(a)?"checked":"value";a._valueTracker=ev(a,c,""+a[c]);}}function sd(a){if(!a)return  false;var c=a._valueTracker;if(!c)return  true;var h=c.getValue(),v="";return a&&(v=Nc(a)?a.checked?"true":"false":a.value),a=v,a!==h?(c.setValue(a),true):false}function ad(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 ht=/[\n"\\]/g;function Ht(a){return a.replace(ht,function(c){return "\\"+c.charCodeAt(0).toString(16)+" "})}function dl(a,c,h,v,$,R,F,Z){a.name="",F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?a.type=F:a.removeAttribute("type"),c!=null?F==="number"?(c===0&&a.value===""||a.value!=c)&&(a.value=""+Zr(c)):a.value!==""+Zr(c)&&(a.value=""+Zr(c)):F!=="submit"&&F!=="reset"||a.removeAttribute("value"),c!=null?ld(a,F,Zr(c)):h!=null?ld(a,F,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 tv(a,c,h,v,$,R,F,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)){Pc(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,F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(a.name=F),Pc(a);}function ld(a,c,h){c==="number"&&ad(a.ownerDocument)===a||a.defaultValue===""+h||(a.defaultValue=""+h);}function pa(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 nv(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 U6(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),Pc(a);}function cd(a,c){if(c){var h=a.firstChild;if(h&&h===a.lastChild&&h.nodeType===3){h.nodeValue=c;return}}a.textContent=c;}var LK=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 W6(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||LK.has(c)?c==="float"?a.cssFloat=h:a[c]=(""+h).trim():a[c]=h+"px";}function G6(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&&W6(a,$,v);}else for(var R in c)c.hasOwnProperty(R)&&W6(a,R,c[R]);}function LS(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 kK=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"]]),BK=/^[\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 rv(a){return BK.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function ga(){}var kS=null;function BS(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var ud=null,dd=null;function q6(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(dl(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));dl(v,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name);}}for(c=0;c<h.length;c++)v=h[c],v.form===a.form&&sd(v);}break e;case "textarea":nv(a,h.value,h.defaultValue);break e;case "select":c=h.value,c!=null&&pa(a,!!h.multiple,c,false);}}}var zS=false;function K6(a,c,h){if(zS)return a(c,h);zS=true;try{var v=a(c);return v}finally{if(zS=false,(ud!==null||dd!==null)&&(Uv(),ud&&(c=ud,a=dd,dd=ud=null,q6(c),a)))for(c=0;c<a.length;c++)q6(a[c]);}}function $m(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 va=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),FS=false;if(va)try{var Mm={};Object.defineProperty(Mm,"passive",{get:function(){FS=!0;}}),window.addEventListener("test",Mm,Mm),window.removeEventListener("test",Mm,Mm);}catch{FS=false;}var fl=null,HS=null,ov=null;function Y6(){if(ov)return ov;var a,c=HS,h=c.length,v,$="value"in fl?fl.value:fl.textContent,R=$.length;for(a=0;a<h&&c[a]===$[a];a++);var F=h-a;for(v=1;v<=F&&c[h-v]===$[R-v];v++);return ov=$.slice(a,1<v?1-v:void 0)}function iv(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 sv(){return  true}function X6(){return  false}function jo(a){function c(h,v,$,R,F){this._reactName=h,this._targetInst=$,this.type=v,this.nativeEvent=R,this.target=F,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)?sv:X6,this.isPropagationStopped=X6,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=sv);},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=true),this.isPropagationStopped=sv);},persist:function(){},isPersistent:sv}),c}var Ic={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},av=jo(Ic),Tm=p({},Ic,{view:0,detail:0}),zK=jo(Tm),VS,jS,Am,lv=p({},Tm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:WS,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!==Am&&(Am&&a.type==="mousemove"?(VS=a.screenX-Am.screenX,jS=a.screenY-Am.screenY):jS=VS=0,Am=a),VS)},movementY:function(a){return "movementY"in a?a.movementY:jS}}),Q6=jo(lv),FK=p({},lv,{dataTransfer:0}),HK=jo(FK),VK=p({},Tm,{relatedTarget:0}),US=jo(VK),jK=p({},Ic,{animationName:0,elapsedTime:0,pseudoElement:0}),UK=jo(jK),WK=p({},Ic,{clipboardData:function(a){return "clipboardData"in a?a.clipboardData:window.clipboardData}}),GK=jo(WK),qK=p({},Ic,{data:0}),Z6=jo(qK),KK={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},YK={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"},XK={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function QK(a){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(a):(a=XK[a])?!!c[a]:false}function WS(){return QK}var ZK=p({},Tm,{key:function(a){if(a.key){var c=KK[a.key]||a.key;if(c!=="Unidentified")return c}return a.type==="keypress"?(a=iv(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?YK[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:WS,charCode:function(a){return a.type==="keypress"?iv(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?iv(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),JK=jo(ZK),eY=p({},lv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),J6=jo(eY),tY=p({},Tm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:WS}),nY=jo(tY),rY=p({},Ic,{propertyName:0,elapsedTime:0,pseudoElement:0}),oY=jo(rY),iY=p({},lv,{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}),sY=jo(iY),aY=p({},Ic,{newState:0,oldState:0}),lY=jo(aY),cY=[9,13,27,32],GS=va&&"CompositionEvent"in window,Rm=null;va&&"documentMode"in document&&(Rm=document.documentMode);var uY=va&&"TextEvent"in window&&!Rm,eN=va&&(!GS||Rm&&8<Rm&&11>=Rm),tN=" ",nN=false;function rN(a,c){switch(a){case "keyup":return cY.indexOf(c.keyCode)!==-1;case "keydown":return c.keyCode!==229;case "keypress":case "mousedown":case "focusout":return  true;default:return  false}}function oN(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var fd=false;function dY(a,c){switch(a){case "compositionend":return oN(c);case "keypress":return c.which!==32?null:(nN=true,tN);case "textInput":return a=c.data,a===tN&&nN?null:a;default:return null}}function fY(a,c){if(fd)return a==="compositionend"||!GS&&rN(a,c)?(a=Y6(),ov=HS=fl=null,fd=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 eN&&c.locale!=="ko"?null:c.data;default:return null}}var mY={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 iN(a){var c=a&&a.nodeName&&a.nodeName.toLowerCase();return c==="input"?!!mY[a.type]:c==="textarea"}function sN(a,c,h,v){ud?dd?dd.push(v):dd=[v]:ud=v,c=Qv(c,"onChange"),0<c.length&&(h=new av("onChange","change",null,h,v),a.push({event:h,listeners:c}));}var Nm=null,Pm=null;function hY(a){V4(a,0);}function cv(a){var c=Nn(a);if(sd(c))return a}function aN(a,c){if(a==="change")return c}var lN=false;if(va){var qS;if(va){var KS="oninput"in document;if(!KS){var cN=document.createElement("div");cN.setAttribute("oninput","return;"),KS=typeof cN.oninput=="function";}qS=KS;}else qS=false;lN=qS&&(!document.documentMode||9<document.documentMode);}function uN(){Nm&&(Nm.detachEvent("onpropertychange",dN),Pm=Nm=null);}function dN(a){if(a.propertyName==="value"&&cv(Pm)){var c=[];sN(c,Pm,a,BS(a)),K6(hY,c);}}function pY(a,c,h){a==="focusin"?(uN(),Nm=c,Pm=h,Nm.attachEvent("onpropertychange",dN)):a==="focusout"&&uN();}function gY(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return cv(Pm)}function vY(a,c){if(a==="click")return cv(c)}function bY(a,c){if(a==="input"||a==="change")return cv(c)}function yY(a,c){return a===c&&(a!==0||1/a===1/c)||a!==a&&c!==c}var ai=typeof Object.is=="function"?Object.is:yY;function Im(a,c){if(ai(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(!Te.call(c,$)||!ai(a[$],c[$]))return  false}return  true}function fN(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function mN(a,c){var h=fN(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=fN(h);}}function hN(a,c){return a&&c?a===c?true:a&&a.nodeType===3?false:c&&c.nodeType===3?hN(a,c.parentNode):"contains"in a?a.contains(c):a.compareDocumentPosition?!!(a.compareDocumentPosition(c)&16):false:false}function pN(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var c=ad(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=ad(a.document);}return c}function YS(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 SY=va&&"documentMode"in document&&11>=document.documentMode,md=null,XS=null,Om=null,QS=false;function gN(a,c,h){var v=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;QS||md==null||md!==ad(v)||(v=md,"selectionStart"in v&&YS(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}),Om&&Im(Om,v)||(Om=v,v=Qv(XS,"onSelect"),0<v.length&&(c=new av("onSelect","select",null,c,h),a.push({event:c,listeners:v}),c.target=md)));}function Oc(a,c){var h={};return h[a.toLowerCase()]=c.toLowerCase(),h["Webkit"+a]="webkit"+c,h["Moz"+a]="moz"+c,h}var hd={animationend:Oc("Animation","AnimationEnd"),animationiteration:Oc("Animation","AnimationIteration"),animationstart:Oc("Animation","AnimationStart"),transitionrun:Oc("Transition","TransitionRun"),transitionstart:Oc("Transition","TransitionStart"),transitioncancel:Oc("Transition","TransitionCancel"),transitionend:Oc("Transition","TransitionEnd")},ZS={},vN={};va&&(vN=document.createElement("div").style,"AnimationEvent"in window||(delete hd.animationend.animation,delete hd.animationiteration.animation,delete hd.animationstart.animation),"TransitionEvent"in window||delete hd.transitionend.transition);function Dc(a){if(ZS[a])return ZS[a];if(!hd[a])return a;var c=hd[a],h;for(h in c)if(c.hasOwnProperty(h)&&h in vN)return ZS[a]=c[h];return a}var bN=Dc("animationend"),yN=Dc("animationiteration"),SN=Dc("animationstart"),CY=Dc("transitionrun"),xY=Dc("transitionstart"),wY=Dc("transitioncancel"),CN=Dc("transitionend"),xN=new Map,JS="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(" ");JS.push("scrollEnd");function ss(a,c){xN.set(a,c),Gn(c,[a]);}var uv=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=[],pd=0,eC=0;function dv(){for(var a=pd,c=eC=pd=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 F=v.pending;F===null?$.next=$:($.next=F.next,F.next=$),v.pending=$;}R!==0&&wN(h,$,R);}}function fv(a,c,h,v){Ii[pd++]=a,Ii[pd++]=c,Ii[pd++]=h,Ii[pd++]=v,eC|=v,a.lanes|=v,a=a.alternate,a!==null&&(a.lanes|=v);}function tC(a,c,h,v){return fv(a,c,h,v),mv(a)}function _c(a,c){return fv(a,null,null,c),mv(a)}function wN(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 mv(a){if(50<th)throw th=0,ux=null,Error(r(185));for(var c=a.return;c!==null;)a=c,c=a.return;return a.tag===3?a.stateNode:null}var gd={};function EY(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 li(a,c,h,v){return new EY(a,c,h,v)}function nC(a){return a=a.prototype,!(!a||!a.isReactComponent)}function ba(a,c){var h=a.alternate;return h===null?(h=li(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 EN(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 hv(a,c,h,v,$,R){var F=0;if(v=a,typeof a=="function")nC(a)&&(F=1);else if(typeof a=="string")F=RX(a,h,J.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case O:return a=li(31,h,c,$),a.elementType=O,a.lanes=R,a;case S:return Lc(h.children,$,R,c);case x:F=8,$|=24;break;case w:return a=li(12,h,c,$|2),a.elementType=w,a.lanes=R,a;case A:return a=li(13,h,c,$),a.elementType=A,a.lanes=R,a;case I:return a=li(19,h,c,$),a.elementType=I,a.lanes=R,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case M:F=10;break e;case E:F=9;break e;case T:F=11;break e;case N:F=14;break e;case P:F=16,v=null;break e}F=29,h=Error(r(130,a===null?"null":typeof a,"")),v=null;}return c=li(F,h,c,$),c.elementType=a,c.type=v,c.lanes=R,c}function Lc(a,c,h,v){return a=li(7,a,v,c),a.lanes=h,a}function rC(a,c,h){return a=li(6,a,null,c),a.lanes=h,a}function $N(a){var c=li(18,null,null,0);return c.stateNode=a,c}function oC(a,c,h){return c=li(4,a.children!==null?a.children:[],a.key,c),c.lanes=h,c.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},c}var MN=new WeakMap;function Oi(a,c){if(typeof a=="object"&&a!==null){var h=MN.get(a);return h!==void 0?h:(c={value:a,source:c,stack:Ee(c)},MN.set(a,c),c)}return {value:a,source:c,stack:Ee(c)}}var vd=[],bd=0,pv=null,Dm=0,Di=[],_i=0,ml=null,Ls=1,ks="";function ya(a,c){vd[bd++]=Dm,vd[bd++]=pv,pv=a,Dm=c;}function TN(a,c,h){Di[_i++]=Ls,Di[_i++]=ks,Di[_i++]=ml,ml=a;var v=Ls;a=ks;var $=32-lt(v)-1;v&=~(1<<$),h+=1;var R=32-lt(c)+$;if(30<R){var F=$-$%5;R=(v&(1<<F)-1).toString(32),v>>=F,$-=F,Ls=1<<32-lt(c)+$|h<<$|v,ks=R+a;}else Ls=1<<R|h<<$|v,ks=a;}function iC(a){a.return!==null&&(ya(a,1),TN(a,1,0));}function sC(a){for(;a===pv;)pv=vd[--bd],vd[bd]=null,Dm=vd[--bd],vd[bd]=null;for(;a===ml;)ml=Di[--_i],Di[_i]=null,ks=Di[--_i],Di[_i]=null,Ls=Di[--_i],Di[_i]=null;}function AN(a,c){Di[_i++]=Ls,Di[_i++]=ks,Di[_i++]=ml,Ls=c.id,ks=c.overflow,ml=a;}var Jr=null,qn=null,hn=false,hl=null,Li=false,aC=Error(r(519));function pl(a){var c=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _m(Oi(c,a)),aC}function RN(a){var c=a.stateNode,h=a.type,v=a.memoizedProps;switch(c[Rt]=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<rh.length;h++)on(rh[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),tv(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),U6(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||G4(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=ga),c=true):c=false,c||pl(a,true);}function NN(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 yd(a){if(a!==Jr)return  false;if(!hn)return NN(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")||$x(a.type,a.memoizedProps)),h=!h),h&&qn&&pl(a),NN(a),c===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));qn=tI(a);}else if(c===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));qn=tI(a);}else c===27?(c=qn,Rl(a.type)?(a=Nx,Nx=null,qn=a):qn=c):qn=Jr?Bi(a.stateNode.nextSibling):null;return  true}function kc(){qn=Jr=null,hn=false;}function lC(){var a=hl;return a!==null&&(qo===null?qo=a:qo.push.apply(qo,a),hl=null),a}function _m(a){hl===null?hl=[a]:hl.push(a);}var cC=k(null),Bc=null,Sa=null;function gl(a,c,h){Q(cC,c._currentValue),c._currentValue=h;}function Ca(a){a._currentValue=cC.current,V(cC);}function uC(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 dC(a,c,h,v){var $=a.child;for($!==null&&($.return=a);$!==null;){var R=$.dependencies;if(R!==null){var F=$.child;R=R.firstContext;e:for(;R!==null;){var Z=R;R=$;for(var de=0;de<c.length;de++)if(Z.context===c[de]){R.lanes|=h,Z=R.alternate,Z!==null&&(Z.lanes|=h),uC(R.return,h,a),v||(F=null);break e}R=Z.next;}}else if($.tag===18){if(F=$.return,F===null)throw Error(r(341));F.lanes|=h,R=F.alternate,R!==null&&(R.lanes|=h),uC(F,h,a),F=null;}else F=$.child;if(F!==null)F.return=$;else for(F=$;F!==null;){if(F===a){F=null;break}if($=F.sibling,$!==null){$.return=F.return,F=$;break}F=F.return;}$=F;}}function Sd(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 F=$.alternate;if(F===null)throw Error(r(387));if(F=F.memoizedProps,F!==null){var Z=$.type;ai($.pendingProps.value,F.value)||(a!==null?a.push(Z):a=[Z]);}}else if($===re.current){if(F=$.alternate,F===null)throw Error(r(387));F.memoizedState.memoizedState!==$.memoizedState.memoizedState&&(a!==null?a.push(lh):a=[lh]);}$=$.return;}a!==null&&dC(c,a,h,v),c.flags|=262144;}function gv(a){for(a=a.firstContext;a!==null;){if(!ai(a.context._currentValue,a.memoizedValue))return  true;a=a.next;}return  false}function zc(a){Bc=a,Sa=null,a=a.dependencies,a!==null&&(a.firstContext=null);}function eo(a){return PN(Bc,a)}function vv(a,c){return Bc===null&&zc(a),PN(a,c)}function PN(a,c){var h=c._currentValue;if(c={context:c,memoizedValue:h,next:null},Sa===null){if(a===null)throw Error(r(308));Sa=c,a.dependencies={lanes:0,firstContext:c},a.flags|=524288;}else Sa=Sa.next=c;return h}var $Y=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()});};},MY=e.unstable_scheduleCallback,TY=e.unstable_NormalPriority,yr={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fC(){return {controller:new $Y,data:new Map,refCount:0}}function Lm(a){a.refCount--,a.refCount===0&&MY(TY,function(){a.controller.abort();});}var km=null,mC=0,Cd=0,xd=null;function AY(a,c){if(km===null){var h=km=[];mC=0,Cd=gx(),xd={status:"pending",value:void 0,then:function(v){h.push(v);}};}return mC++,c.then(IN,IN),c}function IN(){if(--mC===0&&km!==null){xd!==null&&(xd.status="fulfilled");var a=km;km=null,Cd=0,xd=null;for(var c=0;c<a.length;c++)(0, a[c])();}}function RY(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 ON=L.S;L.S=function(a,c){g4=Ne(),typeof c=="object"&&c!==null&&typeof c.then=="function"&&AY(a,c),ON!==null&&ON(a,c);};var Fc=k(null);function hC(){var a=Fc.current;return a!==null?a:Hn.pooledCache}function bv(a,c){c===null?Q(Fc,Fc.current):Q(Fc,c.pool);}function DN(){var a=hC();return a===null?null:{parent:yr._currentValue,pool:a}}var wd=Error(r(460)),pC=Error(r(474)),yv=Error(r(542)),Sv={then:function(){}};function _N(a){return a=a.status,a==="fulfilled"||a==="rejected"}function LN(a,c,h){switch(h=a[h],h===void 0?a.push(c):h!==c&&(c.then(ga,ga),c=h),c.status){case "fulfilled":return c.value;case "rejected":throw a=c.reason,BN(a),a;default:if(typeof c.status=="string")c.then(ga,ga);else {if(a=Hn,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,BN(a),a}throw Vc=c,wd}}function Hc(a){try{var c=a._init;return c(a._payload)}catch(h){throw h!==null&&typeof h=="object"&&typeof h.then=="function"?(Vc=h,wd):h}}var Vc=null;function kN(){if(Vc===null)throw Error(r(459));var a=Vc;return Vc=null,a}function BN(a){if(a===wd||a===yv)throw Error(r(483))}var Ed=null,Bm=0;function Cv(a){var c=Bm;return Bm+=1,Ed===null&&(Ed=[]),LN(Ed,a,c)}function zm(a,c){c=c.props.ref,a.ref=c!==void 0?c:null;}function xv(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 zN(a){function c(ve,me){if(a){var xe=ve.deletions;xe===null?(ve.deletions=[me],ve.flags|=16):xe.push(me);}}function h(ve,me){if(!a)return null;for(;me!==null;)c(ve,me),me=me.sibling;return null}function v(ve){for(var me=new Map;ve!==null;)ve.key!==null?me.set(ve.key,ve):me.set(ve.index,ve),ve=ve.sibling;return me}function $(ve,me){return ve=ba(ve,me),ve.index=0,ve.sibling=null,ve}function R(ve,me,xe){return ve.index=xe,a?(xe=ve.alternate,xe!==null?(xe=xe.index,xe<me?(ve.flags|=67108866,me):xe):(ve.flags|=67108866,me)):(ve.flags|=1048576,me)}function F(ve){return a&&ve.alternate===null&&(ve.flags|=67108866),ve}function Z(ve,me,xe,ze){return me===null||me.tag!==6?(me=rC(xe,ve.mode,ze),me.return=ve,me):(me=$(me,xe),me.return=ve,me)}function de(ve,me,xe,ze){var $t=xe.type;return $t===S?Le(ve,me,xe.props.children,ze,xe.key):me!==null&&(me.elementType===$t||typeof $t=="object"&&$t!==null&&$t.$$typeof===P&&Hc($t)===me.type)?(me=$(me,xe.props),zm(me,xe),me.return=ve,me):(me=hv(xe.type,xe.key,xe.props,null,ve.mode,ze),zm(me,xe),me.return=ve,me)}function we(ve,me,xe,ze){return me===null||me.tag!==4||me.stateNode.containerInfo!==xe.containerInfo||me.stateNode.implementation!==xe.implementation?(me=oC(xe,ve.mode,ze),me.return=ve,me):(me=$(me,xe.children||[]),me.return=ve,me)}function Le(ve,me,xe,ze,$t){return me===null||me.tag!==7?(me=Lc(xe,ve.mode,ze,$t),me.return=ve,me):(me=$(me,xe),me.return=ve,me)}function Ve(ve,me,xe){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return me=rC(""+me,ve.mode,xe),me.return=ve,me;if(typeof me=="object"&&me!==null){switch(me.$$typeof){case b:return xe=hv(me.type,me.key,me.props,null,ve.mode,xe),zm(xe,me),xe.return=ve,xe;case y:return me=oC(me,ve.mode,xe),me.return=ve,me;case P:return me=Hc(me),Ve(ve,me,xe)}if(z(me)||H(me))return me=Lc(me,ve.mode,xe,null),me.return=ve,me;if(typeof me.then=="function")return Ve(ve,Cv(me),xe);if(me.$$typeof===M)return Ve(ve,vv(ve,me),xe);xv(ve,me);}return null}function Ae(ve,me,xe,ze){var $t=me!==null?me.key:null;if(typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint")return $t!==null?null:Z(ve,me,""+xe,ze);if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case b:return xe.key===$t?de(ve,me,xe,ze):null;case y:return xe.key===$t?we(ve,me,xe,ze):null;case P:return xe=Hc(xe),Ae(ve,me,xe,ze)}if(z(xe)||H(xe))return $t!==null?null:Le(ve,me,xe,ze,null);if(typeof xe.then=="function")return Ae(ve,me,Cv(xe),ze);if(xe.$$typeof===M)return Ae(ve,me,vv(ve,xe),ze);xv(ve,xe);}return null}function Pe(ve,me,xe,ze,$t){if(typeof ze=="string"&&ze!==""||typeof ze=="number"||typeof ze=="bigint")return ve=ve.get(xe)||null,Z(me,ve,""+ze,$t);if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case b:return ve=ve.get(ze.key===null?xe:ze.key)||null,de(me,ve,ze,$t);case y:return ve=ve.get(ze.key===null?xe:ze.key)||null,we(me,ve,ze,$t);case P:return ze=Hc(ze),Pe(ve,me,xe,ze,$t)}if(z(ze)||H(ze))return ve=ve.get(xe)||null,Le(me,ve,ze,$t,null);if(typeof ze.then=="function")return Pe(ve,me,xe,Cv(ze),$t);if(ze.$$typeof===M)return Pe(ve,me,xe,vv(me,ze),$t);xv(me,ze);}return null}function vt(ve,me,xe,ze){for(var $t=null,vn=null,St=me,Yt=me=0,ln=null;St!==null&&Yt<xe.length;Yt++){St.index>Yt?(ln=St,St=null):ln=St.sibling;var bn=Ae(ve,St,xe[Yt],ze);if(bn===null){St===null&&(St=ln);break}a&&St&&bn.alternate===null&&c(ve,St),me=R(bn,me,Yt),vn===null?$t=bn:vn.sibling=bn,vn=bn,St=ln;}if(Yt===xe.length)return h(ve,St),hn&&ya(ve,Yt),$t;if(St===null){for(;Yt<xe.length;Yt++)St=Ve(ve,xe[Yt],ze),St!==null&&(me=R(St,me,Yt),vn===null?$t=St:vn.sibling=St,vn=St);return hn&&ya(ve,Yt),$t}for(St=v(St);Yt<xe.length;Yt++)ln=Pe(St,ve,Yt,xe[Yt],ze),ln!==null&&(a&&ln.alternate!==null&&St.delete(ln.key===null?Yt:ln.key),me=R(ln,me,Yt),vn===null?$t=ln:vn.sibling=ln,vn=ln);return a&&St.forEach(function(Dl){return c(ve,Dl)}),hn&&ya(ve,Yt),$t}function Pt(ve,me,xe,ze){if(xe==null)throw Error(r(151));for(var $t=null,vn=null,St=me,Yt=me=0,ln=null,bn=xe.next();St!==null&&!bn.done;Yt++,bn=xe.next()){St.index>Yt?(ln=St,St=null):ln=St.sibling;var Dl=Ae(ve,St,bn.value,ze);if(Dl===null){St===null&&(St=ln);break}a&&St&&Dl.alternate===null&&c(ve,St),me=R(Dl,me,Yt),vn===null?$t=Dl:vn.sibling=Dl,vn=Dl,St=ln;}if(bn.done)return h(ve,St),hn&&ya(ve,Yt),$t;if(St===null){for(;!bn.done;Yt++,bn=xe.next())bn=Ve(ve,bn.value,ze),bn!==null&&(me=R(bn,me,Yt),vn===null?$t=bn:vn.sibling=bn,vn=bn);return hn&&ya(ve,Yt),$t}for(St=v(St);!bn.done;Yt++,bn=xe.next())bn=Pe(St,ve,Yt,bn.value,ze),bn!==null&&(a&&bn.alternate!==null&&St.delete(bn.key===null?Yt:bn.key),me=R(bn,me,Yt),vn===null?$t=bn:vn.sibling=bn,vn=bn);return a&&St.forEach(function(FX){return c(ve,FX)}),hn&&ya(ve,Yt),$t}function kn(ve,me,xe,ze){if(typeof xe=="object"&&xe!==null&&xe.type===S&&xe.key===null&&(xe=xe.props.children),typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case b:e:{for(var $t=xe.key;me!==null;){if(me.key===$t){if($t=xe.type,$t===S){if(me.tag===7){h(ve,me.sibling),ze=$(me,xe.props.children),ze.return=ve,ve=ze;break e}}else if(me.elementType===$t||typeof $t=="object"&&$t!==null&&$t.$$typeof===P&&Hc($t)===me.type){h(ve,me.sibling),ze=$(me,xe.props),zm(ze,xe),ze.return=ve,ve=ze;break e}h(ve,me);break}else c(ve,me);me=me.sibling;}xe.type===S?(ze=Lc(xe.props.children,ve.mode,ze,xe.key),ze.return=ve,ve=ze):(ze=hv(xe.type,xe.key,xe.props,null,ve.mode,ze),zm(ze,xe),ze.return=ve,ve=ze);}return F(ve);case y:e:{for($t=xe.key;me!==null;){if(me.key===$t)if(me.tag===4&&me.stateNode.containerInfo===xe.containerInfo&&me.stateNode.implementation===xe.implementation){h(ve,me.sibling),ze=$(me,xe.children||[]),ze.return=ve,ve=ze;break e}else {h(ve,me);break}else c(ve,me);me=me.sibling;}ze=oC(xe,ve.mode,ze),ze.return=ve,ve=ze;}return F(ve);case P:return xe=Hc(xe),kn(ve,me,xe,ze)}if(z(xe))return vt(ve,me,xe,ze);if(H(xe)){if($t=H(xe),typeof $t!="function")throw Error(r(150));return xe=$t.call(xe),Pt(ve,me,xe,ze)}if(typeof xe.then=="function")return kn(ve,me,Cv(xe),ze);if(xe.$$typeof===M)return kn(ve,me,vv(ve,xe),ze);xv(ve,xe);}return typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint"?(xe=""+xe,me!==null&&me.tag===6?(h(ve,me.sibling),ze=$(me,xe),ze.return=ve,ve=ze):(h(ve,me),ze=rC(xe,ve.mode,ze),ze.return=ve,ve=ze),F(ve)):h(ve,me)}return function(ve,me,xe,ze){try{Bm=0;var $t=kn(ve,me,xe,ze);return Ed=null,$t}catch(St){if(St===wd||St===yv)throw St;var vn=li(29,St,null,ve.mode);return vn.lanes=ze,vn.return=ve,vn}}}var jc=zN(true),FN=zN(false),vl=false;function gC(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null};}function vC(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 bl(a){return {lane:a,tag:0,payload:null,callback:null,next:null}}function yl(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=mv(a),wN(a,null,h),c}return fv(a,v,c,h),mv(a)}function Fm(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,Ce(a,h);}}function bC(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 F={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};R===null?$=R=F:R=R.next=F,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 yC=false;function Hm(){if(yC){var a=xd;if(a!==null)throw a}}function Vm(a,c,h,v){yC=false;var $=a.updateQueue;vl=false;var R=$.firstBaseUpdate,F=$.lastBaseUpdate,Z=$.shared.pending;if(Z!==null){$.shared.pending=null;var de=Z,we=de.next;de.next=null,F===null?R=we:F.next=we,F=de;var Le=a.alternate;Le!==null&&(Le=Le.updateQueue,Z=Le.lastBaseUpdate,Z!==F&&(Z===null?Le.firstBaseUpdate=we:Z.next=we,Le.lastBaseUpdate=de));}if(R!==null){var Ve=$.baseState;F=0,Le=we=de=null,Z=R;do{var Ae=Z.lane&-536870913,Pe=Ae!==Z.lane;if(Pe?(an&Ae)===Ae:(v&Ae)===Ae){Ae!==0&&Ae===Cd&&(yC=true),Le!==null&&(Le=Le.next={lane:0,tag:Z.tag,payload:Z.payload,callback:null,next:null});e:{var vt=a,Pt=Z;Ae=c;var kn=h;switch(Pt.tag){case 1:if(vt=Pt.payload,typeof vt=="function"){Ve=vt.call(kn,Ve,Ae);break e}Ve=vt;break e;case 3:vt.flags=vt.flags&-65537|128;case 0:if(vt=Pt.payload,Ae=typeof vt=="function"?vt.call(kn,Ve,Ae):vt,Ae==null)break e;Ve=p({},Ve,Ae);break e;case 2:vl=true;}}Ae=Z.callback,Ae!==null&&(a.flags|=64,Pe&&(a.flags|=8192),Pe=$.callbacks,Pe===null?$.callbacks=[Ae]:Pe.push(Ae));}else Pe={lane:Ae,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},Le===null?(we=Le=Pe,de=Ve):Le=Le.next=Pe,F|=Ae;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&&(de=Ve),$.baseState=de,$.firstBaseUpdate=we,$.lastBaseUpdate=Le,R===null&&($.shared.lanes=0),El|=F,a.lanes=F,a.memoizedState=Ve;}}function HN(a,c){if(typeof a!="function")throw Error(r(191,a));a.call(c);}function VN(a,c){var h=a.callbacks;if(h!==null)for(a.callbacks=null,a=0;a<h.length;a++)HN(h[a],c);}var $d=k(null),wv=k(0);function jN(a,c){a=Na,Q(wv,a),Q($d,c),Na=a|c.baseLanes;}function SC(){Q(wv,Na),Q($d,$d.current);}function CC(){Na=wv.current,V($d),V(wv);}var ci=k(null),ki=null;function Sl(a){var c=a.alternate;Q(fr,fr.current&1),Q(ci,a),ki===null&&(c===null||$d.current!==null||c.memoizedState!==null)&&(ki=a);}function xC(a){Q(fr,fr.current),Q(ci,a),ki===null&&(ki=a);}function UN(a){a.tag===22?(Q(fr,fr.current),Q(ci,a),ki===null&&(ki=a)):Cl();}function Cl(){Q(fr,fr.current),Q(ci,ci.current);}function ui(a){V(ci),ki===a&&(ki=null),V(fr);}var fr=k(0);function Ev(a){for(var c=a;c!==null;){if(c.tag===13){var h=c.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||Ax(h)||Rx(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 xa=0,qt=null,_n=null,Sr=null,$v=false,Md=false,Uc=false,Mv=0,jm=0,Td=null,NY=0;function sr(){throw Error(r(321))}function wC(a,c){if(c===null)return  false;for(var h=0;h<c.length&&h<a.length;h++)if(!ai(a[h],c[h]))return  false;return  true}function EC(a,c,h,v,$,R){return xa=R,qt=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,L.H=a===null||a.memoizedState===null?TP:zC,Uc=false,R=h(v,$),Uc=false,Md&&(R=GN(c,h,v,$)),WN(a),R}function WN(a){L.H=Gm;var c=_n!==null&&_n.next!==null;if(xa=0,Sr=_n=qt=null,$v=false,jm=0,Td=null,c)throw Error(r(300));a===null||Cr||(a=a.dependencies,a!==null&&gv(a)&&(Cr=true));}function GN(a,c,h,v){qt=a;var $=0;do{if(Md&&(Td=null),jm=0,Md=false,25<=$)throw Error(r(301));if($+=1,Sr=_n=null,a.updateQueue!=null){var R=a.updateQueue;R.lastEffect=null,R.events=null,R.stores=null,R.memoCache!=null&&(R.memoCache.index=0);}L.H=AP,R=c(h,v);}while(Md);return R}function PY(){var a=L.H,c=a.useState()[0];return c=typeof c.then=="function"?Um(c):c,a=a.useState()[0],(_n!==null?_n.memoizedState:null)!==a&&(qt.flags|=1024),c}function $C(){var a=Mv!==0;return Mv=0,a}function MC(a,c,h){c.updateQueue=a.updateQueue,c.flags&=-2053,a.lanes&=~h;}function TC(a){if($v){for(a=a.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next;}$v=false;}xa=0,Sr=_n=qt=null,Md=false,jm=Mv=0,Td=null;}function Po(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sr===null?qt.memoizedState=Sr=a:Sr=Sr.next=a,Sr}function mr(){if(_n===null){var a=qt.alternate;a=a!==null?a.memoizedState:null;}else a=_n.next;var c=Sr===null?qt.memoizedState:Sr.next;if(c!==null)Sr=c,_n=a;else {if(a===null)throw qt.alternate===null?Error(r(467)):Error(r(310));_n=a,a={memoizedState:_n.memoizedState,baseState:_n.baseState,baseQueue:_n.baseQueue,queue:_n.queue,next:null},Sr===null?qt.memoizedState=Sr=a:Sr=Sr.next=a;}return Sr}function Tv(){return {lastEffect:null,events:null,stores:null,memoCache:null}}function Um(a){var c=jm;return jm+=1,Td===null&&(Td=[]),a=LN(Td,a,c),c=qt,(Sr===null?c.memoizedState:Sr.next)===null&&(c=c.alternate,L.H=c===null||c.memoizedState===null?TP:zC),a}function Av(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Um(a);if(a.$$typeof===M)return eo(a)}throw Error(r(438,String(a)))}function AC(a){var c=null,h=qt.updateQueue;if(h!==null&&(c=h.memoCache),c==null){var v=qt.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=Tv(),qt.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 wa(a,c){return typeof c=="function"?c(a):c}function Rv(a){var c=mr();return RC(c,_n,a)}function RC(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 F=$.next;$.next=R.next,R.next=F;}c.baseQueue=$=R,v.pending=null;}if(R=a.baseState,$===null)a.memoizedState=R;else {c=$.next;var Z=F=null,de=null,we=c,Le=false;do{var Ve=we.lane&-536870913;if(Ve!==we.lane?(an&Ve)===Ve:(xa&Ve)===Ve){var Ae=we.revertLane;if(Ae===0)de!==null&&(de=de.next={lane:0,revertLane:0,gesture:null,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null}),Ve===Cd&&(Le=true);else if((xa&Ae)===Ae){we=we.next,Ae===Cd&&(Le=true);continue}else Ve={lane:0,revertLane:we.revertLane,gesture:null,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null},de===null?(Z=de=Ve,F=R):de=de.next=Ve,qt.lanes|=Ae,El|=Ae;Ve=we.action,Uc&&h(R,Ve),R=we.hasEagerState?we.eagerState:h(R,Ve);}else Ae={lane:Ve,revertLane:we.revertLane,gesture:we.gesture,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null},de===null?(Z=de=Ae,F=R):de=de.next=Ae,qt.lanes|=Ve,El|=Ve;we=we.next;}while(we!==null&&we!==c);if(de===null?F=R:de.next=Z,!ai(R,a.memoizedState)&&(Cr=true,Le&&(h=xd,h!==null)))throw h;a.memoizedState=R,a.baseState=F,a.baseQueue=de,v.lastRenderedState=R;}return $===null&&(v.lanes=0),[a.memoizedState,v.dispatch]}function NC(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 F=$=$.next;do R=a(R,F.action),F=F.next;while(F!==$);ai(R,c.memoizedState)||(Cr=true),c.memoizedState=R,c.baseQueue===null&&(c.baseState=R),h.lastRenderedState=R;}return [R,v]}function qN(a,c,h){var v=qt,$=mr(),R=hn;if(R){if(h===void 0)throw Error(r(407));h=h();}else h=c();var F=!ai((_n||$).memoizedState,h);if(F&&($.memoizedState=h,Cr=true),$=$.queue,OC(XN.bind(null,v,$,a),[a]),$.getSnapshot!==c||F||Sr!==null&&Sr.memoizedState.tag&1){if(v.flags|=2048,Ad(9,{destroy:void 0},YN.bind(null,v,$,h,c),null),Hn===null)throw Error(r(349));R||(xa&127)!==0||KN(v,c,h);}return h}function KN(a,c,h){a.flags|=16384,a={getSnapshot:c,value:h},c=qt.updateQueue,c===null?(c=Tv(),qt.updateQueue=c,c.stores=[a]):(h=c.stores,h===null?c.stores=[a]:h.push(a));}function YN(a,c,h,v){c.value=h,c.getSnapshot=v,QN(c)&&ZN(a);}function XN(a,c,h){return h(function(){QN(c)&&ZN(a);})}function QN(a){var c=a.getSnapshot;a=a.value;try{var h=c();return !ai(a,h)}catch{return  true}}function ZN(a){var c=_c(a,2);c!==null&&Ko(c,a,2);}function PC(a){var c=Po();if(typeof a=="function"){var h=a;if(a=h(),Uc){Ie(true);try{h();}finally{Ie(false);}}}return c.memoizedState=c.baseState=a,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:a},c}function JN(a,c,h,v){return a.baseState=h,RC(a,_n,typeof v=="function"?v:wa)}function IY(a,c,h,v,$){if(Iv(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(F){R.listeners.push(F);}};L.T!==null?h(true):R.isTransition=false,v(R),h=c.pending,h===null?(R.next=c.pending=R,eP(c,R)):(R.next=h.next,c.pending=h.next=R);}}function eP(a,c){var h=c.action,v=c.payload,$=a.state;if(c.isTransition){var R=L.T,F={};L.T=F;try{var Z=h($,v),de=L.S;de!==null&&de(F,Z),tP(a,c,Z);}catch(we){IC(a,c,we);}finally{R!==null&&F.types!==null&&(R.types=F.types),L.T=R;}}else try{R=h($,v),tP(a,c,R);}catch(we){IC(a,c,we);}}function tP(a,c,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(v){nP(a,c,v);},function(v){return IC(a,c,v)}):nP(a,c,h);}function nP(a,c,h){c.status="fulfilled",c.value=h,rP(c),a.state=h,c=a.pending,c!==null&&(h=c.next,h===c?a.pending=null:(h=h.next,c.next=h,eP(a,h)));}function IC(a,c,h){var v=a.pending;if(a.pending=null,v!==null){v=v.next;do c.status="rejected",c.reason=h,rP(c),c=c.next;while(c!==v)}a.action=null;}function rP(a){a=a.listeners;for(var c=0;c<a.length;c++)(0, a[c])();}function oP(a,c){return c}function iP(a,c){if(hn){var h=Hn.formState;if(h!==null){e:{var v=qt;if(hn){if(qn){t:{for(var $=qn,R=Li;$.nodeType!==8;){if(!R){$=null;break t}if($=Bi($.nextSibling),$===null){$=null;break t}}R=$.data,$=R==="F!"||R==="F"?$:null;}if($){qn=Bi($.nextSibling),v=$.data==="F!";break e}}pl(v);}v=false;}v&&(c=h[0]);}}return h=Po(),h.memoizedState=h.baseState=c,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oP,lastRenderedState:c},h.queue=v,h=EP.bind(null,qt,v),v.dispatch=h,v=PC(false),R=BC.bind(null,qt,false,v.queue),v=Po(),$={state:c,dispatch:null,action:a,pending:null},v.queue=$,h=IY.bind(null,qt,$,R,h),$.dispatch=h,v.memoizedState=a,[c,h,false]}function sP(a){var c=mr();return aP(c,_n,a)}function aP(a,c,h){if(c=RC(a,c,oP)[0],a=Rv(wa)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var v=Um(c);}catch(F){throw F===wd?yv:F}else v=c;c=mr();var $=c.queue,R=$.dispatch;return h!==c.memoizedState&&(qt.flags|=2048,Ad(9,{destroy:void 0},OY.bind(null,$,h),null)),[v,R,a]}function OY(a,c){a.action=c;}function lP(a){var c=mr(),h=_n;if(h!==null)return aP(c,h,a);mr(),c=c.memoizedState,h=mr();var v=h.queue.dispatch;return h.memoizedState=a,[c,v,false]}function Ad(a,c,h,v){return a={tag:a,create:h,deps:v,inst:c,next:null},c=qt.updateQueue,c===null&&(c=Tv(),qt.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 cP(){return mr().memoizedState}function Nv(a,c,h,v){var $=Po();qt.flags|=a,$.memoizedState=Ad(1|c,{destroy:void 0},h,v===void 0?null:v);}function Pv(a,c,h,v){var $=mr();v=v===void 0?null:v;var R=$.memoizedState.inst;_n!==null&&v!==null&&wC(v,_n.memoizedState.deps)?$.memoizedState=Ad(c,R,h,v):(qt.flags|=a,$.memoizedState=Ad(1|c,R,h,v));}function uP(a,c){Nv(8390656,8,a,c);}function OC(a,c){Pv(2048,8,a,c);}function DY(a){qt.flags|=4;var c=qt.updateQueue;if(c===null)c=Tv(),qt.updateQueue=c,c.events=[a];else {var h=c.events;h===null?c.events=[a]:h.push(a);}}function dP(a){var c=mr().memoizedState;return DY({ref:c,nextImpl:a}),function(){if((Cn&2)!==0)throw Error(r(440));return c.impl.apply(void 0,arguments)}}function fP(a,c){return Pv(4,2,a,c)}function mP(a,c){return Pv(4,4,a,c)}function hP(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 pP(a,c,h){h=h!=null?h.concat([a]):null,Pv(4,4,hP.bind(null,c,a),h);}function DC(){}function gP(a,c){var h=mr();c=c===void 0?null:c;var v=h.memoizedState;return c!==null&&wC(c,v[1])?v[0]:(h.memoizedState=[a,c],a)}function vP(a,c){var h=mr();c=c===void 0?null:c;var v=h.memoizedState;if(c!==null&&wC(c,v[1]))return v[0];if(v=a(),Uc){Ie(true);try{a();}finally{Ie(false);}}return h.memoizedState=[v,c],v}function _C(a,c,h){return h===void 0||(xa&1073741824)!==0&&(an&261930)===0?a.memoizedState=c:(a.memoizedState=h,a=b4(),qt.lanes|=a,El|=a,h)}function bP(a,c,h,v){return ai(h,c)?h:$d.current!==null?(a=_C(a,h,v),ai(a,c)||(Cr=true),a):(xa&42)===0||(xa&1073741824)!==0&&(an&261930)===0?(Cr=true,a.memoizedState=h):(a=b4(),qt.lanes|=a,El|=a,c)}function yP(a,c,h,v,$){var R=G.p;G.p=R!==0&&8>R?R:8;var F=L.T,Z={};L.T=Z,BC(a,false,c,h);try{var de=$(),we=L.S;if(we!==null&&we(Z,de),de!==null&&typeof de=="object"&&typeof de.then=="function"){var Le=RY(de,v);Wm(a,c,Le,mi(a));}else Wm(a,c,v,mi(a));}catch(Ve){Wm(a,c,{then:function(){},status:"rejected",reason:Ve},mi());}finally{G.p=R,F!==null&&Z.types!==null&&(F.types=Z.types),L.T=F;}}function _Y(){}function LC(a,c,h,v){if(a.tag!==5)throw Error(r(476));var $=SP(a).queue;yP(a,$,c,j,h===null?_Y:function(){return CP(a),h(v)});}function SP(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:wa,lastRenderedState:j},next:null};var h={};return c.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:h},next:null},a.memoizedState=c,a=a.alternate,a!==null&&(a.memoizedState=c),c}function CP(a){var c=SP(a);c.next===null&&(c=a.alternate.memoizedState),Wm(a,c.next.queue,{},mi());}function kC(){return eo(lh)}function xP(){return mr().memoizedState}function wP(){return mr().memoizedState}function LY(a){for(var c=a.return;c!==null;){switch(c.tag){case 24:case 3:var h=mi();a=bl(h);var v=yl(c,a,h);v!==null&&(Ko(v,c,h),Fm(v,c,h)),c={cache:fC()},a.payload=c;return}c=c.return;}}function kY(a,c,h){var v=mi();h={lane:v,revertLane:0,gesture:null,action:h,hasEagerState:false,eagerState:null,next:null},Iv(a)?$P(c,h):(h=tC(a,c,h,v),h!==null&&(Ko(h,a,v),MP(h,c,v)));}function EP(a,c,h){var v=mi();Wm(a,c,h,v);}function Wm(a,c,h,v){var $={lane:v,revertLane:0,gesture:null,action:h,hasEagerState:false,eagerState:null,next:null};if(Iv(a))$P(c,$);else {var R=a.alternate;if(a.lanes===0&&(R===null||R.lanes===0)&&(R=c.lastRenderedReducer,R!==null))try{var F=c.lastRenderedState,Z=R(F,h);if($.hasEagerState=!0,$.eagerState=Z,ai(Z,F))return fv(a,c,$,0),Hn===null&&dv(),!1}catch{}if(h=tC(a,c,$,v),h!==null)return Ko(h,a,v),MP(h,c,v),true}return  false}function BC(a,c,h,v){if(v={lane:2,revertLane:gx(),gesture:null,action:v,hasEagerState:false,eagerState:null,next:null},Iv(a)){if(c)throw Error(r(479))}else c=tC(a,h,v,2),c!==null&&Ko(c,a,2);}function Iv(a){var c=a.alternate;return a===qt||c!==null&&c===qt}function $P(a,c){Md=$v=true;var h=a.pending;h===null?c.next=c:(c.next=h.next,h.next=c),a.pending=c;}function MP(a,c,h){if((h&4194048)!==0){var v=c.lanes;v&=a.pendingLanes,h|=v,c.lanes=h,Ce(a,h);}}var Gm={readContext:eo,use:Av,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};Gm.useEffectEvent=sr;var TP={readContext:eo,use:Av,useCallback:function(a,c){return Po().memoizedState=[a,c===void 0?null:c],a},useContext:eo,useEffect:uP,useImperativeHandle:function(a,c,h){h=h!=null?h.concat([a]):null,Nv(4194308,4,hP.bind(null,c,a),h);},useLayoutEffect:function(a,c){return Nv(4194308,4,a,c)},useInsertionEffect:function(a,c){Nv(4,2,a,c);},useMemo:function(a,c){var h=Po();c=c===void 0?null:c;var v=a();if(Uc){Ie(true);try{a();}finally{Ie(false);}}return h.memoizedState=[v,c],v},useReducer:function(a,c,h){var v=Po();if(h!==void 0){var $=h(c);if(Uc){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=kY.bind(null,qt,a),[v.memoizedState,a]},useRef:function(a){var c=Po();return a={current:a},c.memoizedState=a},useState:function(a){a=PC(a);var c=a.queue,h=EP.bind(null,qt,c);return c.dispatch=h,[a.memoizedState,h]},useDebugValue:DC,useDeferredValue:function(a,c){var h=Po();return _C(h,a,c)},useTransition:function(){var a=PC(false);return a=yP.bind(null,qt,a.queue,true,false),Po().memoizedState=a,[false,a]},useSyncExternalStore:function(a,c,h){var v=qt,$=Po();if(hn){if(h===void 0)throw Error(r(407));h=h();}else {if(h=c(),Hn===null)throw Error(r(349));(an&127)!==0||KN(v,c,h);}$.memoizedState=h;var R={value:h,getSnapshot:c};return $.queue=R,uP(XN.bind(null,v,R,a),[a]),v.flags|=2048,Ad(9,{destroy:void 0},YN.bind(null,v,R,h,c),null),h},useId:function(){var a=Po(),c=Hn.identifierPrefix;if(hn){var h=ks,v=Ls;h=(v&~(1<<32-lt(v)-1)).toString(32)+h,c="_"+c+"R_"+h,h=Mv++,0<h&&(c+="H"+h.toString(32)),c+="_";}else h=NY++,c="_"+c+"r_"+h.toString(32)+"_";return a.memoizedState=c},useHostTransitionStatus:kC,useFormState:iP,useActionState:iP,useOptimistic:function(a){var c=Po();c.memoizedState=c.baseState=a;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=h,c=BC.bind(null,qt,true,h),h.dispatch=c,[a,c]},useMemoCache:AC,useCacheRefresh:function(){return Po().memoizedState=LY.bind(null,qt)},useEffectEvent:function(a){var c=Po(),h={impl:a};return c.memoizedState=h,function(){if((Cn&2)!==0)throw Error(r(440));return h.impl.apply(void 0,arguments)}}},zC={readContext:eo,use:Av,useCallback:gP,useContext:eo,useEffect:OC,useImperativeHandle:pP,useInsertionEffect:fP,useLayoutEffect:mP,useMemo:vP,useReducer:Rv,useRef:cP,useState:function(){return Rv(wa)},useDebugValue:DC,useDeferredValue:function(a,c){var h=mr();return bP(h,_n.memoizedState,a,c)},useTransition:function(){var a=Rv(wa)[0],c=mr().memoizedState;return [typeof a=="boolean"?a:Um(a),c]},useSyncExternalStore:qN,useId:xP,useHostTransitionStatus:kC,useFormState:sP,useActionState:sP,useOptimistic:function(a,c){var h=mr();return JN(h,_n,a,c)},useMemoCache:AC,useCacheRefresh:wP};zC.useEffectEvent=dP;var AP={readContext:eo,use:Av,useCallback:gP,useContext:eo,useEffect:OC,useImperativeHandle:pP,useInsertionEffect:fP,useLayoutEffect:mP,useMemo:vP,useReducer:NC,useRef:cP,useState:function(){return NC(wa)},useDebugValue:DC,useDeferredValue:function(a,c){var h=mr();return _n===null?_C(h,a,c):bP(h,_n.memoizedState,a,c)},useTransition:function(){var a=NC(wa)[0],c=mr().memoizedState;return [typeof a=="boolean"?a:Um(a),c]},useSyncExternalStore:qN,useId:xP,useHostTransitionStatus:kC,useFormState:lP,useActionState:lP,useOptimistic:function(a,c){var h=mr();return _n!==null?JN(h,_n,a,c):(h.baseState=a,[a,h.queue.dispatch])},useMemoCache:AC,useCacheRefresh:wP};AP.useEffectEvent=dP;function FC(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 HC={enqueueSetState:function(a,c,h){a=a._reactInternals;var v=mi(),$=bl(v);$.payload=c,h!=null&&($.callback=h),c=yl(a,$,v),c!==null&&(Ko(c,a,v),Fm(c,a,v));},enqueueReplaceState:function(a,c,h){a=a._reactInternals;var v=mi(),$=bl(v);$.tag=1,$.payload=c,h!=null&&($.callback=h),c=yl(a,$,v),c!==null&&(Ko(c,a,v),Fm(c,a,v));},enqueueForceUpdate:function(a,c){a=a._reactInternals;var h=mi(),v=bl(h);v.tag=2,c!=null&&(v.callback=c),c=yl(a,v,h),c!==null&&(Ko(c,a,h),Fm(c,a,h));}};function RP(a,c,h,v,$,R,F){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(v,R,F):c.prototype&&c.prototype.isPureReactComponent?!Im(h,v)||!Im($,R):true}function NP(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&&HC.enqueueReplaceState(c,c.state,null);}function Wc(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 PP(a){uv(a);}function IP(a){console.error(a);}function OP(a){uv(a);}function Ov(a,c){try{var h=a.onUncaughtError;h(c.value,{componentStack:c.stack});}catch(v){setTimeout(function(){throw v});}}function DP(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 VC(a,c,h){return h=bl(h),h.tag=3,h.payload={element:null},h.callback=function(){Ov(a,c);},h}function _P(a){return a=bl(a),a.tag=3,a}function LP(a,c,h,v){var $=h.type.getDerivedStateFromError;if(typeof $=="function"){var R=v.value;a.payload=function(){return $(R)},a.callback=function(){DP(c,h,v);};}var F=h.stateNode;F!==null&&typeof F.componentDidCatch=="function"&&(a.callback=function(){DP(c,h,v),typeof $!="function"&&($l===null?$l=new Set([this]):$l.add(this));var Z=v.stack;this.componentDidCatch(v.value,{componentStack:Z!==null?Z:""});});}function BY(a,c,h,v,$){if(h.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(c=h.alternate,c!==null&&Sd(c,h,$,true),h=ci.current,h!==null){switch(h.tag){case 31:case 13:return ki===null?Wv():h.alternate===null&&ar===0&&(ar=3),h.flags&=-257,h.flags|=65536,h.lanes=$,v===Sv?h.flags|=16384:(c=h.updateQueue,c===null?h.updateQueue=new Set([v]):c.add(v),mx(a,v,$)),false;case 22:return h.flags|=65536,v===Sv?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)),mx(a,v,$)),false}throw Error(r(435,h.tag))}return mx(a,v,$),Wv(),false}if(hn)return c=ci.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=$,v!==aC&&(a=Error(r(422),{cause:v}),_m(Oi(a,h)))):(v!==aC&&(c=Error(r(423),{cause:v}),_m(Oi(c,h))),a=a.current.alternate,a.flags|=65536,$&=-$,a.lanes|=$,v=Oi(v,h),$=VC(a.stateNode,v,$),bC(a,$),ar!==4&&(ar=2)),false;var R=Error(r(520),{cause:v});if(R=Oi(R,h),eh===null?eh=[R]:eh.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=VC(h.stateNode,v,a),bC(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"&&($l===null||!$l.has(R))))return h.flags|=65536,$&=-$,h.lanes|=$,$=_P($),LP($,a,h,v),bC(h,$),false}h=h.return;}while(h!==null);return  false}var jC=Error(r(461)),Cr=false;function to(a,c,h,v){c.child=a===null?FN(c,null,h,v):jc(c,a.child,h,v);}function kP(a,c,h,v,$){h=h.render;var R=c.ref;if("ref"in v){var F={};for(var Z in v)Z!=="ref"&&(F[Z]=v[Z]);}else F=v;return zc(c),v=EC(a,c,h,F,R,$),Z=$C(),a!==null&&!Cr?(MC(a,c,$),Ea(a,c,$)):(hn&&Z&&iC(c),c.flags|=1,to(a,c,v,$),c.child)}function BP(a,c,h,v,$){if(a===null){var R=h.type;return typeof R=="function"&&!nC(R)&&R.defaultProps===void 0&&h.compare===null?(c.tag=15,c.type=R,zP(a,c,R,v,$)):(a=hv(h.type,null,v,c,c.mode,$),a.ref=c.ref,a.return=c,c.child=a)}if(R=a.child,!QC(a,$)){var F=R.memoizedProps;if(h=h.compare,h=h!==null?h:Im,h(F,v)&&a.ref===c.ref)return Ea(a,c,$)}return c.flags|=1,a=ba(R,v),a.ref=c.ref,a.return=c,c.child=a}function zP(a,c,h,v,$){if(a!==null){var R=a.memoizedProps;if(Im(R,v)&&a.ref===c.ref)if(Cr=false,c.pendingProps=v=R,QC(a,$))(a.flags&131072)!==0&&(Cr=true);else return c.lanes=a.lanes,Ea(a,c,$)}return UC(a,c,h,v,$)}function FP(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 HP(a,c,R,h,v)}if((h&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},a!==null&&bv(c,R!==null?R.cachePool:null),R!==null?jN(c,R):SC(),UN(c);else return v=c.lanes=536870912,HP(a,c,R!==null?R.baseLanes|h:h,h,v)}else R!==null?(bv(c,R.cachePool),jN(c,R),Cl(),c.memoizedState=null):(a!==null&&bv(c,null),SC(),Cl());return to(a,c,$,h),c.child}function qm(a,c){return a!==null&&a.tag===22||c.stateNode!==null||(c.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.sibling}function HP(a,c,h,v,$){var R=hC();return R=R===null?null:{parent:yr._currentValue,pool:R},c.memoizedState={baseLanes:h,cachePool:R},a!==null&&bv(c,null),SC(),UN(c),a!==null&&Sd(a,c,v,true),c.childLanes=$,null}function Dv(a,c){return c=Lv({mode:c.mode,children:c.children},a.mode),c.ref=a.ref,a.child=c,c.return=a,c}function VP(a,c,h){return jc(c,a.child,null,h),a=Dv(c,c.pendingProps),a.flags|=2,ui(c),c.memoizedState=null,a}function zY(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=Dv(c,v),c.lanes=536870912,qm(null,a);if(xC(c),(a=qn)?(a=eI(a,Li),a=a!==null&&a.data==="&"?a:null,a!==null&&(c.memoizedState={dehydrated:a,treeContext:ml!==null?{id:Ls,overflow:ks}:null,retryLane:536870912,hydrationErrors:null},h=$N(a),h.return=c,c.child=h,Jr=c,qn=null)):a=null,a===null)throw pl(c);return c.lanes=536870912,null}return Dv(c,v)}var R=a.memoizedState;if(R!==null){var F=R.dehydrated;if(xC(c),$)if(c.flags&256)c.flags&=-257,c=VP(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||Sd(a,c,h,false),$=(h&a.childLanes)!==0,Cr||$){if(v=Hn,v!==null&&(F=Be(v,h),F!==0&&F!==R.retryLane))throw R.retryLane=F,_c(a,F),Ko(v,a,F),jC;Wv(),c=VP(a,c,h);}else a=R.treeContext,qn=Bi(F.nextSibling),Jr=c,hn=true,hl=null,Li=false,a!==null&&AN(c,a),c=Dv(c,v),c.flags|=4096;return c}return a=ba(a.child,{mode:v.mode,children:v.children}),a.ref=c.ref,c.child=a,a.return=c,a}function _v(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 UC(a,c,h,v,$){return zc(c),h=EC(a,c,h,v,void 0,$),v=$C(),a!==null&&!Cr?(MC(a,c,$),Ea(a,c,$)):(hn&&v&&iC(c),c.flags|=1,to(a,c,h,$),c.child)}function jP(a,c,h,v,$,R){return zc(c),c.updateQueue=null,h=GN(c,v,h,$),WN(a),v=$C(),a!==null&&!Cr?(MC(a,c,R),Ea(a,c,R)):(hn&&v&&iC(c),c.flags|=1,to(a,c,h,R),c.child)}function UP(a,c,h,v,$){if(zc(c),c.stateNode===null){var R=gd,F=h.contextType;typeof F=="object"&&F!==null&&(R=eo(F)),R=new h(v,R),c.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,R.updater=HC,c.stateNode=R,R._reactInternals=c,R=c.stateNode,R.props=v,R.state=c.memoizedState,R.refs={},gC(c),F=h.contextType,R.context=typeof F=="object"&&F!==null?eo(F):gd,R.state=c.memoizedState,F=h.getDerivedStateFromProps,typeof F=="function"&&(FC(c,h,F,v),R.state=c.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof R.getSnapshotBeforeUpdate=="function"||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(F=R.state,typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount(),F!==R.state&&HC.enqueueReplaceState(R,R.state,null),Vm(c,v,R,$),Hm(),R.state=c.memoizedState),typeof R.componentDidMount=="function"&&(c.flags|=4194308),v=true;}else if(a===null){R=c.stateNode;var Z=c.memoizedProps,de=Wc(h,Z);R.props=de;var we=R.context,Le=h.contextType;F=gd,typeof Le=="object"&&Le!==null&&(F=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||we!==F)&&NP(c,R,v,F),vl=false;var Ae=c.memoizedState;R.state=Ae,Vm(c,v,R,$),Hm(),we=c.memoizedState,Z||Ae!==we||vl?(typeof Ve=="function"&&(FC(c,h,Ve,v),we=c.memoizedState),(de=vl||RP(c,h,de,v,Ae,we,F))?(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=we),R.props=v,R.state=we,R.context=F,v=de):(typeof R.componentDidMount=="function"&&(c.flags|=4194308),v=false);}else {R=c.stateNode,vC(a,c),F=c.memoizedProps,Le=Wc(h,F),R.props=Le,Ve=c.pendingProps,Ae=R.context,we=h.contextType,de=gd,typeof we=="object"&&we!==null&&(de=eo(we)),Z=h.getDerivedStateFromProps,(we=typeof Z=="function"||typeof R.getSnapshotBeforeUpdate=="function")||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(F!==Ve||Ae!==de)&&NP(c,R,v,de),vl=false,Ae=c.memoizedState,R.state=Ae,Vm(c,v,R,$),Hm();var Pe=c.memoizedState;F!==Ve||Ae!==Pe||vl||a!==null&&a.dependencies!==null&&gv(a.dependencies)?(typeof Z=="function"&&(FC(c,h,Z,v),Pe=c.memoizedState),(Le=vl||RP(c,h,Le,v,Ae,Pe,de)||a!==null&&a.dependencies!==null&&gv(a.dependencies))?(we||typeof R.UNSAFE_componentWillUpdate!="function"&&typeof R.componentWillUpdate!="function"||(typeof R.componentWillUpdate=="function"&&R.componentWillUpdate(v,Pe,de),typeof R.UNSAFE_componentWillUpdate=="function"&&R.UNSAFE_componentWillUpdate(v,Pe,de)),typeof R.componentDidUpdate=="function"&&(c.flags|=4),typeof R.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof R.componentDidUpdate!="function"||F===a.memoizedProps&&Ae===a.memoizedState||(c.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||F===a.memoizedProps&&Ae===a.memoizedState||(c.flags|=1024),c.memoizedProps=v,c.memoizedState=Pe),R.props=v,R.state=Pe,R.context=de,v=Le):(typeof R.componentDidUpdate!="function"||F===a.memoizedProps&&Ae===a.memoizedState||(c.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||F===a.memoizedProps&&Ae===a.memoizedState||(c.flags|=1024),v=false);}return R=v,_v(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=jc(c,a.child,null,$),c.child=jc(c,null,h,$)):to(a,c,h,$),c.memoizedState=R.state,a=c.child):a=Ea(a,c,$),a}function WP(a,c,h,v){return kc(),c.flags|=256,to(a,c,h,v),c.child}var WC={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function GC(a){return {baseLanes:a,cachePool:DN()}}function qC(a,c,h){return a=a!==null?a.childLanes&~h:0,c&&(a|=fi),a}function GP(a,c,h){var v=c.pendingProps,$=false,R=(c.flags&128)!==0,F;if((F=R)||(F=a!==null&&a.memoizedState===null?false:(fr.current&2)!==0),F&&($=true,c.flags&=-129),F=(c.flags&32)!==0,c.flags&=-33,a===null){if(hn){if($?Sl(c):Cl(),(a=qn)?(a=eI(a,Li),a=a!==null&&a.data!=="&"?a:null,a!==null&&(c.memoizedState={dehydrated:a,treeContext:ml!==null?{id:Ls,overflow:ks}:null,retryLane:536870912,hydrationErrors:null},h=$N(a),h.return=c,c.child=h,Jr=c,qn=null)):a=null,a===null)throw pl(c);return Rx(a)?c.lanes=32:c.lanes=536870912,null}var Z=v.children;return v=v.fallback,$?(Cl(),$=c.mode,Z=Lv({mode:"hidden",children:Z},$),v=Lc(v,$,h,null),Z.return=c,v.return=c,Z.sibling=v,c.child=Z,v=c.child,v.memoizedState=GC(h),v.childLanes=qC(a,F,h),c.memoizedState=WC,qm(null,v)):(Sl(c),KC(c,Z))}var de=a.memoizedState;if(de!==null&&(Z=de.dehydrated,Z!==null)){if(R)c.flags&256?(Sl(c),c.flags&=-257,c=YC(a,c,h)):c.memoizedState!==null?(Cl(),c.child=a.child,c.flags|=128,c=null):(Cl(),Z=v.fallback,$=c.mode,v=Lv({mode:"visible",children:v.children},$),Z=Lc(Z,$,h,null),Z.flags|=2,v.return=c,Z.return=c,v.sibling=Z,c.child=v,jc(c,a.child,null,h),v=c.child,v.memoizedState=GC(h),v.childLanes=qC(a,F,h),c.memoizedState=WC,c=qm(null,v));else if(Sl(c),Rx(Z)){if(F=Z.nextSibling&&Z.nextSibling.dataset,F)var we=F.dgst;F=we,v=Error(r(419)),v.stack="",v.digest=F,_m({value:v,source:null,stack:null}),c=YC(a,c,h);}else if(Cr||Sd(a,c,h,false),F=(h&a.childLanes)!==0,Cr||F){if(F=Hn,F!==null&&(v=Be(F,h),v!==0&&v!==de.retryLane))throw de.retryLane=v,_c(a,v),Ko(F,a,v),jC;Ax(Z)||Wv(),c=YC(a,c,h);}else Ax(Z)?(c.flags|=192,c.child=a.child,c=null):(a=de.treeContext,qn=Bi(Z.nextSibling),Jr=c,hn=true,hl=null,Li=false,a!==null&&AN(c,a),c=KC(c,v.children),c.flags|=4096);return c}return $?(Cl(),Z=v.fallback,$=c.mode,de=a.child,we=de.sibling,v=ba(de,{mode:"hidden",children:v.children}),v.subtreeFlags=de.subtreeFlags&65011712,we!==null?Z=ba(we,Z):(Z=Lc(Z,$,h,null),Z.flags|=2),Z.return=c,v.return=c,v.sibling=Z,c.child=v,qm(null,v),v=c.child,Z=a.child.memoizedState,Z===null?Z=GC(h):($=Z.cachePool,$!==null?(de=yr._currentValue,$=$.parent!==de?{parent:de,pool:de}:$):$=DN(),Z={baseLanes:Z.baseLanes|h,cachePool:$}),v.memoizedState=Z,v.childLanes=qC(a,F,h),c.memoizedState=WC,qm(a.child,v)):(Sl(c),h=a.child,a=h.sibling,h=ba(h,{mode:"visible",children:v.children}),h.return=c,h.sibling=null,a!==null&&(F=c.deletions,F===null?(c.deletions=[a],c.flags|=16):F.push(a)),c.child=h,c.memoizedState=null,h)}function KC(a,c){return c=Lv({mode:"visible",children:c},a.mode),c.return=a,a.child=c}function Lv(a,c){return a=li(22,a,null,c),a.lanes=0,a}function YC(a,c,h){return jc(c,a.child,null,h),a=KC(c,c.pendingProps.children),a.flags|=2,c.memoizedState=null,a}function qP(a,c,h){a.lanes|=c;var v=a.alternate;v!==null&&(v.lanes|=c),uC(a.return,c,h);}function XC(a,c,h,v,$,R){var F=a.memoizedState;F===null?a.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:v,tail:h,tailMode:$,treeForkCount:R}:(F.isBackwards=c,F.rendering=null,F.renderingStartTime=0,F.last=v,F.tail=h,F.tailMode=$,F.treeForkCount=R);}function KP(a,c,h){var v=c.pendingProps,$=v.revealOrder,R=v.tail;v=v.children;var F=fr.current,Z=(F&2)!==0;if(Z?(F=F&1|2,c.flags|=128):F&=1,Q(fr,F),to(a,c,v,h),v=hn?Dm:0,!Z&&a!==null&&(a.flags&128)!==0)e:for(a=c.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&qP(a,h,c);else if(a.tag===19)qP(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&&Ev(a)===null&&($=h),h=h.sibling;h=$,h===null?($=c.child,c.child=null):($=h.sibling,h.sibling=null),XC(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&&Ev(a)===null){c.child=$;break}a=$.sibling,$.sibling=h,h=$,$=a;}XC(c,true,h,null,R,v);break;case "together":XC(c,false,null,null,void 0,v);break;default:c.memoizedState=null;}return c.child}function Ea(a,c,h){if(a!==null&&(c.dependencies=a.dependencies),El|=c.lanes,(h&c.childLanes)===0)if(a!==null){if(Sd(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=ba(a,a.pendingProps),c.child=h,h.return=c;a.sibling!==null;)a=a.sibling,h=h.sibling=ba(a,a.pendingProps),h.return=c;h.sibling=null;}return c.child}function QC(a,c){return (a.lanes&c)!==0?true:(a=a.dependencies,!!(a!==null&&gv(a)))}function FY(a,c,h){switch(c.tag){case 3:ie(c,c.stateNode.containerInfo),gl(c,yr,a.memoizedState.cache),kc();break;case 27:case 5:ee(c);break;case 4:ie(c,c.stateNode.containerInfo);break;case 10:gl(c,c.type,c.memoizedProps.value);break;case 31:if(c.memoizedState!==null)return c.flags|=128,xC(c),null;break;case 13:var v=c.memoizedState;if(v!==null)return v.dehydrated!==null?(Sl(c),c.flags|=128,null):(h&c.child.childLanes)!==0?GP(a,c,h):(Sl(c),a=Ea(a,c,h),a!==null?a.sibling:null);Sl(c);break;case 19:var $=(a.flags&128)!==0;if(v=(h&c.childLanes)!==0,v||(Sd(a,c,h,false),v=(h&c.childLanes)!==0),$){if(v)return KP(a,c,h);c.flags|=128;}if($=c.memoizedState,$!==null&&($.rendering=null,$.tail=null,$.lastEffect=null),Q(fr,fr.current),v)break;return null;case 22:return c.lanes=0,FP(a,c,h,c.pendingProps);case 24:gl(c,yr,a.memoizedState.cache);}return Ea(a,c,h)}function YP(a,c,h){if(a!==null)if(a.memoizedProps!==c.pendingProps)Cr=true;else {if(!QC(a,h)&&(c.flags&128)===0)return Cr=false,FY(a,c,h);Cr=(a.flags&131072)!==0;}else Cr=false,hn&&(c.flags&1048576)!==0&&TN(c,Dm,c.index);switch(c.lanes=0,c.tag){case 16:e:{var v=c.pendingProps;if(a=Hc(c.elementType),c.type=a,typeof a=="function")nC(a)?(v=Wc(a,v),c.tag=1,c=UP(null,c,a,v,h)):(c.tag=0,c=UC(null,c,a,v,h));else {if(a!=null){var $=a.$$typeof;if($===T){c.tag=11,c=kP(null,c,a,v,h);break e}else if($===N){c.tag=14,c=BP(null,c,a,v,h);break e}}throw c=W(a)||a,Error(r(306,c,""))}}return c;case 0:return UC(a,c,c.type,c.pendingProps,h);case 1:return v=c.type,$=Wc(v,c.pendingProps),UP(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,vC(a,c),Vm(c,v,null,h);var F=c.memoizedState;if(v=F.cache,gl(c,yr,v),v!==R.cache&&dC(c,[yr],h,true),Hm(),v=F.element,R.isDehydrated)if(R={element:v,isDehydrated:false,cache:F.cache},c.updateQueue.baseState=R,c.memoizedState=R,c.flags&256){c=WP(a,c,v,h);break e}else if(v!==$){$=Oi(Error(r(424)),c),_m($),c=WP(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,qn=Bi(a.firstChild),Jr=c,hn=true,hl=null,Li=true,h=FN(c,null,v,h),c.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else {if(kc(),v===$){c=Ea(a,c,h);break e}to(a,c,v,h);}c=c.child;}return c;case 26:return _v(a,c),a===null?(h=sI(c.type,null,c.pendingProps,null))?c.memoizedState=h:hn||(h=c.type,a=c.pendingProps,v=Zv(ne.current).createElement(h),v[Rt]=c,v[yn]=a,no(v,h,a),Sn(v),c.stateNode=v):c.memoizedState=sI(c.type,a.memoizedProps,c.pendingProps,a.memoizedState),null;case 27:return ee(c),a===null&&hn&&(v=c.stateNode=rI(c.type,c.pendingProps,ne.current),Jr=c,Li=true,$=qn,Rl(c.type)?(Nx=$,qn=Bi(v.firstChild)):qn=$),to(a,c,c.pendingProps.children,h),_v(a,c),a===null&&(c.flags|=4194304),c.child;case 5:return a===null&&hn&&(($=v=qn)&&(v=gX(v,c.type,c.pendingProps,Li),v!==null?(c.stateNode=v,Jr=c,qn=Bi(v.firstChild),Li=false,$=true):$=false),$||pl(c)),ee(c),$=c.type,R=c.pendingProps,F=a!==null?a.memoizedProps:null,v=R.children,$x($,R)?v=null:F!==null&&$x($,F)&&(c.flags|=32),c.memoizedState!==null&&($=EC(a,c,PY,null,null,h),lh._currentValue=$),_v(a,c),to(a,c,v,h),c.child;case 6:return a===null&&hn&&((a=h=qn)&&(h=vX(h,c.pendingProps,Li),h!==null?(c.stateNode=h,Jr=c,qn=null,a=true):a=false),a||pl(c)),null;case 13:return GP(a,c,h);case 4:return ie(c,c.stateNode.containerInfo),v=c.pendingProps,a===null?c.child=jc(c,null,v,h):to(a,c,v,h),c.child;case 11:return kP(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,gl(c,c.type,v.value),to(a,c,v.children,h),c.child;case 9:return $=c.type._context,v=c.pendingProps.children,zc(c),$=eo($),v=v($),c.flags|=1,to(a,c,v,h),c.child;case 14:return BP(a,c,c.type,c.pendingProps,h);case 15:return zP(a,c,c.type,c.pendingProps,h);case 19:return KP(a,c,h);case 31:return zY(a,c,h);case 22:return FP(a,c,h,c.pendingProps);case 24:return zc(c),v=eo(yr),a===null?($=hC(),$===null&&($=Hn,R=fC(),$.pooledCache=R,R.refCount++,R!==null&&($.pooledCacheLanes|=h),$=R),c.memoizedState={parent:v,cache:$},gC(c),gl(c,yr,$)):((a.lanes&h)!==0&&(vC(a,c),Vm(c,null,null,h),Hm()),$=a.memoizedState,R=c.memoizedState,$.parent!==v?($={parent:v,cache:v},c.memoizedState=$,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=$),gl(c,yr,v)):(v=R.cache,gl(c,yr,v),v!==$.cache&&dC(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 $a(a){a.flags|=4;}function ZC(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(x4())a.flags|=8192;else throw Vc=Sv,pC}else a.flags&=-16777217;}function XP(a,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!dI(c))if(x4())a.flags|=8192;else throw Vc=Sv,pC}function kv(a,c){c!==null&&(a.flags|=4),a.flags&16384&&(c=a.tag!==22?ye():536870912,a.lanes|=c,Id|=c);}function Km(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 Kn(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 HY(a,c,h){var v=c.pendingProps;switch(sC(c),c.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kn(c),null;case 1:return Kn(c),null;case 3:return h=c.stateNode,v=null,a!==null&&(v=a.memoizedState.cache),c.memoizedState.cache!==v&&(c.flags|=2048),Ca(yr),ue(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(a===null||a.child===null)&&(yd(c)?$a(c):a===null||a.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,lC())),Kn(c),null;case 26:var $=c.type,R=c.memoizedState;return a===null?($a(c),R!==null?(Kn(c),XP(c,R)):(Kn(c),ZC(c,$,null,v,h))):R?R!==a.memoizedState?($a(c),Kn(c),XP(c,R)):(Kn(c),c.flags&=-16777217):(a=a.memoizedProps,a!==v&&$a(c),Kn(c),ZC(c,$,a,v,h)),null;case 27:if(ae(c),h=ne.current,$=c.type,a!==null&&c.stateNode!=null)a.memoizedProps!==v&&$a(c);else {if(!v){if(c.stateNode===null)throw Error(r(166));return Kn(c),null}a=J.current,yd(c)?RN(c):(a=rI($,v,h),c.stateNode=a,$a(c));}return Kn(c),null;case 5:if(ae(c),$=c.type,a!==null&&c.stateNode!=null)a.memoizedProps!==v&&$a(c);else {if(!v){if(c.stateNode===null)throw Error(r(166));return Kn(c),null}if(R=J.current,yd(c))RN(c);else {var F=Zv(ne.current);switch(R){case 1:R=F.createElementNS("http://www.w3.org/2000/svg",$);break;case 2:R=F.createElementNS("http://www.w3.org/1998/Math/MathML",$);break;default:switch($){case "svg":R=F.createElementNS("http://www.w3.org/2000/svg",$);break;case "math":R=F.createElementNS("http://www.w3.org/1998/Math/MathML",$);break;case "script":R=F.createElement("div"),R.innerHTML="<script><\/script>",R=R.removeChild(R.firstChild);break;case "select":R=typeof v.is=="string"?F.createElement("select",{is:v.is}):F.createElement("select"),v.multiple?R.multiple=true:v.size&&(R.size=v.size);break;default:R=typeof v.is=="string"?F.createElement($,{is:v.is}):F.createElement($);}}R[Rt]=c,R[yn]=v;e:for(F=c.child;F!==null;){if(F.tag===5||F.tag===6)R.appendChild(F.stateNode);else if(F.tag!==4&&F.tag!==27&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===c)break e;for(;F.sibling===null;){if(F.return===null||F.return===c)break e;F=F.return;}F.sibling.return=F.return,F=F.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&&$a(c);}}return Kn(c),ZC(c,c.type,a===null?null:a.memoizedProps,c.pendingProps,h),null;case 6:if(a&&c.stateNode!=null)a.memoizedProps!==v&&$a(c);else {if(typeof v!="string"&&c.stateNode===null)throw Error(r(166));if(a=ne.current,yd(c)){if(a=c.stateNode,h=c.memoizedProps,v=null,$=Jr,$!==null)switch($.tag){case 27:case 5:v=$.memoizedProps;}a[Rt]=c,a=!!(a.nodeValue===h||v!==null&&v.suppressHydrationWarning===true||G4(a.nodeValue,h)),a||pl(c,true);}else a=Zv(a).createTextNode(v),a[Rt]=c,c.stateNode=a;}return Kn(c),null;case 31:if(h=c.memoizedState,a===null||a.memoizedState!==null){if(v=yd(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[Rt]=c;}else kc(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Kn(c),a=false;}else h=lC(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=h),a=true;if(!a)return c.flags&256?(ui(c),c):(ui(c),null);if((c.flags&128)!==0)throw Error(r(558))}return Kn(c),null;case 13:if(v=c.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if($=yd(c),v!==null&&v.dehydrated!==null){if(a===null){if(!$)throw Error(r(318));if($=c.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error(r(317));$[Rt]=c;}else kc(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Kn(c),$=false;}else $=lC(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=$),$=true;if(!$)return c.flags&256?(ui(c),c):(ui(c),null)}return ui(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),kv(c,c.updateQueue),Kn(c),null);case 4:return ue(),a===null&&Sx(c.stateNode.containerInfo),Kn(c),null;case 10:return Ca(c.type),Kn(c),null;case 19:if(V(fr),v=c.memoizedState,v===null)return Kn(c),null;if($=(c.flags&128)!==0,R=v.rendering,R===null)if($)Km(v,false);else {if(ar!==0||a!==null&&(a.flags&128)!==0)for(a=c.child;a!==null;){if(R=Ev(a),R!==null){for(c.flags|=128,Km(v,false),a=R.updateQueue,c.updateQueue=a,kv(c,a),c.subtreeFlags=0,a=h,h=c.child;h!==null;)EN(h,a),h=h.sibling;return Q(fr,fr.current&1|2),hn&&ya(c,v.treeForkCount),c.child}a=a.sibling;}v.tail!==null&&Ne()>Vv&&(c.flags|=128,$=true,Km(v,false),c.lanes=4194304);}else {if(!$)if(a=Ev(R),a!==null){if(c.flags|=128,$=true,a=a.updateQueue,c.updateQueue=a,kv(c,a),Km(v,true),v.tail===null&&v.tailMode==="hidden"&&!R.alternate&&!hn)return Kn(c),null}else 2*Ne()-v.renderingStartTime>Vv&&h!==536870912&&(c.flags|=128,$=true,Km(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,Q(fr,$?h&1|2:h&1),hn&&ya(c,v.treeForkCount),a):(Kn(c),null);case 22:case 23:return ui(c),CC(),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&&(Kn(c),c.subtreeFlags&6&&(c.flags|=8192)):Kn(c),h=c.updateQueue,h!==null&&kv(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&&V(Fc),null;case 24:return h=null,a!==null&&(h=a.memoizedState.cache),c.memoizedState.cache!==h&&(c.flags|=2048),Ca(yr),Kn(c),null;case 25:return null;case 30:return null}throw Error(r(156,c.tag))}function VY(a,c){switch(sC(c),c.tag){case 1:return a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 3:return Ca(yr),ue(),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(ui(c),c.alternate===null)throw Error(r(340));kc();}return a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 13:if(ui(c),a=c.memoizedState,a!==null&&a.dehydrated!==null){if(c.alternate===null)throw Error(r(340));kc();}return a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 19:return V(fr),null;case 4:return ue(),null;case 10:return Ca(c.type),null;case 22:case 23:return ui(c),CC(),a!==null&&V(Fc),a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 24:return Ca(yr),null;case 25:return null;default:return null}}function QP(a,c){switch(sC(c),c.tag){case 3:Ca(yr),ue();break;case 26:case 27:case 5:ae(c);break;case 4:ue();break;case 31:c.memoizedState!==null&&ui(c);break;case 13:ui(c);break;case 19:V(fr);break;case 10:Ca(c.type);break;case 22:case 23:ui(c),CC(),a!==null&&V(Fc);break;case 24:Ca(yr);}}function Ym(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,F=h.inst;v=R(),F.destroy=v;}h=h.next;}while(h!==$)}}catch(Z){In(c,c.return,Z);}}function xl(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 F=v.inst,Z=F.destroy;if(Z!==void 0){F.destroy=void 0,$=c;var de=h,we=Z;try{we();}catch(Le){In($,de,Le);}}}v=v.next;}while(v!==R)}}catch(Le){In(c,c.return,Le);}}function ZP(a){var c=a.updateQueue;if(c!==null){var h=a.stateNode;try{VN(c,h);}catch(v){In(a,a.return,v);}}}function JP(a,c,h){h.props=Wc(a.type,a.memoizedProps),h.state=a.memoizedState;try{h.componentWillUnmount();}catch(v){In(a,c,v);}}function Xm(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 Bs(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 e4(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 JC(a,c,h){try{var v=a.stateNode;uX(v,a.type,h,c),v[yn]=c;}catch($){In(a,a.return,$);}}function t4(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Rl(a.type)||a.tag===4}function ex(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||t4(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&&Rl(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 tx(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=ga));else if(v!==4&&(v===27&&Rl(a.type)&&(h=a.stateNode,c=null),a=a.child,a!==null))for(tx(a,c,h),a=a.sibling;a!==null;)tx(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&&Rl(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 n4(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[Rt]=a,c[yn]=h;}catch(R){In(a,a.return,R);}}var Ma=false,xr=false,nx=false,r4=typeof WeakSet=="function"?WeakSet:Set,Vr=null;function jY(a,c){if(a=a.containerInfo,wx=ib,a=pN(a),YS(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 F=0,Z=-1,de=-1,we=0,Le=0,Ve=a,Ae=null;t:for(;;){for(var Pe;Ve!==h||$!==0&&Ve.nodeType!==3||(Z=F+$),Ve!==R||v!==0&&Ve.nodeType!==3||(de=F+v),Ve.nodeType===3&&(F+=Ve.nodeValue.length),(Pe=Ve.firstChild)!==null;)Ae=Ve,Ve=Pe;for(;;){if(Ve===a)break t;if(Ae===h&&++we===$&&(Z=F),Ae===R&&++Le===v&&(de=F),(Pe=Ve.nextSibling)!==null)break;Ve=Ae,Ae=Ve.parentNode;}Ve=Pe;}h=Z===-1||de===-1?null:{start:Z,end:de};}else h=null;}h=h||{start:0,end:0};}else h=null;for(Ex={focusedElem:a,selectionRange:h},ib=false,Vr=c;Vr!==null;)if(c=Vr,a=c.child,(c.subtreeFlags&1028)!==0&&a!==null)a.return=c,Vr=a;else for(;Vr!==null;){switch(c=Vr,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=Wc(h.type,$);a=v.getSnapshotBeforeUpdate(vt,R),v.__reactInternalSnapshotBeforeUpdate=a;}catch(Pt){In(h,h.return,Pt);}}break;case 3:if((a&1024)!==0){if(a=c.stateNode.containerInfo,h=a.nodeType,h===9)Tx(a);else if(h===1)switch(a.nodeName){case "HEAD":case "HTML":case "BODY":Tx(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,Vr=a;break}Vr=c.return;}}function o4(a,c,h){var v=h.flags;switch(h.tag){case 0:case 11:case 15:Aa(a,h),v&4&&Ym(5,h);break;case 1:if(Aa(a,h),v&4)if(a=h.stateNode,c===null)try{a.componentDidMount();}catch(F){In(h,h.return,F);}else {var $=Wc(h.type,c.memoizedProps);c=c.memoizedState;try{a.componentDidUpdate($,c,a.__reactInternalSnapshotBeforeUpdate);}catch(F){In(h,h.return,F);}}v&64&&ZP(h),v&512&&Xm(h,h.return);break;case 3:if(Aa(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{VN(a,c);}catch(F){In(h,h.return,F);}}break;case 27:c===null&&v&4&&n4(h);case 26:case 5:Aa(a,h),c===null&&v&4&&e4(h),v&512&&Xm(h,h.return);break;case 12:Aa(a,h);break;case 31:Aa(a,h),v&4&&a4(a,h);break;case 13:Aa(a,h),v&4&&l4(a,h),v&64&&(a=h.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(h=ZY.bind(null,h),bX(a,h))));break;case 22:if(v=h.memoizedState!==null||Ma,!v){c=c!==null&&c.memoizedState!==null||xr,$=Ma;var R=xr;Ma=v,(xr=c)&&!R?Ra(a,h,(h.subtreeFlags&8772)!==0):Aa(a,h),Ma=$,xr=R;}break;case 30:break;default:Aa(a,h);}}function i4(a){var c=a.alternate;c!==null&&(a.alternate=null,i4(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 Jn=null,Uo=false;function Ta(a,c,h){for(h=h.child;h!==null;)s4(a,c,h),h=h.sibling;}function s4(a,c,h){if(ke&&typeof ke.onCommitFiberUnmount=="function")try{ke.onCommitFiberUnmount(Je,h);}catch{}switch(h.tag){case 26:xr||Bs(h,c),Ta(a,c,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:xr||Bs(h,c);var v=Jn,$=Uo;Rl(h.type)&&(Jn=h.stateNode,Uo=false),Ta(a,c,h),ih(h.stateNode),Jn=v,Uo=$;break;case 5:xr||Bs(h,c);case 6:if(v=Jn,$=Uo,Jn=null,Ta(a,c,h),Jn=v,Uo=$,Jn!==null)if(Uo)try{(Jn.nodeType===9?Jn.body:Jn.nodeName==="HTML"?Jn.ownerDocument.body:Jn).removeChild(h.stateNode);}catch(R){In(h,c,R);}else try{Jn.removeChild(h.stateNode);}catch(R){In(h,c,R);}break;case 18:Jn!==null&&(Uo?(a=Jn,Z4(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,h.stateNode),Fd(a)):Z4(Jn,h.stateNode));break;case 4:v=Jn,$=Uo,Jn=h.stateNode.containerInfo,Uo=true,Ta(a,c,h),Jn=v,Uo=$;break;case 0:case 11:case 14:case 15:xl(2,h,c),xr||xl(4,h,c),Ta(a,c,h);break;case 1:xr||(Bs(h,c),v=h.stateNode,typeof v.componentWillUnmount=="function"&&JP(h,c,v)),Ta(a,c,h);break;case 21:Ta(a,c,h);break;case 22:xr=(v=xr)||h.memoizedState!==null,Ta(a,c,h),xr=v;break;default:Ta(a,c,h);}}function a4(a,c){if(c.memoizedState===null&&(a=c.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{Fd(a);}catch(h){In(c,c.return,h);}}}function l4(a,c){if(c.memoizedState===null&&(a=c.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Fd(a);}catch(h){In(c,c.return,h);}}function UY(a){switch(a.tag){case 31:case 13:case 19:var c=a.stateNode;return c===null&&(c=a.stateNode=new r4),c;case 22:return a=a.stateNode,c=a._retryCache,c===null&&(c=a._retryCache=new r4),c;default:throw Error(r(435,a.tag))}}function zv(a,c){var h=UY(a);c.forEach(function(v){if(!h.has(v)){h.add(v);var $=JY.bind(null,a,v);v.then($,$);}});}function Wo(a,c){var h=c.deletions;if(h!==null)for(var v=0;v<h.length;v++){var $=h[v],R=a,F=c,Z=F;e:for(;Z!==null;){switch(Z.tag){case 27:if(Rl(Z.type)){Jn=Z.stateNode,Uo=false;break e}break;case 5:Jn=Z.stateNode,Uo=false;break e;case 3:case 4:Jn=Z.stateNode.containerInfo,Uo=true;break e}Z=Z.return;}if(Jn===null)throw Error(r(160));s4(R,F,$),Jn=null,Uo=false,R=$.alternate,R!==null&&(R.return=null),$.return=null;}if(c.subtreeFlags&13886)for(c=c.child;c!==null;)c4(c,a),c=c.sibling;}var as=null;function c4(a,c){var h=a.alternate,v=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Wo(c,a),Go(a),v&4&&(xl(3,a,a.return),Ym(3,a),xl(5,a,a.return));break;case 1:Wo(c,a),Go(a),v&512&&(xr||h===null||Bs(h,h.return)),v&64&&Ma&&(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 $=as;if(Wo(c,a),Go(a),v&512&&(xr||h===null||Bs(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[Nt]||R[Rt]||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[Rt]=a,Sn(R),v=R;break e;case "link":var F=cI("link","href",$).get(v+(h.href||""));if(F){for(var Z=0;Z<F.length;Z++)if(R=F[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)){F.splice(Z,1);break t}}R=$.createElement(v),no(R,v,h),$.head.appendChild(R);break;case "meta":if(F=cI("meta","content",$).get(v+(h.content||""))){for(Z=0;Z<F.length;Z++)if(R=F[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)){F.splice(Z,1);break t}}R=$.createElement(v),no(R,v,h),$.head.appendChild(R);break;default:throw Error(r(468,v))}R[Rt]=a,Sn(R),v=R;}a.stateNode=v;}else uI($,a.type,a.stateNode);else a.stateNode=lI($,v,a.memoizedProps);else R!==v?(R===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):R.count--,v===null?uI($,a.type,a.stateNode):lI($,v,a.memoizedProps)):v===null&&a.stateNode!==null&&JC(a,a.memoizedProps,h.memoizedProps);}break;case 27:Wo(c,a),Go(a),v&512&&(xr||h===null||Bs(h,h.return)),h!==null&&v&4&&JC(a,a.memoizedProps,h.memoizedProps);break;case 5:if(Wo(c,a),Go(a),v&512&&(xr||h===null||Bs(h,h.return)),a.flags&32){$=a.stateNode;try{cd($,"");}catch(vt){In(a,a.return,vt);}}v&4&&a.stateNode!=null&&($=a.memoizedProps,JC(a,$,h!==null?h.memoizedProps:$)),v&1024&&(nx=true);break;case 6:if(Wo(c,a),Go(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(tb=null,$=as,as=Jv(c.containerInfo),Wo(c,a),as=$,Go(a),v&4&&h!==null&&h.memoizedState.isDehydrated)try{Fd(c.containerInfo);}catch(vt){In(a,a.return,vt);}nx&&(nx=false,u4(a));break;case 4:v=as,as=Jv(a.stateNode.containerInfo),Wo(c,a),Go(a),as=v;break;case 12:Wo(c,a),Go(a);break;case 31:Wo(c,a),Go(a),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,zv(a,v)));break;case 13:Wo(c,a),Go(a),a.child.flags&8192&&a.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(Hv=Ne()),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,zv(a,v)));break;case 22:$=a.memoizedState!==null;var de=h!==null&&h.memoizedState!==null,we=Ma,Le=xr;if(Ma=we||$,xr=Le||de,Wo(c,a),xr=Le,Ma=we,Go(a),v&8192)e:for(c=a.stateNode,c._visibility=$?c._visibility&-2:c._visibility|1,$&&(h===null||de||Ma||xr||Gc(a)),h=null,c=a;;){if(c.tag===5||c.tag===26){if(h===null){de=h=c;try{if(R=de.stateNode,$)F=R.style,typeof F.setProperty=="function"?F.setProperty("display","none","important"):F.display="none";else {Z=de.stateNode;var Ve=de.memoizedProps.style,Ae=Ve!=null&&Ve.hasOwnProperty("display")?Ve.display:null;Z.style.display=Ae==null||typeof Ae=="boolean"?"":(""+Ae).trim();}}catch(vt){In(de,de.return,vt);}}}else if(c.tag===6){if(h===null){de=c;try{de.stateNode.nodeValue=$?"":de.memoizedProps;}catch(vt){In(de,de.return,vt);}}}else if(c.tag===18){if(h===null){de=c;try{var Pe=de.stateNode;$?J4(Pe,!0):J4(de.stateNode,!1);}catch(vt){In(de,de.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,zv(a,h))));break;case 19:Wo(c,a),Go(a),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,zv(a,v)));break;case 30:break;case 21:break;default:Wo(c,a),Go(a);}}function Go(a){var c=a.flags;if(c&2){try{for(var h,v=a.return;v!==null;){if(t4(v)){h=v;break}v=v.return;}if(h==null)throw Error(r(160));switch(h.tag){case 27:var $=h.stateNode,R=ex(a);Bv(a,R,$);break;case 5:var F=h.stateNode;h.flags&32&&(cd(F,""),h.flags&=-33);var Z=ex(a);Bv(a,Z,F);break;case 3:case 4:var de=h.stateNode.containerInfo,we=ex(a);tx(a,we,de);break;default:throw Error(r(161))}}catch(Le){In(a,a.return,Le);}a.flags&=-3;}c&4096&&(a.flags&=-4097);}function u4(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var c=a;u4(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),a=a.sibling;}}function Aa(a,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)o4(a,c.alternate,c),c=c.sibling;}function Gc(a){for(a=a.child;a!==null;){var c=a;switch(c.tag){case 0:case 11:case 14:case 15:xl(4,c,c.return),Gc(c);break;case 1:Bs(c,c.return);var h=c.stateNode;typeof h.componentWillUnmount=="function"&&JP(c,c.return,h),Gc(c);break;case 27:ih(c.stateNode);case 26:case 5:Bs(c,c.return),Gc(c);break;case 22:c.memoizedState===null&&Gc(c);break;case 30:Gc(c);break;default:Gc(c);}a=a.sibling;}}function Ra(a,c,h){for(h=h&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var v=c.alternate,$=a,R=c,F=R.flags;switch(R.tag){case 0:case 11:case 15:Ra($,R,h),Ym(4,R);break;case 1:if(Ra($,R,h),v=R,$=v.stateNode,typeof $.componentDidMount=="function")try{$.componentDidMount();}catch(we){In(v,v.return,we);}if(v=R,$=v.updateQueue,$!==null){var Z=v.stateNode;try{var de=$.shared.hiddenCallbacks;if(de!==null)for($.shared.hiddenCallbacks=null,$=0;$<de.length;$++)HN(de[$],Z);}catch(we){In(v,v.return,we);}}h&&F&64&&ZP(R),Xm(R,R.return);break;case 27:n4(R);case 26:case 5:Ra($,R,h),h&&v===null&&F&4&&e4(R),Xm(R,R.return);break;case 12:Ra($,R,h);break;case 31:Ra($,R,h),h&&F&4&&a4($,R);break;case 13:Ra($,R,h),h&&F&4&&l4($,R);break;case 22:R.memoizedState===null&&Ra($,R,h),Xm(R,R.return);break;case 30:break;default:Ra($,R,h);}c=c.sibling;}}function rx(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&&Lm(h));}function ox(a,c){a=null,c.alternate!==null&&(a=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==a&&(c.refCount++,a!=null&&Lm(a));}function ls(a,c,h,v){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)d4(a,c,h,v),c=c.sibling;}function d4(a,c,h,v){var $=c.flags;switch(c.tag){case 0:case 11:case 15:ls(a,c,h,v),$&2048&&Ym(9,c);break;case 1:ls(a,c,h,v);break;case 3:ls(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&&Lm(a)));break;case 12:if($&2048){ls(a,c,h,v),a=c.stateNode;try{var R=c.memoizedProps,F=R.id,Z=R.onPostCommit;typeof Z=="function"&&Z(F,c.alternate===null?"mount":"update",a.passiveEffectDuration,-0);}catch(de){In(c,c.return,de);}}else ls(a,c,h,v);break;case 31:ls(a,c,h,v);break;case 13:ls(a,c,h,v);break;case 23:break;case 22:R=c.stateNode,F=c.alternate,c.memoizedState!==null?R._visibility&2?ls(a,c,h,v):Qm(a,c):R._visibility&2?ls(a,c,h,v):(R._visibility|=2,Rd(a,c,h,v,(c.subtreeFlags&10256)!==0||false)),$&2048&&rx(F,c);break;case 24:ls(a,c,h,v),$&2048&&ox(c.alternate,c);break;default:ls(a,c,h,v);}}function Rd(a,c,h,v,$){for($=$&&((c.subtreeFlags&10256)!==0||false),c=c.child;c!==null;){var R=a,F=c,Z=h,de=v,we=F.flags;switch(F.tag){case 0:case 11:case 15:Rd(R,F,Z,de,$),Ym(8,F);break;case 23:break;case 22:var Le=F.stateNode;F.memoizedState!==null?Le._visibility&2?Rd(R,F,Z,de,$):Qm(R,F):(Le._visibility|=2,Rd(R,F,Z,de,$)),$&&we&2048&&rx(F.alternate,F);break;case 24:Rd(R,F,Z,de,$),$&&we&2048&&ox(F.alternate,F);break;default:Rd(R,F,Z,de,$);}c=c.sibling;}}function Qm(a,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var h=a,v=c,$=v.flags;switch(v.tag){case 22:Qm(h,v),$&2048&&rx(v.alternate,v);break;case 24:Qm(h,v),$&2048&&ox(v.alternate,v);break;default:Qm(h,v);}c=c.sibling;}}var Zm=8192;function Nd(a,c,h){if(a.subtreeFlags&Zm)for(a=a.child;a!==null;)f4(a,c,h),a=a.sibling;}function f4(a,c,h){switch(a.tag){case 26:Nd(a,c,h),a.flags&Zm&&a.memoizedState!==null&&NX(h,as,a.memoizedState,a.memoizedProps);break;case 5:Nd(a,c,h);break;case 3:case 4:var v=as;as=Jv(a.stateNode.containerInfo),Nd(a,c,h),as=v;break;case 22:a.memoizedState===null&&(v=a.alternate,v!==null&&v.memoizedState!==null?(v=Zm,Zm=16777216,Nd(a,c,h),Zm=v):Nd(a,c,h));break;default:Nd(a,c,h);}}function m4(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 Jm(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];Vr=v,p4(v,a);}m4(a);}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)h4(a),a=a.sibling;}function h4(a){switch(a.tag){case 0:case 11:case 15:Jm(a),a.flags&2048&&xl(9,a,a.return);break;case 3:Jm(a);break;case 12:Jm(a);break;case 22:var c=a.stateNode;a.memoizedState!==null&&c._visibility&2&&(a.return===null||a.return.tag!==13)?(c._visibility&=-3,Fv(a)):Jm(a);break;default:Jm(a);}}function Fv(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];Vr=v,p4(v,a);}m4(a);}for(a=a.child;a!==null;){switch(c=a,c.tag){case 0:case 11:case 15:xl(8,c,c.return),Fv(c);break;case 22:h=c.stateNode,h._visibility&2&&(h._visibility&=-3,Fv(c));break;default:Fv(c);}a=a.sibling;}}function p4(a,c){for(;Vr!==null;){var h=Vr;switch(h.tag){case 0:case 11:case 15:xl(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:Lm(h.memoizedState.cache);}if(v=h.child,v!==null)v.return=h,Vr=v;else e:for(h=a;Vr!==null;){v=Vr;var $=v.sibling,R=v.return;if(i4(v),v===h){Vr=null;break e}if($!==null){$.return=R,Vr=$;break e}Vr=R;}}}var WY={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}},GY=typeof WeakMap=="function"?WeakMap:Map,Cn=0,Hn=null,rn=null,an=0,Pn=0,di=null,wl=false,Pd=false,ix=false,Na=0,ar=0,El=0,qc=0,sx=0,fi=0,Id=0,eh=null,qo=null,ax=false,Hv=0,g4=0,Vv=1/0,jv=null,$l=null,Ir=0,Ml=null,Od=null,Pa=0,lx=0,cx=null,v4=null,th=0,ux=null;function mi(){return (Cn&2)!==0&&an!==0?an&-an:L.T!==null?gx():ft()}function b4(){if(fi===0)if((an&536870912)===0||hn){var a=Ot;Ot<<=1,(Ot&3932160)===0&&(Ot=262144),fi=a;}else fi=536870912;return a=ci.current,a!==null&&(a.flags|=32),fi}function Ko(a,c,h){(a===Hn&&(Pn===2||Pn===9)||a.cancelPendingCommit!==null)&&(Dd(a,0),Tl(a,an,fi,false)),Se(a,h),((Cn&2)===0||a!==Hn)&&(a===Hn&&((Cn&2)===0&&(qc|=h),ar===4&&Tl(a,an,fi,false)),zs(a));}function y4(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?YY(a,c):fx(a,c,true),R=v;do{if($===0){Pd&&!v&&Tl(a,c,0,false);break}else {if(h=a.current.alternate,R&&!qY(h)){$=fx(a,c,false),R=false;continue}if($===2){if(R=c,a.errorRecoveryDisabledLanes&R)var F=0;else F=a.pendingLanes&-536870913,F=F!==0?F:F&536870912?536870912:0;if(F!==0){c=F;e:{var Z=a;$=eh;var de=Z.current.memoizedState.isDehydrated;if(de&&(Dd(Z,F).flags|=256),F=fx(Z,F,false),F!==2){if(ix&&!de){Z.errorRecoveryDisabledLanes|=R,qc|=R,$=4;break e}R=qo,qo=$,R!==null&&(qo===null?qo=R:qo.push.apply(qo,R));}$=F;}if(R=false,$!==2)continue}}if($===1){Dd(a,0),Tl(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:Tl(v,c,fi,!wl);break e;case 2:qo=null;break;case 3:case 5:break;default:throw Error(r(329))}if((c&62914560)===c&&($=Hv+300-Ne(),10<$)){if(Tl(v,c,fi,!wl),bt(v,0,true)!==0)break e;Pa=c,v.timeoutHandle=X4(S4.bind(null,v,h,qo,jv,ax,c,fi,qc,Id,wl,R,"Throttled",-0,0),$);break e}S4(v,h,qo,jv,ax,c,fi,qc,Id,wl,R,null,-0,0);}}break}while(true);zs(a);}function S4(a,c,h,v,$,R,F,Z,de,we,Le,Ve,Ae,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:ga},f4(c,R,Ve);var vt=(R&62914560)===R?Hv-Ne():(R&4194048)===R?g4-Ne():0;if(vt=PX(Ve,vt),vt!==null){Pa=R,a.cancelPendingCommit=vt(A4.bind(null,a,c,R,h,v,$,F,Z,de,Le,Ve,null,Ae,Pe)),Tl(a,R,F,!we);return}}A4(a,c,R,h,v,$,F,Z,de);}function qY(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(!ai(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 Tl(a,c,h,v){c&=~sx,c&=~qc,a.suspendedLanes|=c,a.pingedLanes&=~c,v&&(a.warmLanes|=c),v=a.expirationTimes;for(var $=c;0<$;){var R=31-lt($),F=1<<R;v[R]=-1,$&=~F;}h!==0&&De(a,h,c);}function Uv(){return (Cn&6)===0?(nh(0),false):true}function dx(){if(rn!==null){if(Pn===0)var a=rn.return;else a=rn,Sa=Bc=null,TC(a),Ed=null,Bm=0,a=rn;for(;a!==null;)QP(a.alternate,a),a=a.return;rn=null;}}function Dd(a,c){var h=a.timeoutHandle;h!==-1&&(a.timeoutHandle=-1,mX(h)),h=a.cancelPendingCommit,h!==null&&(a.cancelPendingCommit=null,h()),Pa=0,dx(),Hn=a,rn=h=ba(a.current,null),an=c,Pn=0,di=null,wl=false,Pd=Fe(a,c),ix=false,Id=fi=sx=qc=El=ar=0,qo=eh=null,ax=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 Na=c,dv(),h}function C4(a,c){qt=null,L.H=Gm,c===wd||c===yv?(c=kN(),Pn=3):c===pC?(c=kN(),Pn=4):Pn=c===jC?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,di=c,rn===null&&(ar=1,Ov(a,Oi(c,a.current)));}function x4(){var a=ci.current;return a===null?true:(an&4194048)===an?ki===null:(an&62914560)===an||(an&536870912)!==0?a===ki:false}function w4(){var a=L.H;return L.H=Gm,a===null?Gm:a}function E4(){var a=L.A;return L.A=WY,a}function Wv(){ar=4,wl||(an&4194048)!==an&&ci.current!==null||(Pd=true),(El&134217727)===0&&(qc&134217727)===0||Hn===null||Tl(Hn,an,fi,false);}function fx(a,c,h){var v=Cn;Cn|=2;var $=w4(),R=E4();(Hn!==a||an!==c)&&(jv=null,Dd(a,c)),c=false;var F=ar;e:do try{if(Pn!==0&&rn!==null){var Z=rn,de=di;switch(Pn){case 8:dx(),F=6;break e;case 3:case 2:case 9:case 6:ci.current===null&&(c=!0);var we=Pn;if(Pn=0,di=null,_d(a,Z,de,we),h&&Pd){F=0;break e}break;default:we=Pn,Pn=0,di=null,_d(a,Z,de,we);}}KY(),F=ar;break}catch(Le){C4(a,Le);}while(true);return c&&a.shellSuspendCounter++,Sa=Bc=null,Cn=v,L.H=$,L.A=R,rn===null&&(Hn=null,an=0,dv()),F}function KY(){for(;rn!==null;)$4(rn);}function YY(a,c){var h=Cn;Cn|=2;var v=w4(),$=E4();Hn!==a||an!==c?(jv=null,Vv=Ne()+500,Dd(a,c)):Pd=Fe(a,c);e:do try{if(Pn!==0&&rn!==null){c=rn;var R=di;t:switch(Pn){case 1:Pn=0,di=null,_d(a,c,R,1);break;case 2:case 9:if(_N(R)){Pn=0,di=null,M4(c);break}c=function(){Pn!==2&&Pn!==9||Hn!==a||(Pn=7),zs(a);},R.then(c,c);break e;case 3:Pn=7;break e;case 4:Pn=5;break e;case 7:_N(R)?(Pn=0,di=null,M4(c)):(Pn=0,di=null,_d(a,c,R,7));break;case 5:var F=null;switch(rn.tag){case 26:F=rn.memoizedState;case 5:case 27:var Z=rn;if(F?dI(F):Z.stateNode.complete){Pn=0,di=null;var de=Z.sibling;if(de!==null)rn=de;else {var we=Z.return;we!==null?(rn=we,Gv(we)):rn=null;}break t}}Pn=0,di=null,_d(a,c,R,5);break;case 6:Pn=0,di=null,_d(a,c,R,6);break;case 8:dx(),ar=6;break e;default:throw Error(r(462))}}XY();break}catch(Le){C4(a,Le);}while(true);return Sa=Bc=null,L.H=v,L.A=$,Cn=h,rn!==null?0:(Hn=null,an=0,dv(),ar)}function XY(){for(;rn!==null&&!fe();)$4(rn);}function $4(a){var c=YP(a.alternate,a,Na);a.memoizedProps=a.pendingProps,c===null?Gv(a):rn=c;}function M4(a){var c=a,h=c.alternate;switch(c.tag){case 15:case 0:c=jP(h,c,c.pendingProps,c.type,void 0,an);break;case 11:c=jP(h,c,c.pendingProps,c.type.render,c.ref,an);break;case 5:TC(c);default:QP(h,c),c=rn=EN(c,Na),c=YP(h,c,Na);}a.memoizedProps=a.pendingProps,c===null?Gv(a):rn=c;}function _d(a,c,h,v){Sa=Bc=null,TC(c),Ed=null,Bm=0;var $=c.return;try{if(BY(a,$,c,h,an)){ar=1,Ov(a,Oi(h,a.current)),rn=null;return}}catch(R){if($!==null)throw rn=$,R;ar=1,Ov(a,Oi(h,a.current)),rn=null;return}c.flags&32768?(hn||v===1?a=true:Pd||(an&536870912)!==0?a=false:(wl=a=true,(v===2||v===9||v===3||v===6)&&(v=ci.current,v!==null&&v.tag===13&&(v.flags|=16384))),T4(c,a)):Gv(c);}function Gv(a){var c=a;do{if((c.flags&32768)!==0){T4(c,wl);return}a=c.return;var h=HY(c.alternate,c,Na);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 T4(a,c){do{var h=VY(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 A4(a,c,h,v,$,R,F,Z,de){a.cancelPendingCommit=null;do qv();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|=eC,he(a,h,R,F,Z,de),a===Hn&&(rn=Hn=null,an=0),Od=c,Ml=a,Pa=h,lx=R,cx=$,v4=v,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,eX(et,function(){return O4(),null})):(a.callbackNode=null,a.callbackPriority=0),v=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||v){v=L.T,L.T=null,$=G.p,G.p=2,F=Cn,Cn|=4;try{jY(a,c,h);}finally{Cn=F,G.p=$,L.T=v;}}Ir=1,R4(),N4(),P4();}}function R4(){if(Ir===1){Ir=0;var a=Ml,c=Od,h=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||h){h=L.T,L.T=null;var v=G.p;G.p=2;var $=Cn;Cn|=4;try{c4(c,a);var R=Ex,F=pN(a.containerInfo),Z=R.focusedElem,de=R.selectionRange;if(F!==Z&&Z&&Z.ownerDocument&&hN(Z.ownerDocument.documentElement,Z)){if(de!==null&&YS(Z)){var we=de.start,Le=de.end;if(Le===void 0&&(Le=we),"selectionStart"in Z)Z.selectionStart=we,Z.selectionEnd=Math.min(Le,Z.value.length);else {var Ve=Z.ownerDocument||document,Ae=Ve&&Ve.defaultView||window;if(Ae.getSelection){var Pe=Ae.getSelection(),vt=Z.textContent.length,Pt=Math.min(de.start,vt),kn=de.end===void 0?Pt:Math.min(de.end,vt);!Pe.extend&&Pt>kn&&(F=kn,kn=Pt,Pt=F);var ve=mN(Z,Pt),me=mN(Z,kn);if(ve&&me&&(Pe.rangeCount!==1||Pe.anchorNode!==ve.node||Pe.anchorOffset!==ve.offset||Pe.focusNode!==me.node||Pe.focusOffset!==me.offset)){var xe=Ve.createRange();xe.setStart(ve.node,ve.offset),Pe.removeAllRanges(),Pt>kn?(Pe.addRange(xe),Pe.extend(me.node,me.offset)):(xe.setEnd(me.node,me.offset),Pe.addRange(xe));}}}}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;}}ib=!!wx,Ex=wx=null;}finally{Cn=$,G.p=v,L.T=h;}}a.current=c,Ir=2;}}function N4(){if(Ir===2){Ir=0;var a=Ml,c=Od,h=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||h){h=L.T,L.T=null;var v=G.p;G.p=2;var $=Cn;Cn|=4;try{o4(a,c.alternate,c);}finally{Cn=$,G.p=v,L.T=h;}}Ir=3;}}function P4(){if(Ir===4||Ir===3){Ir=0,ge();var a=Ml,c=Od,h=Pa,v=v4;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?Ir=5:(Ir=0,Od=Ml=null,I4(a,a.pendingLanes));var $=a.pendingLanes;if($===0&&($l=null),st(h),c=c.stateNode,ke&&typeof ke.onCommitFiberRoot=="function")try{ke.onCommitFiberRoot(Je,c,void 0,(c.current.flags&128)===128);}catch{}if(v!==null){c=L.T,$=G.p,G.p=2,L.T=null;try{for(var R=a.onRecoverableError,F=0;F<v.length;F++){var Z=v[F];R(Z.value,{componentStack:Z.stack});}}finally{L.T=c,G.p=$;}}(Pa&3)!==0&&qv(),zs(a),$=a.pendingLanes,(h&261930)!==0&&($&42)!==0?a===ux?th++:(th=0,ux=a):th=0,nh(0);}}function I4(a,c){(a.pooledCacheLanes&=c)===0&&(c=a.pooledCache,c!=null&&(a.pooledCache=null,Lm(c)));}function qv(){return R4(),N4(),P4(),O4()}function O4(){if(Ir!==5)return  false;var a=Ml,c=lx;lx=0;var h=st(Pa),v=L.T,$=G.p;try{G.p=32>h?32:h,L.T=null,h=cx,cx=null;var R=Ml,F=Pa;if(Ir=0,Od=Ml=null,Pa=0,(Cn&6)!==0)throw Error(r(331));var Z=Cn;if(Cn|=4,h4(R.current),d4(R,R.current,F,h),Cn=Z,nh(0,!1),ke&&typeof ke.onPostCommitFiberRoot=="function")try{ke.onPostCommitFiberRoot(Je,R);}catch{}return !0}finally{G.p=$,L.T=v,I4(a,c);}}function D4(a,c,h){c=Oi(h,c),c=VC(a.stateNode,c,2),a=yl(a,c,2),a!==null&&(Se(a,2),zs(a));}function In(a,c,h){if(a.tag===3)D4(a,a,h);else for(;c!==null;){if(c.tag===3){D4(c,a,h);break}else if(c.tag===1){var v=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&($l===null||!$l.has(v))){a=Oi(h,a),h=_P(2),v=yl(c,h,2),v!==null&&(LP(h,v,c,a),Se(v,2),zs(v));break}}c=c.return;}}function mx(a,c,h){var v=a.pingCache;if(v===null){v=a.pingCache=new GY;var $=new Set;v.set(c,$);}else $=v.get(c),$===void 0&&($=new Set,v.set(c,$));$.has(h)||(ix=true,$.add(h),a=QY.bind(null,a,c,h),c.then(a,a));}function QY(a,c,h){var v=a.pingCache;v!==null&&v.delete(c),a.pingedLanes|=a.suspendedLanes&h,a.warmLanes&=~h,Hn===a&&(an&h)===h&&(ar===4||ar===3&&(an&62914560)===an&&300>Ne()-Hv?(Cn&2)===0&&Dd(a,0):sx|=h,Id===an&&(Id=0)),zs(a);}function _4(a,c){c===0&&(c=ye()),a=_c(a,c),a!==null&&(Se(a,c),zs(a));}function ZY(a){var c=a.memoizedState,h=0;c!==null&&(h=c.retryLane),_4(a,h);}function JY(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),_4(a,h);}function eX(a,c){return Ye(a,c)}var Kv=null,Ld=null,hx=false,Yv=false,px=false,Al=0;function zs(a){a!==Ld&&a.next===null&&(Ld===null?Kv=Ld=a:Ld=Ld.next=a),Yv=true,hx||(hx=true,nX());}function nh(a,c){if(!px&&Yv){px=true;do for(var h=false,v=Kv;v!==null;){if(a!==0){var $=v.pendingLanes;if($===0)var R=0;else {var F=v.suspendedLanes,Z=v.pingedLanes;R=(1<<31-lt(42|a)+1)-1,R&=$&~(F&~Z),R=R&201326741?R&201326741|1:R?R|2:0;}R!==0&&(h=true,z4(v,R));}else R=an,R=bt(v,v===Hn?R:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(R&3)===0||Fe(v,R)||(h=true,z4(v,R));v=v.next;}while(h);px=false;}}function tX(){L4();}function L4(){Yv=hx=false;var a=0;Al!==0&&fX()&&(a=Al);for(var c=Ne(),h=null,v=Kv;v!==null;){var $=v.next,R=k4(v,c);R===0?(v.next=null,h===null?Kv=$:h.next=$,$===null&&(Ld=h)):(h=v,(a!==0||(R&3)!==0)&&(Yv=true)),v=$;}Ir!==0&&Ir!==5||nh(a),Al!==0&&(Al=0);}function k4(a,c){for(var h=a.suspendedLanes,v=a.pingedLanes,$=a.expirationTimes,R=a.pendingLanes&-62914561;0<R;){var F=31-lt(R),Z=1<<F,de=$[F];de===-1?((Z&h)===0||(Z&v)!==0)&&($[F]=Ue(Z,c)):de<=c&&(a.expiredLanes|=Z),R&=~Z;}if(c=Hn,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),st(h)){case 2:case 8:h=je;break;case 32:h=et;break;case 268435456:h=Ke;break;default:h=et;}return v=B4.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 B4(a,c){if(Ir!==0&&Ir!==5)return a.callbackNode=null,a.callbackPriority=0,null;var h=a.callbackNode;if(qv()&&a.callbackNode!==h)return null;var v=an;return v=bt(a,a===Hn?v:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),v===0?null:(y4(a,v,c),k4(a,Ne()),a.callbackNode!=null&&a.callbackNode===h?B4.bind(null,a):null)}function z4(a,c){if(qv())return null;y4(a,c,true);}function nX(){hX(function(){(Cn&6)!==0?Ye(We,tX):L4();});}function gx(){if(Al===0){var a=Cd;a===0&&(a=xt,xt<<=1,(xt&261888)===0&&(xt=256)),Al=a;}return Al}function F4(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:rv(""+a)}function H4(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 rX(a,c,h,v,$){if(c==="submit"&&h&&h.stateNode===$){var R=F4(($[yn]||null).action),F=v.submitter;F&&(c=(c=F[yn]||null)?F4(c.formAction):F.getAttribute("formAction"),c!==null&&(R=c,F=null));var Z=new av("action","action",null,v,$);a.push({event:Z,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(Al!==0){var de=F?H4($,F):new FormData($);LC(h,{pending:true,data:de,method:$.method,action:R},null,de);}}else typeof R=="function"&&(Z.preventDefault(),de=F?H4($,F):new FormData($),LC(h,{pending:true,data:de,method:$.method,action:R},R,de));},currentTarget:$}]});}}for(var vx=0;vx<JS.length;vx++){var bx=JS[vx],oX=bx.toLowerCase(),iX=bx[0].toUpperCase()+bx.slice(1);ss(oX,"on"+iX);}ss(bN,"onAnimationEnd"),ss(yN,"onAnimationIteration"),ss(SN,"onAnimationStart"),ss("dblclick","onDoubleClick"),ss("focusin","onFocus"),ss("focusout","onBlur"),ss(CY,"onTransitionRun"),ss(xY,"onTransitionStart"),ss(wY,"onTransitionCancel"),ss(CN,"onTransitionEnd"),Ho("onMouseEnter",["mouseout","mouseover"]),Ho("onMouseLeave",["mouseout","mouseover"]),Ho("onPointerEnter",["pointerout","pointerover"]),Ho("onPointerLeave",["pointerout","pointerover"]),Gn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Gn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Gn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Gn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Gn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Gn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rh="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(" "),sX=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(rh));function V4(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 F=v.length-1;0<=F;F--){var Z=v[F],de=Z.instance,we=Z.currentTarget;if(Z=Z.listener,de!==R&&$.isPropagationStopped())break e;R=Z,$.currentTarget=we;try{R($);}catch(Le){uv(Le);}$.currentTarget=null,R=de;}else for(F=0;F<v.length;F++){if(Z=v[F],de=Z.instance,we=Z.currentTarget,Z=Z.listener,de!==R&&$.isPropagationStopped())break e;R=Z,$.currentTarget=we;try{R($);}catch(Le){uv(Le);}$.currentTarget=null,R=de;}}}}function on(a,c){var h=c[tt];h===void 0&&(h=c[tt]=new Set);var v=a+"__bubble";h.has(v)||(j4(c,a,2,false),h.add(v));}function yx(a,c,h){var v=0;c&&(v|=4),j4(h,a,v,c);}var Xv="_reactListening"+Math.random().toString(36).slice(2);function Sx(a){if(!a[Xv]){a[Xv]=true,vo.forEach(function(h){h!=="selectionchange"&&(sX.has(h)||yx(h,false,a),yx(h,true,a));});var c=a.nodeType===9?a:a.ownerDocument;c===null||c[Xv]||(c[Xv]=true,yx("selectionchange",false,c));}}function j4(a,c,h,v){switch(bI(c)){case 2:var $=DX;break;case 8:$=_X;break;default:$=_x;}h=$.bind(null,c,h,a),$=void 0,!FS||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 Cx(a,c,h,v,$){var R=v;if((c&1)===0&&(c&2)===0&&v!==null)e:for(;;){if(v===null)return;var F=v.tag;if(F===3||F===4){var Z=v.stateNode.containerInfo;if(Z===$)break;if(F===4)for(F=v.return;F!==null;){var de=F.tag;if((de===3||de===4)&&F.stateNode.containerInfo===$)return;F=F.return;}for(;Z!==null;){if(F=Jt(Z),F===null)return;if(de=F.tag,de===5||de===6||de===26||de===27){v=R=F;continue e}Z=Z.parentNode;}}v=v.return;}K6(function(){var we=R,Le=BS(h),Ve=[];e:{var Ae=xN.get(a);if(Ae!==void 0){var Pe=av,vt=a;switch(a){case "keypress":if(iv(h)===0)break e;case "keydown":case "keyup":Pe=JK;break;case "focusin":vt="focus",Pe=US;break;case "focusout":vt="blur",Pe=US;break;case "beforeblur":case "afterblur":Pe=US;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=Q6;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":Pe=HK;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":Pe=nY;break;case bN:case yN:case SN:Pe=UK;break;case CN:Pe=oY;break;case "scroll":case "scrollend":Pe=zK;break;case "wheel":Pe=sY;break;case "copy":case "cut":case "paste":Pe=GK;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":Pe=J6;break;case "toggle":case "beforetoggle":Pe=lY;}var Pt=(c&4)!==0,kn=!Pt&&(a==="scroll"||a==="scrollend"),ve=Pt?Ae!==null?Ae+"Capture":null:Ae;Pt=[];for(var me=we,xe;me!==null;){var ze=me;if(xe=ze.stateNode,ze=ze.tag,ze!==5&&ze!==26&&ze!==27||xe===null||ve===null||(ze=$m(me,ve),ze!=null&&Pt.push(oh(me,ze,xe))),kn)break;me=me.return;}0<Pt.length&&(Ae=new Pe(Ae,vt,null,h,Le),Ve.push({event:Ae,listeners:Pt}));}}if((c&7)===0){e:{if(Ae=a==="mouseover"||a==="pointerover",Pe=a==="mouseout"||a==="pointerout",Ae&&h!==kS&&(vt=h.relatedTarget||h.fromElement)&&(Jt(vt)||vt[Wn]))break e;if((Pe||Ae)&&(Ae=Le.window===Le?Le:(Ae=Le.ownerDocument)?Ae.defaultView||Ae.parentWindow:window,Pe?(vt=h.relatedTarget||h.toElement,Pe=we,vt=vt?Jt(vt):null,vt!==null&&(kn=i(vt),Pt=vt.tag,vt!==kn||Pt!==5&&Pt!==27&&Pt!==6)&&(vt=null)):(Pe=null,vt=we),Pe!==vt)){if(Pt=Q6,ze="onMouseLeave",ve="onMouseEnter",me="mouse",(a==="pointerout"||a==="pointerover")&&(Pt=J6,ze="onPointerLeave",ve="onPointerEnter",me="pointer"),kn=Pe==null?Ae:Nn(Pe),xe=vt==null?Ae:Nn(vt),Ae=new Pt(ze,me+"leave",Pe,h,Le),Ae.target=kn,Ae.relatedTarget=xe,ze=null,Jt(Le)===we&&(Pt=new Pt(ve,me+"enter",vt,h,Le),Pt.target=xe,Pt.relatedTarget=kn,ze=Pt),kn=ze,Pe&&vt)t:{for(Pt=aX,ve=Pe,me=vt,xe=0,ze=ve;ze;ze=Pt(ze))xe++;ze=0;for(var $t=me;$t;$t=Pt($t))ze++;for(;0<xe-ze;)ve=Pt(ve),xe--;for(;0<ze-xe;)me=Pt(me),ze--;for(;xe--;){if(ve===me||me!==null&&ve===me.alternate){Pt=ve;break t}ve=Pt(ve),me=Pt(me);}Pt=null;}else Pt=null;Pe!==null&&U4(Ve,Ae,Pe,Pt,!1),vt!==null&&kn!==null&&U4(Ve,kn,vt,Pt,!0);}}e:{if(Ae=we?Nn(we):window,Pe=Ae.nodeName&&Ae.nodeName.toLowerCase(),Pe==="select"||Pe==="input"&&Ae.type==="file")var vn=aN;else if(iN(Ae))if(lN)vn=bY;else {vn=gY;var St=pY;}else Pe=Ae.nodeName,!Pe||Pe.toLowerCase()!=="input"||Ae.type!=="checkbox"&&Ae.type!=="radio"?we&&LS(we.elementType)&&(vn=aN):vn=vY;if(vn&&(vn=vn(a,we))){sN(Ve,vn,h,Le);break e}St&&St(a,Ae,we),a==="focusout"&&we&&Ae.type==="number"&&we.memoizedProps.value!=null&&ld(Ae,"number",Ae.value);}switch(St=we?Nn(we):window,a){case "focusin":(iN(St)||St.contentEditable==="true")&&(md=St,XS=we,Om=null);break;case "focusout":Om=XS=md=null;break;case "mousedown":QS=!0;break;case "contextmenu":case "mouseup":case "dragend":QS=!1,gN(Ve,h,Le);break;case "selectionchange":if(SY)break;case "keydown":case "keyup":gN(Ve,h,Le);}var Yt;if(GS)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 fd?rN(a,h)&&(ln="onCompositionEnd"):a==="keydown"&&h.keyCode===229&&(ln="onCompositionStart");ln&&(eN&&h.locale!=="ko"&&(fd||ln!=="onCompositionStart"?ln==="onCompositionEnd"&&fd&&(Yt=Y6()):(fl=Le,HS="value"in fl?fl.value:fl.textContent,fd=!0)),St=Qv(we,ln),0<St.length&&(ln=new Z6(ln,a,null,h,Le),Ve.push({event:ln,listeners:St}),Yt?ln.data=Yt:(Yt=oN(h),Yt!==null&&(ln.data=Yt)))),(Yt=uY?dY(a,h):fY(a,h))&&(ln=Qv(we,"onBeforeInput"),0<ln.length&&(St=new Z6("onBeforeInput","beforeinput",null,h,Le),Ve.push({event:St,listeners:ln}),St.data=Yt)),rX(Ve,a,we,h,Le);}V4(Ve,c);});}function oh(a,c,h){return {instance:a,listener:c,currentTarget:h}}function Qv(a,c){for(var h=c+"Capture",v=[];a!==null;){var $=a,R=$.stateNode;if($=$.tag,$!==5&&$!==26&&$!==27||R===null||($=$m(a,h),$!=null&&v.unshift(oh(a,$,R)),$=$m(a,c),$!=null&&v.push(oh(a,$,R))),a.tag===3)return v;a=a.return;}return []}function aX(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function U4(a,c,h,v,$){for(var R=c._reactName,F=[];h!==null&&h!==v;){var Z=h,de=Z.alternate,we=Z.stateNode;if(Z=Z.tag,de!==null&&de===v)break;Z!==5&&Z!==26&&Z!==27||we===null||(de=we,$?(we=$m(h,R),we!=null&&F.unshift(oh(h,we,de))):$||(we=$m(h,R),we!=null&&F.push(oh(h,we,de)))),h=h.return;}F.length!==0&&a.push({event:c,listeners:F});}var lX=/\r\n?/g,cX=/\u0000|\uFFFD/g;function W4(a){return (typeof a=="string"?a:""+a).replace(lX,`
`).replace(cX,"")}function G4(a,c){return c=W4(c),W4(a)===c}function Ln(a,c,h,v,$,R){switch(h){case "children":typeof v=="string"?c==="body"||c==="textarea"&&v===""||cd(a,v):(typeof v=="number"||typeof v=="bigint")&&c!=="body"&&cd(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":G6(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=rv(""+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"&&Ln(a,c,"name",$.name,$,null),Ln(a,c,"formEncType",$.formEncType,$,null),Ln(a,c,"formMethod",$.formMethod,$,null),Ln(a,c,"formTarget",$.formTarget,$,null)):(Ln(a,c,"encType",$.encType,$,null),Ln(a,c,"method",$.method,$,null),Ln(a,c,"target",$.target,$,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){a.removeAttribute(h);break}v=rv(""+v),a.setAttribute(h,v);break;case "onClick":v!=null&&(a.onclick=ga);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=rv(""+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),_s(a,"popover",v);break;case "xlinkActuate":Vo(a,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case "xlinkArcrole":Vo(a,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case "xlinkRole":Vo(a,"http://www.w3.org/1999/xlink","xlink:role",v);break;case "xlinkShow":Vo(a,"http://www.w3.org/1999/xlink","xlink:show",v);break;case "xlinkTitle":Vo(a,"http://www.w3.org/1999/xlink","xlink:title",v);break;case "xlinkType":Vo(a,"http://www.w3.org/1999/xlink","xlink:type",v);break;case "xmlBase":Vo(a,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case "xmlLang":Vo(a,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case "xmlSpace":Vo(a,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case "is":_s(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=kK.get(h)||h,_s(a,h,v));}}function xx(a,c,h,v,$,R){switch(h){case "style":G6(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"?cd(a,v):(typeof v=="number"||typeof v=="bigint")&&cd(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=ga);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "innerHTML":case "ref":break;case "innerText":case "textContent":break;default:if(!ha.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,""):_s(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 F=h[R];if(F!=null)switch(R){case "src":v=true;break;case "srcSet":$=true;break;case "children":case "dangerouslySetInnerHTML":throw Error(r(137,c));default:Ln(a,c,R,F,h,null);}}$&&Ln(a,c,"srcSet",h.srcSet,h,null),v&&Ln(a,c,"src",h.src,h,null);return;case "input":on("invalid",a);var Z=R=F=$=null,de=null,we=null;for(v in h)if(h.hasOwnProperty(v)){var Le=h[v];if(Le!=null)switch(v){case "name":$=Le;break;case "type":F=Le;break;case "checked":de=Le;break;case "defaultChecked":we=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:Ln(a,c,v,Le,h,null);}}tv(a,R,Z,de,we,F,$,false);return;case "select":on("invalid",a),v=F=R=null;for($ in h)if(h.hasOwnProperty($)&&(Z=h[$],Z!=null))switch($){case "value":R=Z;break;case "defaultValue":F=Z;break;case "multiple":v=Z;default:Ln(a,c,$,Z,h,null);}c=R,h=F,a.multiple=!!v,c!=null?pa(a,!!v,c,false):h!=null&&pa(a,!!v,h,true);return;case "textarea":on("invalid",a),R=$=v=null;for(F in h)if(h.hasOwnProperty(F)&&(Z=h[F],Z!=null))switch(F){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:Ln(a,c,F,Z,h,null);}U6(a,v,$,R);return;case "option":for(de in h)h.hasOwnProperty(de)&&(v=h[de],v!=null)&&(de==="selected"?a.selected=v&&typeof v!="function"&&typeof v!="symbol":Ln(a,c,de,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<rh.length;v++)on(rh[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(we in h)if(h.hasOwnProperty(we)&&(v=h[we],v!=null))switch(we){case "children":case "dangerouslySetInnerHTML":throw Error(r(137,c));default:Ln(a,c,we,v,h,null);}return;default:if(LS(c)){for(Le in h)h.hasOwnProperty(Le)&&(v=h[Le],v!==void 0&&xx(a,c,Le,v,h,void 0));return}}for(Z in h)h.hasOwnProperty(Z)&&(v=h[Z],v!=null&&Ln(a,c,Z,v,h,null));}function uX(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,F=null,Z=null,de=null,we=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":de=Ve;default:v.hasOwnProperty(Pe)||Ln(a,c,Pe,null,v,Ve);}}for(var Ae in v){var Pe=v[Ae];if(Ve=h[Ae],v.hasOwnProperty(Ae)&&(Pe!=null||Ve!=null))switch(Ae){case "type":R=Pe;break;case "name":$=Pe;break;case "checked":we=Pe;break;case "defaultChecked":Le=Pe;break;case "value":F=Pe;break;case "defaultValue":Z=Pe;break;case "children":case "dangerouslySetInnerHTML":if(Pe!=null)throw Error(r(137,c));break;default:Pe!==Ve&&Ln(a,c,Ae,Pe,v,Ve);}}dl(a,F,Z,de,we,Le,R,$);return;case "select":Pe=F=Z=Ae=null;for(R in h)if(de=h[R],h.hasOwnProperty(R)&&de!=null)switch(R){case "value":break;case "multiple":Pe=de;default:v.hasOwnProperty(R)||Ln(a,c,R,null,v,de);}for($ in v)if(R=v[$],de=h[$],v.hasOwnProperty($)&&(R!=null||de!=null))switch($){case "value":Ae=R;break;case "defaultValue":Z=R;break;case "multiple":F=R;default:R!==de&&Ln(a,c,$,R,v,de);}c=Z,h=F,v=Pe,Ae!=null?pa(a,!!h,Ae,false):!!v!=!!h&&(c!=null?pa(a,!!h,c,true):pa(a,!!h,h?[]:"",false));return;case "textarea":Pe=Ae=null;for(Z in h)if($=h[Z],h.hasOwnProperty(Z)&&$!=null&&!v.hasOwnProperty(Z))switch(Z){case "value":break;case "children":break;default:Ln(a,c,Z,null,v,$);}for(F in v)if($=v[F],R=h[F],v.hasOwnProperty(F)&&($!=null||R!=null))switch(F){case "value":Ae=$;break;case "defaultValue":Pe=$;break;case "children":break;case "dangerouslySetInnerHTML":if($!=null)throw Error(r(91));break;default:$!==R&&Ln(a,c,F,$,v,R);}nv(a,Ae,Pe);return;case "option":for(var vt in h)Ae=h[vt],h.hasOwnProperty(vt)&&Ae!=null&&!v.hasOwnProperty(vt)&&(vt==="selected"?a.selected=false:Ln(a,c,vt,null,v,Ae));for(de in v)Ae=v[de],Pe=h[de],v.hasOwnProperty(de)&&Ae!==Pe&&(Ae!=null||Pe!=null)&&(de==="selected"?a.selected=Ae&&typeof Ae!="function"&&typeof Ae!="symbol":Ln(a,c,de,Ae,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 Pt in h)Ae=h[Pt],h.hasOwnProperty(Pt)&&Ae!=null&&!v.hasOwnProperty(Pt)&&Ln(a,c,Pt,null,v,Ae);for(we in v)if(Ae=v[we],Pe=h[we],v.hasOwnProperty(we)&&Ae!==Pe&&(Ae!=null||Pe!=null))switch(we){case "children":case "dangerouslySetInnerHTML":if(Ae!=null)throw Error(r(137,c));break;default:Ln(a,c,we,Ae,v,Pe);}return;default:if(LS(c)){for(var kn in h)Ae=h[kn],h.hasOwnProperty(kn)&&Ae!==void 0&&!v.hasOwnProperty(kn)&&xx(a,c,kn,void 0,v,Ae);for(Le in v)Ae=v[Le],Pe=h[Le],!v.hasOwnProperty(Le)||Ae===Pe||Ae===void 0&&Pe===void 0||xx(a,c,Le,Ae,v,Pe);return}}for(var ve in h)Ae=h[ve],h.hasOwnProperty(ve)&&Ae!=null&&!v.hasOwnProperty(ve)&&Ln(a,c,ve,null,v,Ae);for(Ve in v)Ae=v[Ve],Pe=h[Ve],!v.hasOwnProperty(Ve)||Ae===Pe||Ae==null&&Pe==null||Ln(a,c,Ve,Ae,v,Pe);}function q4(a){switch(a){case "css":case "script":case "font":case "img":case "image":case "input":case "link":return  true;default:return  false}}function dX(){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,F=$.initiatorType,Z=$.duration;if(R&&Z&&q4(F)){for(F=0,Z=$.responseEnd,v+=1;v<h.length;v++){var de=h[v],we=de.startTime;if(we>Z)break;var Le=de.transferSize,Ve=de.initiatorType;Le&&q4(Ve)&&(de=de.responseEnd,F+=Le*(de<Z?1:(Z-we)/(de-we)));}if(--v,c+=8*(R+F)/($.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 wx=null,Ex=null;function Zv(a){return a.nodeType===9?a:a.ownerDocument}function K4(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 Y4(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 $x(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 Mx=null;function fX(){var a=window.event;return a&&a.type==="popstate"?a===Mx?false:(Mx=a,true):(Mx=null,false)}var X4=typeof setTimeout=="function"?setTimeout:void 0,mX=typeof clearTimeout=="function"?clearTimeout:void 0,Q4=typeof Promise=="function"?Promise:void 0,hX=typeof queueMicrotask=="function"?queueMicrotask:typeof Q4<"u"?function(a){return Q4.resolve(null).then(a).catch(pX)}:X4;function pX(a){setTimeout(function(){throw a});}function Rl(a){return a==="head"}function Z4(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($),Fd(c);return}v--;}else if(h==="$"||h==="$?"||h==="$~"||h==="$!"||h==="&")v++;else if(h==="html")ih(a.ownerDocument.documentElement);else if(h==="head"){h=a.ownerDocument.head,ih(h);for(var R=h.firstChild;R;){var F=R.nextSibling,Z=R.nodeName;R[Nt]||Z==="SCRIPT"||Z==="STYLE"||Z==="LINK"&&R.rel.toLowerCase()==="stylesheet"||h.removeChild(R),R=F;}}else h==="body"&&ih(a.ownerDocument.body);h=$;}while(h);Fd(c);}function J4(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 Tx(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":Tx(h),Ut(h);continue;case "SCRIPT":case "STYLE":continue;case "LINK":if(h.rel.toLowerCase()==="stylesheet")continue}a.removeChild(h);}}function gX(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[Nt])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=Bi(a.nextSibling),a===null)break}return null}function vX(a,c,h){if(c==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!h||(a=Bi(a.nextSibling),a===null))return null;return a}function eI(a,c){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!c||(a=Bi(a.nextSibling),a===null))return null;return a}function Ax(a){return a.data==="$?"||a.data==="$~"}function Rx(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function bX(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 Bi(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 Nx=null;function tI(a){a=a.nextSibling;for(var c=0;a;){if(a.nodeType===8){var h=a.data;if(h==="/$"||h==="/&"){if(c===0)return Bi(a.nextSibling);c--;}else h!=="$"&&h!=="$!"&&h!=="$?"&&h!=="$~"&&h!=="&"||c++;}a=a.nextSibling;}return null}function nI(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 rI(a,c,h){switch(c=Zv(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 ih(a){for(var c=a.attributes;c.length;)a.removeAttributeNode(c[0]);Ut(a);}var zi=new Map,oI=new Set;function Jv(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Ia=G.d;G.d={f:yX,r:SX,D:CX,C:xX,L:wX,m:EX,X:MX,S:$X,M:TX};function yX(){var a=Ia.f(),c=Uv();return a||c}function SX(a){var c=nn(a);c!==null&&c.tag===5&&c.type==="form"?CP(c):Ia.r(a);}var kd=typeof document>"u"?null:document;function iI(a,c,h){var v=kd;if(v&&typeof c=="string"&&c){var $=Ht(c);$='link[rel="'+a+'"][href="'+$+'"]',typeof h=="string"&&($+='[crossorigin="'+h+'"]'),oI.has($)||(oI.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 CX(a){Ia.D(a),iI("dns-prefetch",a,null);}function xX(a,c){Ia.C(a,c),iI("preconnect",a,c);}function wX(a,c,h){Ia.L(a,c,h);var v=kd;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=Bd(a);break;case "script":R=zd(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(sh(R))||c==="script"&&v.querySelector(ah(R))||(c=v.createElement("link"),no(c,"link",a),Sn(c),v.head.appendChild(c)));}}function EX(a,c){Ia.m(a,c);var h=kd;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=zd(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(ah(R)))return}v=h.createElement("link"),no(v,"link",a),Sn(v),h.head.appendChild(v);}}}function $X(a,c,h){Ia.S(a,c,h);var v=kd;if(v&&a){var $=ir(v).hoistableStyles,R=Bd(a);c=c||"default";var F=$.get(R);if(!F){var Z={loading:0,preload:null};if(F=v.querySelector(sh(R)))Z.loading=5;else {a=p({rel:"stylesheet",href:a,"data-precedence":c},h),(h=zi.get(R))&&Px(a,h);var de=F=v.createElement("link");Sn(de),no(de,"link",a),de._p=new Promise(function(we,Le){de.onload=we,de.onerror=Le;}),de.addEventListener("load",function(){Z.loading|=1;}),de.addEventListener("error",function(){Z.loading|=2;}),Z.loading|=4,eb(F,c,v);}F={type:"stylesheet",instance:F,count:1,state:Z},$.set(R,F);}}}function MX(a,c){Ia.X(a,c);var h=kd;if(h&&a){var v=ir(h).hoistableScripts,$=zd(a),R=v.get($);R||(R=h.querySelector(ah($)),R||(a=p({src:a,async:true},c),(c=zi.get($))&&Ix(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 TX(a,c){Ia.M(a,c);var h=kd;if(h&&a){var v=ir(h).hoistableScripts,$=zd(a),R=v.get($);R||(R=h.querySelector(ah($)),R||(a=p({src:a,async:true,type:"module"},c),(c=zi.get($))&&Ix(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 sI(a,c,h,v){var $=($=ne.current)?Jv($):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=Bd(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=Bd(h.href);var R=ir($).hoistableStyles,F=R.get(a);if(F||($=$.ownerDocument||$,F={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},R.set(a,F),(R=$.querySelector(sh(a)))&&!R._p&&(F.instance=R,F.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||AX($,a,h,F.state))),c&&v===null)throw Error(r(528,""));return F}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=zd(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 Bd(a){return 'href="'+Ht(a)+'"'}function sh(a){return 'link[rel="stylesheet"]['+a+"]"}function aI(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function AX(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 zd(a){return '[src="'+Ht(a)+'"]'}function ah(a){return "script[async]"+a}function lI(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",$),eb(v,h.precedence,a),c.instance=v;case "stylesheet":$=Bd(h.href);var R=a.querySelector(sh($));if(R)return c.state.loading|=4,c.instance=R,Sn(R),R;v=aI(h),($=zi.get($))&&Px(v,$),R=(a.ownerDocument||a).createElement("link"),Sn(R);var F=R;return F._p=new Promise(function(Z,de){F.onload=Z,F.onerror=de;}),no(R,"link",v),c.state.loading|=4,eb(R,h.precedence,a),c.instance=R;case "script":return R=zd(h.src),($=a.querySelector(ah(R)))?(c.instance=$,Sn($),$):(v=h,($=zi.get(R))&&(v=p({},h),Ix(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,eb(v,h.precedence,a));return c.instance}function eb(a,c,h){for(var v=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),$=v.length?v[v.length-1]:null,R=$,F=0;F<v.length;F++){var Z=v[F];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 Px(a,c){a.crossOrigin==null&&(a.crossOrigin=c.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=c.referrerPolicy),a.title==null&&(a.title=c.title);}function Ix(a,c){a.crossOrigin==null&&(a.crossOrigin=c.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=c.referrerPolicy),a.integrity==null&&(a.integrity=c.integrity);}var tb=null;function cI(a,c,h){if(tb===null){var v=new Map,$=tb=new Map;$.set(h,v);}else $=tb,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[Nt]||R[Rt]||a==="link"&&R.getAttribute("rel")==="stylesheet")&&R.namespaceURI!=="http://www.w3.org/2000/svg"){var F=R.getAttribute(c)||"";F=a+F;var Z=v.get(F);Z?Z.push(R):v.set(F,[R]);}}return v}function uI(a,c,h){a=a.ownerDocument||a,a.head.insertBefore(h,c==="title"?a.querySelector("head > title"):null);}function RX(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 dI(a){return !(a.type==="stylesheet"&&(a.state.loading&3)===0)}function NX(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 $=Bd(v.href),R=c.querySelector(sh($));if(R){c=R._p,c!==null&&typeof c=="object"&&typeof c.then=="function"&&(a.count++,a=nb.bind(a),c.then(a,a)),h.state.loading|=4,h.instance=R,Sn(R);return}R=c.ownerDocument||c,v=aI(v),($=zi.get($))&&Px(v,$),R=R.createElement("link"),Sn(R);var F=R;F._p=new Promise(function(Z,de){F.onload=Z,F.onerror=de;}),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=nb.bind(a),c.addEventListener("load",h),c.addEventListener("error",h));}}var Ox=0;function PX(a,c){return a.stylesheets&&a.count===0&&ob(a,a.stylesheets),0<a.count||0<a.imgCount?function(h){var v=setTimeout(function(){if(a.stylesheets&&ob(a,a.stylesheets),a.unsuspend){var R=a.unsuspend;a.unsuspend=null,R();}},6e4+c);0<a.imgBytes&&Ox===0&&(Ox=62500*dX());var $=setTimeout(function(){if(a.waitingForImages=false,a.count===0&&(a.stylesheets&&ob(a,a.stylesheets),a.unsuspend)){var R=a.unsuspend;a.unsuspend=null,R();}},(a.imgBytes>Ox?50:800)+c);return a.unsuspend=h,function(){a.unsuspend=null,clearTimeout(v),clearTimeout($);}}:null}function nb(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ob(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a();}}}var rb=null;function ob(a,c){a.stylesheets=null,a.unsuspend!==null&&(a.count++,rb=new Map,c.forEach(IX,a),rb=null,nb.call(a));}function IX(a,c){if(!(c.state.loading&4)){var h=rb.get(a);if(h)var v=h.get(null);else {h=new Map,rb.set(a,h);for(var $=a.querySelectorAll("link[data-precedence],style[data-precedence]"),R=0;R<$.length;R++){var F=$[R];(F.nodeName==="LINK"||F.getAttribute("media")!=="not all")&&(h.set(F.dataset.precedence,F),v=F);}v&&h.set(null,v);}$=c.instance,F=$.getAttribute("data-precedence"),R=h.get(F)||v,R===v&&h.set(null,$),h.set(F,$),this.count++,v=nb.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 lh={$$typeof:M,Provider:null,Consumer:null,_currentValue:j,_currentValue2:j,_threadCount:0};function OX(a,c,h,v,$,R,F,Z,de){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=F,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=de,this.incompleteTransitions=new Map;}function fI(a,c,h,v,$,R,F,Z,de,we,Le,Ve){return a=new OX(a,c,h,F,de,we,Le,Ve,Z),c=1,R===true&&(c|=24),R=li(3,null,null,c),a.current=R,R.stateNode=a,c=fC(),c.refCount++,a.pooledCache=c,c.refCount++,R.memoizedState={element:v,isDehydrated:h,cache:c},gC(R),a}function mI(a){return a?(a=gd,a):gd}function hI(a,c,h,v,$,R){$=mI($),v.context===null?v.context=$:v.pendingContext=$,v=bl(c),v.payload={element:h},R=R===void 0?null:R,R!==null&&(v.callback=R),h=yl(a,v,c),h!==null&&(Ko(h,a,c),Fm(h,a,c));}function pI(a,c){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var h=a.retryLane;a.retryLane=h!==0&&h<c?h:c;}}function Dx(a,c){pI(a,c),(a=a.alternate)&&pI(a,c);}function gI(a){if(a.tag===13||a.tag===31){var c=_c(a,67108864);c!==null&&Ko(c,a,67108864),Dx(a,67108864);}}function vI(a){if(a.tag===13||a.tag===31){var c=mi();c=Xe(c);var h=_c(a,c);h!==null&&Ko(h,a,c),Dx(a,c);}}var ib=true;function DX(a,c,h,v){var $=L.T;L.T=null;var R=G.p;try{G.p=2,_x(a,c,h,v);}finally{G.p=R,L.T=$;}}function _X(a,c,h,v){var $=L.T;L.T=null;var R=G.p;try{G.p=8,_x(a,c,h,v);}finally{G.p=R,L.T=$;}}function _x(a,c,h,v){if(ib){var $=Lx(v);if($===null)Cx(a,c,v,sb,h),yI(a,v);else if(kX($,a,c,h,v))v.stopPropagation();else if(yI(a,v),c&4&&-1<LX.indexOf(a)){for(;$!==null;){var R=nn($);if(R!==null)switch(R.tag){case 3:if(R=R.stateNode,R.current.memoizedState.isDehydrated){var F=ut(R.pendingLanes);if(F!==0){var Z=R;for(Z.pendingLanes|=2,Z.entangledLanes|=2;F;){var de=1<<31-lt(F);Z.entanglements[1]|=de,F&=~de;}zs(R),(Cn&6)===0&&(Vv=Ne()+500,nh(0));}}break;case 31:case 13:Z=_c(R,2),Z!==null&&Ko(Z,R,2),Uv(),Dx(R,2);}if(R=Lx(v),R===null&&Cx(a,c,v,sb,h),R===$)break;$=R;}$!==null&&v.stopPropagation();}else Cx(a,c,v,null,h);}}function Lx(a){return a=BS(a),kx(a)}var sb=null;function kx(a){if(sb=null,a=Jt(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 sb=a,null}function bI(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 We:return 2;case je:return 8;case et:case it:return 32;case Ke:return 268435456;default:return 32}default:return 32}}var Bx=false,Nl=null,Pl=null,Il=null,ch=new Map,uh=new Map,Ol=[],LX="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 yI(a,c){switch(a){case "focusin":case "focusout":Nl=null;break;case "dragenter":case "dragleave":Pl=null;break;case "mouseover":case "mouseout":Il=null;break;case "pointerover":case "pointerout":ch.delete(c.pointerId);break;case "gotpointercapture":case "lostpointercapture":uh.delete(c.pointerId);}}function dh(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&&gI(c)),a):(a.eventSystemFlags|=v,c=a.targetContainers,$!==null&&c.indexOf($)===-1&&c.push($),a)}function kX(a,c,h,v,$){switch(c){case "focusin":return Nl=dh(Nl,a,c,h,v,$),true;case "dragenter":return Pl=dh(Pl,a,c,h,v,$),true;case "mouseover":return Il=dh(Il,a,c,h,v,$),true;case "pointerover":var R=$.pointerId;return ch.set(R,dh(ch.get(R)||null,a,c,h,v,$)),true;case "gotpointercapture":return R=$.pointerId,uh.set(R,dh(uh.get(R)||null,a,c,h,v,$)),true}return  false}function SI(a){var c=Jt(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(){vI(h);});return}}else if(c===31){if(c=l(h),c!==null){a.blockedOn=c,Et(a.priority,function(){vI(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 ab(a){if(a.blockedOn!==null)return  false;for(var c=a.targetContainers;0<c.length;){var h=Lx(a.nativeEvent);if(h===null){h=a.nativeEvent;var v=new h.constructor(h.type,h);kS=v,h.target.dispatchEvent(v),kS=null;}else return c=nn(h),c!==null&&gI(c),a.blockedOn=h,false;c.shift();}return  true}function CI(a,c,h){ab(a)&&h.delete(c);}function BX(){Bx=false,Nl!==null&&ab(Nl)&&(Nl=null),Pl!==null&&ab(Pl)&&(Pl=null),Il!==null&&ab(Il)&&(Il=null),ch.forEach(CI),uh.forEach(CI);}function lb(a,c){a.blockedOn===c&&(a.blockedOn=null,Bx||(Bx=true,e.unstable_scheduleCallback(e.unstable_NormalPriority,BX)));}var cb=null;function xI(a){cb!==a&&(cb=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){cb===a&&(cb=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(kx(v||h)===null)continue;break}var R=nn(h);R!==null&&(a.splice(c,3),c-=3,LC(R,{pending:true,data:$,method:h.method,action:v},v,$));}}));}function Fd(a){function c(de){return lb(de,a)}Nl!==null&&lb(Nl,a),Pl!==null&&lb(Pl,a),Il!==null&&lb(Il,a),ch.forEach(c),uh.forEach(c);for(var h=0;h<Ol.length;h++){var v=Ol[h];v.blockedOn===a&&(v.blockedOn=null);}for(;0<Ol.length&&(h=Ol[0],h.blockedOn===null);)SI(h),h.blockedOn===null&&Ol.shift();if(h=(a.ownerDocument||a).$$reactFormReplay,h!=null)for(v=0;v<h.length;v+=3){var $=h[v],R=h[v+1],F=$[yn]||null;if(typeof R=="function")F||xI(h);else if(F){var Z=null;if(R&&R.hasAttribute("formAction")){if($=R,F=R[yn]||null)Z=F.formAction;else if(kx($)!==null)continue}else Z=F.action;typeof Z=="function"?h[v+1]=Z:(h.splice(v,3),v-=3),xI(h);}}}function wI(){function a(R){R.canIntercept&&R.info==="react-transition"&&R.intercept({handler:function(){return new Promise(function(F){return $=F})},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 zx(a){this._internalRoot=a;}ub.prototype.render=zx.prototype.render=function(a){var c=this._internalRoot;if(c===null)throw Error(r(409));var h=c.current,v=mi();hI(h,v,a,c,null,null);},ub.prototype.unmount=zx.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var c=a.containerInfo;hI(a.current,2,null,a,null,null),Uv(),c[Wn]=null;}};function ub(a){this._internalRoot=a;}ub.prototype.unstable_scheduleHydration=function(a){if(a){var c=ft();a={blockedOn:null,target:a,priority:c};for(var h=0;h<Ol.length&&c!==0&&c<Ol[h].priority;h++);Ol.splice(h,0,a),h===0&&SI(a);}};var EI=t.version;if(EI!=="19.2.4")throw Error(r(527,EI,"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 zX={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var db=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!db.isDisabled&&db.supportsFiber)try{Je=db.inject(zX),ke=db;}catch{}}return fh.createRoot=function(a,c){if(!o(a))throw Error(r(299));var h=false,v="",$=PP,R=IP,F=OP;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&&(F=c.onRecoverableError)),c=fI(a,1,false,null,null,h,v,null,$,R,F,wI),a[Wn]=c.current,Sx(a),new zx(c)},fh.hydrateRoot=function(a,c,h){if(!o(a))throw Error(r(299));var v=false,$="",R=PP,F=IP,Z=OP,de=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&&(F=h.onCaughtError),h.onRecoverableError!==void 0&&(Z=h.onRecoverableError),h.formState!==void 0&&(de=h.formState)),c=fI(a,1,true,c,h??null,v,$,de,R,F,Z,wI),c.context=mI(null),h=c.current,v=mi(),v=Xe(v),$=bl(v),$.callback=null,yl(h,$,v),h=v,c.current.lanes=h,Se(c,h),zs(c),a[Wn]=c.current,Sx(a),new ub(c)},fh.version="19.2.4",fh}var FI;function sZ(){if(FI)return Vx.exports;FI=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(),Vx.exports=iZ(),Vx.exports}var MB=sZ();const Lo="Bilibili-Gate",Kr="bilibili-gate",WM="bilibili_gate",HI="bili-gate",po=EB(Kr),aZ=EB(Kr+"-verbose"),TB="https://api.bilibili.com",qM="https://app.bilibili.com",pp={appkey:"4409e2ce8ffd12b8",appsec:"59b43e04ad6965f34319062b478f83dd"},Is=`${Kr}-root`,lZ=`${Kr}-video-grid`,Jl=`${Kr}-video-card`,AB=`${Kr}-video-card-active`,RB=`${Kr}-video-card-cover`,NB=`${Kr}-tab-bar`,cZ=`${Kr}-video-card__recommend-reason`,ag="请求失败, 请重试 !!!",KM="操作失败!",mb="bilibili.com";var Ka=(e=>(e[e.Tld=mb]="Tld",e.Main=`www.${mb}`,e.Space=`space.${mb}`,e.Search=`search.${mb}`,e))(Ka||{});const{hostname:gp,pathname:VI}=location;gp===Ka.Tld||gp.endsWith(`.${Ka.Tld}`);const PB=[Ka.Tld,Ka.Main].includes(gp),uZ=gp===Ka.Space,dZ=gp===Ka.Search,el=PB&&(VI==="/"||VI==="/index.html");function YM(e){return function(...n){const[r,...o]=n,i=`%c${Lo}%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 fZ=YM(console.log),Bo=YM(console.warn),mZ=YM(console.error);var Yf=(e=>(e.Pink="#f69",e.Blue="#00aeec",e))(Yf||{});function da(e,t){const n=MB.createRoot(e,t);return e.dataset.gateReactRoot="true",n}var Gx={exports:{}},mh={};var jI;function hZ(){if(jI)return mh;jI=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 mh.Fragment=t,mh.jsx=n,mh.jsxs=n,mh}var UI;function pZ(){return UI||(UI=1,Gx.exports=hZ()),Gx.exports}var ei=pZ();function gZ(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 vZ(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 bZ=(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(vZ(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=gZ(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-",Qy="-moz-",xn="-webkit-",IB="comm",XM="rule",QM="decl",yZ="@import",OB="@keyframes",SZ="@layer",CZ=Math.abs,m1=String.fromCharCode,xZ=Object.assign;function wZ(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 DB(e){return e.trim()}function EZ(e,t){return (e=t.exec(e))?e[0]:e}function En(e,t,n){return e.replace(t,n)}function l$(e,t){return e.indexOf(t)}function so(e,t){return e.charCodeAt(t)|0}function vp(e,t,n){return e.slice(t,n)}function qs(e){return e.length}function ZM(e){return e.length}function hb(e,t){return t.push(e),e}function $Z(e,t){return e.map(t).join("")}var h1=1,Rf=1,_B=0,ni=0,$r=0,Xf="";function p1(e,t,n,r,o,i,s){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:h1,column:Rf,length:s,return:""}}function hh(e,t){return xZ(p1("",null,null,"",null,null,0),e,{length:-e.length},t)}function MZ(){return $r}function TZ(){return $r=ni>0?so(Xf,--ni):0,Rf--,$r===10&&(Rf=1,h1--),$r}function Ti(){return $r=ni<_B?so(Xf,ni++):0,Rf++,$r===10&&(Rf=1,h1++),$r}function na(){return so(Xf,ni)}function ny(){return ni}function lg(e,t){return vp(Xf,e,t)}function bp(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 LB(e){return h1=Rf=1,_B=qs(Xf=e),ni=0,[]}function kB(e){return Xf="",e}function ry(e){return DB(lg(ni-1,c$(e===91?e+2:e===40?e+1:e)))}function AZ(e){for(;($r=na())&&$r<33;)Ti();return bp(e)>2||bp($r)>3?"":" "}function RZ(e,t){for(;--t&&Ti()&&!($r<48||$r>102||$r>57&&$r<65||$r>70&&$r<97););return lg(e,ny()+(t<6&&na()==32&&Ti()==32))}function c$(e){for(;Ti();)switch($r){case e:return ni;case 34:case 39:e!==34&&e!==39&&c$($r);break;case 40:e===41&&c$(e);break;case 92:Ti();break}return ni}function NZ(e,t){for(;Ti()&&e+$r!==57;)if(e+$r===84&&na()===47)break;return "/*"+lg(t,ni-1)+"*"+m1(e===47?e:Ti())}function PZ(e){for(;!bp(na());)Ti();return lg(e,ni)}function IZ(e){return kB(oy("",null,null,null,[""],e=LB(e),0,[0],e))}function oy(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,x=1,w=1,E=0,M="",T=o,A=i,I=r,N=M;x;)switch(y=E,E=Ti()){case 40:if(y!=108&&so(N,p-1)==58){l$(N+=En(ry(E),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:N+=ry(E);break;case 9:case 10:case 13:case 32:N+=AZ(y);break;case 92:N+=RZ(ny()-1,7);continue;case 47:switch(na()){case 42:case 47:hb(OZ(NZ(Ti(),ny()),t,n),u);break;default:N+="/";}break;case 123*S:l[d++]=qs(N)*w;case 125*S:case 59:case 0:switch(E){case 0:case 125:x=0;case 59+m:w==-1&&(N=En(N,/\f/g,"")),b>0&&qs(N)-p&&hb(b>32?GI(N+";",r,n,p-1):GI(En(N," ","")+";",r,n,p-2),u);break;case 59:N+=";";default:if(hb(I=WI(N,t,n,d,m,o,l,M,T=[],A=[],p),i),E===123)if(m===0)oy(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:oy(e,I,I,r&&hb(WI(e,I,I,0,0,o,l,M,o,T=[],p),A),o,A,p,l,r?T:A);break;default:oy(N,I,I,I,[""],A,0,l,A);}}d=m=b=0,S=w=1,M=N="",p=s;break;case 58:p=1+qs(N),b=y;default:if(S<1){if(E==123)--S;else if(E==125&&S++==0&&TZ()==125)continue}switch(N+=m1(E),E*S){case 38:w=m>0?1:(N+="\f",-1);break;case 44:l[d++]=(qs(N)-1)*w,w=1;break;case 64:na()===45&&(N+=ry(Ti())),g=na(),m=p=qs(M=N+=PZ(ny())),E++;break;case 45:y===45&&qs(N)==2&&(S=0);}}return i}function WI(e,t,n,r,o,i,s,l,u,d,m){for(var p=o-1,g=o===0?i:[""],b=ZM(g),y=0,S=0,x=0;y<r;++y)for(var w=0,E=vp(e,p+1,p=CZ(S=s[y])),M=e;w<b;++w)(M=DB(S>0?g[w]+" "+E:En(E,/&\f/g,g[w])))&&(u[x++]=M);return p1(e,t,n,o===0?XM:l,u,d,m)}function OZ(e,t,n){return p1(e,t,n,IB,m1(MZ()),vp(e,2,-2),0)}function GI(e,t,n,r){return p1(e,t,n,QM,vp(e,0,r),vp(e,r+1,-1),r)}function vf(e,t){for(var n="",r=ZM(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function DZ(e,t,n,r){switch(e.type){case SZ:if(e.children.length)break;case yZ:case QM:return e.return=e.return||e.value;case IB:return "";case OB:return e.return=e.value+"{"+vf(e.children,r)+"}";case XM:e.value=e.props.join(",");}return qs(n=vf(e.children,r))?e.return=e.value+"{"+n+"}":""}function _Z(e){var t=ZM(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 LZ(e){return function(t){t.root||(t=t.return)&&e(t);}}function kZ(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var BZ=function(t,n,r){for(var o=0,i=0;o=i,i=na(),o===38&&i===12&&(n[r]=1),!bp(i);)Ti();return lg(t,ni)},zZ=function(t,n){var r=-1,o=44;do switch(bp(o)){case 0:o===38&&na()===12&&(n[r]=1),t[r]+=BZ(ni-1,n,r);break;case 2:t[r]+=ry(o);break;case 4:if(o===44){t[++r]=na()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=m1(o);}while(o=Ti());return t},FZ=function(t,n){return kB(zZ(LB(t),n))},qI=new WeakMap,HZ=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&&!qI.get(r))&&!o){qI.set(t,true);for(var i=[],s=FZ(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];}}},VZ=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function BB(e,t){switch(wZ(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+Qy+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(qs(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"+Qy+(so(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~l$(e,"stretch")?BB(En(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(so(e,t+1)!==115)break;case 6444:switch(so(e,qs(e)-3-(~l$(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 jZ=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case QM:t.return=BB(t.value,t.length);break;case OB:return vf([hh(t,{value:En(t.value,"@","@"+xn)})],o);case XM:if(t.length)return $Z(t.props,function(i){switch(EZ(i,/(::plac\w+|:read-\w+)/)){case ":read-only":case ":read-write":return vf([hh(t,{props:[En(i,/:(read-\w+)/,":"+Qy+"$1")]})],o);case "::placeholder":return vf([hh(t,{props:[En(i,/:(plac\w+)/,":"+xn+"input-$1")]}),hh(t,{props:[En(i,/:(plac\w+)/,":"+Qy+"$1")]}),hh(t,{props:[En(i,/:(plac\w+)/,Co+"input-$1")]})],o)}return ""})}},UZ=[jZ],zB=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 x=S.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""));});}var o=t.stylisPlugins||UZ,i={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var x=S.getAttribute("data-emotion").split(" "),w=1;w<x.length;w++)i[x[w]]=true;l.push(S);});var u,d=[HZ,VZ];{var m,p=[DZ,LZ(function(S){m.insert(S);})],g=_Z(d.concat(o,p)),b=function(x){return vf(IZ(x),g)};u=function(x,w,E,M){m=E,b(x?x+"{"+w.styles+"}":w.styles),M&&(y.inserted[w.name]=true);};}var y={key:n,sheet:new bZ({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 qx={exports:{}},Mn={};var KI;function WZ(){if(KI)return Mn;KI=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,x=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===x||A.$$typeof===w||A.$$typeof===E||A.$$typeof===S)},Mn.typeOf=M,Mn}var YI;function GZ(){return YI||(YI=1,qx.exports=WZ()),qx.exports}var Kx,XI;function qZ(){if(XI)return Kx;XI=1;var e=GZ(),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,x){if(typeof S!="string"){if(g){var w=p(S);w&&w!==g&&b(y,w,x);}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]&&!(x&&x[I])&&!(T&&T[I])&&!(M&&M[I])){var N=m(S,I);try{l(y,I,N);}catch{}}}}return y}return Kx=b,Kx}qZ();var KZ=true;function JM(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ");}),r}var FB=function(t,n,r){var o=t.key+"-"+n.name;(r===false||KZ===false)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},eT=function(t,n,r){FB(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 YZ(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 XZ={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},QZ=/[A-Z]|^ms/g,ZZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,HB=function(t){return t.charCodeAt(1)===45},QI=function(t){return t!=null&&typeof t!="boolean"},Yx=kZ(function(e){return HB(e)?e:e.replace(QZ,"-$&").toLowerCase()}),ZI=function(t,n){switch(t){case "animation":case "animationName":if(typeof n=="string")return n.replace(ZZ,function(r,o,i){return Ks={name:o,styles:i,next:Ks},o})}return XZ[t]!==1&&!HB(t)&&typeof n=="number"&&n!==0?n+"px":n};function yp(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 Ks={name:o.name,styles:o.styles,next:Ks},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Ks={name:s.name,styles:s.styles,next:Ks},s=s.next;var l=i.styles+";";return l}return JZ(e,t,n)}case "function":{if(e!==void 0){var u=Ks,d=n(e);return Ks=u,yp(e,t,d)}break}}var m=n;if(t==null)return m;var p=t[m];return p!==void 0?p:m}function JZ(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=yp(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]+"}":QI(l)&&(r+=Yx(i)+":"+ZI(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++)QI(s[u])&&(r+=Yx(i)+":"+ZI(i,s[u])+";");else {var d=yp(e,t,s);switch(i){case "animation":case "animationName":{r+=Yx(i)+":"+d+";";break}default:r+=i+"{"+d+"}";}}}return r}var JI=/label:\s*([^\s;{]+)\s*(;|$)/g,Ks;function bf(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="";Ks=void 0;var i=e[0];if(i==null||i.raw===void 0)r=false,o+=yp(n,t,i);else {var s=i;o+=s[0];}for(var l=1;l<e.length;l++)if(o+=yp(n,t,e[l]),r){var u=i;o+=u[l];}JI.lastIndex=0;for(var d="",m;(m=JI.exec(o))!==null;)d+="-"+m[1];var p=YZ(o)+d;return {name:p,styles:o,next:Ks}}var eJ=function(t){return t()},VB=i$.useInsertionEffect?i$.useInsertionEffect:false,tJ=VB||eJ,e5=VB||f.useLayoutEffect,jB=f.createContext(typeof HTMLElement<"u"?zB({key:"css"}):null),nJ=jB.Provider,UB=function(t){return f.forwardRef(function(n,r){var o=f.useContext(jB);return t(n,o,r)})},WB=f.createContext({}),cg={}.hasOwnProperty,u$="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",tT=function(t,n){var r={};for(var o in n)cg.call(n,o)&&(r[o]=n[o]);return r[u$]=t,r},rJ=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return FB(n,r,o),tJ(function(){return eT(n,r,o)}),null},oJ=UB(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[u$],i=[r],s="";typeof e.className=="string"?s=JM(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var l=bf(i,void 0,f.useContext(WB));s+=t.key+"-"+l.name;var u={};for(var d in e)cg.call(e,d)&&d!=="css"&&d!==u$&&(u[d]=e[d]);return u.className=s,n&&(u.ref=n),f.createElement(f.Fragment,null,f.createElement(rJ,{cache:t,serialized:l,isStringTag:typeof o=="string"}),f.createElement(o,u))}),nT=oJ,_e=ei.Fragment,C=function(t,n,r){return cg.call(n,"css")?ei.jsx(nT,tT(t,n),r):ei.jsx(t,n,r)},B=function(t,n,r){return cg.call(n,"css")?ei.jsxs(nT,tT(t,n),r):ei.jsxs(t,n,r)};const Fs=new WeakMap,ji=new WeakMap,ec=new WeakMap,sf=new WeakMap;var iJ={};const Su=Symbol("anyProducer"),t5=Promise.resolve(),g1=Symbol("listenerAdded"),v1=Symbol("listenerRemoved"),af=new WeakMap,lf=new WeakMap,GB=Symbol("suppressAllEnqueue"),iy=new WeakMap;let Xx=false;const Ba=e=>typeof e=="string"||typeof e=="symbol"||typeof e=="number";function Qx(e){return e[Symbol.dispose]=e,e}function sy(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 Kc(e){if(!Ba(e))throw new TypeError("`eventName` must be a string, symbol, or number")}function pb(e){if(typeof e!="function")throw new TypeError("listener must be a function")}function _a(e,t){const n=ji.get(e);if(n.has(t))return n.get(t)}function Sp(e,t){const n=Ba(t)?t:Su,r=ec.get(e);if(r.has(n))return r.get(n)}function n5(e,t,n,r){if(KB(e,t))return;const o=ec.get(e);if(!o.has(t)&&!o.get(Su)?.size)return;const i=Promise.resolve(n),s=async()=>_h(t,await i,r);if(o.has(t))for(const l of o.get(t))l.enqueue(s());if(o.has(Su))for(const l of o.get(Su))l.enqueue(s());}function r5(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=Ba(m)?m:Su;let g=Sp(e,m);g||(g=new Set,ec.get(e).set(p,g)),g.add(l);}const u=()=>{for(const m of t){const p=Ba(m)?m:Su,g=Sp(e,m);g&&(g.delete(l),g.size===0&&ec.get(e).delete(p));}},d=()=>{i&&(i=void 0,s(),u(),o());};return s=sy(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 o5(e){if(e===void 0)return m$;if(!Array.isArray(e))throw new TypeError("`methodNames` must be an array of strings");for(const t of e)if(!m$.includes(t))throw typeof t!="string"?new TypeError("`methodNames` element must be a string"):new Error(`${t} is not Emittery method`);return e}const Ws=e=>e===g1||e===v1;function qB(e,t,n){const r=t.some(s=>!Ba(s))?[GB]:t;let o=iy.get(e);o||(o=new Set,iy.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&&iy.delete(e);}}function KB(e,t){const n=iy.get(e);return n?n.has(GB)||n.has(t):false}function sJ(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&&ji.get(e).delete(r),i}}function qh(e){const t=e?.deinitFn;t&&(e.deinitFn=void 0,t());}const Zy="subscribe",Jy="unsubscribe";function d$(e,{eventName:t,listener:n,action:r,swallowLifecycleError:o=false,removeResubscribedListener:i=false}){if(r===Zy){let u=_a(e,t);u||(u=new Set,ji.get(e).set(t,u));const d=u.size===0,m=u.has(n);if(u.add(n),!Ws(t)&&d&&!KB(e,t)){const p=sf.get(e).get(t);p&&sJ(e,p,n,{eventName:t,set:u});}return {hasSet:true,changed:!m}}const s=_a(e,t);if(!s)return {hasSet:false,changed:false};const l=s.delete(n);if(s.size===0){ji.get(e).delete(t);const u=sf.get(e).get(t);if(o)try{qh(u);}catch{}else qh(u);if(i){const d=_a(e,t);d?.delete(n),d?.size===0&&ji.get(e).delete(t);}}return {hasSet:true,changed:l}}function f$(e,{eventName:t,listener:n,action:r,swallowErrors:o=false}){const i=r===Zy,s=i?"subscribe":"unsubscribe",l=i?g1:v1;if(o){try{e.logIfDebugEnabled(s,t,void 0);}catch{}if(!Ws(t))try{e0(e,l,{eventName:t,listener:n});}catch{}return}e.logIfDebugEnabled(s,t,void 0),Ws(t)||e0(e,l,{eventName:t,listener:n});}function aJ(e,t,n){qB(e,t,()=>{for(const r of t){const{hasSet:o}=d$(e,{eventName:r,listener:n,action:Jy,swallowLifecycleError:!0,removeResubscribedListener:!0});o&&f$(e,{eventName:r,listener:n,action:Jy,swallowErrors:!0});}});}function i5(e,t){const n=Sp(e,t);if(n){for(const r of n)r.finish();n.clear();}}function Zx(e){const t=ec.get(e);for(const[n,r]of t.entries()){for(const o of r)o.finish();r.clear(),t.delete(n);}}const _h=(e,t,n)=>n?{name:e,data:t}:{name:e};function e0(e,t,n){af.set(e,(af.get(e)??0)+1),lf.set(e,(lf.get(e)??0)+1);try{uo.prototype.emit.call(e,t,n);}finally{af.set(e,(af.get(e)??0)-1);}}class uo{static mixin(t,n){return n=o5(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 iJ!="object")return Xx;const{env:t}=globalThis.process??{env:{}};return t.DEBUG==="emittery"||t.DEBUG==="*"||Xx}static set isDebugEnabled(t){Xx=t;}constructor(t={}){Fs.set(this,new Set),ji.set(this,new Map),ec.set(this,new Map),sf.set(this,new Map),ec.get(this).set(Su,new Set);for(const n of m$)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}={}){pb(n),t=Array.isArray(t)?t:[t];const o=[];try{for(const u of t){Kc(u);const{changed:d}=d$(this,{eventName:u,listener:n,action:Zy});d&&o.push(u),f$(this,{eventName:u,listener:n,action:Zy});}}catch(u){throw aJ(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=sy(r,l,{swallowErrors:true}),Qx(l)}off(t,n){pb(n),t=Array.isArray(t)?t:[t];for(const r of t)Kc(r),d$(this,{eventName:r,listener:n,action:Jy}),f$(this,{eventName:r,listener:n,action:Jy});}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 x of t)try{this.off(x,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=sy(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)Kc(r);return r5(this,t,{signal:n})}async emit(t,n){if(Kc(t),Ws(t)){const m=lf.get(this)??0;if((af.get(this)??0)===0||m===0)throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");lf.set(this,m-1);}Ws(t)||this.logIfDebugEnabled("emit",t,n);const r=arguments.length>1;n5(this,t,n,r);const o=_a(this,t)??new Set,i=Fs.get(this),s=[...o],l=Ws(t)?[]:[...i];await t5;const d=(await Promise.allSettled([...s.map(async m=>{if(o.has(m))return m(_h(t,n,r))}),...l.map(async m=>{if(i.has(m))return m(_h(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(Kc(t),Ws(t)){const u=lf.get(this)??0;if((af.get(this)??0)===0||u===0)throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");lf.set(this,u-1);}Ws(t)||this.logIfDebugEnabled("emitSerial",t,n);const r=arguments.length>1;n5(this,t,n,r);const o=_a(this,t)??new Set,i=Fs.get(this),s=[...o],l=Ws(t)?[]:[...i];await t5;for(const u of s)o.has(u)&&await u(_h(t,n,r));for(const u of l)i.has(u)&&await u(_h(t,n,r));}onAny(t,{signal:n}={}){pb(t),this.logIfDebugEnabled("subscribeAny",void 0,void 0),Fs.get(this).add(t),e0(this,g1,{listener:t});let r=()=>{};const o=()=>{r(),this.offAny(t);};return r=sy(n,o,{swallowErrors:true}),Qx(o)}anyEvent({signal:t}={}){return r5(this,void 0,{signal:t})}offAny(t){pb(t),this.logIfDebugEnabled("unsubscribeAny",void 0,void 0),e0(this,v1,{listener:t}),Fs.get(this).delete(t);}clearListeners(t){t=Array.isArray(t)?t:[t];const n=t.some(r=>!Ba(r));qB(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(Ba(i)){const s=_a(this,i),l=s?.size>0;s?.clear(),i5(this,i);const u=l?sf.get(this).get(i):void 0;try{qh(u);}catch(d){o=o===r?d:o;}}else {Fs.get(this).clear(),Zx(this);for(const[s,l]of ji.get(this).entries()){const u=l.size>0;l.clear();const d=u?sf.get(this).get(s):void 0;try{qh(d);}catch(m){o=o===r?m:o;}l.clear(),ji.get(this).delete(s);}Fs.get(this).clear(),Zx(this);}}}finally{if(n){Fs.get(this).clear();for(const i of ji.get(this).values())i.clear();ji.get(this).clear(),Zx(this);}else for(const i of t)Ba(i)&&(_a(this,i)?.clear(),ji.get(this).delete(i),i5(this,i));}if(o!==r)throw o});}init(t,n){if(Kc(t),Ws(t))throw new TypeError("`eventName` cannot be a meta event");if(typeof n!="function")throw new TypeError("`initFn` must be a function");const r=sf.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),_a(this,t)?.size>0)try{const s=n();typeof s=="function"&&(o.deinitFn=s);}catch(s){throw r.delete(t),s}return Qx(()=>{try{qh(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(Ba(r)){n+=Fs.get(this).size+(_a(this,r)?.size??0)+(Sp(this,r)?.size??0)+(Sp(this)?.size??0);continue}r!==void 0&&Kc(r),n+=Fs.get(this).size;for(const o of ji.get(this).values())n+=o.size;for(const o of ec.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=o5(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 m$=Object.getOwnPropertyNames(uo.prototype).filter(e=>e!=="constructor");Object.defineProperty(uo,"listenerAdded",{value:g1,writable:false,enumerable:true,configurable:false});Object.defineProperty(uo,"listenerRemoved",{value:v1,writable:false,enumerable:true,configurable:false});const Mt=e=>{const t=f.useRef(e);return t.current=e,f.useCallback((...r)=>t.current?.(...r),[])};function Ri(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}const s5=Ri()?f.useLayoutEffect:f.useEffect,Rn=(e,t)=>{const n=f.useRef(true);s5(()=>e(n.current),t),s5(()=>(n.current=false,()=>{n.current=true;}),[]);},ay=(e,t)=>{Rn(n=>{if(!n)return e()},t);},YB=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 Jx={exports:{}},Tn={};var a5;function lJ(){if(a5)return Tn;a5=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(x){if(typeof x=="object"&&x!==null){var w=x.$$typeof;switch(w){case e:switch(x=x.type,x){case n:case o:case r:case d:case m:return x;default:switch(x=x&&x.$$typeof,x){case l:case s:case u:case g:case p:case i:return x;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(x){return S(x)===s},Tn.isContextProvider=function(x){return S(x)===i},Tn.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Tn.isForwardRef=function(x){return S(x)===u},Tn.isFragment=function(x){return S(x)===n},Tn.isLazy=function(x){return S(x)===g},Tn.isMemo=function(x){return S(x)===p},Tn.isPortal=function(x){return S(x)===t},Tn.isProfiler=function(x){return S(x)===o},Tn.isStrictMode=function(x){return S(x)===r},Tn.isSuspense=function(x){return S(x)===d},Tn.isSuspenseList=function(x){return S(x)===m},Tn.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===d||x===m||x===b||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===p||x.$$typeof===i||x.$$typeof===s||x.$$typeof===u||x.$$typeof===y||x.getModuleId!==void 0)},Tn.typeOf=S,Tn}var l5;function cJ(){return l5||(l5=1,Jx.exports=lJ()),Jx.exports}var ew=cJ();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 uJ=Symbol.for("react.element"),dJ=Symbol.for("react.transitional.element"),fJ=Symbol.for("react.fragment");function XB(e){return e&&typeof e=="object"&&(e.$$typeof===uJ||e.$$typeof===dJ)&&e.type===fJ}const mJ=Number(f.version.split(".")[0]),hJ=(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=>{hJ(r,n);});}},tl=(...e)=>Qf(()=>Yr(...e),e,(t,n)=>t.length!==n.length||t.every((r,o)=>r!==n[o])),Ku=e=>{if(!e)return  false;if(rT(e)&&mJ>=19)return  true;const t=ew.isMemo(e)?e.type.type:e.type;return !(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==ew.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==ew.ForwardRef)};function rT(e){return f.isValidElement(e)&&!XB(e)}const pJ=e=>rT(e)&&Ku(e),yc=e=>{if(e&&rT(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Wi(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 QB(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]=QB(s[o],i,n,r),s}function bi(e,t,n,r=false){return t.length&&r&&n===void 0&&!Wi(e,t.slice(0,-1))?e:QB(e,t,n,r)}function gJ(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function c5(e){return Array.isArray(e)?[]:{}}const vJ=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function bJ(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let o=c5(e[0]);return e.forEach(i=>{function s(l,u){const d=new Set(u),m=Wi(i,l),p=Array.isArray(m);if(p||gJ(m)){if(!d.has(m)){d.add(m);const g=Wi(o,l);p?o=bi(o,l,r(g,m)):(!g||typeof g!="object")&&(o=bi(o,l,c5(m))),vJ(m).forEach(b=>{Object.getOwnPropertyDescriptor(m,b).enumerable&&s([...l,b],d);});}}else o=bi(o,l,m);}s([]);}),o}function cf(...e){return bJ(e)}let h$={};const yJ=e=>{};function SJ(e,t){}function CJ(e,t){}function xJ(){h$={};}function ZB(e,t,n){!t&&!h$[n]&&(e(false,n),h$[n]=true);}function Pr(e,t){ZB(SJ,e,t);}function wJ(e,t){ZB(CJ,e,t);}Pr.preMessage=yJ;Pr.resetWarned=xJ;Pr.noteOnce=wJ;function Fn(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)):XB(r)&&r.props?n=n.concat(ri(r.props.children,t)):n.push(r));}),n}const EJ=f.createContext({});function Nf(e){return e instanceof HTMLElement||e instanceof SVGElement}function Bu(e){return e&&typeof e=="object"&&Nf(e.nativeElement)?e.nativeElement:Nf(e)?e:null}const p$=f.createContext(null);function $J({children:e,onBatchResize:t}){const n=f.useRef(0),r=f.useRef([]),o=f.useContext(p$),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(p$.Provider,{value:i},e)}const Kl=new Map;function MJ(e){e.forEach(t=>{const{target:n}=t;Kl.get(n)?.forEach(r=>r(n));});}let tw;function JB(){return tw||(tw=new ResizeObserver(MJ)),tw}function TJ(e,t){Kl.has(e)||(Kl.set(e,new Set),JB().observe(e)),Kl.get(e).add(t);}function AJ(e,t){Kl.has(e)&&(Kl.get(e).delete(t),Kl.get(e).size||(JB().unobserve(e),Kl.delete(e)));}function e9(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,x=p===Math.round(d)?d:p,w={...y,offsetWidth:S,offsetHeight:x};r?.(w,l),Promise.resolve().then(()=>{n?.(w,l);});}}),s=typeof t=="function";f.useEffect(()=>{const l=s?t():t;return l&&e&&TJ(l,i),()=>{l&&AJ(l,i);}},[e,s?0:t]);}function RJ(e,t){const{children:n,disabled:r,onResize:o,data:i}=e,s=f.useRef(null),l=f.useContext(p$),u=typeof n=="function",d=u?n(s):n,m=!u&&f.isValidElement(d)&&Ku(d),p=m?yc(d):null,g=tl(p,s),b=()=>Bu(s.current);return f.useImperativeHandle(t,()=>b()),e9(!r,b,o,(y,S)=>{l?.(y,S,i);}),m?f.cloneElement(d,{ref:g}):d}const NJ=f.forwardRef(RJ);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 PJ="rc-observer-key";function IJ(e,t){const{children:n}=e;return (typeof n=="function"?[n]:ri(n)).map((o,i)=>{const s=o?.key||`${PJ}-${i}`;return f.createElement(NJ,g$({},e,{key:s,ref:i===0?t:void 0}),o)})}const Cs=f.forwardRef(IJ);Cs.Collection=$J;function t9(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=t9(e[t]))&&(r&&(r+=" "),r+=n);}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Y(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=t9(e))&&(r&&(r+=" "),r+=t);return r}function v$(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 OJ(e){if(Array.isArray(e))return v$(e)}function DJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oT(e,t){if(e){if(typeof e=="string")return v$(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)?v$(e,t):void 0}}function _J(){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 Xt(e){return OJ(e)||DJ(e)||oT(e)||_J()}let n9=e=>+setTimeout(e,16),r9=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(n9=e=>window.requestAnimationFrame(e),r9=e=>window.cancelAnimationFrame(e));let u5=0;const iT=new Map;function o9(e){iT.delete(e);}const Lt=(e,t=1)=>{u5+=1;const n=u5;function r(o){if(o===0)o9(n),e();else {const i=n9(()=>{r(o-1);});iT.set(n,i);}}return r(t),n};Lt.cancel=e=>{const t=iT.get(e);return o9(e),r9(t)};function LJ(e){let t=null;const n=o=>()=>{t=null,e.apply(void 0,Xt(o));},r=(...o)=>{t===null&&(t=Lt(n(o)));};return r.cancel=()=>{Lt.cancel(t),t=null;},r}const Cp="ant",b1="anticon",kJ=["outlined","borderless","filled","underlined"],BJ=(e,t)=>t||(e?`${Cp}-${e}`:Cp),wt=f.createContext({getPrefixCls:BJ,iconPrefixCls:b1}),{Consumer:xIe}=wt,d5={};function jt(e){const t=f.useContext(wt),{getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:i}=t,s=t[e];return {classNames:d5,styles:d5,...s,getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:i}}function xp(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 b$(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 f5="data-rc-order",m5="data-rc-priority",zJ="rc-util-key",y$=new Map;function i9({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:zJ}function y1(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function FJ(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function sT(e){return Array.from((y$.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function s9(e,t={}){if(!Ri())return null;const{csp:n,prepend:r,priority:o=0}=t,i=FJ(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(f5,i),s&&o&&l.setAttribute(m5,`${o}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const u=y1(t),{firstChild:d}=u;if(r){if(s){const m=(t.styles||sT(u)).filter(p=>{if(!["prepend","prependQueue"].includes(p.getAttribute(f5)))return  false;const g=Number(p.getAttribute(m5)||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 a9(e,t={}){let{styles:n}=t;return n||=sT(y1(t)),n.find(r=>r.getAttribute(i9(t))===e)}function wp(e,t={}){const n=a9(e,t);n&&y1(t).removeChild(n);}function HJ(e,t){const n=y$.get(e);if(!n||!b$(document,n)){const r=s9("",t),{parentNode:o}=r;y$.set(e,o),e.removeChild(r);}}function tc(e,t,n={}){const r=y1(n),o=sT(r),i={...n,styles:o};HJ(r,i);const s=a9(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=s9(e,i);return l.setAttribute(i9(i),t),l}function ic(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 VJ="%";function S$(e){return e.join(VJ)}let h5=0;class jJ{instanceId;constructor(t){this.instanceId=t;}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(S$(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate(S$(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,h5),h5+=1);}}const UJ={},aT="data-token-hash",ja="data-css-hash",Cu="__cssinjs_instance__";function l9(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${ja}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(o=>{o[Cu]||=e,o[Cu]===e&&document.head.insertBefore(o,n);});const r={};Array.from(document.querySelectorAll(`style[${ja}]`)).forEach(o=>{const i=o.getAttribute(ja);r[i]?o[Cu]===e&&o.parentNode?.removeChild(o):r[i]=true;});}return new jJ(e)}const zu=f.createContext({hashPriority:"low",cache:l9(),defaultCache:true,autoPrefix:false}),WJ=e=>{const{children:t,...n}=e,r=f.useContext(zu),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||l9(),i.defaultCache=!s&&r.defaultCache,l.includes(UJ)&&(i.autoPrefix=true),i},[r,n],(i,s)=>!ic(i[0],s[0],true)||!ic(i[1],s[1],true));return f.createElement(zu.Provider,{value:o},t)};function GJ(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 t0{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>t0.MAX_CACHE_SIZE+t0.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=>!GJ(n,t)),this.deleteByPath(this.cache,t)}}let p5=0;class c9{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=p5,t.length===0&&(t.length>0,void 0),p5+=1;}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const nw=new t0;function n0(e){const t=Array.isArray(e)?e:[e];return nw.has(t)||nw.set(t,new c9(t)),nw.get(t)}const qJ=new WeakMap,rw={};function KJ(e,t){let n=qJ;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(rw)||n.set(rw,e()),n.get(rw)}const g5=new WeakMap;function Kh(e){let t=g5.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof c9?t+=r.id:r&&typeof r=="object"?t+=Kh(r):t+=r;}),t=xp(t),g5.set(e,t)),t}function YJ(e,t){return xp(`${t}_${Kh(e)}`)}const C$=Ri();function oe(e){return typeof e=="number"?`${e}px`:e}function u9(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return "";const r=`.${t}`;return n==="low"?`:where(${r})`:r}const XJ=e=>e!=null;function lT(e,t){const n=typeof t=="function"?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}const ly=(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(),QJ=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",scope:i}=n||{};if(!Object.keys(e).length)return "";const s=`${u9({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("")}}`},d9=(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=ly(p,i);d[b]=typeof g=="number"&&!s?.[p]?`${g}px`:String(g),m[p]=`var(${b})`;}}),[m,QJ(d,t,{scope:n?.scope,hashCls:r,hashPriority:o})]},gb=new Map;function cT(e,t,n,r,o){const{cache:i}=f.useContext(zu),s=[e,...t],l=S$(s),u=p=>{i.opUpdate(l,g=>{const[b=0,y]=g||[void 0,void 0],x=y||n(),w=[b,x];return p?p(w):w});};f.useMemo(()=>{u();},[l]);const m=i.opGet(l)[1];return f.useInsertionEffect(()=>(u(([p,g])=>[p+1,g]),gb.has(l)||(o?.(m),gb.set(l,true),Promise.resolve().then(()=>{gb.delete(l);})),()=>{i.opUpdate(l,p=>{const[g=0,b]=p||[];return g-1===0?(r?.(b,false),gb.delete(l),null):[g-1,b]});}),[l]),m}const ZJ={},JJ="css",su=new Map;function eee(e){su.set(e,(su.get(e)||0)+1);}function tee(e,t){typeof document<"u"&&document.querySelectorAll(`style[${aT}="${e}"]`).forEach(r=>{r[Cu]===t&&r.parentNode?.removeChild(r);});}const nee=-1;function ree(e,t){su.set(e,(su.get(e)||0)-1);const n=new Set;su.forEach((r,o)=>{r<=0&&n.add(o);}),su.size-n.size>nee&&n.forEach(r=>{tee(r,t),su.delete(r);});}const f9=(e,t,n,r)=>{let i={...n.getDerivativeToken(e),...t};return r&&(i=r(i)),i},oee="token";function iee(e,t,n){const{cache:{instanceId:r},container:o,hashPriority:i}=f.useContext(zu),{salt:s="",override:l=ZJ,formatToken:u,getComputedToken:d,cssVar:m,nonce:p}=n,g=KJ(()=>Object.assign({},...t),t),b=Kh(g),y=Kh(l),S=Kh(m);return cT(oee,[s,e.id,b,y,S],()=>{const w=d?d(g,l,e):f9(g,l,e,u),E={...w},M=`${s}_${m.prefix}`,T=xp(M),A=`${JJ}-${T}`;E._tokenKey=YJ(E,M);const[I,N]=d9(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,eee(m.key),[I,A,E,N,m.key]},([,,,,w])=>{ree(w,r);},([,,,w,E])=>{if(!w)return;let M={mark:ja,prepend:"queue",attachTo:o,priority:-999};M=lT(M,p);const T=tc(w,xp(`css-var-${E}`),M);T[Cu]=r,T.setAttribute(aT,E);})}var see={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},Yn="-ms-",Yh="-moz-",wn="-webkit-",m9="comm",uT="rule",dT="decl",aee="@import",lee="@namespace",h9="@keyframes",cee="@layer",p9=Math.abs,fT=String.fromCharCode,x$=Object.assign;function uee(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 g9(e){return e.trim()}function Da(e,t){return (e=t.exec(e))?e[0]:e}function Zt(e,t,n){return e.replace(t,n)}function cy(e,t,n){return e.indexOf(t,n)}function Dr(e,t){return e.charCodeAt(t)|0}function Fu(e,t,n){return e.slice(t,n)}function hs(e){return e.length}function v9(e){return e.length}function Lh(e,t){return t.push(e),e}function dee(e,t){return e.map(t).join("")}function v5(e,t){return e.filter(function(n){return !Da(n,t)})}var S1=1,Pf=1,b9=0,Ji=0,Mr=0,Zf="";function C1(e,t,n,r,o,i,s,l){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:S1,column:Pf,length:s,return:"",siblings:l}}function zl(e,t){return x$(C1("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Hd(e){for(;e.root;)e=zl(e.root,{children:[e]});Lh(e,e.siblings);}function fee(){return Mr}function mee(){return Mr=Ji>0?Dr(Zf,--Ji):0,Pf--,Mr===10&&(Pf=1,S1--),Mr}function xs(){return Mr=Ji<b9?Dr(Zf,Ji++):0,Pf++,Mr===10&&(Pf=1,S1++),Mr}function Yl(){return Dr(Zf,Ji)}function uy(){return Ji}function x1(e,t){return Fu(Zf,e,t)}function Ep(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 hee(e){return S1=Pf=1,b9=hs(Zf=e),Ji=0,[]}function pee(e){return Zf="",e}function ow(e){return g9(x1(Ji-1,w$(e===91?e+2:e===40?e+1:e)))}function gee(e){for(;(Mr=Yl())&&Mr<33;)xs();return Ep(e)>2||Ep(Mr)>3?"":" "}function vee(e,t){for(;--t&&xs()&&!(Mr<48||Mr>102||Mr>57&&Mr<65||Mr>70&&Mr<97););return x1(e,uy()+(t<6&&Yl()==32&&xs()==32))}function w$(e){for(;xs();)switch(Mr){case e:return Ji;case 34:case 39:e!==34&&e!==39&&w$(Mr);break;case 40:e===41&&w$(e);break;case 92:xs();break}return Ji}function bee(e,t){for(;xs()&&e+Mr!==57;)if(e+Mr===84&&Yl()===47)break;return "/*"+x1(t,Ji-1)+"*"+fT(e===47?e:xs())}function yee(e){for(;!Ep(Yl());)xs();return x1(e,Ji)}function b5(e){return pee(dy("",null,null,null,[""],e=hee(e),0,[0],e))}function dy(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,x=1,w=1,E=0,M="",T=o,A=i,I=r,N=M;x;)switch(y=E,E=xs()){case 40:if(y!=108&&Dr(N,p-1)==58){cy(N+=Zt(ow(E),"&","&\f"),"&\f",p9(d?l[d-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:N+=ow(E);break;case 9:case 10:case 13:case 32:N+=gee(y);break;case 92:N+=vee(uy()-1,7);continue;case 47:switch(Yl()){case 42:case 47:Lh(See(bee(xs(),uy()),t,n,u),u),(Ep(y||1)==5||Ep(Yl()||1)==5)&&hs(N)&&Fu(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/";}break;case 123*S:l[d++]=hs(N)*w;case 125*S:case 59:case 0:switch(E){case 0:case 125:x=0;case 59+m:w==-1&&(N=Zt(N,/\f/g,"")),b>0&&(hs(N)-p||S===0&&y===47)&&Lh(b>32?S5(N+";",r,n,p-1,u):S5(Zt(N," ","")+";",r,n,p-2,u),u);break;case 59:N+=";";default:if(Lh(I=y5(N,t,n,d,m,o,l,M,T=[],A=[],p,i),i),E===123)if(m===0)dy(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?dy(e,I,I,r&&Lh(y5(e,I,I,0,0,o,l,M,o,T=[],p,A),A),o,A,p,l,r?T:A):dy(N,I,I,I,[""],A,0,l,A);}}d=m=b=0,S=w=1,M=N="",p=s;break;case 58:p=1+hs(N),b=y;default:if(S<1){if(E==123)--S;else if(E==125&&S++==0&&mee()==125)continue}switch(N+=fT(E),E*S){case 38:w=m>0?1:(N+="\f",-1);break;case 44:l[d++]=(hs(N)-1)*w,w=1;break;case 64:Yl()===45&&(N+=ow(xs())),g=Yl(),m=p=hs(M=N+=yee(uy())),E++;break;case 45:y===45&&hs(N)==2&&(S=0);}}return i}function y5(e,t,n,r,o,i,s,l,u,d,m,p){for(var g=o-1,b=o===0?i:[""],y=v9(b),S=0,x=0,w=0;S<r;++S)for(var E=0,M=Fu(e,g+1,g=p9(x=s[S])),T=e;E<y;++E)(T=g9(x>0?b[E]+" "+M:Zt(M,/&\f/g,b[E])))&&(u[w++]=T);return C1(e,t,n,o===0?uT:l,u,d,m,p)}function See(e,t,n,r){return C1(e,t,n,m9,fT(fee()),Fu(e,2,-2),0,r)}function S5(e,t,n,r,o){return C1(e,t,n,dT,Fu(e,0,r),Fu(e,r+1,-1),r,o)}function y9(e,t,n){switch(uee(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 Yh+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return wn+e+Yh+e+Yn+e+e;case 5936:switch(Dr(e,t+11)){case 114:return wn+e+Yn+Zt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return wn+e+Yn+Zt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return wn+e+Yn+Zt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return wn+e+Yn+e+e;case 6165:return wn+e+Yn+"flex-"+e+e;case 5187:return wn+e+Zt(e,/(\w+).+(:[^]+)/,wn+"box-$1$2"+Yn+"flex-$1$2")+e;case 5443:return wn+e+Yn+"flex-item-"+Zt(e,/flex-|-self/g,"")+(Da(e,/flex-|baseline/)?"":Yn+"grid-row-"+Zt(e,/flex-|-self/g,""))+e;case 4675:return wn+e+Yn+"flex-line-pack"+Zt(e,/align-content|flex-|-self/g,"")+e;case 5548:return wn+e+Yn+Zt(e,"shrink","negative")+e;case 5292:return wn+e+Yn+Zt(e,"basis","preferred-size")+e;case 6060:return wn+"box-"+Zt(e,"-grow","")+wn+e+Yn+Zt(e,"grow","positive")+e;case 4554:return wn+Zt(e,/([^-])(transform)/g,"$1"+wn+"$2")+e;case 6187:return Zt(Zt(Zt(e,/(zoom-|grab)/,wn+"$1"),/(image-set)/,wn+"$1"),e,"")+e;case 5495:case 3959:return Zt(e,/(image-set\([^]*)/,wn+"$1$`$1");case 4968:return Zt(Zt(e,/(.+:)(flex-)?(.*)/,wn+"box-pack:$3"+Yn+"flex-pack:$3"),/space-between/,"justify")+wn+e+e;case 4200:if(!Da(e,/flex-|baseline/))return Yn+"grid-column-align"+Fu(e,t)+e;break;case 2592:case 3360:return Yn+Zt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Da(r.props,/grid-\w+-end/)})?~cy(e+(n=n[t].value),"span",0)?e:Yn+Zt(e,"-start","")+e+Yn+"grid-row-span:"+(~cy(n,"span",0)?Da(n,/\d+/):+Da(n,/\d+/)-+Da(e,/\d+/))+";":Yn+Zt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Da(r.props,/grid-\w+-start/)})?e:Yn+Zt(Zt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Zt(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(hs(e)-1-t>6)switch(Dr(e,t+1)){case 109:if(Dr(e,t+4)!==45)break;case 102:return Zt(e,/(.+:)(.+)-([^]+)/,"$1"+wn+"$2-$3$1"+Yh+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~cy(e,"stretch",0)?y9(Zt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Zt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,l,u,d){return Yn+o+":"+i+d+(s?Yn+o+"-span:"+(l?u:+u-+i)+d:"")+e});case 4949:if(Dr(e,t+6)===121)return Zt(e,":",":"+wn)+e;break;case 6444:switch(Dr(e,Dr(e,14)===45?18:11)){case 120:return Zt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+wn+(Dr(e,14)===45?"inline-":"")+"box$3$1"+wn+"$2$3$1"+Yn+"$2box$3")+e;case 100:return Zt(e,":",":"+Yn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Zt(e,"scroll-","scroll-snap-")+e}return e}function $p(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function C5(e,t,n,r){switch(e.type){case cee:if(e.children.length)break;case aee:case lee:case dT:return e.return=e.return||e.value;case m9:return "";case h9:return e.return=e.value+"{"+$p(e.children,r)+"}";case uT:if(!hs(e.value=e.props.join(",")))return ""}return hs(n=$p(e.children,r))?e.return=e.value+"{"+n+"}":""}function Cee(e){var t=v9(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 xee(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case dT:e.return=y9(e.value,e.length,n);return;case h9:return $p([zl(e,{value:Zt(e.value,"@","@"+wn)})],r);case uT:if(e.length)return dee(n=e.props,function(o){switch(Da(o,r=/(::plac\w+|:read-\w+)/)){case ":read-only":case ":read-write":Hd(zl(e,{props:[Zt(o,/:(read-\w+)/,":"+Yh+"$1")]})),Hd(zl(e,{props:[o]})),x$(e,{props:v5(n,r)});break;case "::placeholder":Hd(zl(e,{props:[Zt(o,/:(plac\w+)/,":"+wn+"input-$1")]})),Hd(zl(e,{props:[Zt(o,/:(plac\w+)/,":"+Yh+"$1")]})),Hd(zl(e,{props:[Zt(o,/:(plac\w+)/,Yn+"input-$1")]})),Hd(zl(e,{props:[o]})),x$(e,{props:v5(n,r)});break}return ""})}}const x5="data-ant-cssinjs-cache-path",S9="_FILE_STYLE__";let xu,C9=true;function wee(){if(!xu&&(xu={},Ri())){const e=document.createElement("div");e.className=x5,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(":");xu[o]=i;});const n=document.querySelector(`style[${x5}]`);n&&(C9=false,n.parentNode?.removeChild(n)),document.body.removeChild(e);}}function Eee(e){return wee(),!!xu[e]}function $ee(e){const t=xu[e];let n=null;if(t&&Ri())if(C9)n=S9;else {const r=document.querySelector(`style[${ja}="${xu[e]}"]`);r?n=r.innerHTML:delete xu[e];}return [n,t]}const Mee="_skip_check_",x9="_multi_value_";function iw(e,t){return (t?$p(b5(e),Cee([xee,C5])):$p(b5(e),C5)).replace(/\{%%%\:[^;];}/g,";")}function Tee(e){return typeof e=="object"&&e&&(Mee in e||x9 in e)}function w5(e,t,n="high"){if(!t)return e;const r=u9({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 E$=(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(x){const w=x.getName(i);if(!g[w]){const[E]=E$(x.style,t,{root:false,parentSelectors:o});g[w]=`@keyframes ${x.getName(i)}${E}`;}}function y(x,w=[]){return x.forEach(E=>{Array.isArray(E)?y(E,w):E&&w.push(E);}),w}return y(Array.isArray(e)?e:[e]).forEach(x=>{const w=typeof x=="string"&&!n?{}:x;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)&&!Tee(T)){let A=false,I=M.trim(),N=false;(n||r)&&i?I.startsWith("@")?A=true:I==="&"?I=w5("",i,u):I=w5(M,i,u):n&&!i&&(I==="&"||I==="")&&(I="",N=true);const[P,O]=E$(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,_=>`-${_.toLowerCase()}`);let D=P;!see[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?.[x9]&&Array.isArray(I)?I.forEach(N=>{A(M,N);}):XJ(I)&&A(M,I);}});}}),n?s&&(p&&(p=`@layer ${s.name} {${p}}`),s.dependencies&&(g[`@layer ${s.name}`]=s.dependencies.map(x=>`@layer ${x}, ${s.name};`).join(`
`))):p=`{${p}}`,[p,g]};function w9(e,t){return xp(`${e.join("%")}${t}`)}const Aee="style";function $$(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(zu),x=[r||""];y&&x.push("layer"),x.push(...n);let w=C$;cT(Aee,x,()=>{const E=x.join("|");if(Eee(E)){const[P,O]=$ee(E);if(P)return [P,O,{},s,l]}const M=t(),[T,A]=E$(M,{hashId:r,hashPriority:d,layer:y?o:void 0,path:n.join("-"),transformers:p,linters:g}),I=iw(T,S||false),N=w9(x,I);return [I,N,A,s,l]},(E,M)=>{const[,T]=E;M&&C$&&wp(T,{mark:ja,attachTo:m});},E=>{const[M,T,A,,I]=E;if(w&&M!==S9){let N={mark:ja,prepend:y?false:"queue",attachTo:m,priority:I};N=lT(N,i);const P=[],O=[];Object.keys(A).forEach(_=>{_.startsWith("@layer")?P.push(_):O.push(_);}),P.forEach(_=>{tc(iw(A[_],S||false),`_layer-${_}`,{...N,prepend:true});});const D=tc(M,T,N);D[Cu]=b.instanceId,O.forEach(_=>{tc(iw(A[_],S||false),`_effect-${_}`,N);});}});}const Ree="cssVar",Nee=(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(zu),{_tokenKey:b}=s,y=Array.isArray(u)?u.join("@@"):u,S=[...e.path,n,y,b];return cT(Ree,S,()=>{const w=t(),[E,M]=d9(w,n,{prefix:r,unitless:o,ignore:i,scope:u,hashPriority:g,hashCls:l}),T=w9(S,M);return [E,M,T,n]},([,,w])=>{C$&&wp(w,{mark:ja,attachTo:p});},([,w,E])=>{if(!w)return;let M={mark:ja,prepend:"queue",attachTo:p,priority:-999};M=lT(M,d);const T=tc(w,E,M);T[Cu]=m,T.setAttribute(aT,n);})};class kt{name;style;constructor(t,n){this.name=t,this.style=n;}getName(t=""){return t?`${t}-${this.name}`:this.name}_keyframe=true}function Vd(e){return e.notSplit=true,e}Vd(["borderTop","borderBottom"]),Vd(["borderTop"]),Vd(["borderBottom"]),Vd(["borderLeft","borderRight"]),Vd(["borderLeft"]),Vd(["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 Pee(e){if(Array.isArray(e))return e}function Iee(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 Oee(){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 mT(e,t){return Pee(e)||Iee(e,t)||oT(e,t)||Oee()}function Dee(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 E9(e){var t=Dee(e,"string");return Ar(t)=="symbol"?t:t+""}function Ct(e,t,n){return (t=E9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function E5(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?E5(Object(n),true).forEach(function(r){Ct(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function os(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $5(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,E9(r.key),r);}}function is(e,t,n){return t&&$5(e.prototype,t),n&&$5(e,n),Object.defineProperty(e,"prototype",{writable:false}),e}function yf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mp(e,t){return Mp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Mp(e,t)}function $9(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&&Mp(e,t);}function Tp(e){return Tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tp(e)}function hT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (hT=function(){return !!e})()}function _ee(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 yf(e)}function M9(e){var t=hT();return function(){var n,r=Tp(e);if(t){var o=Tp(this).constructor;n=Reflect.construct(r,arguments,o);}else n=r.apply(this,arguments);return _ee(this,n)}}var Lee=is(function e(){os(this,e);}),T9="CALC_UNIT",kee=new RegExp(T9,"g");function sw(e){return typeof e=="number"?"".concat(e).concat(T9):e}var Bee=(function(e){$9(n,e);var t=M9(n);function n(r,o){var i;os(this,n),i=t.call(this),Ct(yf(i),"result",""),Ct(yf(i),"unitlessCssVar",void 0),Ct(yf(i),"lowPriority",void 0);var s=Ar(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):s==="number"?i.result=sw(r):s==="string"&&(i.result=r),i}return is(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(sw(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(sw(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(kee,u?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(Lee),zee=function(t,n){var r=Bee;return function(o){return new r(o,n)}},M5=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 T5(e,t,n,r){var o=rr({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(l){var u=mT(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 A9=typeof CSSINJS_STATISTIC<"u",M$=true;function zt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!A9)return Object.assign.apply(Object,[{}].concat(t));M$=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]}});});}}),M$=true,r}var A5={};function Fee(){}var Hee=function(t){var n,r=t,o=Fee;return A9&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(s,l){if(M$){var u;(u=n)===null||u===void 0||u.add(l);}return s[l]}}),o=function(s,l){var u;A5[s]={global:Array.from(n),component:rr(rr({},(u=A5[s])===null||u===void 0?void 0:u.component),l)};}),{token:r,keys:n,flush:o}};function R5(e,t,n){if(typeof n=="function"){var r;return n(zt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function Vee(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 jee=1e3*60*10,Uee=(function(){function e(){os(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 is(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>jee&&(n.map.delete(i),n.lastAccessBeat.delete(i));}),this.accessBeat=0;}}}]),e})(),N5=new Uee;function Wee(e,t){return q.useMemo(function(){var n=N5.get(t);if(n)return n;var r=e();return N5.set(t,r),r},t)}var Gee=function(){return {}};function qee(e){var t=e.useCSP,n=t===void 0?Gee:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,s=e.getCommonStyle,l=e.getCompUnitless;function u(g,b,y,S){var x=Array.isArray(g)?g[0]:g;function w(P){return "".concat(String(x)).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(x,y,A);return function(P){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P,D=I(P,O),_=S?.extraCssVarPrefixCls,H=typeof _=="function"?_({prefixCls:P,rootCls:O}):_,U=N(H!=null&&H.length?[O].concat(Xt(H)):O);return [D,U]}}function d(g,b,y){var S=y.unitless,x=y.prefixToken,w=y.ignore;return function(E){var M=r(),T=M.cssVar,A=M.realToken,I=n();return Nee({path:[g],prefix:T.prefix,key:T.key,unitless:S,ignore:w,token:A,scope:E,nonce:function(){return I.nonce}},function(){var N=R5(g,A,b),P=T5(g,A,N,{deprecatedTokens:y?.deprecatedTokens});return N&&Object.keys(N).forEach(function(O){P[x(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]:{},x=Array.isArray(g)?g:[g,g],w=mT(x,1),E=w[0],M=x.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,_=N.token,H=N.cssVar,U=N.zeroRuntime,W=f.useMemo(function(){return U},[]);if(W)return D;var z=o(),L=z.rootPrefixCls,G=z.iconPrefixCls,j=n(),K="css",X=Wee(function(){var te=new Set;return Object.keys(S.unitless||{}).forEach(function(ne){te.add(ly(ne,H.prefix)),te.add(ly(ne,M5(E,H.prefix)));}),zee(K,te)},[K,E,H?.prefix]),k=Vee(),V=k.max,Q=k.min,J={theme:P,token:_,hashId:D,nonce:function(){return j.nonce},clientOnly:S.clientOnly,layer:T,order:S.order||-999};return typeof i=="function"&&$$(rr(rr({},J),{},{clientOnly:false,path:["Shared",L]}),function(){return i(_,{prefix:{rootPrefixCls:L,iconPrefixCls:G},csp:j})}),$$(rr(rr({},J),{},{path:[M,A,G]}),function(){if(S.injectStyle===false)return [];var te=Hee(_),ne=te.token,re=te.flush,ie=R5(E,O,y),ue=".".concat(A),ee=T5(E,O,ie,{deprecatedTokens:S.deprecatedTokens});ie&&Ar(ie)==="object"&&Object.keys(ie).forEach(function($e){ie[$e]="var(".concat(ly($e,M5(E,H.prefix)),")");});var ae=zt(ne,{componentCls:ue,prefixCls:A,iconCls:".".concat(G),antCls:".".concat(L),calc:X,max:V,min:Q},ie),ce=b(ae,{hashId:D,prefixCls:A,rootPrefixCls:L,iconPrefixCls:G});re(E,ee);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]:{},x=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 x(T,I),null};return w}return {genStyleHooks:u,genSubStyleComponent:p,genComponentStyleHook:m}}const oa=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function fy(e){return (e+8)/e}function Kee(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:fy(n)}))}const Yee="6.3.4",pT={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"},If={...pT,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},Xee={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"},jr=Math.round;function aw(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 P5=(e,t,n)=>n===0?e:e/100;function ph(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=Xee[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=ph(t.r),this.g=ph(t.g),this.b=ph(t.b),this.a=typeof t.a=="number"?ph(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=jr(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:jr(i("r")),g:jr(i("g")),b:jr(i("b")),a:jr(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=>jr((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=jr(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=jr(this.getHSLSaturation()*100),r=jr(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]=ph(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=jr(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=jr((s+g)*255),this.g=jr((l+g)*255),this.b=jr((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=jr(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=jr(r*(1-n)*255),p=jr(r*(1-n*d)*255),g=jr(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=aw(t,P5);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]});}fromHslString(t){const n=aw(t,P5);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]});}fromRgbString(t){const n=aw(t,(r,o)=>o.includes("%")?jr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3];}}const vb=2,I5=.16,Qee=.05,Zee=.05,Jee=.15,R9=5,N9=4,ete=[{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 O5(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-vb*t:Math.round(e.h)+vb*t:r=n?Math.round(e.h)+vb*t:Math.round(e.h)-vb*t,r<0?r+=360:r>=360&&(r-=360),r}function D5(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-I5*t:t===N9?r=e.s+I5:r=e.s+Qee*t,r>1&&(r=1),n&&t===R9&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function _5(e,t,n){let r;return n?r=e.v+Zee*t:r=e.v-Jee*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function ug(e,t={}){const n=[],r=new dn(e),o=r.toHsv();for(let i=R9;i>0;i-=1){const s=new dn({h:O5(o,i,true),s:D5(o,i,true),v:_5(o,i,true)});n.push(s);}n.push(r);for(let i=1;i<=N9;i+=1){const s=new dn({h:O5(o,i),s:D5(o,i),v:_5(o,i)});n.push(s);}return t.theme==="dark"?ete.map(({index:i,amount:s})=>new dn(t.backgroundColor||"#141414").mix(n[i],s).toHexString()):n.map(i=>i.toHexString())}const lw={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"},T$=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];T$.primary=T$[5];const A$=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];A$.primary=A$[5];const R$=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];R$.primary=R$[5];const N$=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];N$.primary=N$[5];const P$=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];P$.primary=P$[5];const I$=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];I$.primary=I$[5];const O$=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];O$.primary=O$[5];const D$=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];D$.primary=D$[5];const r0=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];r0.primary=r0[5];const _$=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];_$.primary=_$[5];const L$=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];L$.primary=L$[5];const k$=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];k$.primary=k$[5];const B$=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];B$.primary=B$[5];const cw={red:T$,volcano:A$,orange:R$,gold:N$,yellow:P$,lime:I$,green:O$,cyan:D$,blue:r0,geekblue:_$,purple:L$,magenta:k$,grey:B$};function P9(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),x=e.colorLink||e.colorInfo,w=t(x),E=new dn(b[1]).mix(new dn(b[3]),50).toHexString(),M={};return oa.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 tte=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 nte(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,...tte(r)}}const I9=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},O9=e=>{const t=Kee(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 rte(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(),jd=(e,t)=>new dn(e).darken(t).toHexString(),ote=e=>{const t=ug(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]}},ite=(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:jd(n,4),colorBgContainer:jd(n,0),colorBgElevated:jd(n,0),colorBgSpotlight:Fi(r,.85),colorBgBlur:"transparent",colorBorder:jd(n,15),colorBorderDisabled:jd(n,15),colorBorderSecondary:jd(n,6)}};function w1(e){lw.pink=lw.magenta,cw.pink=cw.magenta;const t=Object.keys(pT).map(n=>{const r=e[n]===lw[n]?cw[n]:ug(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,...P9(e,{generateColorPalettes:ote,generateNeutralColorPalettes:ite}),...O9(e.fontSize),...rte(e),...I9(e),...nte(e)}}const gT=n0(w1),Ap={token:If,override:{override:If},hashed:true},vT=q.createContext(Ap);function uw(e){return e>=0&&e<=255}function kh(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(uw(m)&&uw(p)&&uw(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 D9(e){const{override:t,...n}=e,r={...t};Object.keys(If).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:kh(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:kh(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:kh(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:kh(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 _9={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},ste={motionBase:true,motionUnit:true},ate={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,screenXXLMax:true,screenXXXL:true,screenXXXLMin:true},L9=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o,...i}=t;let s={...r,override:o};return s=D9(s),i&&Object.entries(i).forEach(([l,u])=>{const{theme:d,...m}=u;let p=m;d&&(p=L9({...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(vT),{csp:s}=q.useContext(wt),l={prefix:o?.prefix??"ant",key:o?.key??"css-var-root"},u=`${Yee}-${t||""}`,d=n||gT,[m,p,g]=iee(d,[If,e],{salt:u,override:r,getComputedToken:L9,cssVar:{...l,unitless:_9,ignore:ste,preserve:ate},nonce:s?.nonce});return [d,g,t?p:"",m,l,!!i]}const ia={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}),Yu=()=>({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"}}),o0=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Ts=(e,t)=>({outline:`${oe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),oi=(e,t)=>({"&:focus-visible":Ts(e,t)}),lte=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},...oi(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),cte=(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}}},k9=e=>({[`.${e}`]:{...Yu(),[`.${e} .${e}-icon`]:{display:"block"}}}),ute=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...oi(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Gt,genComponentStyleHook:dte,genSubStyleComponent:Jf}=qee({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=lte(e);return [n,{"&":n},k9(t?.prefix.iconPrefixCls??b1)]},getCommonStyle:cte,getCompUnitless:()=>_9}),nr=(e,t)=>{const n=`--${e.replace(/\./g,"")}-${t}-`;return [i=>`${n}${i}`,(i,s)=>s?`var(${n}${i}, ${s})`:`var(${n}${i})`]};function E1(e,t){return oa.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 fte=(e,t)=>(Xr(),$$({hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>k9(e)));var mte={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 bT=f.createContext({});function B9(e){return e?.getRootNode?.()}function hte(e){return B9(e)instanceof ShadowRoot}function i0(e){return hte(e)?B9(e):null}function pte(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function gte(e,t){Pr(e,`[@ant-design/icons] ${t}`);}function L5(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[pte(n)]=r),t},{})}function z$(e,t,n){return n?q.createElement(e.tag,{key:t,...k5(e.attrs),...n},(e.children||[]).map((r,o)=>z$(r,`${t}-${e.tag}-${o}`))):q.createElement(e.tag,{key:t,...k5(e.attrs)},(e.children||[]).map((r,o)=>z$(r,`${t}-${e.tag}-${o}`)))}function z9(e){return ug(e)[0]}function F9(e){return e?Array.isArray(e)?e:[e]:[]}const vte=`
.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);
  }
}
`,bte=e=>{const{csp:t,prefixCls:n,layer:r}=f.useContext(bT);let o=vte;n&&(o=o.replace(/anticon/g,n)),r&&(o=`@layer ${r} {
${o}
}`),f.useEffect(()=>{const i=e.current,s=i0(i);tc(o,"@ant-design-icons",{prepend:!r,csp:t,attachTo:s});},[]);},Xh={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:false};function yte({primaryColor:e,secondaryColor:t}){Xh.primaryColor=e,Xh.secondaryColor=t||z9(e),Xh.calculated=!!t;}function Ste(){return {...Xh}}const em=e=>{const{icon:t,className:n,onClick:r,style:o,primaryColor:i,secondaryColor:s,...l}=e,u=f.useRef(null);let d=Xh;if(i&&(d={primaryColor:i,secondaryColor:s||z9(i)}),bte(u),gte(L5(t),`icon should be icon definiton, but got ${t}`),!L5(t))return null;let m=t;return m&&typeof m.icon=="function"&&(m={...m,icon:m.icon(d.primaryColor,d.secondaryColor)}),z$(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})};em.displayName="IconReact";em.getTwoToneColors=Ste;em.setTwoToneColors=yte;function H9(e){const[t,n]=F9(e);return em.setTwoToneColors({primaryColor:t,secondaryColor:n})}function Cte(){const e=em.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function F$(){return F$=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},F$.apply(this,arguments)}H9(r0.primary);const Qn=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(bT),g=Y(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,x]=F9(u);return f.createElement("span",F$({role:"img","aria-label":r.name},d,{ref:t,tabIndex:b,onClick:l,className:g}),f.createElement(em,{icon:r,primaryColor:S,secondaryColor:x,style:y}))});Qn.getTwoToneColor=Cte;Qn.setTwoToneColor=H9;function H$(){return H$=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},H$.apply(this,arguments)}const xte=(e,t)=>f.createElement(Qn,H$({},e,{ref:t,icon:mte})),yT=f.forwardRef(xte);var wte={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 V$(){return V$=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},V$.apply(this,arguments)}const Ete=(e,t)=>f.createElement(Qn,V$({},e,{ref:t,icon:wte})),dg=f.forwardRef(Ete);var $te={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 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 Mte=(e,t)=>f.createElement(Qn,j$({},e,{ref:t,icon:$te})),nl=f.forwardRef(Mte);var Tte={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 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 Ate=(e,t)=>f.createElement(Qn,U$({},e,{ref:t,icon:Tte})),fg=f.forwardRef(Ate);var Rte={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 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 Nte=(e,t)=>f.createElement(Qn,W$({},e,{ref:t,icon:Rte})),ST=f.forwardRef(Nte),V9=f.createContext({}),Pte=e=>{const{children:t,...n}=e,r=f.useMemo(()=>({motion:n.motion}),[n.motion]);return f.createElement(V9.Provider,{value:r},t)};function Ite(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 js="none",bb="appear",yb="enter",Sb="leave",B5="none",ps="prepare",au="start",lu="active",CT="end",j9="prepared";function z5(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 Ote(e,t){const n={animationend:z5("Animation","AnimationEnd"),transitionend:z5("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const Dte=Ote(Ri(),typeof window<"u"?window:{});let U9={};Ri()&&({style:U9}=document.createElement("div"));const Cb={};function W9(e){if(Cb[e])return Cb[e];const t=Dte[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 U9)return Cb[e]=t[i],Cb[e]}}return ""}const G9=W9("animationend"),q9=W9("transitionend"),_te=!!(G9&&q9),F5=G9||"animationend",H5=q9||"transitionend";function V5(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 Lte=(e=>{const t=f.useRef();function n(o){o&&(o.removeEventListener(H5,e),o.removeEventListener(F5,e));}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(H5,e),o.addEventListener(F5,e),t.current=o);}return f.useEffect(()=>()=>{n(t.current),t.current=null;},[]),[r,n]}),K9=Ri()?f.useLayoutEffect:f.useEffect,kte=(()=>{const e=f.useRef(null);function t(){Lt.cancel(e.current);}function n(r,o=2){t();const i=Lt(()=>{o<=1?r({isCanceled:()=>i!==e.current}):n(r,o-1);});e.current=i;}return f.useEffect(()=>()=>{t();},[]),[n,t]}),Bte=[ps,au,lu,CT],zte=[ps,j9],Y9=false,Fte=true;function X9(e){return e===lu||e===CT}const Hte=((e,t,n)=>{const[r,o]=YB(B5),[i,s]=kte();function l(){o(ps,true);}const u=t?zte:Bte;return K9(()=>{if(r!==B5&&r!==CT){const d=u.indexOf(r),m=u[d+1],p=n(r);p===Y9?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 Vte(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:x,onAppearEnd:w,onEnterEnd:E,onLeaveEnd:M,onVisibleChanged:T}){const[A,I]=f.useState(),[N,P]=Ite(js),[O,D]=f.useState([null,null]),_=N(),H=f.useRef(false),U=f.useRef(null);function W(){return n()}const z=f.useRef(false);function L(){P(js),D([null,null]);}const G=Mt(ie=>{const ue=N();if(ue===js)return;const ee=W();if(ie&&!ie.deadline&&ie.target!==ee)return;const ae=z.current;let ce;ue===bb&&ae?ce=w?.(ee,ie):ue===yb&&ae?ce=E?.(ee,ie):ue===Sb&&ae&&(ce=M?.(ee,ie)),ae&&ce!==false&&L();}),[j]=Lte(G),K=ie=>{switch(ie){case bb:return {[ps]:u,[au]:p,[lu]:y};case yb:return {[ps]:d,[au]:g,[lu]:S};case Sb:return {[ps]:m,[au]:b,[lu]:x};default:return {}}},X=f.useMemo(()=>K(_),[_]),[k,V]=Hte(_,!e,ie=>{if(ie===ps){const ue=X[ps];return ue?ue(W()):Y9}return ie in X&&D([X[ie]?.(W(),null)||null,ie]),ie===lu&&_!==js&&(j(W()),s>0&&(clearTimeout(U.current),U.current=setTimeout(()=>{G({deadline:true});},s))),ie===j9&&L(),Fte}),Q=X9(V);z.current=Q;const J=f.useRef(null);K9(()=>{if(H.current&&J.current===t)return;I(t);const ie=H.current;H.current=true;let ue;!ie&&t&&o&&(ue=bb),ie&&t&&r&&(ue=yb),(ie&&!t&&i||!ie&&l&&!t&&i)&&(ue=Sb);const ee=K(ue);ue&&(e||ee[ps])?(P(ue),k()):P(js),J.current=t;},[t]),f.useEffect(()=>{(_===bb&&!o||_===yb&&!r||_===Sb&&!i)&&P(js);},[o,r,i]),f.useEffect(()=>()=>{H.current=false,clearTimeout(U.current);},[]);const te=f.useRef(false);f.useEffect(()=>{A&&(te.current=true),A!==void 0&&_===js&&((te.current||A)&&T?.(A),te.current=true);},[A,_]);let ne=O[0];X[ps]&&V===au&&(ne={transition:"none",...ne});const re=O[1];return [N,V,ne,A??t,!H.current&&_===js&&e&&o?"NONE":V===au||V===lu?re===V:true]}function jte(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(V9),y=n(o,b),S=f.useRef();function x(){return Bu(S.current)}const[w,E,M,T,A]=Vte(y,s,x,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:x},inMotion:{enumerable:true,get:()=>()=>w()!==js},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 _={...g,visible:s};if(!d)D=null;else if(I===js)T?D=d({..._},S):!l&&N.current&&p?D=d({..._,className:p},S):u||!l&&!p?D=d({..._,style:{display:"none"}},S):D=null;else {let H;E===ps?H="prepare":X9(E)?H="active":E===au&&(H="start");const U=V5(m,`${I}-${H}`);D=d({..._,className:Y(V5(m,I),{[U]:U&&H,[m]:typeof m=="string"}),style:M},S);}return f.isValidElement(D)&&Ku(D)&&(yc(D)||(D=f.cloneElement(D,{ref:S}))),D},[O.current])});return r.displayName="CSSMotion",r}const No=jte(_te),G$="add",q$="keep",K$="remove",dw="removed";function Ute(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function Y$(e=[]){return e.map(Ute)}function Wte(e=[],t=[]){let n=[],r=0;const o=t.length,i=Y$(e),s=Y$(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:G$}))),r=p),n.push({...g,status:q$}),r+=1,m=true;break}}m||n.push({...d,status:K$});}),r<o&&(n=n.concat(s.slice(r).map(d=>({...d,status:G$}))));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!==K$),n.forEach(m=>{m.key===d&&(m.status=q$);});}),n}function X$(){return X$=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},X$.apply(this,arguments)}const Gte=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function qte(e,t=No){class n extends f.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:o},{keyEntities:i}){const s=Y$(o);return {keyEntities:Wte(i,s).filter(u=>{const d=i.find(({key:m})=>u.key===m);return !(d&&d.status===dw&&u.status===K$)})}}removeKey=o=>{this.setState(i=>({keyEntities:i.keyEntities.map(l=>l.key!==o?l:{...l,status:dw})}),()=>{const{keyEntities:i}=this.state;i.filter(({status:l})=>l!==dw).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 Gte.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===G$||g===q$;return f.createElement(t,X$({},p,{key:b.key,visible:S,eventProps:b,onVisibleChanged:x=>{l?.(x,{key:b.key}),x||this.removeKey(b.key);}}),(x,w)=>s({...x,index:y},w))}))}}return n}const Kte=qte(),Yte=`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`,Xte=`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`,Qte=`${Yte} ${Xte}`.split(/[\s\n]+/),Zte="aria-",Jte="data-";function j5(e,t){return e.indexOf(t)===0}function Ao(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"||j5(o,Zte))||n.data&&j5(o,Jte)||n.attr&&Qte.includes(o))&&(r[o]=e[o]);}),r}const Q9={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 ene={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:true};function Rp(e){"@babel/helpers - typeof";return Rp=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},Rp(e)}function U5(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 W5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U5(Object(n),true).forEach(function(r){tne(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function tne(e,t,n){return t=nne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function nne(e){var t=rne(e,"string");return Rp(t)=="symbol"?t:String(t)}function rne(e,t){if(Rp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}var one=W5(W5({},ene),{},{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 Z9={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},G5={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"],...one},timePickerLocale:{...Z9}},hi="${label} is not a valid ${type}",As={locale:"en",Pagination:Q9,DatePicker:G5,TimePicker:Z9,Calendar:G5,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:hi,method:hi,array:hi,object:hi,number:hi,date:hi,boolean:hi,integer:hi,float:hi,regexp:hi,email:hi,url:hi,hex:hi},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 my={...As.Modal},hy=[];const q5=()=>hy.reduce((e,t)=>({...e,...t}),As.Modal);function ine(e){if(e){const t={...e};return hy.push(t),my=q5(),()=>{hy=hy.filter(n=>n!==t),my=q5();}}my={...As.Modal};}function J9(){return my}const xT=f.createContext(void 0),zo=(e,t)=>{const n=f.useContext(xT),r=f.useMemo(()=>{const i=t||As[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?As.locale:i},[n]);return [r,o]},sne="internalMark",ane=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f.useEffect(()=>ine(t?.Modal),[t]);const o=f.useMemo(()=>({...t,exist:true}),[t]);return f.createElement(xT.Provider,{value:o},n)};function K5(...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,sc=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return {closable:t,closeIcon:n}},ez={},Y5=(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},lne=(e,t,n)=>e===false?false:e?K5(n,t,e):t===false?false:t?K5(n,t):n.closable?n:false,cne=(e,t,n)=>{const{closeIconRender:r}=t,{closeIcon:o,...i}=e;let s=o;const l=Ao(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]},tz=(e,t,n=ez,r="Close")=>{const o=Y5(e?.closable,e?.closeIcon),i=Y5(t?.closable,t?.closeIcon),s={closeIcon:q.createElement(nl,null),...n},l=lne(o,i,s),u=typeof l!="boolean"?!!l?.disabled:false;if(l===false)return [false,null,u,{}];const[d,m]=cne(l,s,r);return [true,d,u,m]},wT=(e,t,n=ez)=>{const[r]=zo("global",As.global);return q.useMemo(()=>tz(e,t,{closeIcon:q.createElement(nl,null),...n},r.close),[e,t,n,r.close])},nz=()=>q.useReducer(e=>e+1,0),Q$=(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},une=(e,t,n,r)=>f.useMemo(()=>{const o=Q$(e,r),i=Q$(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]),$1=(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]=$1(s,r[i],l);else {const{_default:u}=s;u&&(r[i]=r[i]||{},r[i][u]=Y(r[i][u],l));}else r[i]=Y(r[i],l);}),r),{})},dne=(e,...t)=>f.useMemo(()=>$1.apply(void 0,[e].concat(t)),[e].concat(t)),ET=(...e)=>e.filter(Boolean).reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]={...t[r],...n[r]};}),t),{}),fne=(...e)=>f.useMemo(()=>ET.apply(void 0,e),[].concat(e)),Z$=(e,t)=>{const n={...e};return Object.keys(t).forEach(r=>{if(r!=="_default"){const o=t[r],i=n[r]||{};n[r]=o?Z$(i,o):i;}}),n},Xl=(e,t)=>typeof e=="function"?e(t):e,Kt=(e,t,n,r)=>{const o=e.map(u=>u?Xl(u,n):void 0),i=t.map(u=>u?Xl(u,n):void 0),s=dne.apply(void 0,[r].concat(Xt(o))),l=fne.apply(void 0,Xt(i));return f.useMemo(()=>r?[Z$(s,r),Z$(l,r)]:[s,l],[s,l,r])},X5=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]},Q5=e=>e==="horizontal"||e==="vertical",Xu=(e,t,n)=>f.useMemo(()=>{const r=Q5(e);let o;return r?o=e:typeof t=="boolean"?o=t?"vertical":"horizontal":o=Q5(n)?n:"horizontal",[o,o==="vertical"]},[n,e,t]),mne=()=>{const[e,t]=f.useState([]),n=f.useCallback(r=>(t(o=>[].concat(Xt(o),[r])),()=>{t(o=>o.filter(i=>i!==r));}),[]);return [e,n]},M1=q.createContext(void 0),Fl=100,hne=10,$T=Fl*hne,rz={Modal:Fl,Drawer:Fl,Popover:Fl,Popconfirm:Fl,Tooltip:Fl,Tour:Fl,FloatButton:Fl},pne={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},gne=e=>e in rz,Qu=(e,t)=>{const[,n]=Xr(),r=q.useContext(M1),o=gne(e);let i;if(t!==void 0)i=[t,t];else {let s=r??0;o?s+=(r?0:n.zIndexPopupBase)+rz[e]:s+=pne[e],i=[r===void 0?t:s,s];}return i};function J$(e){return Lr(e)&&e===e.window}const oz=e=>{if(typeof window>"u")return 0;let t=0;return J$(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!J$(e)&&typeof t!="number"&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function vne(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 bne(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),s=oz(i),l=Date.now();let u;const d=()=>{const p=Date.now()-l,g=vne(p>o?o:p,s,e,o);J$(i)?i.scrollTo(window.pageXOffset,g):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=g:i.scrollTop=g,p<o?u=Lt(d):typeof r=="function"&&r();};return u=Lt(d),()=>{Lt.cancel(u);}}const Zn=e=>`${e}-css-var`,yne=f.createContext(void 0);var Oo=$B();const iz=f.createContext(null);let Sne=false;function Cne(e){return Sne}const Z5=[];function xne(e,t){const[n]=f.useState(()=>Ri()?document.createElement("div"):null),r=f.useRef(false),o=f.useContext(iz),[i,s]=f.useState(Z5),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(Z5));},[i]),[n,l]}function wne(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};`:"";tc(`
#${t}::-webkit-scrollbar {
${g}
${b}
}`,t);}catch(g){console.error(g),o=m,i=p;}}document.body.appendChild(n);const s=e&&o&&!Number.isNaN(o)?o:n.offsetWidth-n.clientWidth,l=e&&i&&!Number.isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),wp(t),{width:s,height:l}}function Ene(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:wne(e)}function $ne(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const Mne=`rc-util-locker-${Date.now()}`;let J5=0;function Tne(e){const t=!!e,[n]=f.useState(()=>(J5+=1,`${Mne}_${J5}`));Rn(()=>{if(t){const r=Ene(document.body).width,o=$ne();tc(`
html body {
  overflow-y: hidden;
  ${o?`width: calc(100% - ${r}px);`:""}
}`,n);}else wp(n);return ()=>{wp(n);}},[t,n]);}function Ane(){return {...i$}.useId}let eO=0;const tO=Ane(),rl=tO?(function(t){const n=tO();return t||n}):(function(t){const[n,r]=f.useState("ssr-id");return f.useEffect(()=>{const o=eO;eO+=1,r(`rc_unique_${o}`);},[]),t||n});let fu=[];const Rne=200;let sz=0;const az=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-sz<Rne)return;const n=fu.length;for(let r=n-1;r>=0;r-=1)fu[r].onEsc({top:r===n-1,event:e});}},lz=()=>{sz=Date.now();};function Nne(){window.addEventListener("keydown",az),window.addEventListener("compositionend",lz);}function Pne(){fu.length===0&&(window.removeEventListener("keydown",az),window.removeEventListener("compositionend",lz));}function Ine(e,t){const n=rl(),r=Mt(t),o=()=>{fu.find(s=>s.id===n)||fu.push({id:n,onEsc:r});},i=()=>{fu=fu.filter(s=>s.id!==n);};f.useMemo(()=>{e?o():e||i();},[e]),f.useEffect(()=>{if(e)return o(),Nne(),()=>{i(),Pne();}},[e]);}const nO=e=>e===false?false:!Ri()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,T1=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(()=>nO(o));f.useEffect(()=>{const A=nO(o);b(()=>A??null);});const[y,S]=xne(p&&!g),x=g??y;Tne(r&&n&&Ri()&&(x===y||x===document.body)),Ine(n,u);let w=null;l&&Ku(l)&&t&&(w=yc(l));const E=tl(w,t);if(!p||!Ri()||g===void 0)return null;const M=x===false||Cne();let T=l;return t&&(T=f.cloneElement(l,{ref:E})),f.createElement(iz.Provider,{value:S},M?T:Oo.createPortal(T,x))});function One(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],x=b[0],w=b[1];y===x||!["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:Y(`${t}-arrow`,i),style:{...p,...l}},s)}function e2(){return e2=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},e2.apply(this,arguments)}function Dne(e){const{prefixCls:t,open:n,zIndex:r,mask:o,motion:i,mobile:s}=e;return o?f.createElement(No,e2({},i,{motionAppear:true,visible:n,removeOnLeave:true}),({className:l})=>f.createElement("div",{style:{zIndex:r},className:Y(`${t}-mask`,s&&`${t}-mobile-mask`,l)})):null}const _ne=f.memo(({children:e})=>e,(e,t)=>t.cache);function cz(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 t2(){return t2=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},t2.apply(this,arguments)}const uz=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:x,motion:w,maskMotion:E,mobile:M,forceRender:T,getPopupContainer:A,autoDestroy:I,portal:N,children:P,zIndex:O,onMouseEnter:D,onMouseLeave:_,onPointerEnter:H,onPointerDownCapture:U,ready:W,offsetX:z,offsetY:L,offsetR:G,offsetB:j,onAlign:K,onPrepare:X,onResize:k,stretch:V,targetWidth:Q,targetHeight:J}=e,te=typeof r=="function"?r():r,ne=d||m,re=!!M,[ie,ue,ee]=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,Ee)=>{k?.(be,Ee),K();}),le=cz(re,W,d,x,G,j,z,L);if(!ce)return null;const pe={};return V&&(V.includes("height")&&J?pe.height=J:V.includes("minHeight")&&J&&(pe.minHeight=J),V.includes("width")&&Q?pe.width=Q:V.includes("minWidth")&&Q&&(pe.minWidth=Q)),d||(pe.pointerEvents="none"),f.createElement(N,{open:T||ne,getContainer:A&&(()=>A(l)),autoDestroy:I,onEsc:n},f.createElement(Dne,{prefixCls:i,open:d,zIndex:O,mask:ie,motion:ue,mobile:re}),f.createElement(Cs,{onResize:$e,disabled:!d},be=>f.createElement(No,t2({motionAppear:true,motionEnter:true,motionLeave:true,removeOnLeave:false,forceRender:T,leavedClassName:`${i}-hidden`},ee,{onAppearPrepare:X,onEnterPrepare:X,visible:d,onVisibleChanged:Ee=>{w?.onVisibleChanged?.(Ee),u(Ee);}}),({className:Ee,style:Te},Ye)=>{const Re=Y(i,Ee,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,...Te,boxSizing:"border-box",zIndex:O,...s},onMouseEnter:D,onMouseLeave:_,onPointerEnter:H,onClick:g,onPointerDownCapture:U},y&&f.createElement(One,{prefixCls:i,arrow:y,arrowPos:S,align:x}),f.createElement(_ne,{cache:!d&&!p},te))})),P)}),s0=f.createContext(null),dz=f.createContext(null);function rO(e){return e?Array.isArray(e)?e:[e]:[]}function Lne(e,t,n){return f.useMemo(()=>{const r=rO(t??e),o=rO(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 MT=(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 kne(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 fz(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(kne(e[l]?.points,o,r))return `${t}-placement-${l}`}return ""}function mg(e){return e.ownerDocument.defaultView}function n2(e){const t=[];let n=e?.parentElement;const r=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:o,overflowY:i,overflow:s}=mg(n).getComputedStyle(n);[o,i,s].some(l=>r.includes(l))&&t.push(n),n=n.parentElement;}return t}function Np(e,t=1){return Number.isNaN(e)?t:e}function gh(e){return Np(parseFloat(e),0)}function oO(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}=mg(r).getComputedStyle(r),m=r.getBoundingClientRect(),{offsetHeight:p,clientHeight:g,offsetWidth:b,clientWidth:y}=r,S=gh(s),x=gh(l),w=gh(u),E=gh(d),M=Np(Math.round(m.width/b*1e3)/1e3),T=Np(Math.round(m.height/p*1e3)/1e3),A=(b-y-w-E)*M,I=(p-g-S-x)*T,N=S*T,P=x*T,O=w*M,D=E*M;let _=0,H=0;if(o==="clip"){const G=gh(i);_=G*M,H=G*T;}const U=m.x+O-_,W=m.y+N-H,z=U+m.width+2*_-O-D-A,L=W+m.height+2*H-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,L);}),n}function iO(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function sO(e,t){const[n,r]=t||[];return [iO(e.width,n),iO(e.height,r)]}function aO(e=""){return [e[0],e[1]]}function Ud(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 Ll(e,t){const n={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=n[e[t]]||"c",r}function lO(e){return e.join("")}function mz(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?[]:n2(t),[t]),g=f.useRef({});e||(g.current={});const y=Mt(()=>{if(t&&n&&e&&!l){let Ie=function(Bt,Fr,Hr=$e){const _s=U.x+Bt,Pi=U.y+Fr,Vo=_s+Q,Zr=Pi+V,Nc=Math.max(_s,Hr.left),ev=Math.max(Pi,Hr.top),Pc=Math.min(Vo,Hr.right),sd=Math.min(Zr,Hr.bottom);return Math.max(0,(Pc-Nc)*(sd-ev))},Ce=function(){Me=U.y+ke,Se=Me+V,he=U.x+Je,De=he+Q;};const w=t,E=w.ownerDocument,M=mg(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},_=E.createElement("div");w.parentElement?.appendChild(_),_.style.left=`${w.offsetLeft}px`,_.style.top=`${w.offsetTop}px`,_.style.position=T,_.style.height=`${w.offsetHeight}px`,_.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 H;if(Array.isArray(n))H={x:n[0],y:n[1],width:0,height:0};else {const Bt=n.getBoundingClientRect();Bt.x=Bt.x??Bt.left,Bt.y=Bt.y??Bt.top,H={x:Bt.x,y:Bt.y,width:Bt.width,height:Bt.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:L,clientHeight:G,scrollWidth:j,scrollHeight:K,scrollTop:X,scrollLeft:k}=E.documentElement,V=U.height,Q=U.width,J=H.height,te=H.width,ne={left:0,top:0,right:L,bottom:G},re={left:-k,top:-X,right:j-k,bottom:K-X};let{htmlRegion:ie}=D;const ue="visible",ee="visibleFirst";ie!=="scroll"&&ie!==ee&&(ie=ue);const ae=ie===ee,ce=oO(re,p),se=oO(ne,p),$e=ie===ue?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(_);const be=Np(Math.round(Q/parseFloat(z)*1e3)/1e3),Ee=Np(Math.round(V/parseFloat(W)*1e3)/1e3);if(be===0||Ee===0||Nf(n)&&!MT(n))return;const{offset:Te,targetOffset:Ye}=D;let[Re,fe]=sO(U,Te);const[ge,Ne]=sO(H,Ye);H.x-=ge,H.y-=Ne;const[He,We]=D.points||[],je=aO(We),et=aO(He),it=Ud(H,je),Ke=Ud(U,et),Oe={...D};let qe=[et,je],Je=it.x-Ke.x+Re,ke=it.y-Ke.y+fe;const lt=Ie(Je,ke),Tt=Ie(Je,ke,se),pt=Ud(H,["t","l"]),Dt=Ud(U,["t","l"]),xt=Ud(H,["b","r"]),Ot=Ud(U,["b","r"]),dt=D.overflow||{},{adjustX:ut,adjustY:bt,shiftX:Fe,shiftY:Ue}=dt,ye=Bt=>typeof Bt=="boolean"?Bt:Bt>=0;let Me,Se,he,De;Ce();const Be=ye(bt),Xe=et[0]===je[0];if(Be&&et[0]==="t"&&(Se>le.bottom||g.current.bt)){let Bt=ke;Xe?Bt-=V-J:Bt=pt.y-Ot.y-fe;const Fr=Ie(Je,Bt),Hr=Ie(Je,Bt,se);Fr>lt||Fr===lt&&(!ae||Hr>=Tt)?(g.current.bt=true,ke=Bt,fe=-fe,qe=[Ll(qe[0],0),Ll(qe[1],0)]):g.current.bt=false;}if(Be&&et[0]==="b"&&(Me<le.top||g.current.tb)){let Bt=ke;Xe?Bt+=V-J:Bt=xt.y-Dt.y-fe;const Fr=Ie(Je,Bt),Hr=Ie(Je,Bt,se);Fr>lt||Fr===lt&&(!ae||Hr>=Tt)?(g.current.tb=true,ke=Bt,fe=-fe,qe=[Ll(qe[0],0),Ll(qe[1],0)]):g.current.tb=false;}const st=ye(ut),ft=et[1]===je[1];if(st&&et[1]==="l"&&(De>le.right||g.current.rl)){let Bt=Je;ft?Bt-=Q-te:Bt=pt.x-Ot.x-Re;const Fr=Ie(Bt,ke),Hr=Ie(Bt,ke,se);Fr>lt||Fr===lt&&(!ae||Hr>=Tt)?(g.current.rl=true,Je=Bt,Re=-Re,qe=[Ll(qe[0],1),Ll(qe[1],1)]):g.current.rl=false;}if(st&&et[1]==="r"&&(he<le.left||g.current.lr)){let Bt=Je;ft?Bt+=Q-te:Bt=xt.x-Dt.x-Re;const Fr=Ie(Bt,ke),Hr=Ie(Bt,ke,se);Fr>lt||Fr===lt&&(!ae||Hr>=Tt)?(g.current.lr=true,Je=Bt,Re=-Re,qe=[Ll(qe[0],1),Ll(qe[1],1)]):g.current.lr=false;}Oe.points=[lO(qe[0]),lO(qe[1])],Ce();const Et=Fe===true?0:Fe;typeof Et=="number"&&(he<se.left&&(Je-=he-se.left-Re,H.x+te<se.left+Et&&(Je+=H.x-se.left+te-Et)),De>se.right&&(Je-=De-se.right-Re,H.x>se.right-Et&&(Je+=H.x-se.right+Et)));const At=Ue===true?0:Ue;typeof At=="number"&&(Me<se.top&&(ke-=Me-se.top-fe,H.y+J<se.top+At&&(ke+=H.y-se.top+J-At)),Se>se.bottom&&(ke-=Se-se.bottom-fe,H.y>se.bottom-At&&(ke+=H.y-se.bottom+At)));const Rt=U.x+Je,yn=Rt+Q,Wn=U.y+ke,tt=Wn+V,Qe=H.x,Ge=Qe+te,mt=H.y,Nt=mt+J,Ut=Math.max(Rt,Qe),Jt=Math.min(yn,Ge),Nn=(Ut+Jt)/2-Rt,ir=Math.max(Wn,mt),Sn=Math.min(tt,Nt),ha=(ir+Sn)/2-Wn;s?.(t,Oe);let Gn=pe.right-U.x-(Je+U.width),Ho=pe.bottom-U.y-(ke+U.height);be===1&&(Je=Math.floor(Je),Gn=Math.floor(Gn)),Ee===1&&(ke=Math.floor(ke),Ho=Math.floor(Ho));const Em={ready:true,offsetX:Je/be,offsetY:ke/Ee,offsetR:Gn/be,offsetB:Ho/Ee,arrowX:Nn/be,arrowY:ha/Ee,scaleX:be,scaleY:Ee,align:Oe};d(Em);}}),S=()=>{m.current+=1;const w=m.current;Promise.resolve().then(()=>{m.current===w&&y();});},x=()=>{d(w=>({...w,ready:false}));};return Rn(x,[r]),Rn(()=>{e||x();},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,S]}function hz(){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 Bne(e,t,n,r,o){Rn(()=>{if(e&&t&&n){let p=function(){r(),o();};const i=t,s=n,l=n2(i),u=n2(s),d=mg(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 zne(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=mg(r);b.addEventListener("pointerdown",p,true),b.addEventListener("mousedown",g,true),b.addEventListener("contextmenu",g,true);const y=i0(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 Fne(){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 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)}const Hne=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`,[x,w]=q.useState(false),E=cz(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(No,r2({motionAppear:true,motionEnter:true,motionLeave:true,removeOnLeave:false,leavedClassName:`${S}-hidden`},g,{visible:o,onVisibleChanged:A=>{w(A);}}),({className:A,style:I})=>{const N=Y(S,A,b,{[`${S}-visible`]:x});return q.createElement("div",{className:N,style:{"--arrow-x":`${m?.x||0}px`,"--arrow-y":`${m?.y||0}px`,...M.current,...T,...I,...y}})})},Vne=({children:e,postTriggerProps:t})=>{const[n,r,o,i]=Fne(),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,Nf(j)&&l!==j&&u(j);}),b=f.useRef(null),y=hz(),S=Mt((j,K)=>{b.current=K,y(()=>{n(j);},j.delay);}),x=j=>{y(()=>{b.current?.()||n(false);},j);},w=Mt(j=>{i(j);}),[E,M,T,A,I,N,P,,,O,D]=mz(r,l,s?.target,s?.popupPlacement,s?.builtinPlacements||{},s?.popupAlign,void 0,false),_=f.useMemo(()=>{if(!s)return "";const j=fz(s.builtinPlacements||{},s.prefixCls||"",O,false);return Y(j,s.getPopupClassNameFromAlign?.(O))},[O,s?.getPopupClassNameFromAlign,s?.builtinPlacements,s?.prefixCls]),H=f.useMemo(()=>({show:S,hide:x}),[]);f.useEffect(()=>{D();},[s?.target]);const U=Mt(()=>(D(),Promise.resolve())),W=f.useRef({}),z=f.useContext(s0),L=f.useMemo(()=>({registerSubPopup:(j,K)=>{W.current[j]=K,z?.registerSubPopup(j,K);}}),[z]),G=s?.prefixCls;return f.createElement(dz.Provider,{value:H},e,s&&f.createElement(s0.Provider,{value:L},f.createElement(uz,{ref:g,portal:T1,onEsc:s.onEsc,prefixCls:G,popup:s.popup,className:Y(s.popupClassName,_,`${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(Hne,{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:Y(s.uniqueContainerClassName,_),uniqueContainerStyle:s.uniqueContainerStyle}))))};function jne(e=T1){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:x=.1,focusDelay:w,blurDelay:E,mask:M,maskClosable:T=true,getPopupContainer:A,forceRender:I,autoDestroy:N,popup:P,popupClassName:O,uniqueContainerClassName:D,uniqueContainerStyle:_,popupStyle:H,popupPlacement:U,builtinPlacements:W={},popupAlign:z,zIndex:L,stretch:G,getPopupClassNameFromAlign:j,fresh:K,unique:X,alignPoint:k,onPopupClick:V,onPopupAlign:Q,arrow:J,popupMotion:te,maskMotion:ne,mobile:re,...ie}=n,ue=N||false,ee=d===void 0,ae=!!re,ce=f.useRef({}),se=f.useContext(s0),$e=f.useMemo(()=>({registerSubPopup:(ht,Ht)=>{ce.current[ht]=Ht,se?.registerSubPopup(ht,Ht);}}),[se]),le=f.useContext(dz),pe=rl(),[be,Ee]=f.useState(null),Te=f.useRef(null),Ye=Mt(ht=>{Te.current=ht,Nf(ht)&&be!==ht&&Ee(ht),se?.registerSubPopup(pe,ht);}),[Re,fe]=f.useState(null),ge=f.useRef(null),Ne=Mt(ht=>{const Ht=Bu(ht);Nf(Ht)&&Re!==Ht&&(fe(Ht),ge.current=Ht);}),He={},We=Mt(ht=>{const Ht=Re;return Ht?.contains(ht)||i0(Ht)?.host===ht||ht===Ht||be?.contains(ht)||i0(be)?.host===ht||ht===be||Object.values(ce.current).some(dl=>dl?.contains(ht)||ht===dl)}),je=J?{...J!==true?J:{}}:null,[et,it]=fn(m||false,d),Ke=et||false,Oe=f.useMemo(()=>{const ht=typeof i=="function"?i({open:Ke}):i;return f.Children.only(ht)},[i,Ke]),qe=Oe?.props||{},Je=Mt(()=>Ke),ke=Mt((ht=0)=>({popup:P,target:Re,delay:ht,prefixCls:o,popupClassName:O,uniqueContainerClassName:D,uniqueContainerStyle:_,popupStyle:H,popupPlacement:U,builtinPlacements:W,popupAlign:z,zIndex:L,mask:M,maskClosable:T,popupMotion:te,maskMotion:ne,arrow:je,getPopupContainer:A,getPopupClassNameFromAlign:j,id:pe,onEsc:Dt}));Rn(()=>{le&&X&&Re&&!ee&&!se&&(Ke?le.show(ke(S),Je):le.hide(x));},[Ke,Re]);const Ie=f.useRef(Ke);Ie.current=Ke;const lt=Mt(ht=>{Oo.flushSync(()=>{Ke!==ht&&(it(ht),p?.(ht),b?.(ht));});}),Tt=hz(),pt=(ht,Ht=0)=>{if(d!==void 0){Tt(()=>{lt(ht);},Ht);return}if(le&&X&&ee&&!se){ht?le.show(ke(Ht),Je):le.hide(Ht);return}Tt(()=>{lt(ht);},Ht);};function Dt({top:ht}){ht&&pt(false);}const[xt,Ot]=f.useState(false);Rn(ht=>{(!ht||Ke)&&Ot(true);},[Ke]);const[dt,ut]=f.useState(null),[bt,Fe]=f.useState(null),Ue=ht=>{Fe([ht.clientX,ht.clientY]);},[ye,Me,Se,he,De,Ce,Be,Xe,st,ft,Et]=mz(Ke,be,k&&bt!==null?bt:Re,U,W,z,Q,ae),[At,Rt]=Lne(s,l,u),yn=At.has("click"),Wn=Rt.has("click")||Rt.has("contextMenu"),tt=Mt(()=>{xt||Et();});Bne(Ke,Re,be,tt,()=>{Ie.current&&k&&Wn&&pt(false);}),Rn(()=>{tt();},[bt,U]),Rn(()=>{Ke&&!W?.[U]&&tt();},[JSON.stringify(z)]);const Ge=f.useMemo(()=>{const ht=fz(W,o,ft,k);return Y(ht,j?.(ft))},[ft,j,W,o,k]);f.useImperativeHandle(r,()=>({nativeElement:ge.current,popupElement:Te.current,forceAlign:tt}));const[mt,Nt]=f.useState(0),[Ut,Jt]=f.useState(0),nn=()=>{if(G&&Re){const ht=Re.getBoundingClientRect();Nt(ht.width),Jt(ht.height);}},Nn=()=>{nn(),tt();},ir=ht=>{Ot(false),Et(),g?.(ht),y?.(ht);},Sn=()=>new Promise(ht=>{nn(),ut(()=>ht);});Rn(()=>{dt&&(Et(),dt(),ut(null));},[dt]);function vo(ht,Ht,dl,tv,ld){He[ht]=(pa,...nv)=>{(!ld||!ld())&&(tv?.(pa),pt(Ht,dl)),qe[ht]?.(pa,...nv);};}const ha=At.has("touch"),Gn=Rt.has("touch"),Ho=f.useRef(false);(ha||Gn)&&(He.onTouchStart=(...ht)=>{Ho.current=true,Ie.current&&Gn?pt(false):!Ie.current&&ha&&pt(true),qe.onTouchStart?.(...ht);}),(yn||Wn)&&(He.onClick=(ht,...Ht)=>{Ie.current&&Wn?pt(false):!Ie.current&&yn&&(Ue(ht),pt(true)),qe.onClick?.(ht,...Ht),Ho.current=false;});const Em=zne(Ke,Wn||Gn,Re,be,M,T,We,pt),Bt=At.has("hover"),Fr=Rt.has("hover");let Hr,_s;const Pi=()=>Ho.current;if(Bt){const ht=Ht=>{Ue(Ht);};vo("onMouseEnter",true,S,ht,Pi),vo("onPointerEnter",true,S,ht,Pi),Hr=Ht=>{(Ke||xt)&&be?.contains(Ht.target)&&pt(true,S);},k&&(He.onMouseMove=Ht=>{qe.onMouseMove?.(Ht);});}Fr&&(vo("onMouseLeave",false,x,void 0,Pi),vo("onPointerLeave",false,x,void 0,Pi),_s=()=>{pt(false,x);}),At.has("focus")&&vo("onFocus",true,w),Rt.has("focus")&&vo("onBlur",false,E),At.has("contextMenu")&&(He.onContextMenu=(ht,...Ht)=>{Ie.current&&Rt.has("contextMenu")?pt(false):(Ue(ht),pt(true)),ht.preventDefault(),qe.onContextMenu?.(ht,...Ht);});const Vo=f.useRef(false);Vo.current||=I||Ke||xt;const Zr={...qe,...He},Nc={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(ht=>{ie[ht]&&(Nc[ht]=(...Ht)=>{Zr[ht]?.(...Ht),ie[ht](...Ht);});});const Pc={x:Ce,y:Be};e9(Ke,Re,Nn);const sd=tl(Ne,yc(Oe)),ad=f.cloneElement(Oe,{...Zr,...Nc,ref:sd});return f.createElement(f.Fragment,null,ad,Vo.current&&(!le||!X)&&f.createElement(s0.Provider,{value:$e},f.createElement(uz,{portal:e,ref:Ye,prefixCls:o,popup:P,className:Y(O,!ae&&Ge),style:H,target:Re,onMouseEnter:Hr,onMouseLeave:_s,onPointerEnter:Hr,zIndex:L,open:Ke,keepDom:xt,fresh:K,onClick:V,onPointerDownCapture:Em,mask:M,motion:te,maskMotion:ne,onVisibleChanged:ir,onPrepare:Sn,forceRender:I,autoDestroy:ue,getPopupContainer:A,onEsc:Dt,align:ft,arrow:je,arrowPos:Pc,ready:ye,offsetX:Me,offsetY:Se,offsetR:he,offsetB:De,onAlign:tt,stretch:G,targetWidth:mt/Xe,targetHeight:Ut/st,mobile:re})))})}const A1=jne(T1);function pz(e){return e&&q.isValidElement(e)&&e.type===q.Fragment}const gz=(e,t,n)=>q.isValidElement(e)?q.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function qr(e,t){return gz(e,e,t)}const Une=({children:e})=>{const{getPrefixCls:t}=q.useContext(wt),n=t();return q.isValidElement(e)?q.createElement(No,{visible:true,motionName:`${n}-fade`,motionAppear:true,motionEnter:true,motionLeave:false,removeOnLeave:false},({style:r,className:o})=>qr(e,i=>({className:Y(i.className,o),style:{...i.style,...r}}))):e},xb=[null,null];function Wne(e){if(xb[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:false};}),xb[0]=e,xb[1]=t;}return xb[1]}const vz=({children:e})=>{const t=n=>{const{id:r,builtinPlacements:o,popup:i}=n,s=typeof i=="function"?i():i,l=Wne(o);return {...n,getPopupContainer:null,arrow:false,popup:q.createElement(Une,{key:r},s),builtinPlacements:l}};return q.createElement(Vne,{postTriggerProps:t},e)},fo=f.createContext(false),bz=({children:e,disabled:t})=>{const n=f.useContext(fo);return f.createElement(fo.Provider,{value:t??n},e)},Of=f.createContext(void 0),Gne=({children:e,size:t})=>{const n=f.useContext(Of);return f.createElement(Of.Provider,{value:t||n},e)};function qne(){const e=f.useContext(fo),t=f.useContext(Of);return {componentDisabled:e,componentSize:t}}function Kne(e,t,n){const r=e||{},o=r.inherit===false||!t?{...Ap,hashed:t?.hashed??Ap.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 !ic(u,m,true)}))}const cO=f.createContext(true);function Yne(e){const t=f.useContext(cO),{children:n}=e,[,r]=Xr(),{motion:o}=r,i=f.useRef(false);return i.current||(i.current=t!==o),i.current?f.createElement(cO.Provider,{value:o},f.createElement(Pte,{motion:o},n)):n}const Xne=()=>null,Qne=({iconPrefixCls:e,csp:t})=>(fte(e,t),null),Zne=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let a0,yz,Sz,Cz;function fw(){return a0||Cp}function Jne(){return yz||b1}const ere=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(a0=t),n!==void 0&&(yz=n),"holderRender"in e&&(Cz=o),r&&(Sz=r);},TT=()=>({getPrefixCls:(e,t)=>t||(e?`${fw()}-${e}`:fw()),getIconPrefixCls:Jne,getRootPrefixCls:()=>a0||fw(),getTheme:()=>Sz,holderRender:Cz}),tre=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:x,popupOverflow:w,legacyLocale:E,parentContext:M,iconPrefixCls:T,theme:A,componentDisabled:I,segmented:N,statistic:P,spin:O,calendar:D,carousel:_,cascader:H,collapse:U,typography:W,checkbox:z,descriptions:L,divider:G,drawer:j,skeleton:K,steps:X,image:k,layout:V,list:Q,mentions:J,modal:te,progress:ne,result:re,slider:ie,breadcrumb:ue,masonry:ee,menu:ae,pagination:ce,input:se,textArea:$e,otp:le,empty:pe,badge:be,radio:Ee,rate:Te,ribbon:Ye,switch:Re,transfer:fe,avatar:ge,message:Ne,tag:He,table:We,card:je,cardMeta:et,tabs:it,timeline:Ke,timePicker:Oe,upload:qe,notification:Je,tree:ke,colorPicker:Ie,datePicker:lt,rangePicker:Tt,flex:pt,wave:Dt,dropdown:xt,warning:Ot,tour:dt,tooltip:ut,popover:bt,popconfirm:Fe,qrcode:Ue,floatButton:ye,floatButtonGroup:Me,variant:Se,inputNumber:he,treeSelect:De,watermark:Ce}=e,Be=f.useCallback((mt,Nt)=>{const{prefixCls:Ut}=e;if(Nt)return Nt;const Jt=Ut||M.getPrefixCls("");return mt?`${Jt}-${mt}`:Jt},[M.getPrefixCls,e.prefixCls]),Xe=T||M.iconPrefixCls||b1,st=n||M.csp,ft=Kne(A,M.theme,{prefixCls:Be("")}),Et={csp:st,autoInsertSpaceInButton:r,alert:o,affix:i,anchor:s,app:l,locale:d||E,direction:p,space:g,splitter:b,virtual:y,popupMatchSelectWidth:x??S,popupOverflow:w,getPrefixCls:Be,iconPrefixCls:Xe,theme:ft,segmented:N,statistic:P,spin:O,calendar:D,carousel:_,cascader:H,collapse:U,typography:W,checkbox:z,descriptions:L,divider:G,drawer:j,skeleton:K,steps:X,image:k,input:se,textArea:$e,otp:le,layout:V,list:Q,mentions:J,modal:te,progress:ne,result:re,slider:ie,breadcrumb:ue,masonry:ee,menu:ae,pagination:ce,empty:pe,badge:be,radio:Ee,rate:Te,ribbon:Ye,switch:Re,transfer:fe,avatar:ge,message:Ne,tag:He,table:We,card:je,cardMeta:et,tabs:it,timeline:Ke,timePicker:Oe,upload:qe,notification:Je,tree:ke,colorPicker:Ie,datePicker:lt,rangePicker:Tt,flex:pt,wave:Dt,dropdown:xt,warning:Ot,tour:dt,tooltip:ut,popover:bt,popconfirm:Fe,qrcode:Ue,floatButton:ye,floatButtonGroup:Me,variant:Se,inputNumber:he,treeSelect:De,watermark:Ce},At={...M};Object.keys(Et).forEach(mt=>{Et[mt]!==void 0&&(At[mt]=Et[mt]);}),Zne.forEach(mt=>{const Nt=e[mt];Nt&&(At[mt]=Nt);}),typeof r<"u"&&(At.button={autoInsertSpace:r,...At.button});const Rt=Qf(()=>At,At,(mt,Nt)=>{const Ut=Object.keys(mt),Jt=Object.keys(Nt);return Ut.length!==Jt.length||Ut.some(nn=>mt[nn]!==Nt[nn])}),{layer:yn}=f.useContext(zu),Wn=f.useMemo(()=>({prefixCls:Xe,csp:st,layer:yn?"antd":void 0}),[Xe,st,yn]);let tt=f.createElement(f.Fragment,null,f.createElement(Qne,{iconPrefixCls:Xe,csp:st}),f.createElement(Xne,{dropdownMatchSelectWidth:S}),t);const Qe=f.useMemo(()=>cf(As.Form?.defaultValidateMessages||{},Rt.locale?.Form?.defaultValidateMessages||{},Rt.form?.validateMessages||{},u?.validateMessages||{}),[Rt,u?.validateMessages]);Object.keys(Qe).length>0&&(tt=f.createElement(yne.Provider,{value:Qe},tt)),d&&(tt=f.createElement(ane,{locale:d,_ANT_MARK__:sne},tt)),tt=f.createElement(bT.Provider,{value:Wn},tt),m&&(tt=f.createElement(Gne,{size:m},tt)),tt=f.createElement(Yne,null,tt),ut?.unique&&(tt=f.createElement(vz,null,tt));const Ge=f.useMemo(()=>{const{algorithm:mt,token:Nt,components:Ut,cssVar:Jt,...nn}=ft||{},Nn=mt&&(!Array.isArray(mt)||mt.length>0)?n0(mt):gT,ir={};Object.entries(Ut||{}).forEach(([vo,ha])=>{const Gn={...ha};"algorithm"in Gn&&(Gn.algorithm===true?Gn.theme=Nn:(Array.isArray(Gn.algorithm)||typeof Gn.algorithm=="function")&&(Gn.theme=n0(Gn.algorithm)),delete Gn.algorithm),ir[vo]=Gn;});const Sn={...If,...Nt};return {...nn,theme:Nn,token:Sn,components:ir,override:{override:Sn,...ir},cssVar:Jt}},[ft]);return A&&(tt=f.createElement(vT.Provider,{value:Ge},tt)),Rt.warning&&(tt=f.createElement(EJ.Provider,{value:Rt.warning},tt)),I!==void 0&&(tt=f.createElement(bz,{disabled:I},tt)),f.createElement(wt.Provider,{value:Rt},tt)},Fo=e=>{const t=f.useContext(wt),n=f.useContext(xT);return f.createElement(tre,{parentContext:t,legacyLocale:n,...e})};Fo.ConfigContext=wt;Fo.SizeContext=Of;Fo.config=ere;Fo.useConfig=qne;Object.defineProperty(Fo,"SizeContext",{get:()=>Of});const at={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 l0(){return l0=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},l0.apply(this,arguments)}const AT=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,[x,w]=f.useState(false),[E,M]=f.useState(0),[T,A]=f.useState(0),I=S||x,N=typeof i=="number"?i:0,P=N>0&&s,O=()=>{b(u);},D=z=>{(z.key==="Enter"||z.code==="Enter"||z.keyCode===at.ENTER)&&O();};f.useEffect(()=>{if(!I&&N>0){const z=Date.now()-T,L=setTimeout(()=>{O();},N*1e3-T);return ()=>{l&&clearTimeout(L),A(Date.now()-z);}}},[N,I,y]),f.useEffect(()=>{if(!I&&P&&(l||T===0)){const z=performance.now();let L;const G=()=>{cancelAnimationFrame(L),L=requestAnimationFrame(j=>{const K=j+T-z,X=Math.min(K/(N*1e3),1);M(X*100),X<1&&G();});};return G(),()=>{l&&cancelAnimationFrame(L);}}},[N,T,I,P,y]);const _=f.useMemo(()=>typeof m=="object"&&m!==null?m:{},[m]),H=Ao(_,true),U=100-(!E||E<0?0:E>100?100:E),W=`${n}-notice`;return f.createElement("div",l0({},p,{ref:t,className:Y(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",l0({className:`${W}-close`,onKeyDown:D,"aria-label":"Close"},H,{onClick:z=>{z.preventDefault(),z.stopPropagation(),O();}}),_.closeIcon??"x"),P&&f.createElement("progress",{className:`${W}-progress`,max:"100",value:U},U+"%"))}),xz=q.createContext({}),wz=({children:e,classNames:t})=>q.createElement(xz.Provider,{value:{classNames:t}},e),uO=8,dO=3,fO=16,nre=e=>{const t={offset:uO,threshold:dO,gap:fO};return e&&typeof e=="object"&&(t.offset=e.offset??uO,t.threshold=e.threshold??dO,t.gap=e.gap??fO),[!!e,t]};function c0(){return c0=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},c0.apply(this,arguments)}const rre=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(xz),p=f.useRef({}),[g,b]=f.useState(null),[y,S]=f.useState([]),x=t.map(N=>({config:N,key:String(N.key)})),[w,{offset:E,threshold:M,gap:T}]=nre(d),A=w&&(y.length>0||x.length<=M),I=typeof s=="function"?s(n):s;return f.useEffect(()=>{w&&y.length>1&&S(N=>N.filter(P=>x.some(({key:O})=>P===O)));},[y,x,w]),f.useEffect(()=>{w&&p.current[x[x.length-1]?.key]&&b(p.current[x[x.length-1]?.key]);},[x,w]),q.createElement(Kte,c0({key:n,className:Y(r,`${r}-${n}`,m?.list,o,{[`${r}-stack`]:!!w,[`${r}-stack-expanded`]:A}),style:i,keys:x,motionAppear:true},I,{onAllRemoved:()=>{l(n);}}),({config:N,className:P,style:O,index:D},_)=>{const{key:H,times:U}=N,W=String(H),{className:z,style:L,classNames:G,styles:j,...K}=N,X=x.findIndex(V=>V.key===W),k={};if(w){const V=x.length-1-(X>-1?X:D-1),Q=n==="top"||n==="bottom"?"-50%":"0";if(V>0){k.height=A?p.current[W]?.offsetHeight:g?.offsetHeight;let J=0;for(let re=0;re<V;re++)J+=p.current[x[x.length-1-re].key]?.offsetHeight+T;const te=(A?J:V*E)*(n.startsWith("top")?1:-1),ne=!A&&g?.offsetWidth&&p.current[W]?.offsetWidth?(g?.offsetWidth-E*2*(V<3?V:3))/p.current[W]?.offsetWidth:1;k.transform=`translate3d(${Q}, ${te}px, 0) scaleX(${ne})`;}else k.transform=`translate3d(${Q}, 0, 0)`;}return q.createElement("div",{ref:_,className:Y(`${r}-notice-wrapper`,P,G?.wrapper),style:{...O,...k,...j?.wrapper},onMouseEnter:()=>S(V=>V.includes(W)?V:[...V,W]),onMouseLeave:()=>S(V=>V.filter(Q=>Q!==W))},q.createElement(AT,c0({},K,{ref:V=>{X>-1?p.current[W]=V:delete p.current[W];},prefixCls:r,classNames:G,styles:j,className:Y(z,m?.notice),style:L,times:U,key:H,eventKey:H,onNoticeClose:u,hovering:w&&y.length>0})))})},ore=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 x=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 Oo.createPortal(f.createElement(f.Fragment,null,E.map(M=>{const T=y[M],A=f.createElement(rre,{key:M,configList:T,placement:M,prefixCls:n,className:s?.(M),style:l?.(M),motion:o,onNoticeClose:b,onAllNoticeRemoved:x,stack:d});return m?m(A,{prefixCls:n,key:M}):A})),r)}),ire=()=>document.body;let mO=0;function sre(...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 Ez(e={}){const{getContainer:t=ire,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(ore,{container:p,ref:b,prefixCls:r,motion:n,maxCount:o,className:i,style:s,onAllRemoved:l,stack:u,renderNotifications:d}),[S,x]=f.useState([]),w=Mt(M=>{const T=sre(m,M);(T.key===null||T.key===void 0)&&(T.key=`rc-notification-${mO}`,mO+=1),x(A=>[...A,{type:"open",config:T}]);}),E=f.useMemo(()=>({open:w,close:M=>{x(T=>[...T,{type:"close",key:M}]);},destroy:()=>{x(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;x(A=>((M!==A||!T)&&(M=A,T=A.filter(I=>!S.includes(I))),T));}},[S]),[E,y]}var are={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 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 lre=(e,t)=>f.createElement(Qn,o2({},e,{ref:t,icon:are})),R1=f.forwardRef(lre),cre=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:x,contentBg:w}=e,E=`${t}-notice`,M=new kt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:b,transform:"translateY(0)",opacity:1}}),T=new kt("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:x,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"}}]},ure=e=>({zIndexPopup:e.zIndexPopupBase+$T+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),$z=Gt("Message",e=>{const t=zt(e,{height:150});return cre(t)},ure),dre={info:f.createElement(ST,null),success:f.createElement(yT,null),error:f.createElement(dg,null),warning:f.createElement(fg,null),loading:f.createElement(R1,null)},Mz=e=>{const{prefixCls:t,type:n,icon:r,children:o,classNames:i,styles:s}=e,l=r||n&&dre[n],u=qr(l,d=>{const m={...d?.style,...s?.icon};return {className:Y(d.className,i?.icon),style:m}});return f.createElement("div",{className:Y(`${t}-custom-content`,`${t}-${n}`)},u,f.createElement("span",{className:i?.content,style:s?.content},o))},fre=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"),x=Zn(S),[w,E]=$z(S,x),[M,T]=Kt([b,l],[y,u],{props:e});return f.createElement(AT,{...d,prefixCls:S,className:Y(p,M.root,n,w,`${S}-notice-pure-panel`,E,x),style:{...T.root,...g,...r},eventKey:"pure",duration:null,content:f.createElement(Mz,{prefixCls:S,type:o,icon:i,classNames:M,styles:T},s)})};function mre(e,t){return {motionName:t??`${e}-move-up`}}function RT(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 hre=8,pre=3,gre=({children:e,prefixCls:t})=>{const n=Zn(t),[r,o]=$z(t,n);return f.createElement(wz,{classNames:{list:Y(r,o,n)}},e)},vre=(e,{prefixCls:t,key:n})=>f.createElement(gre,{prefixCls:t,key:n},e),bre=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"),x=()=>({left:"50%",transform:"translateX(-50%)",top:n??hre}),w=()=>Y({[`${S}-rtl`]:l??g==="rtl"}),E=()=>mre(S,u),[M,T]=Kt([e?.classNames,y?.classNames],[e?.styles,y?.styles],{props:e}),[A,I]=Ez({prefixCls:S,style:x,className:w,motion:E,closable:false,duration:s,getContainer:()=>o?.()||b?.()||document.body,maxCount:i,onAllRemoved:d,renderNotifications:vre,pauseOnHover:m});return f.useImperativeHandle(t,()=>({...A,prefixCls:S,message:y,classNames:M,styles:T})),I});let hO=0;function Tz(e){const t=f.useRef(null);return [f.useMemo(()=>{const r=u=>{t.current?.close(u);},o=u=>{if(!t.current){const k=()=>{};return k.then=()=>{},k}const{open:d,prefixCls:m,message:p,classNames:g,styles:b}=t.current,y=p?.className||{},S=p?.style||{},x=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:_={},...H}=u;let U=I;Lr(U)||(hO+=1,U=`antd-message-${hO}`);const W={...e,...u},z=Xl(x,{props:W}),L=Xl(D,{props:W}),G=Xl(w,{props:W}),j=Xl(_,{props:W}),K=$1(void 0,z,L,g),X=ET(G,j,b);return RT(k=>(d({...H,key:U,content:f.createElement(Mz,{prefixCls:m,type:A,icon:T,classNames:K,styles:X},M),placement:"top",className:Y({[`${E}-${A}`]:A},N,y,K.root),style:{...X.root,...S,...P},onClose:()=>{O?.(),k();}}),()=>{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 x={onClose:S,duration:y,...b,type:u};return o(x)};s[u]=d;}),s},[]),f.createElement(bre,{key:"message-holder",...e,ref:t})]}function Az(e){return Tz(e)}const u0="__rc_react_root__";function N1(e,t){const n=t[u0]||MB.createRoot(t);n.render(e),t[u0]=n;}async function Rz(e){return Promise.resolve().then(()=>{e[u0]?.unmount(),delete e[u0];})}const mw=()=>({height:0,opacity:0}),pO=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},yre=e=>({height:e?e.offsetHeight:0}),hw=(e,t)=>t?.deadline===true||t.propertyName==="height",Nz=(e=Cp)=>({motionName:`${e}-motion-collapse`,onAppearStart:mw,onEnterStart:mw,onAppearActive:pO,onEnterActive:pO,onLeaveStart:yre,onLeaveActive:mw,onAppearEnd:hw,onEnterEnd:hw,onLeaveEnd:hw,motionDeadline:500}),ac=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Sre=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(",")}}}}},Cre=dte("Wave",Sre),P1=`${Cp}-wave-target`;function gO(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 xre(e,t=null){const n=getComputedStyle(e),{borderTopColor:r,borderColor:o,backgroundColor:i}=n;return t&&gO(n[t])?n[t]:[r,o,i].find(gO)??null}function pw(e){return Number.isNaN(e)?0:e}const wre=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,x]=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(xre(n,o));const _=D.position==="static",{borderLeftWidth:H,borderTopWidth:U}=D;y(_?n.offsetLeft:pw(-Number.parseFloat(H))),x(_?n.offsetTop:pw(-Number.parseFloat(U))),E(n.offsetWidth),T(n.offsetHeight);const{borderTopLeftRadius:W,borderTopRightRadius:z,borderBottomLeftRadius:L,borderBottomRightRadius:G}=D;g([W,z,G,L].map(j=>pw(Number.parseFloat(j))));}if(f.useEffect(()=>{if(n){const D=Lt(()=>{P(),I(true);});let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(P),_.observe(n)),()=>{Lt.cancel(D),_?.disconnect();}}},[n]),!A)return null;const O=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(P1);return f.createElement(No,{visible:true,motionAppear:true,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(D,_)=>{if(_.deadline||_.propertyName==="opacity"){const H=i.current?.parentElement;Rz(H).then(()=>{H?.remove();});}return  false}},({className:D},_)=>f.createElement("div",{ref:Yr(i,_),className:Y(t,D,{"wave-quick":O}),style:N}))},Ere=(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),N1(f.createElement(wre,{...t,target:e}),r);},$re=(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(`.${P1}`)||p,{showEffect:b}=o||{};(b||Ere)(g,{className:t,token:i,component:n,event:m,hashId:s,colorSource:r});}),u=f.useRef(null);return f.useEffect(()=>()=>{Lt.cancel(u.current);},[]),m=>{Lt.cancel(u.current),u.current=Lt(()=>{l(m);});}},hg=e=>{const{children:t,disabled:n,component:r,colorSource:o}=e,{getPrefixCls:i}=f.useContext(wt),s=f.useRef(null),l=i("wave"),u=Cre(l),d=$re(s,Y(l,u),r,o);if(q.useEffect(()=>{const p=s.current;if(!p||p.nodeType!==window.Node.ELEMENT_NODE||n)return;const g=b=>{!MT(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=Ku(t)?Yr(yc(t),s):s;return qr(t,{ref:m})},br=e=>{const t=q.useContext(Of);return q.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},Mre=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},Tre=Gt(["Space","Compact"],Mre,()=>({}),{resetStyle:false}),I1=f.createContext(null),ol=(e,t)=>{const n=f.useContext(I1),r=f.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:i,isLastItem:s}=n,l=o==="vertical"?"-vertical-":"-";return Y(`${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}},Are=e=>{const{children:t}=e;return f.createElement(I1.Provider,{value:null},t)},Rre=e=>{const{children:t,...n}=e;return f.createElement(I1.Provider,{value:f.useMemo(()=>n,[n])},t)},NT=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]=Xu(i,p,o),S=br(I=>r??I),x=t("space-compact",l),[w]=Tre(x),E=Y(x,w,{[`${x}-rtl`]:n==="rtl",[`${x}-block`]:s,[`${x}-vertical`]:y},u,d),M=f.useContext(I1),T=ri(m),A=f.useMemo(()=>T.map((I,N)=>{const P=I?.key||`${x}-item-${N}`;return f.createElement(Rre,{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,x]);return T.length===0?null:f.createElement("div",{className:E,...g},A)},Pz=f.createContext(void 0),Nre=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=Y(l,{[`${l}-${d}`]:d,[`${l}-rtl`]:n==="rtl"},i,u);return f.createElement(Pz.Provider,{value:o},f.createElement("div",{...s,className:m}))},vO=/^[\u4E00-\u9FA5]{2}$/,i2=vO.test.bind(vO);function PT(e){return e==="danger"?{danger:true}:{type:e}}function bO(e){return typeof e=="string"}function gw(e){return e==="text"||e==="link"}function Pre(e,t,n,r){if(!Lr(e)||e==="")return;const o=t?" ":"";return typeof e!="string"&&typeof e!="number"&&bO(e.type)&&i2(e.props.children)?qr(e,i=>{const s=Y(i.className,r)||void 0,l={...n,...i.style};return {...i,children:i.children.split("").join(o),className:s,style:l}}):bO(e)?q.createElement("span",{className:r,style:n},i2(e)?e.split("").join(o):e):pz(e)?q.createElement("span",{className:r,style:n},e):qr(e,i=>({...i,className:Y(i.className,r)||void 0,style:{...i.style,...n}}))}function Ire(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=>Pre(s,t,n,r))}["default","primary","danger"].concat(Xt(oa));const Iz=f.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,s=Y(`${i}-icon`,n);return q.createElement("span",{ref:t,className:s,style:r},o)}),yO=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,s=Y(`${n}-loading-icon`,r);return q.createElement(Iz,{prefixCls:n,className:s,style:o,ref:t},q.createElement(R1,{className:i}))}),vw=()=>({width:0,opacity:0,transform:"scale(0)"}),bw=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Ore=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:s}=e,l=!!n;return r?q.createElement(yO,{prefixCls:t,className:o,style:i}):q.createElement(No,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:true,onAppearStart:vw,onAppearActive:bw,onEnterStart:vw,onEnterActive:bw,onLeaveStart:bw,onLeaveActive:vw},({className:u,style:d},m)=>{const p={...i,...d};return q.createElement(yO,{prefixCls:t,className:Y(o,u),style:p,ref:m})})},Oz=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`}}}},SO=e=>({animationDuration:e,animationFillMode:"both"}),O1=(e,t,n,r,o=false)=>{const i=o?"&":"";return {[`
      ${i}${e}-enter,
      ${i}${e}-appear
    `]:{...SO(r),animationPlayState:"paused"},[`${i}${e}-leave`]:{...SO(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"}}},Dre=new kt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),_re=new kt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),IT=(e,t=false)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return [O1(r,Dre,_re,e.motionDurationMid,t),{[`
        ${o}${r}-enter,
        ${o}${r}-appear
      `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Lre=new kt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kre=new kt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Bre=new kt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zre=new kt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Fre=new kt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Hre=new kt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Vre=new kt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),jre=new kt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Ure={"move-up":{inKeyframes:Vre,outKeyframes:jre},"move-down":{inKeyframes:Lre,outKeyframes:kre},"move-left":{inKeyframes:Bre,outKeyframes:zre},"move-right":{inKeyframes:Fre,outKeyframes:Hre}},d0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Ure[t];return [O1(r,o,i,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},OT=new kt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),DT=new kt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),_T=new kt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),LT=new kt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Wre=new kt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Gre=new kt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),qre=new kt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Kre=new kt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Yre={"slide-up":{inKeyframes:OT,outKeyframes:DT},"slide-down":{inKeyframes:_T,outKeyframes:LT},"slide-left":{inKeyframes:Wre,outKeyframes:Gre},"slide-right":{inKeyframes:qre,outKeyframes:Kre}},lc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Yre[t];return [O1(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}}]},Ua=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}),Xre=new kt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Qre=new kt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),CO=new kt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),xO=new kt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Zre=new kt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Jre=new kt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),eoe=new kt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),toe=new kt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),noe=new kt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),roe=new kt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ooe=new kt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ioe=new kt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),soe={zoom:{inKeyframes:Xre,outKeyframes:Qre},"zoom-big":{inKeyframes:CO,outKeyframes:xO},"zoom-big-fast":{inKeyframes:CO,outKeyframes:xO},"zoom-left":{inKeyframes:eoe,outKeyframes:toe},"zoom-right":{inKeyframes:noe,outKeyframes:roe},"zoom-up":{inKeyframes:Zre,outKeyframes:Jre},"zoom-down":{inKeyframes:ooe,outKeyframes:ioe}},pg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=soe[t];return [O1(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}}]},wO=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),aoe=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}},wO(`${t}-primary`,o),wO(`${t}-danger`,i)]}},yw=e=>Math.round(Number(e||0)),loe=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 Rs extends dn{constructor(t){super(loe(t));}toHsbString(){const t=this.toHsb(),n=yw(t.s*100),r=yw(t.b*100),o=yw(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 coe="rc-color-picker",Sf=e=>e instanceof Rs?e:new Rs(e),uoe=Sf("#1677ff"),Dz=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,x=(t.x+m)/s*360;if(i)switch(i){case "hue":return Sf({...y,h:x<=0?0:x});case "alpha":return Sf({...y,a:S<=0?0:S})}return Sf({h:y.h,s:g<=0?0:g,b:b>=1?1:b,a:y.a})},_z=(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}}},kT=({color:e,prefixCls:t,className:n,style:r,innerClassName:o,innerStyle:i,onClick:s})=>{const l=`${t}-color-block`;return q.createElement("div",{className:Y(l,n),style:r,onClick:s},q.createElement("div",{className:Y(`${l}-inner`,o),style:{background:e,...i}}))};function doe(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 Lz(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}=doe(w),{x:T,y:A,width:I,height:N}=n.current.getBoundingClientRect(),{width:P,height:O}=t.current.getBoundingClientRect(),D=P/2,_=O/2,H=Math.max(0,Math.min(E-T,I))-D,U=Math.max(0,Math.min(M-A,N))-_,W={x:H,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 kz=({size:e="default",color:t,prefixCls:n})=>q.createElement("div",{className:Y(`${n}-handler`,{[`${n}-handler-sm`]:e==="small"}),style:{backgroundColor:t}}),Bz=({children:e,style:t,prefixCls:n})=>q.createElement("div",{className:`${n}-palette`,style:{position:"relative",...t}},e),zz=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)}),foe=({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=Dz({offset:p,targetRef:s,containerRef:i,color:e});l.current=g,t(g);}),[d,m]=Lz({color:e,containerRef:i,targetRef:s,calculate:()=>_z(e),onDragChange:u,onDragChangeComplete:()=>r?.(l.current),disabledDrag:o});return q.createElement("div",{ref:i,className:`${n}-select`,onMouseDown:m,onTouchStart:m},q.createElement(Bz,{prefixCls:n},q.createElement(zz,{x:d.x,y:d.y,ref:s},q.createElement(kz,{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))"}})))},moe=(e,t)=>{const[n,r]=fn(e,t);return [f.useMemo(()=>Sf(n),[n]),r]},hoe=({colors:e,children:t,direction:n="to right",type:r,prefixCls:o})=>{const i=f.useMemo(()=>e.map((s,l)=>{let u=Sf(s);return r==="alpha"&&l===e.length-1&&(u=new Rs(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)},poe=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=Dz({offset:w,targetRef:d,containerRef:u,color:s,type:l});m.current=E,o(p(E));}),[b,y]=Lz({color:s,targetRef:d,containerRef:u,calculate:()=>_z(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 Rs(w)}return s},[s,l]),x=q.useMemo(()=>n.map(w=>`${w.color} ${w.percent}%`),[n]);return q.createElement("div",{ref:u,className:Y(`${t}-slider`,`${t}-slider-${l}`),onMouseDown:y,onTouchStart:y},q.createElement(Bz,{prefixCls:t},q.createElement(zz,{x:b.x,y:b.y,ref:d},q.createElement(kz,{size:"small",color:S.toHexString(),prefixCls:t})),q.createElement(hoe,{colors:x,type:l,prefixCls:t})))};function goe(e){return f.useMemo(()=>{const{slider:t}=e||{};return [t||poe]},[e])}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)}const voe=[{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}],boe=f.forwardRef((e,t)=>{const{value:n,defaultValue:r,prefixCls:o=coe,onChange:i,onChangeComplete:s,className:l,style:u,panelRender:d,disabledAlpha:m=false,disabled:p=false,components:g}=e,[b]=goe(g),[y,S]=moe(r||uoe,n),x=f.useMemo(()=>y.setA(1).toRgbString(),[y]),w=(_,H)=>{n||S(_),i?.(_,H);},E=_=>new Rs(y.setHue(_)),M=_=>new Rs(y.setA(_/100)),T=_=>{w(E(_),{type:"hue",value:_});},A=_=>{w(M(_),{type:"alpha",value:_});},I=_=>{s&&s(E(_));},N=_=>{s&&s(M(_));},P=Y(`${o}-panel`,l,{[`${o}-panel-disabled`]:p}),O={prefixCls:o,disabled:p,color:y},D=q.createElement(q.Fragment,null,q.createElement(foe,Qh({onChange:w},O,{onChangeComplete:s})),q.createElement("div",{className:`${o}-slider-container`},q.createElement("div",{className:Y(`${o}-slider-group`,{[`${o}-slider-group-disabled-alpha`]:m})},q.createElement(b,Qh({},O,{type:"hue",colors:voe,min:0,max:359,value:y.getHue(),onChange:T,onChangeComplete:I})),!m&&q.createElement(b,Qh({},O,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:x}],min:0,max:100,value:y.a*100,onChange:A,onChangeComplete:N}))),q.createElement(kT,{color:y.toRgbString(),prefixCls:o})));return q.createElement("div",{className:P,style:u,ref:t},typeof d=="function"?d(D):D)}),Bh=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"",yoe=(e,t)=>e?Bh(e,t):"";let Jo=(function(){function e(t){if(os(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 Rs(this.colors[0].color.metaColor)):this.metaColor=new Rs(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=true);}return is(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return yoe(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 Soe={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 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 Coe=(e,t)=>f.createElement(Qn,s2({},e,{ref:t,icon:Soe})),Df=f.forwardRef(Coe),xoe=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:Y(`${n}-panel`,{[`${n}-panel-active`]:l,[`${n}-panel-inactive`]:!l},o),style:i,role:u},q.createElement("div",{className:Y(`${n}-body`,d?.body),style:m?.body},s)):null}),Fz=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:x,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===at.ENTER||U.which===at.ENTER)&&i?.(b);},role:g?"tab":"button","aria-expanded":o,"aria-disabled":A,tabIndex:A?-1:0},P=typeof x=="function"?x(e):q.createElement("i",{className:"arrow"}),O=P&&q.createElement("div",dr({className:Y(`${m}-expand-icon`,u?.icon),style:d?.icon},["header","icon"].includes(p)?N:{}),P),D=Y(`${m}-item`,{[`${m}-item-active`]:o,[`${m}-item-disabled`]:A},l),H={className:Y(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",H,n&&O,q.createElement("span",dr({className:Y(`${m}-title`,u?.title),style:d?.title},p==="header"?N:{}),S),I&&q.createElement("div",{className:`${m}-extra`},y)),q.createElement(No,dr({visible:o,leavedClassName:`${m}-panel-hidden`},w,{forceRender:s,removeOnLeave:E}),({className:U,style:W},z)=>q.createElement(xoe,{ref:z,prefixCls:m,className:U,classNames:u,style:W,styles:d,isActive:o,forceRender:s,role:g?"tabpanel":void 0},M)))});function Hz(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 woe(e,t){return Hz(e,t,(n,r)=>Y(n,r))}function Eoe(e,t){return Hz(e,t,(n,r)=>({...n,...r}))}const $oe=(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:x,collapsible:w,onItemClick:E,destroyOnHidden:M,classNames:T,styles:A,...I}=g,N=String(x??b),P=w??o,O=M??i,D=H=>{P!=="disabled"&&(s(H),E?.(H));};let _=false;return r?_=l[0]===N:_=l.indexOf(N)>-1,q.createElement(Fz,dr({},I,{classNames:woe(m,T),styles:Eoe(p,A),prefixCls:n,key:N,panelKey:N,isActive:_,accordion:r,openMotion:u,expandIcon:d,header:S,collapsible:P,onItemClick:D,destroyOnHidden:O}),y)})},Moe=(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:x,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:x??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 Toe(e,t,n){return Array.isArray(e)?$oe(e,n):ri(t).map((r,o)=>Moe(r,o,n))}function EO(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 Aoe=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:x}=e,w=Y(n,s),[E,M]=fn(g,p),T=EO(E),A=Mt(P=>{const O=EO(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=Toe(y,l,{prefixCls:n,accordion:i,openMotion:d,expandIcon:m,collapsible:u,destroyOnHidden:r,onItemClick:I,activeKey:T,classNames:S,styles:x});return q.createElement("div",dr({ref:t,className:w,style:o,role:i?"tablist":void 0},Ao(e,{aria:true,data:true})),N)}),BT=Object.assign(Aoe,{Panel:Fz}),{Panel:wIe}=BT,Roe=f.forwardRef((e,t)=>{const{getPrefixCls:n}=f.useContext(wt),{prefixCls:r,className:o,showArrow:i=true}=e,s=n("collapse",r),l=Y({[`${s}-no-arrow`]:!i},o);return f.createElement(BT.Panel,{ref:t,...e,prefixCls:s,className:l})}),Noe=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:x,lineHeightLG:w,marginSM:E,paddingSM:M,paddingLG:T,paddingXS:A,motionDurationSlow:I,fontSizeIcon:N,contentPadding:P,fontHeight:O,fontHeightLG:D}=e,_=`${oe(d)} ${m} ${p}`;return {[t]:{...mn(e),backgroundColor:o,border:_,borderRadius:u,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:_,"&: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:x,cursor:"pointer",transition:`all ${I}, visibility 0s`,...oi(e),[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:O,display:"flex",alignItems:"center",marginInlineEnd:E},[`${t}-arrow`]:{...Yu(),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:_,[`& > ${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}}}}}}},Poe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Ioe=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}}}},Ooe=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}}}}}},Doe=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"}),_oe=Gt("Collapse",e=>{const t=zt(e,{collapseHeaderPaddingSM:`${oe(e.paddingXS)} ${oe(e.paddingSM)}`,collapseHeaderPaddingLG:`${oe(e.padding)} ${oe(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return [Noe(t),Ioe(t),Ooe(t),Poe(t),Oz(t)]},Doe),Loe=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:x,expandIconPosition:w,children:E,destroyInactivePanel:M,destroyOnHidden:T,expandIcon:A,classNames:I,styles:N}=e,P=br(V=>S??V??"middle"),O=n("collapse",d),D=n(),[_,H]=_oe(O),U=x??w??"start",W={...e,size:P,bordered:b,expandIconPlacement:U},[z,L]=Kt([l,I],[u,N],{props:W}),G=A??o,j=f.useCallback((V={})=>{const Q=typeof G=="function"?G(V):f.createElement(Df,{rotate:V.isActive?r==="rtl"?-90:90:void 0,"aria-label":V.isActive?"expanded":"collapsed"});return qr(Q,J=>({className:Y(J.className,`${O}-arrow`)}))},[G,O,r]),K=Y(`${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,_,H,z.root),X=f.useMemo(()=>({...Nz(D),motionAppear:false,leavedClassName:`${O}-panel-hidden`}),[D,O]),k=f.useMemo(()=>E?ri(E).map(V=>V):null,[E]);return f.createElement(BT,{ref:t,openMotion:X,...Fn(e,["rootClassName"]),expandIcon:j,prefixCls:O,className:K,style:{...L.root,...s,...g},classNames:z,styles:L,destroyOnHidden:T??M},k)}),Vz=Object.assign(Loe,{Panel:Roe}),mo=e=>e instanceof Jo?e:new Jo(e),py=e=>Math.round(Number(e||0)),zT=e=>py(e.toHsb().a*100),gy=(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)},jz=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(Xt(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 Rs(s),p=new Rs(l);return m.mix(p,d).toRgbString()}}return ""},koe=e=>e.map(t=>(t.colors=t.colors.map(mo),t)),FT=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),s=new Rs(e.toRgbString()).onBackground(t).toHsv();return i<=.5?s.v>.5:n*.299+r*.587+o*.114>192},$O=(e,t)=>`panel-${e.key??t}`,Boe=({prefixCls:e,presets:t,value:n,onChange:r})=>{const[o]=zo("ColorPicker"),[,i]=Xr(),s=f.useMemo(()=>koe(t),[t]),l=`${e}-presets`,u=f.useMemo(()=>s.reduce((p,g,b)=>{const{defaultOpen:y=true}=g;return y&&p.push($O(g,b)),p},[]),[s]),d=p=>{r?.(p);},m=s.map((p,g)=>({key:$O(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(kT,{key:`preset-${y}-${b.toHexString()}`,color:S.toCssString(),prefixCls:e,className:Y(`${l}-color`,{[`${l}-color-checked`]:b.toCssString()===n?.toCssString(),[`${l}-color-bright`]:FT(b,i.colorBgElevated)}),onClick:()=>d(b)})}):q.createElement("span",{className:`${l}-empty`},o.presetEmpty))}));return q.createElement("div",{className:l},q.createElement(Vz,{defaultActiveKey:u,ghost:true,items:m}))},Uz=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return zt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},Wz=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,o=e.contentLineHeight??fy(t),i=e.contentLineHeightSM??fy(n),s=e.contentLineHeightLG??fy(r),l=FT(new Jo(e.colorBgSolid),"#fff")?"#000":"#fff",u=oa.reduce((p,g)=>({...p,[`${g}ShadowColor`]:`0 ${oe(e.controlOutlineWidth)} 0 ${kh(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}},zoe=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}}}},oa.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}}}]}},Foe=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",...Ua(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Yu(),"> a":{color:"currentColor"},"&:not(:disabled)":oi(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()}}}}}},Hoe=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),HT=(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}`]:Hoe(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Voe=e=>{const t=zt(e,{fontSize:e.contentFontSize});return HT(t,e.componentCls)},joe=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 HT(t,`${e.componentCls}-sm`)},Uoe=e=>{const t=zt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return HT(t,`${e.componentCls}-lg`)},Woe=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},Goe=Gt("Button",e=>{const t=Uz(e);return [Foe(t),Voe(t),joe(t),Uoe(t),Woe(t),zoe(t),aoe(t)]},Wz,{unitless:{fontWeight:true,contentLineHeight:true,contentLineHeightSM:true,contentLineHeightLG:true}});function qoe(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 Koe(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 tm(e,t={focus:true}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,i=`${o}-compact`;return {[i]:{...qoe(e,i,t,o),...Koe(o,i,t)}}}function Yoe(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 Xoe(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 Qoe(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:{...Yoe(e,t,e.componentCls),...Xoe(e.componentCls,t)}}}const Zoe=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})`}}]},Joe=Jf(["Button","compact"],e=>{const t=Uz(e);return [tm(t),Qoe(t),Zoe(t)]},Wz);function eie(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 tie={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},nie=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:x,iconPlacement:w,ghost:E=false,block:M=false,htmlType:T="button",classNames:A,styles:I,style:N,autoInsertSpace:P,autoFocus:O,...D}=e,_=ri(y),H=l||"default",{getPrefixCls:U,direction:W,autoInsertSpace:z,className:L,style:G,classNames:j,styles:K,loadingIcon:X,shape:k,color:V,variant:Q}=jt("button"),J=d||k||"default",[te,ne]=f.useMemo(()=>{if(i&&s)return [i,s];if(l||u){const Ue=tie[H]||[];return u?["danger",Ue[1]]:Ue}return V&&Q?[V,Q]:["default","outlined"]},[i,s,l,u,V,Q,H]),[re,ie]=f.useMemo(()=>E&&ne==="solid"?[te,"outlined"]:[te,ne],[te,ne,E]),ue=re==="danger",ee=ue?"dangerous":re,ae=P??z??true,ce=U("btn",o),[se,$e]=Goe(ce),le=f.useContext(fo),pe=p??le,be=f.useContext(Pz),Ee=f.useMemo(()=>eie(r),[r]),[Te,Ye]=f.useState(Ee.loading),[Re,fe]=f.useState(false),ge=f.useRef(null),Ne=tl(t,ge),He=_.length===1&&!S&&!gw(ie),We=f.useRef(true);q.useEffect(()=>(We.current=false,()=>{We.current=true;}),[]),Rn(()=>{let Ue=null;Ee.delay>0?Ue=setTimeout(()=>{Ue=null,Ye(true);},Ee.delay):Ye(Ee.loading);function ye(){Ue&&(clearTimeout(Ue),Ue=null);}return ye},[Ee.delay,Ee.loading]),f.useEffect(()=>{if(!ge.current||!ae)return;const Ue=ge.current.textContent||"";He&&i2(Ue)?Re||fe(true):Re&&fe(false);}),f.useEffect(()=>{O&&ge.current&&ge.current.focus();},[]);const je=q.useCallback(Ue=>{if(Te||pe){Ue.preventDefault();return}e.onClick?.((Ue));},[e.onClick,Te,pe]),{compactSize:et,compactItemClassnames:it}=ol(ce,W),Ke=br(Ue=>m??et??be??Ue),Oe=Te?"loading":S,qe=w??x??"start",Je=Fn(D,["navigate"]),ke={...e,type:H,color:re,variant:ie,danger:ue,shape:J,size:Ke,disabled:pe,loading:Te,iconPlacement:qe},[Ie,lt]=Kt([n?void 0:j,A],[n?void 0:K,I],{props:ke}),Tt=Y(ce,se,$e,{[`${ce}-${J}`]:J!=="default"&&J!=="square"&&J,[`${ce}-${H}`]:H,[`${ce}-dangerous`]:u,[`${ce}-color-${ee}`]:ee,[`${ce}-variant-${ie}`]:ie,[`${ce}-lg`]:Ke==="large",[`${ce}-sm`]:Ke==="small",[`${ce}-icon-only`]:!y&&y!==0&&!!Oe,[`${ce}-background-ghost`]:E&&!gw(ie),[`${ce}-loading`]:Te,[`${ce}-two-chinese-chars`]:Re&&ae&&!Te,[`${ce}-block`]:M,[`${ce}-rtl`]:W==="rtl",[`${ce}-icon-end`]:qe==="end"},it,g,b,L,Ie.root),pt={...lt.root,...G,...N},Dt={className:Ie.icon,style:lt.icon},xt=Ue=>q.createElement(Iz,{prefixCls:ce,...Dt},Ue),Ot=q.createElement(Ore,{existIcon:!!S,prefixCls:ce,loading:Te,mount:We.current,...Dt}),dt=r&&typeof r=="object"&&r.icon||X;let ut;S&&!Te?ut=xt(S):r&&dt?ut=xt(dt):ut=Ot;const bt=Lr(y)?Ire(y,He&&ae,lt.content,Ie.content):null;if(Je.href!==void 0)return q.createElement("a",{...Je,className:Y(Tt,{[`${ce}-disabled`]:pe}),href:pe?void 0:Je.href,style:pt,onClick:je,ref:Ne,tabIndex:pe?-1:0,"aria-disabled":pe},ut,bt);let Fe=q.createElement("button",{...D,type:T,className:Tt,style:pt,onClick:je,disabled:pe,ref:Ne},ut,bt,it&&q.createElement(Joe,{prefixCls:ce}));return gw(ie)||(Fe=q.createElement(hg,{component:"Button",disabled:Te},Fe)),Fe}),ct=nie;ct.Group=Nre;ct.__ANT_BUTTON=true;const Sw=e=>typeof e?.then=="function",VT=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]=YB(false),S=(...E)=>{i?.(...E);};f.useEffect(()=>{let E=null;return s&&(E=setTimeout(()=>{g.current?.focus({preventScroll:true});})),()=>{E&&clearTimeout(E);}},[s]);const x=E=>{Sw(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&&!Sw(M)){p.current=false,S(E);return}}else if(m.length)M=m(i),p.current=false;else if(M=m(),!Sw(M)){S();return}x(M);};return f.createElement(ct,{...PT(t),onClick:w,loading:b,prefixCls:r,...o,ref:g},n)},gg=q.createContext({}),{Provider:Gz}=gg,MO=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:s,onCancel:l,onConfirm:u,onClose:d}=f.useContext(gg);return o?q.createElement(VT,{isSilent:r,actionFn:l,close:(...m)=>{s?.(...m),u?.(false),d?.();},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},TO=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:s,onConfirm:l,onOk:u,onClose:d}=f.useContext(gg);return q.createElement(VT,{isSilent:n,type:s||"primary",actionFn:u,close:(...m)=>{t?.(...m),l?.(true),d?.();},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)},qz=f.createContext({});function AO(e,t,n){let r=t;return !r&&n&&(r=`${e}-${n}`),r}function RO(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 rie(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=RO(o),n.top+=RO(o,true),n}function NO(e,t=false){if(MT(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 jT(e,t=false){const n=[...e.querySelectorAll("*")].filter(r=>NO(r,t));return NO(e,t)&&n.unshift(e),n}function UT(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 Cf=null,jl=[];const a2=new Map,WT=new Map;function GT(){return jl[jl.length-1]}function oie(e){const t=GT();if(e&&t){let n;for(const[o,i]of a2.entries())if(i===t){n=o;break}const r=WT.get(n);return !!r&&(r===e||r.contains(e))}return  false}function iie(e){const{activeElement:t}=document;return e===t||e.contains(t)}function Cw(){const e=GT(),{activeElement:t}=document;if(!oie(t))if(e&&!iie(e)){const n=jT(e);(n.includes(Cf)?Cf:n[0])?.focus({preventScroll:true});}else Cf=t;}function PO(e){if(e.key==="Tab"){const{activeElement:t}=document,n=GT(),r=jT(n),o=r[r.length-1];e.shiftKey&&t===r[0]?Cf=o:!e.shiftKey&&t===o&&(Cf=r[0]);}}function sie(e,t){return e&&(a2.set(t,e),jl=jl.filter(n=>n!==e),jl.push(e),window.addEventListener("focusin",Cw),window.addEventListener("keydown",PO,true),Cw()),()=>{Cf=null,jl=jl.filter(n=>n!==e),a2.delete(t),WT.delete(t),jl.length===0&&(window.removeEventListener("focusin",Cw),window.removeEventListener("keydown",PO,true));}}function aie(e,t){const n=rl();return f.useEffect(()=>{if(e){const o=t();if(o)return sie(o,n)}},[e,n]),[o=>{o&&WT.set(n,o);}]}const lie=f.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function f0(){return f0=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},f0.apply(this,arguments)}const Kz=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:x,holderRef:w,visible:E,forceRender:M,width:T,height:A,classNames:I,styles:N,isFixedPos:P,focusTrap:O}=e,{panel:D}=q.useContext(qz),_=f.useRef(null),H=tl(w,D,_),[U]=aie(E&&P&&O!==false,()=>_.current);q.useImperativeHandle(t,()=>({focus:()=>{_.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:Y(`${n}-footer`,I?.footer),style:{...N?.footer}},l):null,L=i?q.createElement("div",{className:Y(`${n}-header`,I?.header),style:{...N?.header}},q.createElement("div",{className:Y(`${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=Ao(G,true),K=typeof u=="object"&&u.disabled,X=u?q.createElement("button",f0({type:"button",onClick:m,"aria-label":"Close"},j,{className:`${n}-close`,disabled:K}),G.closeIcon):null,k=q.createElement("div",{className:Y(`${n}-container`,I?.container),style:N?.container},X,L,q.createElement("div",f0({className:Y(`${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:H,style:{...o,...W},className:Y(n,r),onMouseDown:S,onMouseUp:x,tabIndex:-1,onFocus:V=>{U(V.target);}},q.createElement(lie,{shouldUpdate:E||M},y?y(k):k))});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 cie=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,x]=f.useState(),w={};S&&(w.transformOrigin=S);function E(){if(!b.current?.nativeElement)return;const M=rie(b.current.nativeElement);x(g&&(g.x||g.y)?`${g.x-M.left}px ${g.y-M.top}px`:"");}return f.createElement(No,{visible:s,onVisibleChanged:p,onAppearPrepare:E,onEnterPrepare:E,forceRender:l,motionName:d,removeOnLeave:u,ref:b},({className:M,style:T},A)=>f.createElement(Kz,l2({},e,{ref:y,title:r,ariaId:m,prefixCls:n,holderRef:A,style:{...T,...o,...w},className:Y(i,M)})))});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 uie=e=>{const{prefixCls:t,style:n,visible:r,maskProps:o,motionName:i,className:s}=e;return f.createElement(No,{key:"mask",visible:r,motionName:i,leavedClassName:`${t}-mask-hidden`},({className:l,style:u},d)=>f.createElement("div",c2({ref:d,style:{...u,...n},className:Y(`${t}-mask`,l,s)},o)))};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)}const die=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:x,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),[_,H]=f.useState(r),[U,W]=f.useState(false),z=rl();function L(){b$(O.current,document.activeElement)||(P.current=document.activeElement);}function G(){b$(O.current,document.activeElement)||D.current?.focus();}function j(){if(H(false),y&&P.current&&o){try{P.current.focus({preventScroll:!0});}catch{}P.current=null;}_&&m?.();}function K(te){te?G():j(),d?.(te);}function X(te){u?.(te);}const k=f.useRef(false);let V=null;w&&(V=te=>{O.current===te.target&&k.current&&X(te);});function Q(te){k.current=te.target===O.current;}f.useEffect(()=>{if(r){if(k.current=false,H(true),L(),O.current){const te=getComputedStyle(O.current);W(te.position==="fixed");}}else _&&D.current.enableMotion()&&!D.current.inMotion()&&j();},[r]);const J={zIndex:n,...i,...N?.wrapper,display:_?null:"none"};return f.createElement("div",Zh({className:Y(`${t}-root`,T),style:A},Ao(e,{data:true})),f.createElement(uie,{prefixCls:t,visible:y&&r,motionName:AO(t,S,x),style:{zIndex:n,...E,...N?.mask},maskProps:M,className:I?.mask}),f.createElement("div",Zh({className:Y(`${t}-wrap`,s,I?.wrapper),ref:O,onClick:V,onMouseDown:Q,style:J},l),f.createElement(cie,Zh({},e,{isFixedPos:U,ref:D,closable:b,ariaId:z,prefixCls:t,visible:r&&_,onClose:X,onVisibleChanged:K,motionName:AO(t,p,g)}))))};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 fie=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(qz.Provider,{value:g},f.createElement(T1,{open:t||r||m,onEsc:b,autoDestroy:false,getContainer:n,autoLock:t||m},f.createElement(die,u2({},e,{destroyOnHidden:o,afterClose:()=>{const y=s&&typeof s=="object"?s:{},{afterClose:S}=y||{};S?.(),i?.(),p(false);}}))))},mu="RC_FORM_INTERNAL_HOOKS",Bn=()=>{Pr(false,"Can not find FormContext. Please make sure you wrap Field under Form.");},_f=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})}),m0=f.createContext(null);function d2(e){return e==null?[]:Array.isArray(e)?e:[e]}function mie(e){return e&&!!e._init}function f2(){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 m2=f2();function hie(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function pie(e,t,n){if(hT())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Mp(o,n.prototype),o}function h2(e){var t=typeof Map=="function"?new Map:void 0;return h2=function(r){if(r===null||!hie(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 pie(r,arguments,Tp(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:false,writable:true,configurable:true}}),Mp(o,r)},h2(e)}var gie=/%[sdj%]/g,vie=function(){};function p2(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 wi(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(gie,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 bie(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function zr(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||bie(t)&&typeof e=="string"&&!e)}function yie(e,t,n){var r=[],o=0,i=e.length;function s(l){r.push.apply(r,Xt(l||[])),o++,o===i&&n(r);}e.forEach(function(l){t(l,s);});}function IO(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 Sie(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Xt(e[n]||[]));}),t}var OO=(function(e){$9(n,e);var t=M9(n);function n(r,o){var i;return os(this,n),i=t.call(this,"Async Validation Error"),Ct(yf(i),"errors",void 0),Ct(yf(i),"fields",void 0),i.errors=r,i.fields=o,i}return is(n)})(h2(Error));function Cie(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 OO(w,p2(w))):g(o)},S=Sie(e);IO(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(x){if(m.push.apply(m,x),d++,d===u)return r(m),m.length?b(new OO(m,p2(m))):g(o)};l.length||(r(m),g(o)),l.forEach(function(S){var x=e[S];s.indexOf(S)!==-1?IO(x,n,y):yie(x,n,y);});});return p.catch(function(g){return g}),p}function xie(e){return !!(e&&e.message!==void 0)}function wie(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]];}return n}function DO(e,t){return function(n){var r;return e.fullFields?r=wie(t,e.fullFields):r=t[n.field||e.fullField],xie(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 _O(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 Wd="enum",Eie=function(t,n,r,o,i){t[Wd]=Array.isArray(t[Wd])?t[Wd]:[],t[Wd].indexOf(n)===-1&&o.push(wi(i.messages[Wd],t.fullField,t[Wd].join(", ")));},$ie=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(wi(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(wi(i.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},Mie=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(wi(i.messages[p].len,t.fullField,t.len)):l&&!u&&m<t.min?o.push(wi(i.messages[p].min,t.fullField,t.min)):u&&!l&&m>t.max?o.push(wi(i.messages[p].max,t.fullField,t.max)):l&&u&&(m<t.min||m>t.max)&&o.push(wi(i.messages[p].range,t.fullField,t.min,t.max));},Yz=function(t,n,r,o,i,s){t.required&&(!r.hasOwnProperty(t.field)||zr(n,s||t.type))&&o.push(wi(i.messages.required,t.fullField));},wb;const Tie=(function(){if(wb)return wb;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]+)",x="(?:\\.(?:[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(x).concat(w,")").concat(E).concat(M);return wb=new RegExp("(?:^".concat(T,"$)"),"i"),wb});var xw={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},zh={integer:function(t){return zh.number(t)&&parseInt(t,10)===t},float:function(t){return zh.number(t)&&!zh.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"&&!zh.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(xw.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(xw.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Tie())},hex:function(t){return typeof t=="string"&&!!t.match(xw.hex)}},Aie=function(t,n,r,o,i){if(t.required&&n===void 0){Yz(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?zh[l](n)||o.push(wi(i.messages.types[l],t.fullField,t.type)):l&&Ar(n)!==t.type&&o.push(wi(i.messages.types[l],t.fullField,t.type));},Rie=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(wi(i.messages.whitespace,t.fullField));};const cn={required:Yz,whitespace:Rie,type:Aie,range:Mie,enum:Eie,pattern:$ie};var Nie=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zr(n)&&!t.required)return r();cn.required(t,n,o,s,i);}r(s);},Pie=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);},Iie=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zr(n)&&!t.required)return r();cn.required(t,n,o,s,i),n!==void 0&&cn.type(t,n,o,s,i);}r(s);},Oie=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zr(n,"date")&&!t.required)return r();if(cn.required(t,n,o,s,i),!zr(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);},Die="enum",_ie=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zr(n)&&!t.required)return r();cn.required(t,n,o,s,i),n!==void 0&&cn[Die](t,n,o,s,i);}r(s);},Lie=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zr(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);},kie=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zr(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);},Bie=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zr(n)&&!t.required)return r();cn.required(t,n,o,s,i),n!==void 0&&cn.type(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(n===""&&(n=void 0),zr(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);},Fie=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zr(n)&&!t.required)return r();cn.required(t,n,o,s,i),n!==void 0&&cn.type(t,n,o,s,i);}r(s);},Hie=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zr(n,"string")&&!t.required)return r();cn.required(t,n,o,s,i),zr(n,"string")||cn.pattern(t,n,o,s,i);}r(s);},Vie=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zr(n)&&!t.required)return r();cn.required(t,n,o,s,i),zr(n)||cn.type(t,n,o,s,i);}r(s);},jie=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);},Uie=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zr(n,"string")&&!t.required)return r();cn.required(t,n,o,s,i,"string"),zr(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);},Eb=function(t,n,r,o,i){var s=t.type,l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(zr(n,s)&&!t.required)return r();cn.required(t,n,o,l,i,s),zr(n,s)||cn.type(t,n,o,l,i);}r(l);};const Jh={string:Uie,method:Bie,number:zie,boolean:Iie,regexp:Vie,integer:kie,float:Lie,array:Pie,object:Fie,enum:_ie,pattern:Hie,date:Oie,url:Eb,hex:Eb,email:Eb,tel:Eb,required:jie,any:Nie};var vg=(function(){function e(t){os(this,e),Ct(this,"rules",null),Ct(this,"_messages",m2),this.define(t);}return is(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=_O(f2(),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=[],x={};function w(M){if(Array.isArray(M)){var T;S=(T=S).concat.apply(T,Xt(M));}else S.push(M);}for(var E=0;E<y.length;E++)w(y[E]);S.length?(x=p2(S),u(S,x)):u(null,s);}if(l.messages){var m=this.messages();m===m2&&(m=f2()),_O(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],x=s[y];S.forEach(function(w){var E=w;typeof E.transform=="function"&&(s===n&&(s=rr({},s)),x=s[y]=E.transform(x),x!=null&&(E.type=E.type||(Array.isArray(x)?"array":Ar(x)))),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:x,source:s,field:y}));});});var b={};return Cie(p,l,function(y,S){var x=y.rule,w=(x.type==="object"||x.type==="array")&&(Ar(x.fields)==="object"||Ar(x.defaultField)==="object");w=w&&(x.required||!x.required&&y.value),x.field=y.field;function E(N,P){return rr(rr({},P),{},{fullField:"".concat(x.fullField,".").concat(N),fullFields:x.fullFields?[].concat(Xt(x.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&&x.message!==void 0&&x.message!==null&&(P=[].concat(x.message));var O=P.map(DO(x,s));if(l.first&&O.length)return b[x.field]=1,S(O);if(!w)S(O);else {if(x.required&&!y.value)return x.message!==void 0?O=[].concat(x.message).map(DO(x,s)):l.error&&(O=[l.error(x,wi(l.messages.required,x.field))]),S(O);var D={};x.defaultField&&Object.keys(y.value).map(function(U){D[U]=x.defaultField;}),D=rr(rr({},D),y.rule.fields);var _={};Object.keys(D).forEach(function(U){var W=D[U],z=Array.isArray(W)?W:[W];_[U]=z.map(E.bind(null,U));});var H=new e(_);H.messages(l.messages),y.rule.options&&(y.rule.options.messages=l.messages,y.rule.options.error=l.error),H.validate(y.value,y.rule.options||l,function(U){var W=[];O&&O.length&&W.push.apply(W,Xt(O)),U&&U.length&&W.push.apply(W,Xt(U)),S(W.length?W:null);});}}var T;if(x.asyncValidator)T=x.asyncValidator(x,y.value,M,y.source,l);else if(x.validator){try{T=x.validator(x,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 x.message=="function"?x.message(x.fullField||x.field):x.message||"".concat(x.fullField||x.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&&!Jh.hasOwnProperty(n.type))throw new Error(wi("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"?Jh.required:Jh[this.getType(n)]||void 0}}]),e})();Ct(vg,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Jh[t]=n;});Ct(vg,"warning",vie);Ct(vg,"messages",m2);Ct(vg,"validators",Jh);const Yo="'${name}' is not a valid ${type}",Xz={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:Yo,method:Yo,array:Yo,object:Yo,number:Yo,date:Yo,boolean:Yo,integer:Yo,float:Yo,regexp:Yo,email:Yo,tel:Yo,url:Yo,hex:Yo},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}"}},LO=vg;function Wie(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 kO="CODE_LOGIC_ERROR";async function g2(e,t,n,r,o){const i={...n};if(delete i.ruleIndex,LO.warning=()=>{},i.validator){const g=i.validator;i.validator=(...b)=>{try{return g(...b)}catch(y){return console.error(y),Promise.reject(kO)}};}let s=null;i&&i.type==="array"&&i.defaultField&&(s=i.defaultField,delete i.defaultField);const l=new LO({[e]:[i]}),u=cf(Xz,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===kO?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)=>g2(`${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"?Wie(g,m):g)}function Gie(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 x=false;const E=p(b,y,(...M)=>{Promise.resolve().then(()=>{Pr(!x,"Your validator function has already return a promise. `callback` will be ignored."),x||S(...M);});});x=E&&typeof E.then=="function"&&typeof E.catch=="function",Pr(x,"`callback` is deprecated. Please return a promise instead."),x&&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 g2(s,t,g,r,i);if(b.length){m([{errors:b,rule:g}]);return}}d([]);});else {const d=l.map(m=>g2(s,t,m,r,i).then(p=>({errors:p,rule:m})));u=(o?Kie(d):qie(d)).then(m=>Promise.reject(m));}return u.catch(d=>d),u}async function qie(e){return Promise.all(e).then(t=>[].concat(...t))}async function Kie(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 d2(e)}function BO(e,t){let n={};return t.forEach(r=>{const o=Wi(e,r);n=bi(n,r,o);}),n}function xf(e,t,n=false){return e&&e.some(r=>h0(t,r,n))}function h0(e,t,n=false){return !e||!t||!n&&e.length!==t.length?false:t.every((r,o)=>e[o]===r)}function Yie(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 Xie(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function zO(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}const Qz=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null);};class Qie{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=>!h0(r,n))&&this.namePathList.push(n);}),this.doBatch();}doBatch(){this.taskId+=1;const t=this.taskId;Qz(()=>{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=[];}});}}async function Zie(){return new Promise(e=>{Qz(()=>{Lt(()=>{e();});});})}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 Yc=[],vh=[];function ww(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}class Jie extends f.Component{static contextType=_f;state={resetCount:0};cancelRegisterFunc=null;mounted=false;touched=false;dirty=false;validatePromise;prevValidating;errors=Yc;warnings=vh;constructor(t){if(super(t),t.fieldContext){const{getInternalHooks:n}=t.fieldContext,{initEntityValue:r}=n(mu);r(this);}}componentDidMount(){const{shouldUpdate:t,fieldContext:n}=this.props;if(this.mounted=true,n){const{getInternalHooks:r}=n,{registerField:o}=r(mu);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};ic(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&&xf(n,u);switch(r.type==="valueUpdate"&&r.source==="external"&&!ic(d,m)&&(this.touched=true,this.dirty=true,this.validatePromise=null,this.errors=Yc,this.warnings=vh,this.triggerMetaEvent()),r.type){case "reset":if(!n||p){this.touched=false,this.dirty=false,this.validatePromise=void 0,this.errors=Yc,this.warnings=vh,this.triggerMetaEvent(),s?.(),this.refresh();return}break;case "remove":{if(o&&ww(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||Yc),"warnings"in g&&(this.warnings=g.warnings||vh),this.dirty=true,this.triggerMetaEvent(),this.reRender();return}else if("value"in g&&xf(n,u,true)){this.reRender();return}if(o&&!u.length&&ww(o,t,l,d,m,r)){this.reRender();return}break}case "dependenciesUpdate":{if(i.map(lr).some(b=>xf(r.relatedFields,b))){this.reRender();return}break}default:if(p||(!i.length||u.length||o)&&ww(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 Zie();let p=this.getRules();if(o&&(p=p.filter(b=>b).filter(b=>{const{validateTrigger:y}=b;return y?d2(y).includes(o):true})),m&&o&&(await new Promise(b=>{setTimeout(b,m);}),this.validatePromise!==l))return [];const g=Gie(n,r,p,t,u,d);return g.catch(b=>b).then((b=Yc)=>{if(this.validatePromise===l){this.validatePromise=null;const y=[],S=[];b.forEach?.(({rule:{warningOnly:x},errors:w=Yc})=>{x?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=Yc,this.warnings=vh,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(mu);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 Wi(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(mu),S=this.getValue(),x=u||(A=>({[l]:A})),w=t[r],E=n!==void 0?x(S):{},M={...t,...E};return M[r]=(...A)=>{this.touched=true,this.dirty=true,this.triggerMetaEvent();let I;i?I=i(...A):I=Xie(l,...A),s&&(I=s(I,S,b(true))),I!==S&&y({type:"updateValue",namePath:p,value:I}),w&&w(...A);},d2(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 Zz({name:e,...t}){const n=f.useContext(_f),r=f.useContext(m0),o=e!==void 0?lr(e):void 0,i=t.isListField??!!r;let s="keep";return i||(s=`_${(o||[]).join("_")}`),f.createElement(Jie,v2({key:s,name:o,isListField:i},t,{fieldContext:n}))}function ese({name:e,initialValue:t,children:n,rules:r,validateTrigger:o,isListField:i}){const s=f.useContext(_f),l=f.useContext(m0),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,x=y[S];return [d.keys[x],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:x})=>x==="internal"?false:y!==S;return f.createElement(m0.Provider,{value:g},f.createElement(_f.Provider,{value:p},f.createElement(Zz,{name:[],shouldUpdate:b,rules:r,validateTrigger:o,initialValue:t,isList:true,isListField:i??!!l},({value:y=[],onChange:S},x)=>{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=zO(d.keys,A,I),S(zO(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,x)})))}function tse(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 b2="__@field_split__";function $b(e){return e.map(t=>`${typeof t}:${t}`).join(b2)}class Gd{kvs=new Map;set(t,n){this.kvs.set($b(t),n);}get(t){return this.kvs.get($b(t))}getAsPrefix(t){const n=$b(t),r=n+b2,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($b(t));}map(t){return [...this.kvs.entries()].map(([n,r])=>{const o=n.split(b2);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}}class nse{formHooked=false;forceRootUpdate;subscribable=true;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new Qie(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===mu?(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=cf(t,this.store);this.prevWithoutPreserves?.map(({key:o})=>{r=bi(r,o,Wi(t,o));}),this.prevWithoutPreserves=null,this.updateStore(r);}};destroyForm=t=>{if(t)this.updateStore({});else {const n=new Gd;this.getFieldEntities(true).forEach(r=>{this.isMergedPreserve(r.isPreserve())||n.set(r.getNamePath(),true);}),this.prevWithoutPreserves=n;}};getInitialValue=t=>{const n=Wi(this.initialValues,t);return t.length?cf(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 Gd;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=BO(this.store,s.map(lr));return l.forEach(d=>{Wi(u,d)||(u=bi(u,d,[]));}),u};getFieldValue=t=>{this.warningUnhooked();const n=lr(t);return Wi(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 Gd;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 xf(r,i)&&o.isFieldValidating()})};isFieldValidating=t=>(this.warningUnhooked(),this.isFieldsValidating([t]));resetWithFieldInitialValue=(t={})=>{const n=new Gd,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(bi(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(cf(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(bi(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(bi(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();Wi(this.store,r)===void 0&&this.updateStore(bi(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=>!h0(l.getNamePath(),n))){const l=this.store;this.updateStore(bi(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(bi(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=BO(this.store,[r]),u=this.getFieldsValue(),d=bi(u,r,Wi(l,r));s(l,d);}this.triggerOnFieldsChange([r,...i]);};setFieldsValue=t=>{this.warningUnhooked();const n=this.store;if(t){const r=cf(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 Gd;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 Gd;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})=>xf(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(x=>{const w=x.getNamePath();if(i||((!x.isList()||!s.some(E=>h0(E,w,true)))&&l.push(w),s.push(w)),!(!x.props.rules||!x.props.rules.length)&&!(g&&!x.isFieldDirty())&&(m.add(w.join(d)),!i||xf(s,w,p))){const E=x.validateRules({validateMessages:{...Xz,...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=tse(u);this.lastValidatePromise=b,b.catch(x=>x).then(x=>{const w=x.map(({name:E})=>E);this.notifyObservers(this.store,w,{type:"validateFinish"}),this.triggerOnFieldsChange(w,x);});const y=b.then(()=>this.lastValidatePromise===b?Promise.resolve(this.getFieldsValue(l)):Promise.reject([])).catch(x=>{const w=x.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(x=>x);const S=s.filter(x=>m.has(x.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 Jz(e){const t=f.useRef(null),[,n]=f.useState({});if(!t.current)if(e)t.current=e;else {const r=()=>{n({});},o=new nse(r);t.current=o.getForm();}return [t.current]}const y2=f.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),rse=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const o=f.useContext(y2),i=f.useRef({});return f.createElement(y2.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 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 ose=({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 x=f.useRef(null),w=f.useContext(y2),[E]=Jz(r),{useSubscribe:M,setInitialValues:T,setCallbacks:A,setValidateMessages:I,setPreserve:N,destroyForm:P}=E.getInternalHooks(mu);f.useImperativeHandle(S,()=>({...E,nativeElement:x.current})),f.useEffect(()=>(w.registerForm(e,E),()=>{w.unregisterForm(e);}),[w,E,e]),I({...w.validateMessages,...l}),A({onValuesChange:d,onFieldsChange:(z,...L)=>{w.triggerFormChange(e,z),m&&m(z,...L);},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 _=typeof i=="function";if(_){const z=E.getFieldsValue(true);D=i(z,E);}else D=i;M(!_);const H=f.useRef(null);f.useEffect(()=>{Yie(H.current||[],n||[])||E.setFields(n||[]),H.current=n;},[n,E]);const U=f.useMemo(()=>({...E,validateTrigger:u}),[E,u]),W=f.createElement(m0.Provider,{value:null},f.createElement(_f.Provider,{value:U},D));return s===false?W:f.createElement(s,S2({},y,{ref:x,onSubmit:z=>{z.preventDefault(),z.stopPropagation(),E.submit();},onReset:z=>{z.preventDefault(),E.resetFields(),y.onReset?.(z);}}),W)};function Ew(e){try{return JSON.stringify(e)}catch{return Math.random()}}function ise(...e){const[t,n={}]=e,r=mie(n)?{form:n}:n,o=r.form,[i,s]=f.useState(()=>typeof t=="function"?t({}):void 0),l=f.useMemo(()=>Ew(i),[i]),u=f.useRef(l);u.current=l;const d=f.useContext(_f),m=o||d,p=m&&m._init,{getFieldsValue:g,getInternalHooks:b}=m,{registerWatch:y}=b(mu),S=Mt((w,E)=>{const M=r.preserve?E??g(true):w??g(),T=typeof t=="function"?t(M):Wi(M,lr(t));Ew(i)!==Ew(T)&&s(T);}),x=typeof t=="function"?t:JSON.stringify(t);return f.useEffect(()=>{p&&S();},[p,x]),f.useEffect(()=>p?y((E,M)=>{S(E,M);}):void 0,[p]),i}const sse=f.forwardRef(ose),bg=sse;bg.FormProvider=rse;bg.Field=Zz;bg.List=ese;bg.useForm=Jz;bg.useWatch=ise;const Ro=f.createContext({}),ase=({children:e,status:t,override:n})=>{const r=f.useContext(Ro),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(Ro.Provider,{value:o},e)},lse=f.createContext(void 0),cc=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(Are,null,o)),o},cse=()=>Ri()&&window.document.documentElement;function use(e,t,n){return f.useMemo(()=>({...{trap:t??true,focusTriggerAfterClose:n??true},...e}),[e,t,n])}const D1=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,s=Y({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=Y({[`${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:Y(t,s,l,n),style:{...u,...r}})},dse=new kt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),qT=e=>({height:e,lineHeight:oe(e)}),nc=e=>({width:e,...qT(e)}),fse=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:dse,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),$w=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...qT(e)}),mse=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return {[t]:{display:"inline-block",verticalAlign:"top",background:n,...nc(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...nc(o)},[`${t}${t}-sm`]:{...nc(i)}}},hse=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,...$w(t,l)},[`${r}-lg`]:{...$w(o,l)},[`${r}-sm`]:{...$w(i,l)}}},eF=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,...nc(o(r).mul(2).equal())}},pse=e=>({[e.skeletonNodeCls]:{...eF(e)}}),gse=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return {[t]:{...eF(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...nc(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%"}}},Mw=(e,t,n)=>{const{skeletonButtonCls:r}=e;return {[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Tw=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...qT(e)}),vse=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(),...Tw(r,l)},...Mw(e,r,n),[`${n}-lg`]:{...Tw(o,l)},...Mw(e,o,`${n}-lg`),[`${n}-sm`]:{...Tw(i,l)},...Mw(e,i,`${n}-sm`)}},bse=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:x,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,...nc(d)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...nc(m)},[`${n}-sm`]:{...nc(p)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:x,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",...vse(e),...mse(e),...hse(e),...pse(e),...gse(e)},[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[s]:{width:"100%"}},[`${t}${t}-active`]:{[`
        ${r},
        ${o} > li,
        ${n},
        ${i},
        ${s},
        ${l},
        ${u}
      `]:{...fse(e)}}}},yse=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}},yg=Gt("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 bse(r)},yse,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Sse=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]=yg(g),S=br(w=>d??w),x=Y(g,`${g}-element`,{[`${g}-active`]:i},r?.root,n,o,b,y);return f.createElement("div",{className:x,style:l?.root},f.createElement(D1,{prefixCls:`${g}-avatar`,className:r?.content,style:{...l?.content,...s},shape:u,size:S,...m}))},Cse=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]=yg(g),S=br(w=>d??w),x=Y(g,`${g}-element`,{[`${g}-active`]:i,[`${g}-block`]:u},o?.root,n,r,b,y);return f.createElement("div",{className:x,style:l?.root},f.createElement(D1,{prefixCls:`${g}-button`,className:o?.content,style:{...l?.content,...s},size:S,...m}))},tF=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]=yg(p),y=Y(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:Y(r?.content,i||`${p}-node`),style:{...l?.content,...s}},d))},xse=e=>{const{getPrefixCls:t}=f.useContext(wt),n=t("skeleton",e.prefixCls);return f.createElement(tF,{...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`})))},wse=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]=yg(g),S=br(w=>d??w),x=Y(g,`${g}-element`,{[`${g}-active`]:i,[`${g}-block`]:s},r?.root,n,o,b,y);return f.createElement("div",{className:x,style:u?.root},f.createElement(D1,{prefixCls:`${g}-input`,className:r?.content,style:{...u?.content,...l},size:S,...m}))},Ese=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},$se=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:Ese(l,e)}}));return f.createElement("ul",{className:Y(t,n),style:r},i)},Mse=({prefixCls:e,className:t,width:n,style:r})=>f.createElement("h3",{className:Y(e,t),style:{width:n,...r}});function Aw(e){return e&&typeof e=="object"?e:{}}function Tse(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Ase(e,t){return !e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Rse(e,t){const n={};return (!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const nm=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:x,style:w,classNames:E,styles:M}=jt("skeleton"),T=y("skeleton",t),[A,I]=yg(T),N={...e,avatar:d,title:m,paragraph:p},[P,O]=Kt([E,i],[M,l],{props:N});if(n||!("loading"in e)){const D=!!d,_=!!m,H=!!p;let U;if(D){const L={className:P.avatar,prefixCls:`${T}-avatar`,...Tse(_,H),...Aw(d),style:O.avatar};U=f.createElement("div",{className:Y(P.header,`${T}-header`),style:O.header},f.createElement(D1,{...L}));}let W;if(_||H){let L;if(_){const j={className:P.title,prefixCls:`${T}-title`,...Ase(D,H),...Aw(m),style:O.title};L=f.createElement(Mse,{...j});}let G;if(H){const j={className:P.paragraph,prefixCls:`${T}-paragraph`,...Rse(D,_),...Aw(p),style:O.paragraph};G=f.createElement($se,{...j});}W=f.createElement("div",{className:Y(P.section,`${T}-section`),style:O.section},L,G);}const z=Y(T,{[`${T}-with-avatar`]:D,[`${T}-active`]:g,[`${T}-rtl`]:S==="rtl",[`${T}-round`]:b},P.root,x,r,o,A,I);return f.createElement("div",{className:z,style:{...O.root,...w,...s}},U,W)}return u??null};nm.Button=Cse;nm.Avatar=Sse;nm.Input=wse;nm.Image=xse;nm.Node=tF;function FO(){}const Nse=f.createContext({add:FO,remove:FO});function Pse(e){const t=f.useContext(Nse),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 HO=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=f.useContext(gg);return q.createElement(ct,{onClick:n,...e},t)},VO=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=f.useContext(gg);return q.createElement(ct,{...PT(n),loading:e,onClick:o,...t},r)};function nF(e,t){return q.createElement("span",{className:`${e}-close-x`},t||q.createElement(nl,{className:`${e}-close-icon`}))}const rF=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:s,okButtonProps:l,cancelButtonProps:u,footer:d}=e,[m]=zo("Modal",J9()),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(HO,null),q.createElement(VO,null)),typeof d=="function"&&(y=d(y,{OkBtn:VO,CancelBtn:HO})),y=q.createElement(Gz,{value:b},y)):y=d,q.createElement(bz,{disabled:false},y)},Ise=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"}}}},Ose=e=>{const{componentCls:t}=e;return {[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Dse=(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},C2=(e,t)=>Dse(e,t),_se=(e,t,n)=>({[`@media (min-width: ${oe(t)})`]:{...C2(e,n)}}),Lse=()=>({}),kse=()=>({});Gt("Grid",Ise,Lse);const oF=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin});Gt("Grid",e=>{const t=zt(e,{gridColumns:24}),n=oF(t);return delete n.xs,[Ose(t),C2(t,""),C2(t,"-xs"),Object.keys(n).map(r=>_se(t,n[r],`-${r}`)).reduce((r,o)=>({...r,...o}),{})]},kse);function jO(e){return {position:e,inset:0}}const Bse=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`]:{...jO("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...jO("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:IT(e)}]},zse=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,...Ts(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},...oi(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"}}}]},Fse=e=>{const{componentCls:t}=e;return {[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Hse=e=>{const{componentCls:t}=e,n=oF(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(Xt(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)`}],Xt(i))}}},iF=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()})},sF=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}),aF=Gt("Modal",e=>{const t=iF(e);return [zse(t),Fse(t),Bse(t),pg(t,"zoom"),Hse(t)]},sF,{unitless:{titleLineHeight:true}});let x2;const Vse=e=>{x2={x:e.pageX,y:e.pageY},setTimeout(()=>{x2=null;},100);};cse()&&document.documentElement.addEventListener("click",Vse,true);const lF=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:x,mousePosition:w,onOk:E,onCancel:M,okButtonProps:T,cancelButtonProps:A,destroyOnHidden:I,destroyOnClose:N,panelRef:P=null,closable:O,mask:D,modalRender:_,maskClosable:H,focusTriggerAfterClose:U,focusable:W,...z}=e,{getPopupContainer:L,getPrefixCls:G,direction:j,className:K,style:X,classNames:k,styles:V,centered:Q,cancelButtonProps:J,okButtonProps:te,mask:ne}=jt("modal"),{modal:re}=f.useContext(wt),[ie,ue]=f.useMemo(()=>typeof O=="boolean"?[void 0,void 0]:[O?.afterClose,O?.onClose],[O]),ee=G("modal",t),ae=G(),[ce,se,$e]=une(D,ne,ee,H),le=use(W,ce,U),pe=xt=>{S||(M?.(xt),ue?.());},be=xt=>{E?.(xt),ue?.();},Ee=Zn(ee),[Te,Ye]=aF(ee,Ee),Re=Y(i,{[`${ee}-centered`]:s??Q,[`${ee}-wrap-rtl`]:j==="rtl"}),fe=m!==null&&!y?f.createElement(rF,{...e,okButtonProps:{...te,...T},onOk:be,cancelButtonProps:{...J,...A},onCancel:pe}):null,[ge,Ne,He,We]=wT(sc(e),sc(re),{closable:true,closeIcon:f.createElement(nl,{className:`${ee}-close-icon`}),closeIconRender:xt=>nF(ee,xt)}),je=ge?{disabled:He,closeIcon:Ne,afterClose:ie,...We}:false,et=_?xt=>f.createElement("div",{className:`${ee}-render`},_(xt)):void 0,it=`.${ee}-${_?"render":"container"}`,Ke=Pse(it),Oe=Yr(P,Ke),[qe,Je]=Qu("Modal",x),ke={...e,width:d,panelRef:P,focusTriggerAfterClose:le.focusTriggerAfterClose,focusable:le,mask:ce,maskClosable:$e,zIndex:qe},[Ie,lt]=Kt([k,p,se],[V,g],{props:ke}),[Tt,pt]=f.useMemo(()=>d&&typeof d=="object"?[void 0,d]:[d,void 0],[d]),Dt=f.useMemo(()=>{const xt={};return pt&&Object.keys(pt).forEach(Ot=>{const dt=pt[Ot];dt!==void 0&&(xt[`--${ee}-${Ot}-width`]=typeof dt=="number"?`${dt}px`:dt);}),xt},[ee,pt]);return f.createElement(cc,{form:true,space:true},f.createElement(M1.Provider,{value:Je},f.createElement(fie,{width:Tt,...z,zIndex:qe,getContainer:l===void 0?L:l,prefixCls:ee,rootClassName:Y(Te,r,Ye,Ee,Ie.root),rootStyle:lt.root,footer:fe,visible:o,mousePosition:w??x2,onClose:pe,closable:je,closeIcon:Ne,transitionName:ac(ae,"zoom",e.transitionName),maskTransitionName:ac(ae,"fade",e.maskTransitionName),mask:ce,maskClosable:$e,className:Y(Te,n,K),style:{...X,...u,...Dt},classNames:{...Ie,wrapper:Y(Ie.wrapper,Re)},styles:lt,panelRef:Oe,destroyOnHidden:I??N,modalRender:et,focusTriggerAfterClose:le.focusTriggerAfterClose,focusTrap:le.trap},y?f.createElement(nm,{active:true,title:false,paragraph:{rows:4},className:`${ee}-body-skeleton`}):b)))},jse=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`]:{...o0()},[`&${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}}},Use=Jf(["Modal","confirm"],e=>{const t=iF(e);return jse(t)},sF,{order:-1e3}),cF=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(ST,null);break;case "success":b=f.createElement(yT,null);break;case "error":b=f.createElement(dg,null);break;default:b=f.createElement(fg,null);}const y=l??s==="confirm",S=f.useMemo(()=>{const _=p?.autoFocusButton||m;return _||_===null?_:"ok"},[m,p?.autoFocusButton]),[x]=zo("Modal"),w=d||x,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(MO,null),f.createElement(TO,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:Y(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(Gz,{value:I},f.createElement("div",{className:`${i}-btns`},typeof u=="function"?u(N,{OkBtn:TO,CancelBtn:MO}):N)):u,f.createElement(Use,{prefixCls:t}))},Wse=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:x}=e,{cancelButtonProps:w,okButtonProps:E}=jt("modal"),M=`${i}-confirm`,T=e.width||416,A=e.style||{},I=Y(M,`${M}-${e.type}`,{[`${M}-rtl`]:o==="rtl"},e.className),N=f.useMemo(()=>{const D=Q$(b,y);return D.closable??(D.closable=false),D},[b,y]),[,P]=Xr(),O=f.useMemo(()=>n!==void 0?n:P.zIndexPopupBase+$T,[n,P]);return f.createElement(lF,{...e,className:I,wrapClassName:Y({[`${M}-centered`]:!!e.centered},s),onCancel:()=>{t?.({triggerCancel:true}),m?.(false);},title:g,footer:null,transitionName:ac(l||"","zoom",e.transitionName),maskTransitionName:ac(l||"","fade",e.maskTransitionName),mask:N,style:A,styles:{body:u,mask:r,...p},width:T,zIndex:O,closable:d},f.createElement(cF,{...e,confirmPrefixCls:M,okButtonProps:{...E,...S},cancelButtonProps:{...w,...x}}))},uF=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return f.createElement(Fo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},f.createElement(Wse,{...e}))},hu=[];let dF="";function fF(){return dF}const Gse=e=>{const{prefixCls:t,getContainer:n,direction:r}=e,o=J9(),i=f.useContext(wt),s=fF()||i.getPrefixCls(),l=t||`${s}-modal`;let u=n;return u===false&&(u=void 0),q.createElement(uF,{...e,rootPrefixCls:s,prefixCls:l,iconPrefixCls:i.iconPrefixCls,theme:i.theme,direction:r??i.direction,locale:i.locale?.Modal??o,getContainer:u})};function Sg(e){const t=TT(),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<hu.length;p++)if(hu[p]===l){hu.splice(p,1);break}Rz(n).then(()=>{});}const s=d=>{clearTimeout(o),o=setTimeout(()=>{const m=t.getPrefixCls(void 0,fF()),p=t.getIconPrefixCls(),g=t.getTheme(),b=q.createElement(Gse,{...d});N1(q.createElement(Fo,{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),hu.push(l),{destroy:l,update:u}}function mF(e){return {...e,type:"warning"}}function hF(e){return {...e,type:"info"}}function pF(e){return {...e,type:"success"}}function gF(e){return {...e,type:"error"}}function vF(e){return {...e,type:"confirm"}}function qse({rootPrefixCls:e}){dF=e;}const Kse=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",[x]=zo("Modal",As.Modal);return f.createElement(uF,{prefixCls:p,rootPrefixCls:g,...l,close:y,open:i,afterClose:b,okText:l.okText||(S?x?.okText:x?.justOkText),direction:l.direction||d,cancelText:l.cancelText||x?.cancelText,...o})});let UO=0;const Yse=f.memo(f.forwardRef((e,t)=>{const[n,r]=mne();return f.useImperativeHandle(t,()=>({patchElement:r}),[r]),f.createElement(f.Fragment,null,n)}));function bF(){const e=f.useRef(null),[t,n]=f.useState([]);f.useEffect(()=>{t.length&&(Xt(t).forEach(s=>{s();}),n([]));},[t]);const r=f.useCallback(i=>function(l){UO+=1;const u=f.createRef();let d;const m=new Promise(S=>{d=S;});let p=false,g;const b=f.createElement(Kse,{key:`modal-${UO}`,config:i(l),ref:u,afterClose:()=>{g?.();},isSilent:()=>p,onConfirm:S=>{d(S);}});return g=e.current?.patchElement(b),g&&hu.push(g),{destroy:()=>{function S(){u.current?.destroy();}u.current?S():n(x=>[].concat(Xt(x),[S]));},update:S=>{function x(){u.current?.update(S);}u.current?x():n(w=>[].concat(Xt(w),[x]));},then:S=>(p=true,m.then(S))}},[]);return [f.useMemo(()=>({info:r(hF),success:r(pF),error:r(gF),warning:r(mF),confirm:r(vF)}),[r]),f.createElement(Yse,{key:"modal-holder",ref:e})]}const Xse=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new kt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),s=new kt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new kt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),u=new kt("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}}}}},Qse=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Zse={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Jse=(e,t)=>{const{componentCls:n}=e;return {[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Zse[t]]:{value:0,_skip_check_:true}}}}},eae=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}},tae=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},nae=e=>{const{componentCls:t}=e;return {[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:{transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute",...eae(e)}},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:{...tae(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"}}},...Qse.map(n=>Jse(e,n)).reduce((n,r)=>({...n,...r}),{})}},yF=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:x,fontSize:w,lineHeight:E,width:M,notificationIconSize:T,colorText:A,colorSuccessBg:I,colorErrorBg:N,colorInfoBg:P,colorWarningBg:O,motionDurationMid:D}=e,_=`${n}-notice`;return {position:"relative",marginBottom:i,marginInlineStart:"auto",background:g,borderRadius:s,boxShadow:r,[_]:{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}:{}},[`${_}-title`]:{marginBottom:e.marginXS,color:p,fontSize:o,lineHeight:e.lineHeightLG},[`${_}-description`]:{fontSize:w,color:A,marginTop:e.marginXS},[`${_}-closable ${_}-title`]:{paddingInlineEnd:e.paddingLG},[`${_}-with-icon ${_}-title`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(T).equal(),fontSize:o},[`${_}-with-icon ${_}-description`]:{marginInlineStart:e.calc(e.marginSM).add(T).equal(),fontSize:w},[`${_}-icon`]:{position:"absolute",fontSize:T,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:u},[`&-warning${t}`]:{color:d},[`&-error${t}`]:{color:m}},[`${_}-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(H=>`${H} ${D}`).join(", "),display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...oi(e)},[`${_}-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:x,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}},[`${_}-actions`]:{float:"right",marginTop:e.marginSM}}},rae=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,s=`${t}-notice`,l=new kt("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`]:yF(e)}}]},SF=e=>({zIndexPopup:e.zIndexPopupBase+$T+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),CF=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})},xF=Gt("Notification",e=>{const t=CF(e);return [rae(t),Xse(t),nae(t)]},SF),oae=Jf(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=CF(e);return {[`${t}-pure-panel`]:{...yF(n),width:n.width,maxWidth:`calc(100vw - ${oe(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0}}},SF);function KT(e,t){return t===null||t===false?null:t||f.createElement(nl,{className:`${e}-close-icon`})}const iae={success:yT,info:ST,error:dg,warning:fg},wF=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:Y(`${t}-icon`,d.icon),style:u.icon},n):r&&(m=f.createElement(iae[r]||null,{className:Y(`${t}-icon`,d.icon,`${t}-icon-${r}`),style:u.icon})),f.createElement("div",{className:Y({[`${t}-with-icon`]:m}),role:l},m,f.createElement("div",{className:Y(`${t}-title`,d.title),style:u.title},o),i&&f.createElement("div",{className:Y(`${t}-description`,d.description),style:u.description},i),s&&f.createElement("div",{className:Y(`${t}-actions`,d.actions),style:u.actions},s))},sae=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:x,className:w,style:E,classNames:M,styles:T}=jt("notification"),[A,I]=Kt([M,b],[T,g],{props:e}),{notification:N}=f.useContext(wt),P=u??l,O=i??o,D=t||x("notification"),_=`${D}-notice`,H=Zn(D),[U,W]=xF(D,H),[z,L,,G]=wT(sc(e),sc(N),{closable:true,closeIcon:f.createElement(nl,{className:`${D}-close-icon`}),closeIconRender:K=>KT(D,K)}),j=z?{onClose:y&&typeof y=="object"?y?.onClose:void 0,closeIcon:L,...G}:false;return f.createElement("div",{className:Y(`${_}-pure-panel`,U,m,W,H,A.root),style:I.root},f.createElement(oae,{prefixCls:D}),f.createElement(AT,{style:{...E,...p},...S,prefixCls:D,eventKey:"pure",duration:null,closable:j,className:Y(m,w),content:f.createElement(wF,{classNames:A,styles:I,prefixCls:_,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 lae(e){return {motionName:`${e}-fade`}}function cae(e,t,n){return typeof e<"u"?e:typeof t?.closeIcon<"u"?t.closeIcon:n?.closeIcon}const WO=24,uae=4.5,dae="topRight",fae=({children:e,prefixCls:t})=>{const n=Zn(t),[r,o]=xF(t,n);return q.createElement(wz,{classNames:{list:Y(r,o,n)}},e)},mae=(e,{prefixCls:t,key:n})=>q.createElement(fae,{prefixCls:t,key:n},e),hae=q.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:s,rtl:l,onAllRemoved:u,stack:d,duration:m=uae,pauseOnHover:p=true,showProgress:g}=e,{getPrefixCls:b,getPopupContainer:y,direction:S}=jt("notification"),{notification:x}=f.useContext(wt),[,w]=Xr(),E=o||b("notification"),M=f.useMemo(()=>typeof m=="number"&&m>0?m:false,[m]),T=_=>aae(_,n??WO,r??WO),A=()=>Y({[`${E}-rtl`]:l??S==="rtl"}),I=()=>lae(E),[N,P]=Ez({prefixCls:E,style:T,className:A,motion:I,closable:{closeIcon:KT(E)},duration:M,getContainer:()=>i?.()||y?.()||document.body,maxCount:s,pauseOnHover:p,showProgress:g,onAllRemoved:u,renderNotifications:mae,stack:d===false?false:{threshold:typeof d=="object"?d?.threshold:void 0,offset:8,gap:w.margin}}),[O,D]=Kt([x?.classNames,e?.classNames],[x?.styles,e?.styles],{props:e});return q.useImperativeHandle(t,()=>({...N,prefixCls:E,notification:x,classNames:O,styles:D})),P});function EF(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||{},x=`${m}-notice`,{title:w,message:E,description:M,icon:T,type:A,btn:I,actions:N,className:P,style:O,role:D="alert",closeIcon:_,closable:H,classNames:U={},styles:W={},...z}=u,L=w??E,G=N??I,j=KT(x,cae(_,e,p)),[K,X,,k]=tz(sc({...e||{},...u}),sc(n),{closable:true,closeIcon:j}),V=K?{onClose:H&&typeof H=="object"?H.onClose:void 0,closeIcon:X,...k}:false,Q=Xl(U,{props:u}),J=Xl(W,{props:u}),te=$1(void 0,g,Q),ne=ET(b,J);return d({placement:e?.placement??dae,...z,content:q.createElement(wF,{prefixCls:x,icon:T,type:A,title:L,description:M,actions:G,role:D,classNames:te,styles:ne}),className:Y({[`${x}-${A}`]:A},P,y,te.root),style:{...S,...ne.root,...O},closable:V})},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(hae,{key:"notification-holder",...e,ref:t})]}function $F(e){return EF(e)}const p0=q.createContext({}),MF=q.createContext({message:{},notification:{},modal:{}}),pae=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"}}}},gae=()=>({}),vae=Gt("App",pae,gae),bae=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]=vae(b),x=Y(y,b,r,o,S,{[`${b}-rtl`]:d==="rtl"}),w=f.useContext(p0),E=q.useMemo(()=>({message:{...w.message,...i},notification:{...w.notification,...s}}),[i,s,w.message,w.notification]),[M,T]=Az(E.message),[A,I]=$F(E.notification),[N,P]=bF(),O=q.useMemo(()=>({message:M,notification:A,modal:N}),[M,A,N]),D=u===false?q.Fragment:u,_={className:Y(p,x),style:{...g,...l}};return q.createElement(MF.Provider,{value:O},q.createElement(p0.Provider,{value:E},q.createElement(D,{...u===false?void 0:_},P,T,I,n)))},yae=()=>q.useContext(MF),Cg=bae;Cg.useApp=yae;function TF(e){return t=>f.createElement(Fo,{theme:{token:{motion:false,zIndexPopupBase:0}}},f.createElement(e,{...t}))}const YT=(e,t,n,r,o)=>TF(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:x}=f.useContext(wt),w=x(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}))}),Sae=(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])},AF=f.createContext(null);function Zu(){return f.useContext(AF)}function Cae(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 RF(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function xae(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&&!RF(e(),s)&&n(false);});f.useEffect(()=>(window.addEventListener("mousedown",o),()=>window.removeEventListener("mousedown",o)),[o]);}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 wae=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"}}},Eae=(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:x,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||wae(y),[b,y]),_=l?`${P}-${l}`:u,H=typeof y=="number",U=f.useMemo(()=>H?null:y===false?"minWidth":"width",[y,H]);let W=d;H&&(W={...d,width:y});const z=f.useRef(null);return f.useImperativeHandle(t,()=>({getPopupElement:()=>z.current?.popupElement})),f.createElement(A1,w2({},N,{showAction:M?["click"]:[],hideAction:M?["click"]:[],popupPlacement:g||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:D,prefixCls:P,popupMotion:{motionName:_},popup:f.createElement("div",{onMouseEnter:T,onMouseDown:A,onBlur:I},O),ref:z,stretch:U,popupAlign:x,popupVisible:o,getPopupContainer:w,popupClassName:Y(m,{[`${P}-empty`]:E}),popupStyle:W,onPopupVisibleChange:M}),i)},$ae=f.forwardRef(Eae);function GO(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 E2(e){return typeof e<"u"&&!Number.isNaN(e)}function NF(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 Mae(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:o,value:i,options:s,groupLabel:l}=NF(t,false);function u(d,m){Array.isArray(d)&&d.forEach(p=>{if(m||!(s in p)){const g=p[i];r.push({key:GO(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:GO(p,r.length),group:true,data:p,label:g}),u(p[s],true);}});}return u(e,false),r}function $2(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 Tae=(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 Aae(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 Rae=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null);},XT=(e,t=1)=>{if(t<=0){e();return}Rae(()=>{XT(e,t-1);});};function Nae(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,x={})=>{const{cancelFun:w}=x;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():XT(()=>{T();});});return [m,p,y,u]}function Rw(e){const{children:t,...n}=e;return t?f.createElement("div",n,t):null}const PF=f.createContext(null);function xg(){return f.useContext(PF)}const IF=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:x,tokenWithEnter:w,placeholder:E,components:{input:M="input"}}=xg(),{id:T,classNames:A,styles:I,open:N,activeDescendantId:P,role:O,disabled:D}=Zu()||{},_=Y(`${p}-input`,A?.input,u),H=f.useRef(false),U=f.useRef(null),W=f.useRef(null);f.useImperativeHandle(t,()=>W.current);const z=te=>{let{value:ne}=te.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," ");ne=ne.replace(re,U.current);}U.current=null,b&&b(ne,true,H.current),n?.(te);},L=te=>{const{key:ne}=te,{value:re}=te.currentTarget;ne==="Enter"&&g==="tags"&&!N&&!H.current&&y&&y(re),r?.(te);},G=te=>{S?.(),o?.(te);},j=()=>{H.current=true;},K=te=>{if(H.current=false,g!=="combobox"){const{value:ne}=te.currentTarget;b?.(ne,true,false);}},X=te=>{const{clipboardData:ne}=te,re=ne?.getData("text");U.current=re||"";},[k,V]=f.useState(void 0);Rn(()=>{const te=W.current;if(s&&te){te.style.width="0px";const ne=te.scrollWidth;V(ne),te.style.width="";}},[s,l]);const Q={id:T,type:g==="combobox"?"text":"search",...m,ref:W,style:{...I?.input,...i,"--select-input-width":k},autoFocus:x,autoComplete:d||"off",className:_,disabled:D,value:l||"",onChange:z,onKeyDown:L,onBlur:G,onPaste:X,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 te=M.props||{},ne={placeholder:e.placeholder||E,...Q,...te};return Object.keys(te).forEach(re=>{const ie=te[re];typeof ie=="function"&&(ne[re]=(...ue)=>{ie(...ue),Q[re]?.(...ue);});}),ne.ref=Yr(M.ref,Q.ref),f.cloneElement(M,ne)}const J=M;return f.createElement(J,Q)});function OF(e){const{prefixCls:t,placeholder:n,displayValues:r}=xg(),{classNames:o,styles:i}=Zu(),{show:s=true}=e;return r.length?null:f.createElement("div",{className:Y(`${t}-placeholder`,o?.placeholder),style:{visibility:s?"visible":"hidden",...i?.placeholder}},n)}const QT=f.createContext(null);function DF(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Pae(e){return e!=null}function Iae(e){return !e&&e!==0}function qO(e){return ["string","number"].includes(typeof e)}function M2(e){let t;return e&&(qO(e.title)?t=e.title.toString():qO(e.label)&&(t=e.label.toString())),t}function T2(){return T2=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},T2.apply(this,arguments)}const Oae=f.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:o,displayValues:i,maxLength:s,mode:l,components:u}=xg(),{triggerOpen:d,title:m,showSearch:p,classNames:g,styles:b}=Zu(),y=f.useContext(QT),[S,x]=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 _,H,U;if(E&&y?.flattenOptions){const z=y.flattenOptions.find(L=>L.value===E.value);z?.data&&(_=z.data.className,H=z.data.style,U=M2(z.data));}return E&&!U&&(U=M2(E)),m!==void 0&&(U=m),[_,H,U,!!_||!!H]},[E,y?.flattenOptions,m]);f.useEffect(()=>{w&&x(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:Y(`${n}-content-value`,T),style:{...M?{visibility:"hidden"}:{},...A},title:I},E.label):E.label:f.createElement(OF,{show:!M}):null;return f.createElement("div",{className:Y(`${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(IF,T2({ref:t},e,{value:M,maxLength:l==="combobox"?s:void 0,onChange:_=>{x(true),e.onChange?.(_);}})))}),qd=void 0;function Dae(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",...x}=e,w=s&&!b;function E(N){u(d,N);}f.useEffect(()=>()=>{E(null);},[]);const M=i&&o!==qd?i(o,{index:y}):g;let T;r||(T={opacity:w?0:1,height:w?0:qd,overflowY:w?"hidden":qd,order:s?y:qd,pointerEvents:w?"none":qd,position:w?"absolute":qd});const A={};w&&(A["aria-hidden"]=true);let I=f.createElement(S,dr({className:Y(!r&&n,m),style:{...T,...p}},A,x,{ref:t}),M);return s&&(I=f.createElement(Cs,{onResize:({offsetWidth:N})=>{E(N);},disabled:l},I)),I}const Fh=f.forwardRef(Dae);function _ae(e){if(typeof MessageChannel>"u")Lt(e);else {const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0);}}function Lae(){const e=f.useRef(null);return n=>{e.current||(e.current=[],_ae(()=>{Oo.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r();}),e.current=null;});})),e.current.push(n);}}function Kd(e,t){const[n,r]=f.useState(t),o=Mt(i=>{e(()=>{r(i);});});return [n,o]}const g0=q.createContext(null),kae=(e,t)=>{const n=f.useContext(g0);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(g0.Provider,{value:null},f.createElement(Fh,dr({ref:t,className:Y(r,i)},o,s)))},Bae=f.forwardRef(kae),_F="responsive",LF="invalidate";function zae(e){return `+ ${e.length} ...`}function Fae(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:x="div",itemComponent:w,onVisibleChange:E,...M}=e,T=u==="full",A=Lae(),[I,N]=Kd(A,null),P=I||0,[O,D]=Kd(A,new Map),[_,H]=Kd(A,0),[U,W]=Kd(A,0),[z,L]=Kd(A,0),[G,j]=Kd(A,0),[K,X]=f.useState(null),[k,V]=f.useState(null),Q=f.useMemo(()=>k===null&&T?Number.MAX_SAFE_INTEGER:k||0,[k,I]),[J,te]=f.useState(false),ne=`${n}-item`,re=Math.max(_,U),ie=p===_F,ue=r.length&&ie,ee=p===LF,ae=ue||typeof p=="number"&&r.length>p,ce=f.useMemo(()=>{let Oe=r;return ue?I===null&&T?Oe=r:Oe=r.slice(0,Math.min(r.length,P/l)):typeof p=="number"&&(Oe=r.slice(0,p)),Oe},[r,l,I,p,ue]),se=f.useMemo(()=>ue?r.slice(Q+1):r.slice(ce.length),[r,ce,ue,Q]),$e=f.useCallback((Oe,qe)=>typeof s=="function"?s(Oe):(s&&Oe?.[s])??qe,[s]),le=f.useCallback(o||(Oe=>Oe),[o]);function pe(Oe,qe,Je){k===Oe&&(qe===void 0||qe===K)||(V(Oe),Je||(te(Oe<r.length-1),E?.(Oe)),qe!==void 0&&X(qe));}function be(Oe,qe){N(qe.clientWidth);}function Ee(Oe,qe){D(Je=>{const ke=new Map(Je);return qe===null?ke.delete(Oe):ke.set(Oe,qe),ke});}function Te(Oe,qe){W(qe),H(U);}function Ye(Oe,qe){L(qe);}function Re(Oe,qe){j(qe);}function fe(Oe){return O.get($e(ce[Oe],Oe))}Rn(()=>{if(P&&typeof re=="number"&&ce){let Oe=z+G;const qe=ce.length,Je=qe-1;if(!qe){pe(0,null);return}for(let ke=0;ke<qe;ke+=1){let Ie=fe(ke);if(T&&(Ie=Ie||0),Ie===void 0){pe(ke-1,void 0,true);break}if(Oe+=Ie,Je===0&&Oe<=P||ke===Je-1&&Oe+fe(Je)<=P){pe(Je,null);break}else if(Oe+re>P){pe(ke-1,Oe-Ie-G+U);break}}S&&fe(0)+G>P&&X(null);}},[P,O,U,z,G,$e,ce]);const ge=J&&!!se.length;let Ne={};K!==null&&ue&&(Ne={position:"absolute",left:K,top:0});const He={prefixCls:ne,responsive:ue,component:w,invalidate:ee},We=i?(Oe,qe)=>{const Je=$e(Oe,qe);return f.createElement(g0.Provider,{key:Je,value:{...He,order:qe,item:Oe,itemKey:Je,registerSize:Ee,display:qe<=Q}},i(Oe,qe))}:(Oe,qe)=>{const Je=$e(Oe,qe);return f.createElement(Fh,dr({},He,{order:qe,key:Je,item:Oe,renderItem:le,itemKey:Je,registerSize:Ee,display:qe<=Q}))},je={order:ge?Q:Number.MAX_SAFE_INTEGER,className:`${ne}-rest`,registerSize:Te,display:ge},et=g||zae,it=b?f.createElement(g0.Provider,{value:{...He,...je}},b(se)):f.createElement(Fh,dr({},He,je),typeof et=="function"?et(se):et),Ke=f.createElement(x,dr({className:Y(!ee&&n,m),style:d,ref:t},M),y&&f.createElement(Fh,dr({},He,{responsive:ie,responsiveDisabled:!ue,order:-1,className:`${ne}-prefix`,registerSize:Ye,display:true}),y),ce.map(We),ae?it:null,S&&f.createElement(Fh,dr({},He,{responsive:ie,responsiveDisabled:!ue,order:Q,className:`${ne}-suffix`,registerSize:Re,display:true,style:Ne}),S));return ie?f.createElement(Cs,{onResize:be,disabled:!ue},Ke):Ke}const Wa=f.forwardRef(Fae);Wa.Item=Bae;Wa.RESPONSIVE=_F;Wa.INVALIDATE=LF;const kF=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:Y(t.split(/\s+/).map(d=>`${d}-icon`))},i))};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)}function Hae(e){return e.key??e.value}const KO=e=>{e.preventDefault(),e.stopPropagation();},Vae=f.forwardRef(function({inputProps:t},n){const{prefixCls:r,displayValues:o,searchValue:i,mode:s,onSelectorRemove:l,removeIcon:u}=xg(),{disabled:d,showSearch:m,triggerOpen:p,rawOpen:g,toggleOpen:b,autoClearSearchValue:y,tagRender:S,maxTagPlaceholder:x,maxTagTextLength:w,maxTagCount:E,classNames:M,styles:T}=Zu(),A=`${r}-selection-item`;let I=i;!g&&s==="multiple"&&y!==false&&(I="");const N=m&&I||"",P=m&&!d,O=u??"×",D=x??(j=>`+ ${j.length} ...`),_=S,H=j=>{b(j);},U=j=>{l?.(j);},W=(j,K,X,k,V)=>f.createElement("span",{title:M2(j),className:Y(A,{[`${A}-disabled`]:X},M?.item),style:T?.item},f.createElement("span",{className:Y(`${A}-content`,M?.itemContent),style:T?.itemContent},K),k&&f.createElement(kF,{className:Y(`${A}-remove`,M?.itemRemove),style:T?.itemRemove,onMouseDown:KO,onClick:V,customizeIcon:O},"×")),z=(j,K,X,k,V,Q,J)=>{const te=ne=>{KO(ne),H(!p);};return f.createElement("span",{onMouseDown:te},_({label:K,value:j,index:J?.index,disabled:X,closable:k,onClose:V,isMaxTag:!!Q}))},L=(j,K)=>{const{disabled:X,label:k,value:V}=j,Q=!d&&!X;let J=k;if(typeof w=="number"&&(typeof k=="string"||typeof k=="number")){const ne=String(J);ne.length>w&&(J=`${ne.slice(0,w)}...`);}const te=ne=>{ne&&ne.stopPropagation(),U(j);};return typeof _=="function"?z(V,J,X,Q,te,void 0,K):W(j,J,X,Q,te)},G=j=>{if(!o.length)return null;const K=typeof D=="function"?D(j):D;return typeof _=="function"?z(void 0,K,false,false,void 0,true):W({title:K},K,false)};return f.createElement(Wa,{prefixCls:`${r}-content`,className:M?.content,style:T?.content,prefix:!o.length&&!N&&f.createElement(OF,null),data:o,renderItem:L,renderRest:G,suffix:f.createElement(IF,A2({ref:n,disabled:d,readOnly:!P},t,{value:N||"",syncWidth:true})),itemKey:Hae,maxCount:E})}),jae=f.forwardRef(function(t,n){const{multiple:r,onInputKeyDown:o,tabIndex:i}=xg(),s=Zu(),{showSearch:l}=s,d={...Ao(s,{aria:true}),onKeyDown:o,readOnly:!l,tabIndex:i};return r?f.createElement(Vae,{ref:n,inputProps:d}):f.createElement(Oae,{ref:n,inputProps:d})});function Uae(e){return e&&![at.ESC,at.SHIFT,at.BACKSPACE,at.TAB,at.WIN_KEY,at.ALT,at.META,at.WIN_KEY_RIGHT,at.CTRL,at.SEMICOLON,at.EQUALS,at.CAPS_LOCK,at.CONTEXT_MENU,at.UP,at.LEFT,at.RIGHT,at.F1,at.F2,at.F3,at.F4,at.F5,at.F6,at.F7,at.F8,at.F9,at.F10,at.F11,at.F12].includes(e)}function v0(){return v0=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},v0.apply(this,arguments)}const Wae=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],Gae=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:x,onInputBlur:w,maxLength:E,autoFocus:M,onMouseDown:T,onClearMouseDown:A,onInputKeyDown:I,onSelectorRemove:N,tokenWithEnter:P,components:O,...D}=t,{triggerOpen:_,toggleOpen:H,showSearch:U,disabled:W,loading:z,classNames:L,styles:G}=Zu(),j=f.useRef(null),K=f.useRef(null),X=Mt(re=>{const{which:ie}=re,ue=K.current instanceof HTMLTextAreaElement;if(!ue&&_&&(ie===at.UP||ie===at.DOWN)&&re.preventDefault(),I&&I(re),ue&&!_&&~[at.UP,at.DOWN,at.LEFT,at.RIGHT].indexOf(ie))return;!(re.ctrlKey||re.altKey||re.metaKey)&&Uae(ie)&&H(true);});f.useImperativeHandle(n,()=>({focus:re=>{(K.current||j.current).focus?.(re);},blur:()=>{(K.current||j.current).blur?.();},nativeElement:Bu(j.current)}));const k=Mt(re=>{if(!W){const ie=Bu(K.current);re.nativeEvent._ori_target=ie;const ue=ie===re.target||ie?.contains(re.target);ie&&!ue&&re.preventDefault();const ce=_&&!m&&(b==="combobox"||U)||_&&m&&ue;re.nativeEvent._select_lazy?_&&H(false):(K.current?.focus(),ce||H());}T?.(re);}),{root:V}=O,Q=Fn(D,Wae),J=Ao(Q,{aria:true}),te=Object.keys(J),ne={...t,onInputKeyDown:X};if(V){const re=V.props||{},ie={...re,...Q};return Object.keys(re).forEach(ue=>{const ee=re[ue],ae=Q[ue];typeof ee=="function"&&typeof ae=="function"&&(ie[ue]=(...ce)=>{ae(...ce),ee(...ce);});}),f.isValidElement(V)?f.cloneElement(V,{...ie,ref:Yr(V.ref,j)}):f.createElement(V,v0({},ie,{ref:j}))}return f.createElement(PF.Provider,{value:ne},f.createElement("div",v0({},Fn(Q,te),{ref:j,className:o,style:i,onMouseDown:k}),f.createElement(Rw,{className:Y(`${r}-prefix`,L?.prefix),style:G?.prefix},s),f.createElement(jae,{ref:K}),f.createElement(Rw,{className:Y(`${r}-suffix`,{[`${r}-suffix-loading`]:z},L?.suffix),style:G?.suffix},l),u&&f.createElement(Rw,{className:Y(`${r}-clear`,L?.clear),style:G?.clear,onMouseDown:re=>{re.nativeEvent._select_lazy=true,A?.(re);}},u),d))});function qae(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 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)}const N2=e=>e==="tags"||e==="multiple",Kae=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:x,maxCount:w,placeholder:E,mode:M,disabled:T,loading:A,getInputElement:I,getRawInputElement:N,open:P,defaultOpen:O,onPopupVisibleChange:D,activeValue:_,onActiveValueChange:H,activeDescendantId:U,searchValue:W,autoClearSearchValue:z,onSearch:L,onSearchSplit:G,tokenSeparators:j,allowClear:K,prefix:X,suffix:k,suffixIcon:V,clearIcon:Q,OptionList:J,animation:te,transitionName:ne,popupStyle:re,popupClassName:ie,popupMatchSelectWidth:ue,popupRender:ee,popupAlign:ae,placement:ce,builtinPlacements:se,getPopupContainer:$e,showAction:le=[],onFocus:pe,onBlur:be,onKeyUp:Ee,onKeyDown:Te,onMouseDown:Ye,components:Re,...fe}=e,ge=N2(M),Ne=f.useRef(null),He=f.useRef(null),We=f.useRef(null),[je,et]=f.useState(false);f.useImperativeHandle(t,()=>({focus:Ne.current?.focus,blur:Ne.current?.blur,scrollTo:Ge=>We.current?.scrollTo(Ge),nativeElement:Bu(Ne.current)}));const it=qae(Re,I,N),Ke=f.useMemo(()=>{if(M!=="combobox")return W;const Ge=g[0]?.value;return typeof Ge=="string"||typeof Ge=="number"?String(Ge):""},[W,M,g]),Oe=M==="combobox"&&typeof I=="function"&&I()||null,qe=!S&&y,[Je,ke,Ie,lt]=Nae(O||false,P,D,Ge=>T||qe?false:Ge),Tt=f.useMemo(()=>(j||[]).some(Ge=>[`
`,`\r
`].includes(Ge)),[j]),pt=(Ge,mt,Nt)=>{if(ge&&E2(w)&&g.length>=w)return;let Ut=true,Jt=Ge;H?.(null);const nn=Tae(Ge,j,E2(w)?w-g.length:void 0),Nn=Nt?null:nn;return M!=="combobox"&&Nn&&(Jt="",G?.(Nn),Ie(false),Ut=false),L&&Ke!==Jt&&L(Jt,{source:mt?"typing":"effect"}),Ge&&mt&&Ut&&Ie(true),Ut},Dt=Ge=>{!Ge||!Ge.trim()||L(Ge,{source:"submit"});};f.useEffect(()=>{!Je&&!ge&&M!=="combobox"&&pt("",false,false);},[Je]),f.useEffect(()=>{T&&(Ie(false),et(false));},[T,ke]);const[xt,Ot]=Cae(),dt=f.useRef(false),ut=Ge=>{const mt=xt(),{key:Nt}=Ge,Ut=Nt==="Enter",Jt=Nt===" ";if(Ut||Jt){const nn=M==="combobox";(Jt&&!(nn||l)||Ut&&!nn)&&Ge.preventDefault(),ke||Ie(true);}if(Ot(!!Ke),Nt==="Backspace"&&!mt&&ge&&!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]});}ke&&(!Ut||!dt.current)&&!Jt&&(Ut&&(dt.current=true),We.current?.onKeyDown(Ge)),Te?.(Ge);},bt=(Ge,...mt)=>{ke&&We.current?.onKeyUp(Ge,...mt),Ge.key==="Enter"&&(dt.current=false),Ee?.(Ge,...mt);},Fe=Mt(Ge=>{const mt=g.filter(Nt=>Nt!==Ge);b(mt,{type:"remove",values:[Ge]});}),Ue=()=>{dt.current=false;},ye=()=>[Bu(Ne.current),He.current?.getPopupElement()];xae(ye,ke,Ie,!!it.root);const Me=f.useRef(false),Se=Ge=>{et(true),T||(le.includes("focus")&&Ie(true),pe?.(Ge));},he=()=>{ke&&!Me.current&&Ie(false,{cancelFun:()=>RF(ye(),document.activeElement)});},De=Ge=>{et(false),Ke&&(M==="tags"?L(Ke,{source:"submit"}):M==="multiple"&&L("",{source:"blur"})),he(),T||be?.(Ge);},Ce=(Ge,...mt)=>{const{target:Nt}=Ge;He.current?.getPopupElement()?.contains(Nt)&&Ie&&Ie(true),Ye?.(Ge,...mt),Me.current=true,XT(()=>{Me.current=false;});},[,Be]=f.useState({});function Xe(){Be({});}let st;it.root&&(st=Ge=>{Ie(Ge);});const ft=f.useMemo(()=>({...e,notFoundContent:S,open:ke,triggerOpen:ke,rawOpen:Je,id:n,showSearch:l,multiple:ge,toggleOpen:Ie,showScrollBar:d,styles:i,classNames:s,lockOptions:lt}),[e,S,Ie,n,l,ge,ke,Je,d,i,s,lt]),Et=f.useMemo(()=>{const Ge=k??V;return typeof Ge=="function"?Ge({searchValue:Ke,open:ke,focused:je,showSearch:l,loading:A}):Ge},[k,V,Ke,ke,je,l,A]),At=()=>{x?.(),Ne.current?.focus(),b([],{type:"clear",values:g}),pt("",false,false);},{allowClear:Rt,clearIcon:yn}=Sae(r,g,K,Q,T,Ke,M),Wn=f.createElement(J,{ref:We}),tt=Y(r,o,{[`${r}-focused`]:je,[`${r}-multiple`]:ge,[`${r}-single`]:!ge,[`${r}-allow-clear`]:Rt,[`${r}-show-arrow`]:Et!=null,[`${r}-disabled`]:T,[`${r}-loading`]:A,[`${r}-open`]:ke,[`${r}-customize-input`]:Oe,[`${r}-show-search`]:l});let Qe=f.createElement(Gae,R2({},fe,{ref:Ne,prefixCls:r,className:tt,focused:je,prefix:X,suffix:Et,clearIcon:yn,multiple:ge,mode:M,displayValues:g,placeholder:E,searchValue:Ke,activeValue:_,onSearch:pt,onSearchSubmit:Dt,onInputBlur:Ue,onFocus:Se,onBlur:De,onClearMouseDown:At,onKeyDown:ut,onKeyUp:bt,onSelectorRemove:Fe,tokenWithEnter:Tt,onMouseDown:Ce,components:it}));return Qe=f.createElement($ae,{ref:He,disabled:T,prefixCls:r,visible:ke,popupElement:Wn,animation:te,transitionName:ne,popupStyle:re,popupClassName:ie,direction:m,popupMatchSelectWidth:ue,popupRender:ee,popupAlign:ae,placement:ce,builtinPlacements:se,getPopupContainer:$e,empty:y,onPopupVisibleChange:st,onPopupMouseEnter:Xe,onPopupMouseDown:Ce,onPopupBlur:he},Qe),f.createElement(AF.Provider,{value:ft},f.createElement(Aae,{visible:je&&!ke,values:g}),Qe)}),ZT=()=>null;ZT.isSelectOptGroup=true;const JT=()=>null;JT.isSelectOption=true;const BF=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(Cs,{onResize:({offsetHeight:g})=>{g&&i&&i();}},f.createElement("div",dr({style:p,className:Y({[`${o}-holder-inner`]:o}),ref:d},s),r,u)))});BF.displayName="Filler";function Yae({children:e,setRef:t}){const n=f.useCallback(r=>{t(r);},[]);return f.cloneElement(e,{ref:n})}function Xae(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(Yae,{key:g,setRef:b=>i(u,b)},p)})}function Qae(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 Zae(e,t,n){const[r,o]=f.useState(e),[i,s]=f.useState(null);return f.useEffect(()=>{const l=Qae(r||[],e||[],t);l?.index!==void 0&&s(e[l.index]),o(e);},[e]),[i]}const YO=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),zF=((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 Jae(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=zF(t,n,r,o);function g(E,M){if(Lt.cancel(u.current),p(false,M))return;const T=E;if(!T._virtualHandled)T._virtualHandled=true;else return;l.current+=M,d.current=M,YO||T.preventDefault(),u.current=Lt(()=>{const A=m.current?10:1;s(l.current*A,false),l.current=0;});}function b(E,M){s(M,true),YO||E.preventDefault();}const y=f.useRef(null),S=f.useRef(null);function x(E){if(!e)return;Lt.cancel(S.current),S.current=Lt(()=>{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 [x,w]}function ele(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 tle{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 XO(e){const t=parseFloat(e);return isNaN(t)?0:t}function nle(e,t,n){const[r,o]=f.useState(0),i=f.useRef(new Map),s=f.useRef(new tle),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:x}=y,{marginTop:w,marginBottom:E}=getComputedStyle(y),M=XO(w),T=XO(E),A=x+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 QO=14/15;function rle(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,x=i.current-y;const w=Math.abs(S)>Math.abs(x);w?o.current=b:i.current=y;const E=n(w,w?S:x,false,g);E&&g.preventDefault(),clearInterval(l.current),E&&(l.current=setInterval(()=>{w?S*=QO:x*=QO;const M=Math.floor(w?S:x);(!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 ZO(e){return Math.floor(e**.5)}function P2(e,t){return ("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function ole(e,t,n){f.useEffect(()=>{const r=t.current;if(e&&r){let o=false,i,s;const l=()=>{Lt.cancel(i);},u=()=>{l(),i=Lt(()=>{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=P2(g,false),{top:y,bottom:S}=r.getBoundingClientRect();if(b<=y){const x=y-b;s=-ZO(x),u();}else if(b>=S){const x=b-S;s=ZO(x),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 ile=10;function sle(e,t,n,r,o,i,s,l){const u=f.useRef(),[d,m]=f.useState(null);return Rn(()=>{if(d&&d.times<ile){if(!e.current){m(M=>({...M}));return}i();const{targetAlign:p,originAlign:g,index:b,offset:y}=d,S=e.current.clientHeight;let x=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 _=n.get(D);I=A+(_===void 0?r:_),T=I;}let P=M==="top"?y:S-y;for(let O=N;O>=0;O-=1){const D=o(t[O]),_=n.get(D);if(_===void 0){x=true;break}if(P-=_,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&&(x=true);}x&&m({...d,times:d.times+1,targetAlign:w,lastTop:E});}},[d,e.current]),p=>{if(p==null){l();return}if(Lt.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 JO=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,x]=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(),_=()=>{y===true||y===false||(clearTimeout(D.current),O(true),D.current=setTimeout(()=>{O(false);},3e3));},H=i-p||0,U=p-m||0,W=f.useMemo(()=>o===0||H===0?0:o/H*U,[o,H,U]),z=Q=>{Q.stopPropagation(),Q.preventDefault();},L=f.useRef({top:W,dragging:S,pageY:w,startTop:M});L.current={top:W,dragging:S,pageY:w,startTop:M};const G=Q=>{x(true),E(P2(Q,d)),T(L.current.top),s(),Q.stopPropagation(),Q.preventDefault();};f.useEffect(()=>{const Q=ne=>{ne.preventDefault();},J=I.current,te=N.current;return J.addEventListener("touchstart",Q,{passive:false}),te.addEventListener("touchstart",G,{passive:false}),()=>{J.removeEventListener("touchstart",Q),te.removeEventListener("touchstart",G);}},[]);const j=f.useRef();j.current=H;const K=f.useRef();K.current=U,f.useEffect(()=>{if(S){let Q;const J=ne=>{const{dragging:re,pageY:ie,startTop:ue}=L.current;Lt.cancel(Q);const ee=I.current.getBoundingClientRect(),ae=p/(d?ee.width:ee.height);if(re){const ce=(P2(ne,d)-ie)*ae;let se=ue;!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),Q=Lt(()=>{u(be,d);});}},te=()=>{x(false),l();};return window.addEventListener("mousemove",J,{passive:true}),window.addEventListener("touchmove",J,{passive:true}),window.addEventListener("mouseup",te,{passive:true}),window.addEventListener("touchend",te,{passive:true}),()=>{window.removeEventListener("mousemove",J),window.removeEventListener("touchmove",J),window.removeEventListener("mouseup",te),window.removeEventListener("touchend",te),Lt.cancel(Q);}}},[S]),f.useEffect(()=>(_(),()=>{clearTimeout(D.current);}),[o]),f.useImperativeHandle(t,()=>({delayHidden:_}));const X=`${n}-scrollbar`,k={position:"absolute",visibility:P?null:"hidden"},V={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return d?(Object.assign(k,{height:8,left:0,right:0,bottom:0}),Object.assign(V,{height:"100%",width:m,[A?"left":"right"]:W})):(Object.assign(k,{width:8,top:0,bottom:0,[A?"right":"left"]:0}),Object.assign(V,{width:"100%",height:m,top:W})),f.createElement("div",{ref:I,className:Y(X,{[`${X}-horizontal`]:d,[`${X}-vertical`]:!d,[`${X}-visible`]:P}),style:{...k,...g},onMouseDown:z,onMouseMove:_},f.createElement("div",{ref:N,className:Y(`${X}-thumb`,{[`${X}-thumb-moving`]:S}),style:{...V,...b},onMouseDown:G}))}),ale=20;function eD(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,ale),Math.floor(n)}const lle=[],cle={overflowY:"auto",overflowAnchor:"none"};function ule(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:x,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,_]=nle(N),H=!!(p!==false&&o&&i),U=f.useMemo(()=>Object.values(D.maps).reduce((Se,he)=>Se+he,0),[D.id,D.maps]),W=H&&u&&(Math.max(i*u.length,U)>o||!!b),z=g==="rtl",L=Y(n,{[`${n}-rtl`]:z},r),G=u||lle,j=f.useRef(),K=f.useRef(),X=f.useRef(),[k,V]=f.useState(0),[Q,J]=f.useState(0),[te,ne]=f.useState(false),re=()=>{ne(true);},ie=()=>{ne(false);},ue={getKey:N};function ee(Se){V(he=>{let De;typeof Se=="function"?De=Se(he):De=Se;const Ce=je(De);return j.current.scrollTop=Ce,Ce});}const ae=f.useRef({start:0,end:G.length}),ce=f.useRef(),[se]=Zae(G,N);ce.current=se;const{scrollHeight:$e,start:le,end:pe,offset:be}=f.useMemo(()=>{if(!H)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,De,Ce;const Be=G.length;for(let Xe=0;Xe<Be;Xe+=1){const st=G[Xe],ft=N(st),Et=D.get(ft),At=Se+(Et===void 0?i:Et);At>=k&&he===void 0&&(he=Xe,De=Se),At>k+o&&Ce===void 0&&(Ce=Xe),Se=At;}return he===void 0&&(he=0,De=0,Ce=Math.ceil(o/i)),Ce===void 0&&(Ce=G.length-1),Ce=Math.min(Ce+1,G.length-1),{scrollHeight:Se,start:he,end:Ce,offset:De}},[W,H,k,G,_,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],De=Se.get(he),Ce=G[le];if(Ce&&De===void 0&&N(Ce)===he){const st=D.get(he)-i;ee(ft=>ft+st);}}D.resetRecord();},[$e]);const[Ee,Te]=f.useState({width:0,height:o}),Ye=Se=>{Te({width:Se.offsetWidth,height:Se.offsetHeight});},Re=f.useRef(),fe=f.useRef(),ge=f.useMemo(()=>eD(Ee.width,b),[Ee.width,b]),Ne=f.useMemo(()=>eD(Ee.height,$e),[Ee.height,$e]),He=$e-o,We=f.useRef(He);We.current=He;function je(Se){let he=Se;return Number.isNaN(We.current)||(he=Math.min(he,We.current)),he=Math.max(he,0),he}const et=k<=0,it=k>=He,Ke=Q<=0,Oe=Q>=b,qe=zF(et,it,Ke,Oe),Je=()=>({x:z?-Q:Q,y:k}),ke=f.useRef(Je()),Ie=Mt(Se=>{if(x){const he={...Je(),...Se};(ke.current.x!==he.x||ke.current.y!==he.y)&&(x(he),ke.current=he);}});function lt(Se,he){const De=Se;he?(Oo.flushSync(()=>{J(De);}),Ie()):ee(De);}function Tt(Se){const{scrollTop:he}=Se.currentTarget;he!==k&&ee(he),S?.(Se),Ie();}const pt=Se=>{let he=Se;const De=b?b-Ee.width:0;return he=Math.max(he,0),he=Math.min(he,De),he},Dt=Mt((Se,he)=>{he?(Oo.flushSync(()=>{J(De=>{const Ce=De+(z?-Se:Se);return pt(Ce)});}),Ie()):ee(De=>De+Se);}),[xt,Ot]=Jae(H,et,it,Ke,Oe,!!b,Dt);rle(H,j,(Se,he,De,Ce)=>{const Be=Ce;return qe(Se,he,De)?false:!Be||!Be._virtualHandled?(Be&&(Be._virtualHandled=true),xt({preventDefault(){},deltaX:Se?he:0,deltaY:Se?0:he}),true):false}),ole(W,j,Se=>{ee(he=>he+Se);}),Rn(()=>{function Se(De){const Ce=et&&De.detail<0,Be=it&&De.detail>0;H&&!Ce&&!Be&&De.preventDefault();}const he=j.current;return he.addEventListener("wheel",xt,{passive:false}),he.addEventListener("DOMMouseScroll",Ot,{passive:true}),he.addEventListener("MozMousePixelScroll",Se,{passive:false}),()=>{he.removeEventListener("wheel",xt),he.removeEventListener("DOMMouseScroll",Ot),he.removeEventListener("MozMousePixelScroll",Se);}},[H,et,it]),Rn(()=>{if(b){const Se=pt(Q);J(Se),Ie({x:Se});}},[Ee.width,b]);const dt=()=>{Re.current?.delayHidden(),fe.current?.delayHidden();},ut=sle(j,G,D,i,N,()=>O(true),ee,dt);f.useImperativeHandle(t,()=>({nativeElement:X.current,getScrollInfo:Je,scrollTo:Se=>{function he(De){return De&&typeof De=="object"&&("left"in De||"top"in De)}he(Se)?(Se.left!==void 0&&J(pt(Se.left)),ut(Se.top)):ut(Se);}})),Rn(()=>{if(w){const Se=G.slice(le,pe+1);w(Se,G);}},[le,pe,G]);const bt=ele(G,N,D,i),Fe=M?.({start:le,end:pe,virtual:W,offsetX:Q,offsetY:be,rtl:z,getSize:bt}),Ue=Xae(G,le,pe,b,Q,P,d,ue);let ye=null;o&&(ye={[s?"height":"maxHeight"]:o,...cle},H&&(ye.overflowY="hidden",b&&(ye.overflowX="hidden"),te&&(ye.pointerEvents="none")));const Me={};return z&&(Me.dir="rtl"),f.createElement("div",dr({ref:X,style:{...l,position:"relative"},className:L},Me,I),f.createElement(Cs,{onResize:Ye},f.createElement(y,{className:`${n}-holder`,style:ye,ref:j,onScroll:Tt,onMouseEnter:dt},f.createElement(BF,{prefixCls:n,height:$e,offsetX:Q,offsetY:be,scrollWidth:b,onInnerResize:O,ref:K,innerProps:E,rtl:z,extra:Fe},Ue))),W&&$e>o&&f.createElement(JO,{ref:Re,prefixCls:n,scrollOffset:k,scrollRange:$e,rtl:z,onScroll:lt,onStartMove:re,onStopMove:ie,spinSize:Ne,containerSize:Ee.height,style:T?.verticalScrollBar,thumbStyle:T?.verticalScrollBarThumb,showScrollBar:A}),W&&b>Ee.width&&f.createElement(JO,{ref:fe,prefixCls:n,scrollOffset:Q,scrollRange:b,rtl:z,onScroll:lt,onStartMove:re,onStopMove:ie,spinSize:ge,containerSize:Ee.width,horizontal:true,style:T?.horizontalScrollBar,thumbStyle:T?.horizontalScrollBarThumb,showScrollBar:A}))}const FF=f.forwardRef(ule);FF.displayName="List";function dle(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}function ep(){return ep=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},ep.apply(this,arguments)}function tD(e){return typeof e=="string"||typeof e=="number"}const fle=(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}=Zu(),{maxCount:b,flattenOptions:y,onActiveValue:S,defaultActiveFirstOption:x,onSelect:w,menuItemSelectedIcon:E,rawValues:M,fieldNames:T,virtual:A,direction:I,listHeight:N,listItemHeight:P,optionRender:O,classNames:D,styles:_}=f.useContext(QT),H=`${n}-item`,U=Qf(()=>y,[o,g],(ee,ae)=>ae[0]&&!ae[1]),W=f.useRef(null),z=f.useMemo(()=>i&&E2(b)&&M?.size>=b,[i,b,M?.size]),L=ee=>{ee.preventDefault();},G=ee=>{W.current?.scrollTo(typeof ee=="number"?{index:ee}:ee);},j=f.useCallback(ee=>s==="combobox"?false:M.has(ee),[s,[...M].toString(),M.size]),K=(ee,ae=1)=>{const ce=U.length;for(let se=0;se<ce;se+=1){const $e=(ee+se*ae+ce)%ce,{group:le,data:pe}=U[$e]||{};if(!le&&!pe?.disabled&&(j(pe.value)||!z))return $e}return  -1},[X,k]=f.useState(()=>K(0)),V=(ee,ae=false)=>{k(ee);const ce={source:ae?"keyboard":"mouse"},se=U[ee];if(!se){S(null,-1,ce);return}S(se.value,ee,ce);};f.useEffect(()=>{V(x!==false?K(0):-1);},[U.length,l]);const Q=f.useCallback(ee=>s==="combobox"?String(ee).toLowerCase()===l.toLowerCase():M.has(ee),[s,l,[...M].toString(),M.size]);f.useEffect(()=>{let ee;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&&(V(ce),ee=setTimeout(()=>{G(ce);}));}return o&&W.current?.scrollTo(void 0),()=>clearTimeout(ee)},[o,l]);const J=ee=>{ee!==void 0&&w(ee,{selected:!M.has(ee)}),i||u(false);};if(f.useImperativeHandle(t,()=>({onKeyDown:ee=>{const{which:ae,ctrlKey:ce}=ee;switch(ae){case at.N:case at.P:case at.UP:case at.DOWN:{let se=0;if(ae===at.UP?se=-1:ae===at.DOWN?se=1:dle()&&ce&&(ae===at.N?se=1:ae===at.P&&(se=-1)),se!==0){const $e=K(X+se,se);G($e),V($e,true);}break}case at.TAB:case at.ENTER:{const se=U[X];if(!se||se.data.disabled)return J(void 0);!z||M.has(se.value)?J(se.value):J(void 0),o&&ee.preventDefault();break}case at.ESC:u(false),o&&ee.stopPropagation();}},onKeyUp:()=>{},scrollTo:ee=>{G(ee);}})),U.length===0)return f.createElement("div",{role:"listbox",id:`${r}_list`,className:`${H}-empty`,onMouseDown:L},d);const te=Object.keys(T).map(ee=>T[ee]),ne=ee=>ee.label;function re(ee,ae){const{group:ce}=ee;return {role:ce?"presentation":"option",id:`${r}_list_${ae}`}}const ie=ee=>{const ae=U[ee];if(!ae)return null;const ce=ae.data||{},{value:se,disabled:$e}=ce,{group:le}=ae,pe=Ao(ce,true),be=ne(ae);return ae?f.createElement("div",ep({"aria-label":typeof be=="string"&&!le?be:null},pe,{key:ee},re(ae,ee),{"aria-selected":Q(se),"aria-disabled":$e}),se):null},ue={role:"listbox",id:`${r}_list`};return f.createElement(f.Fragment,null,A&&f.createElement("div",ep({},ue,{style:{height:0,width:0,overflow:"hidden"}}),ie(X-1),ie(X),ie(X+1)),f.createElement(FF,{itemKey:"key",ref:W,data:U,height:N,itemHeight:P,fullHeight:false,onMouseDown:L,onScroll:m,virtual:A,direction:I,innerProps:A?null:ue,showScrollBar:p,className:D?.popup?.list,style:_?.popup?.list},(ee,ae)=>{const{group:ce,groupOption:se,data:$e,label:le,value:pe}=ee,{key:be}=$e;if(ce){const Je=$e.title??(tD(le)?le.toString():void 0);return f.createElement("div",{className:Y(H,`${H}-group`,$e.className),title:Je},le!==void 0?le:be)}const{disabled:Ee,title:Te,children:Ye,style:Re,className:fe,...ge}=$e,Ne=Fn(ge,te),He=j(pe),We=Ee||!He&&z,je=`${H}-option`,et=Y(H,je,fe,D?.popup?.listItem,{[`${je}-grouped`]:se,[`${je}-active`]:X===ae&&!We,[`${je}-disabled`]:We,[`${je}-selected`]:He}),it=ne(ee),Ke=!E||typeof E=="function"||He,Oe=typeof it=="number"?it:it||pe;let qe=tD(Oe)?Oe.toString():void 0;return Te!==void 0&&(qe=Te),f.createElement("div",ep({},Ao(Ne),A?{}:re(ee,ae),{"aria-selected":A?void 0:Q(pe),"aria-disabled":We,className:et,title:qe,onMouseMove:()=>{X===ae||We||V(ae);},onClick:()=>{We||J(pe);},style:{..._?.popup?.listItem,...Re}}),f.createElement("div",{className:`${je}-content`},typeof O=="function"?O(ee,{index:ae}):Oe),f.isValidElement(E)||He,Ke&&f.createElement(kF,{className:`${H}-option-state`,customizeIcon:E,customizeIconProps:{value:pe,disabled:We,isSelected:He}},He?"✓":null))}))},mle=f.forwardRef(fle),hle=((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 Nw(e,t){return DF(e).join("").toUpperCase().includes(t)}const ple=((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=>Nw(y[S],m)):y[i]?Nw(y[s!=="children"?s:"label"],m):Nw(y[l],m),g=d?b=>$2(b):b=>b;return e.forEach(b=>{if(b[i]){if(p(n,g(b)))u.push(b);else {const S=b[i].filter(x=>p(n,g(x)));S.length&&u.push({...b,[i]:S});}return}p(n,g(b))&&u.push(b);}),u},[e,r,o,n,t]));function gle(e){const{key:t,props:{children:n,value:r,...o}}=e;return {key:t,value:r!==void 0?r:t,children:n,...o}}function HF(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?gle(n):{key:`__RC_SELECT_GRP__${i===null?r:i}__`,label:i,...l,options:HF(s)}}).filter(n=>n)}const vle=(e,t,n,r,o)=>f.useMemo(()=>{let i=e;!e&&(i=HF(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 nD(e){const t=f.useRef();return t.current=e,f.useCallback((...r)=>t.current(...r),[])}function ble(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 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 yle=["inputValue"];function Sle(e){return !e||typeof e!="object"}const Cle=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:x,popupMatchSelectWidth:w=true,optionLabelProp:E,options:M,optionRender:T,children:A,defaultActiveFirstOption:I,menuItemSelectedIcon:N,virtual:P,direction:O,listHeight:D=200,listItemHeight:_=20,labelRender:H,value:U,defaultValue:W,labelInValue:z,onChange:L,maxCount:G,classNames:j,styles:K,...X}=e,k={searchValue:u,onSearch:d,autoClearSearchValue:m,filterOption:p,optionFilterProp:g,filterSort:b},[V,Q]=ble(l,k,r),{filterOption:J,searchValue:te,optionFilterProp:ne,filterSort:re,onSearch:ie,autoClearSearchValue:ue=true}=Q,ee=f.useMemo(()=>ne?Array.isArray(ne)?ne:[ne]:[],[ne]),ae=rl(n),ce=N2(r),se=!!(!M&&A),$e=f.useMemo(()=>J===void 0&&r==="combobox"?false:J,[J,r]),le=f.useMemo(()=>NF(s,se),[JSON.stringify(s),se]),[pe,be]=fn("",te),Ee=pe||"",Te=vle(M,A,le,ee,E),{valueOptions:Ye,labelOptions:Re,options:fe}=Te,ge=f.useCallback(Ce=>DF(Ce).map(Xe=>{let st,ft,Et,At;Sle(Xe)?st=Xe:(ft=Xe.label,st=Xe.value);const Rt=Ye.get(st);return Rt&&(ft===void 0&&(ft=Rt?.[E||le.label]),Et=Rt?.disabled,At=Rt?.title),{label:ft,value:st,key:st,disabled:Et,title:At}}),[le,E,Ye]),[Ne,He]=fn(W,U),We=f.useMemo(()=>{const Be=ge(ce&&Ne===null?[]:Ne);return r==="combobox"&&Iae(Be[0]?.value)?[]:Be},[Ne,ge,r,ce]),[je,et]=hle(We,Ye),it=f.useMemo(()=>{if(!r&&je.length===1){const Ce=je[0];if(Ce.value===null&&(Ce.label===null||Ce.label===void 0))return []}return je.map(Ce=>({...Ce,label:(typeof H=="function"?H(Ce):Ce.label)??Ce.value}))},[r,je,H]),Ke=f.useMemo(()=>new Set(je.map(Ce=>Ce.value)),[je]);f.useEffect(()=>{if(r==="combobox"){const Ce=je[0]?.value;be(Pae(Ce)?String(Ce):"");}},[je]);const Oe=nD((Ce,Be)=>{const Xe=Be??Ce;return {[le.value]:Ce,[le.label]:Xe}}),qe=f.useMemo(()=>{if(r!=="tags")return fe;const Ce=[...fe],Be=Xe=>Ye.has(Xe);return [...je].sort((Xe,st)=>Xe.value<st.value?-1:1).forEach(Xe=>{const st=Xe.value;Be(st)||Ce.push(Oe(st,Xe.label));}),Ce},[Oe,fe,Ye,je,r]),Je=ple(qe,le,Ee,$e,ee),ke=f.useMemo(()=>{const Ce=Be=>ee.length?ee.some(Xe=>Be?.[Xe]===Ee):Be?.value===Ee;return r!=="tags"||!Ee||Je.some(Be=>Ce(Be))||Je.some(Be=>Be[le.value]===Ee)?Je:[Oe(Ee),...Je]},[Oe,ee,r,Je,Ee,le]),Ie=Ce=>[...Ce].sort((Xe,st)=>re(Xe,st,{searchValue:Ee})).map(Xe=>Array.isArray(Xe.options)?{...Xe,options:Xe.options.length>0?Ie(Xe.options):Xe.options}:Xe),lt=f.useMemo(()=>re?Ie(ke):ke,[ke,re,Ee]),Tt=f.useMemo(()=>Mae(lt,{fieldNames:le,childrenAsData:se}),[lt,le,se]),pt=Ce=>{const Be=ge(Ce);if(He(Be),L&&(Be.length!==je.length||Be.some((Xe,st)=>je[st]?.value!==Xe?.value))){const Xe=z?Be.map(({label:ft,value:Et})=>({label:ft,value:Et})):Be.map(ft=>ft.value),st=Be.map(ft=>$2(et(ft.value)));L(ce?Xe:Xe[0],ce?st:st[0]);}},[Dt,xt]=f.useState(null),[Ot,dt]=f.useState(0),ut=I!==void 0?I:r!=="combobox",bt=f.useRef(),Fe=f.useCallback((Ce,Be,{source:Xe="keyboard"}={})=>{dt(Be),i&&r==="combobox"&&Ce!==null&&Xe==="keyboard"&&xt(String(Ce));const st=Promise.resolve().then(()=>{bt.current===st&&x?.(Ce);});bt.current=st;},[i,r,x]),Ue=(Ce,Be,Xe)=>{const st=()=>{const ft=et(Ce);return [z?{label:ft?.[le.label],value:Ce}:Ce,$2(ft)]};if(Be&&y){const[ft,Et]=st();y(ft,Et);}else if(!Be&&S&&Xe!=="clear"){const[ft,Et]=st();S(ft,Et);}},ye=nD((Ce,Be)=>{let Xe;const st=ce?Be.selected:true;st?Xe=ce?[...je,Ce]:[Ce]:Xe=je.filter(ft=>ft.value!==Ce),pt(Xe),Ue(Ce,st),r==="combobox"?xt(""):(!N2||ue)&&(be(""),xt(""));}),Me=(Ce,Be)=>{pt(Ce);const{type:Xe,values:st}=Be;(Xe==="remove"||Xe==="clear")&&st.forEach(ft=>{Ue(ft.value,false,Xe);});},Se=(Ce,Be)=>{if(be(Ce),xt(null),Be.source==="submit"){const Xe=(Ce||"").trim();if(Xe){const st=Array.from(new Set([...Ke,Xe]));pt(st),Ue(Xe,true),be("");}return}Be.source!=="blur"&&(r==="combobox"&&pt(Ce),ie?.(Ce));},he=Ce=>{let Be=Ce;r!=="tags"&&(Be=Ce.map(st=>Re.get(st)?.value).filter(st=>st!==void 0));const Xe=Array.from(new Set([...Ke,...Be]));pt(Xe),Xe.forEach(st=>{Ue(st,true);});},De=f.useMemo(()=>({...Te,flattenOptions:Tt,onActiveValue:Fe,defaultActiveFirstOption:ut,onSelect:ye,menuItemSelectedIcon:N,rawValues:Ke,fieldNames:le,virtual:P!==false&&w!==false,direction:O,listHeight:D,listItemHeight:_,childrenAsData:se,maxCount:G,optionRender:T,classNames:j,styles:K}),[G,Te,Tt,Fe,ut,ye,N,Ke,le,P,w,O,D,_,se,T,j,K]);return f.createElement(QT.Provider,{value:De},f.createElement(Kae,I2({},X,{id:ae,prefixCls:o,ref:t,omitDomProps:yle,mode:r,classNames:j,styles:K,displayValues:it,onDisplayValuesChange:Me,maxCount:G,direction:O,showSearch:V,searchValue:Ee,onSearch:Se,autoClearSearchValue:ue,onSearchSplit:he,popupMatchSelectWidth:w,OptionList:mle,emptyOptions:!Tt.length,activeValue:Dt,activeDescendantId:`${ae}_list_${Ot}`})))}),eA=Cle;eA.Option=JT;eA.OptGroup=ZT;const uc=(e,t,n)=>Y({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n}),rm=(e,t)=>t||e,xle=()=>{const[,e]=Xr(),[t]=zo("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"}))))},wle=()=>{const[,e]=Xr(),[t]=zo("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}))))},Ele=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}}}}},$le=Gt("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 Ele(o)}),VF=f.createElement(xle,null),jF=f.createElement(wle,null),Ki=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:x,styles:w,image:E}=jt("empty"),M=g("empty",r),[T,A]=$le(M),[I,N]=Kt([x,d],[w,m],{props:e}),[P]=zo("Empty"),O=typeof i<"u"?i:P?.description,D=typeof O=="string"?O:"empty",_=o??E??VF;let H=null;return typeof _=="string"?H=f.createElement("img",{draggable:false,alt:D,src:_}):H=_,f.createElement("div",{className:Y(T,A,M,y,{[`${M}-normal`]:_===jF,[`${M}-rtl`]:b==="rtl"},t,n,I.root),style:{...N.root,...S,...u},...p},f.createElement("div",{className:Y(`${M}-image`,I.image),style:{...l,...N.image}},H),O&&f.createElement("div",{className:Y(`${M}-description`,I.description),style:N.description},O),s&&f.createElement("div",{className:Y(`${M}-footer`,I.footer),style:N.footer},s))};Ki.PRESENTED_IMAGE_DEFAULT=VF;Ki.PRESENTED_IMAGE_SIMPLE=jF;const UF=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(wt),r=n("empty");switch(t){case "Table":case "List":return q.createElement(Ki,{image:Ki.PRESENTED_IMAGE_SIMPLE});case "Select":case "TreeSelect":case "Cascader":case "Transfer":case "Mentions":return q.createElement(Ki,{image:Ki.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case "Table.filter":return null;default:return q.createElement(Ki,null)}},_1=(e,t,n)=>{const{variant:r,[e]:o}=f.useContext(wt),i=f.useContext(lse),s=o?.variant;let l;typeof t<"u"?l=t:n===false?l="borderless":l=i??s??r??"outlined";const u=kJ.includes(l);return [l,u]},Mle=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 Tle(e,t){return e||Mle(t)}const rD=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"}},Ale=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:OT},[`
          ${o}${l}topLeft,
          ${i}${l}topLeft,
          ${o}${l}topRight,
          ${i}${l}topRight
        `]:{animationName:_T},[`${s}${l}bottomLeft`]:{animationName:DT},[`
          ${s}${l}topLeft,
          ${s}${l}topRight
        `]:{animationName:LT},"&-hidden":{display:"none"},[r]:{...rD(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",...ia},"&-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":{...rD(e),color:e.colorTextDisabled}},[`${u}:has(+ ${u})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${u}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},lc(e,"slide-up"),lc(e,"slide-down"),d0(e,"move-up"),d0(e,"move-down")]},Rle=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"}}}}},oD=4,Nle=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% - ${oD}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":{...ia,marginInlineEnd:i},"&-remove":{...Yu(),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:oD,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"}}}}},Pw=(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}}},Mb=(e,t,n,r={},o={},i)=>{const{componentCls:s}=e;return {[`&${s}-${t}`]:[Pw(e,n),{[`&${s}-status-error`]:Pw(e,{...n,color:r.color||e.colorError,...r}),[`&${s}-status-warning`]:Pw(e,{...n,color:o.color||e.colorWarning,...o})},i]}},Ple=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`]:{...ia,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`]:{...ia,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"}},Nle(e),Mb(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}),Mb(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}),Mb(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),Mb(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"}),Rle(e)]}},Ile=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:x,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:x,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:E,activeBorderColor:M,activeOutlineColor:T,selectAffixPadding:l}},Ole=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",...ia,[`> ${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()}}}}}},Dle=e=>{const{componentCls:t}=e;return [{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Ole(e),Ale(e),{[`${t}-rtl`]:{direction:"rtl"}},tm(e,{focusElCls:`${t}-focused`})]},_le=Gt("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 [Dle(n),Ple(n)]},Ile,{unitless:{optionLineHeight:true,optionSelectedFontWeight:true}});var Lle={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 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 kle=(e,t)=>f.createElement(Qn,O2({},e,{ref:t,icon:Lle})),Ble=f.forwardRef(kle);var zle={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 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 Fle=(e,t)=>f.createElement(Qn,D2({},e,{ref:t,icon:zle})),tA=f.forwardRef(Fle);var Hle={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 _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 Vle=(e,t)=>f.createElement(Qn,_2({},e,{ref:t,icon:Hle})),nA=f.forwardRef(Vle);function jle({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(dg,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(R1,{spin:true})):y=({open:w,showSearch:E})=>b(w&&E?f.createElement(nA,null):f.createElement(tA,null));let S=null;n!==void 0?S=n:s?S=f.createElement(Ble,null):S=null;let x=null;return r!==void 0?x=r:x=f.createElement(nl,null),{clearIcon:g,suffixIcon:y,itemIcon:S,removeIcon:x}}function Ule(e){return q.useMemo(()=>{if(e)return (...t)=>q.createElement(cc,{space:true},e.apply(void 0,t))},[e])}function Wle(e,t){return t!==void 0?t:e!==null}const WF="SECRET_COMBOBOX_MODE_DO_NOT_USE",Gle=(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:x,dropdownMatchSelectWidth:w,popupMatchSelectWidth:E,direction:M,style:T,allowClear:A,variant:I,popupStyle:N,dropdownStyle:P,transitionName:O,tagRender:D,maxCount:_,prefix:H,dropdownRender:U,popupRender:W,onDropdownVisibleChange:z,onOpenChange:L,styles:G,classNames:j,...K}=e,{getPopupContainer:X,getPrefixCls:k,renderEmpty:V,direction:Q,virtual:J,popupMatchSelectWidth:te,popupOverflow:ne}=f.useContext(wt),{showSearch:re,style:ie,styles:ue,className:ee,classNames:ae}=jt("select"),[,ce]=Xr(),se=p??ce?.controlHeight,$e=k("select",n),le=k(),pe=M??Q,{compactSize:be,compactItemClassnames:Ee}=ol($e,pe),[Te,Ye]=_1("select",I,r),Re=Zn($e),[fe,ge]=_le($e,Re),Ne=f.useMemo(()=>{const{mode:Be}=e;if(Be!=="combobox")return Be===WF?"combobox":Be},[e.mode]),He=Ne==="multiple"||Ne==="tags",We=Wle(e.suffixIcon,e.showArrow),je=E??w??te,et=Ule(W||U),it=L||z,{status:Ke,hasFeedback:Oe,isFormItemInput:qe,feedbackIcon:Je}=f.useContext(Ro),ke=rm(Ke,S);let Ie;y!==void 0?Ie=y:Ne==="combobox"?Ie=null:Ie=V?.("Select")||f.createElement(UF,{componentName:"Select"});const{suffixIcon:lt,itemIcon:Tt,removeIcon:pt,clearIcon:Dt}=jle({...K,multiple:He,hasFeedback:Oe,feedbackIcon:Je,showSuffixIcon:We,componentName:"Select"}),xt=A===true?{clearIcon:Dt}:A,Ot=Fn(K,["suffixIcon","itemIcon"]),dt=br(Be=>g??be??Be),ut=f.useContext(fo),bt=b??ut,Fe={...e,variant:Te,status:ke,disabled:bt,size:dt},[Ue,ye]=Kt([ae,j],[ue,G],{props:Fe},{popup:{_default:"root"}}),Me=Y(Ue.popup?.root,l,u,{[`${$e}-dropdown-${pe}`]:pe==="rtl"},i,ge,Re,fe),Se={...ye.popup?.root,...N??P},he=Y({[`${$e}-lg`]:dt==="large",[`${$e}-sm`]:dt==="small",[`${$e}-rtl`]:pe==="rtl",[`${$e}-${Te}`]:Ye,[`${$e}-in-form-item`]:qe},uc($e,ke,Oe),Ee,ee,o,Ue.root,i,ge,Re,fe),De=f.useMemo(()=>m!==void 0?m:pe==="rtl"?"bottomRight":"bottomLeft",[m,pe]),[Ce]=Qu("SelectLike",ye.popup?.root?.zIndex??Se?.zIndex);return f.createElement(eA,{ref:t,virtual:J,classNames:Ue,styles:ye,showSearch:re,...Ot,style:{...ye.root,...ie,...T},popupMatchSelectWidth:je,transitionName:ac(le,"slide-up",O),builtinPlacements:Tle(x,ne),listHeight:d,listItemHeight:se,mode:Ne,prefixCls:$e,placement:De,direction:pe,prefix:H,suffixIcon:lt,menuItemSelectedIcon:Tt,removeIcon:pt,allowClear:xt,notFoundContent:Ie,className:he,getPopupContainer:s||X,popupClassName:Me,disabled:bt,popupStyle:{...ye.popup?.root,...Se,zIndex:Ce},maxCount:He?_:void 0,tagRender:He?D:void 0,popupRender:et,onPopupVisibleChange:it})},Sc=f.forwardRef(Gle),qle=YT(Sc,"popupAlign");Sc.SECRET_COMBOBOX_MODE_DO_NOT_USE=WF;Sc.Option=JT;Sc.OptGroup=ZT;Sc._InternalPanelDoNotUseOrYouWillBeFired=qle;const L2=["xxxl","xxl","xl","lg","md","sm","xs"],Kle=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)`}),Yle=e=>{const t=e,n=[].concat(L2).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},Xle=()=>{const[,e]=Xr(),t=Kle(Yle(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 GF(e=true,t={}){const n=f.useRef(t),[,r]=nz(),o=Xle();return Rn(()=>{const i=o.subscribe(s=>{n.current=s,e&&r();});return ()=>o.unsubscribe(i)},[]),n.current}const k2=f.createContext({}),Qle=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:x,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,x)},"&-sm":{...T(u,p,y,w)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}},Zle=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}}}},Jle=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}},qF=Gt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=zt(e,{avatarBg:n,avatarColor:t});return [Qle(r),Zle(r)]},Jle),KF=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:x,...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:_,className:H,style:U}=jt("avatar"),W=f.useContext(k2),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 L=()=>{x?.()!==false&&N(false);},G=br(ae=>o??W?.size??ae??"medium"),j=Object.keys(typeof G=="object"?G||{}:{}).some(ae=>L2.includes(ae)),K=GF(j),X=f.useMemo(()=>{if(typeof G!="object")return {};const ae=L2.find(se=>K[se]),ce=G[ae];return ce?{width:ce,height:ce,fontSize:ce&&(l||b)?ce/2:18}:{}},[K,G,l,b]),k=_("avatar",n),V=Zn(k),[Q,J]=qF(k,V),te=Y({[`${k}-lg`]:G==="large",[`${k}-sm`]:G==="small"}),ne=f.isValidElement(i),re=r||W?.shape||"circle",ie=Y(k,te,H,`${k}-${re}`,{[`${k}-image`]:ne||i&&I,[`${k}-icon`]:!!l},J,V,u,d,Q),ue=typeof G=="number"?{width:G,height:G,fontSize:l?G/2:18}:{};let ee;if(typeof i=="string"&&I)ee=f.createElement("img",{src:i,draggable:g,srcSet:s,onError:L,alt:p,crossOrigin:y});else if(ne)ee=i;else if(l)ee=l;else if(T||E!==1){const ae=`scale(${E})`,ce={msTransform:ae,WebkitTransform:ae,transform:ae};ee=f.createElement(Cs,{onResize:z},f.createElement("span",{className:`${k}-string`,ref:O,style:ce},b));}else ee=f.createElement("span",{className:`${k}-string`,style:{opacity:0},ref:O},b);return f.createElement("span",{...w,style:{...ue,...X,...U,...m},className:ie,ref:D},ee)}),Lf=e=>e?typeof e=="function"?e():e:null,rA=e=>{const{children:t,prefixCls:n,id:r,classNames:o,styles:i,className:s,style:l}=e;return f.createElement("div",{id:r,className:Y(`${n}-container`,o?.container,s),style:{...i?.container,...l},role:"tooltip"},typeof t=="function"?t():t)},Yd={shiftX:64,adjustY:1},Xd={adjustX:1,shiftY:true},Hi=[0,0],ece={left:{points:["cr","cl"],overflow:Xd,offset:[-4,0],targetOffset:Hi},right:{points:["cl","cr"],overflow:Xd,offset:[4,0],targetOffset:Hi},top:{points:["bc","tc"],overflow:Yd,offset:[0,-4],targetOffset:Hi},bottom:{points:["tc","bc"],overflow:Yd,offset:[0,4],targetOffset:Hi},topLeft:{points:["bl","tl"],overflow:Yd,offset:[0,-4],targetOffset:Hi},leftTop:{points:["tr","tl"],overflow:Xd,offset:[-4,0],targetOffset:Hi},topRight:{points:["br","tr"],overflow:Yd,offset:[0,-4],targetOffset:Hi},rightTop:{points:["tl","tr"],overflow:Xd,offset:[4,0],targetOffset:Hi},bottomRight:{points:["tr","br"],overflow:Yd,offset:[0,4],targetOffset:Hi},rightBottom:{points:["bl","br"],overflow:Xd,offset:[4,0],targetOffset:Hi},bottomLeft:{points:["tl","bl"],overflow:Yd,offset:[0,4],targetOffset:Hi},leftBottom:{points:["br","bl"],overflow:Xd,offset:[-4,0],targetOffset:Hi}};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 tce=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:x,id:w,showArrow:E=true,classNames:M,styles:T,...A}=e,I=rl(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 _=E===true?{}:E;return {..._,className:Y(_.className,M?.arrow),style:{..._.style,...T?.arrow},content:_.content??S}},[E,M?.arrow,T?.arrow,S]),D=({open:_})=>{const H=f.Children.only(s),U={"aria-describedby":x&&_?I:void 0};return f.cloneElement(H,U)};return f.createElement(A1,B2({popupClassName:M?.root,prefixCls:i,popup:f.createElement(rA,{key:"content",prefixCls:i,id:I,classNames:M,styles:T},x),action:n,builtinPlacements:ece,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 oA(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,x=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} ${x} Z')`;return {arrowShadowWidth:w,arrowPath:T,arrowPolygon:M}}const nce=(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"}}},YF=8;function L1(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return {arrowOffsetHorizontal:r,arrowOffsetVertical:n?YF:r}}function Tb(e,t){return e?t:{}}const iA=(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",...nce(e,t,o),"&:before":{background:t}}],...Tb(!!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}}}}),...Tb(!!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}}}}),...Tb(!!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}}),...Tb(!!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 rce(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 iD={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"]}},oce={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"]}},ice=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function XF(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:s}=e,l=t/2,u={},d=L1({contentRadius:i,limitVerticalRadius:true});return Object.keys(iD).forEach(m=>{const g={...r&&oce[m]||iD[m],offset:[0,0],dynamicInset:true};switch(u[m]=g,ice.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=rce(m,d,t,n),s&&(g.htmlRegion="visibleFirst");}),u}const sce=q.createContext(false),k1=(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])},sD="50%",ace=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,x]=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:x("overlay-color",o),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:s,boxShadow:d,boxSizing:"border-box"},T={[S("valid-offset-x")]:x("arrow-offset-x","var(--arrow-x)"),transformOrigin:[x("valid-offset-x",sD),`var(--arrow-y, ${sD})`].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,IT(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,YF)}},[`${n}-content`]:{position:"relative"},...E1(e,(A,{darkColor:I})=>({[`&${n}-${A}`]:{[`${n}-container`]:{backgroundColor:I},[`${n}-arrow`]:{[S("arrow-background-color")]:I}}})),"&-rtl":{direction:"rtl"}}},iA(e,x("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}`}}}]},lce=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...L1({contentRadius:e.borderRadius,limitVerticalRadius:true}),...oA(zt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),QF=(e,t,n=true)=>Gt("Tooltip",o=>{const{borderRadius:i,colorTextLightSolid:s,colorBgSpotlight:l,maxWidth:u}=o,d=zt(o,{tooltipMaxWidth:u,tooltipColor:s,tooltipBorderRadius:i,tooltipBg:l});return [ace(d),pg(o,"zoom-big-fast")]},lce,{resetStyle:false,injectStyle:n})(e,t),cce=oa.map(e=>`${e}-inverse`),uce=["success","processing","error","default","warning"];function B1(e,t=true){return t?[].concat(Xt(cce),Xt(oa)).includes(e):oa.includes(e)}function dce(e){return uce.includes(e)}const ZF=(e,t,n)=>{const r=B1(n),[o]=nr(e,"tooltip"),i=Y({[`${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}},fce=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=Zn(m),[b,y]=QF(m,g),S=ZF(p,m,i),x=S.arrowStyle,w=f.useMemo(()=>({container:{...s,...S.overlayStyle}}),[s,S.overlayStyle]),E={...e,placement:r},[M,T]=Kt([l],[w,u],{props:E}),A=Y(g,b,y,m,`${m}-pure`,`${m}-placement-${r}`,n,S.className);return f.createElement("div",{className:A,style:x},f.createElement("div",{className:`${m}-arrow`}),f.createElement(rA,{...e,className:b,prefixCls:m,classNames:M,styles:T},o))},mce=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:x,getPopupContainer:w,placement:E="top",mouseEnterDelay:M=.1,mouseLeaveDelay:T=.1,rootClassName:A,styles:I,classNames:N,onOpenChange:P,overlayInnerStyle:O,overlayStyle:D,overlayClassName:_,...H}=e,[,U]=Xr(),{getPopupContainer:W,getPrefixCls:z,direction:L,className:G,style:j,classNames:K,styles:X,arrow:k,trigger:V}=jt("tooltip"),Q=k1(u,k),J=Q.show,te=b||V||"hover",ne=w||W,re=m??!!d,ie=f.useContext(sce),ue=f.useRef(null),ee=()=>{ue.current?.forceAlign();};f.useImperativeHandle(t,()=>({forceAlign:ee,nativeElement:ue.current?.nativeElement,popupElement:ue.current?.popupElement}));const[ae,ce]=fn(e.defaultOpen??false,e.open),se=!p&&!g&&p!==0,$e=Dt=>{ce(se?false:Dt),!se&&P&&P(Dt);},le=f.useMemo(()=>y||XF({arrowPointAtCenter:Q?.pointAtCenter??false,autoAdjustOverflow:S,arrowWidth:J?U.sizePopupArrow:0,borderRadius:U.borderRadius,offset:U.marginXXS,visibleFirst:true}),[Q,y,U,J,S]),pe=f.useMemo(()=>p===0?p:g||p||"",[g,p]),be=f.createElement(cc,{space:true,form:true},typeof pe=="function"?pe():pe),Ee={...e,trigger:te,builtinPlacements:le,getPopupContainer:ne,destroyOnHidden:re},[Te,Ye]=Kt([K,N],[X,I],{props:Ee}),Re=z("tooltip",n),fe=z(),ge=e["data-popover-inject"];let Ne=ae;(!("open"in e)&&se||ie)&&(Ne=false);const He=f.isValidElement(s)&&!pz(s)?s:f.createElement("span",null,s),We=He.props,je=!We.className||typeof We.className=="string"?Y(We.className,r||`${Re}-open`):We.className,et=Zn(Re),[it,Ke]=QF(Re,et,!ge),Oe=ZF(fe,Re,i),qe=Oe.arrowStyle,Je=Y(et,it,Ke),ke=Y(_,{[`${Re}-rtl`]:L==="rtl"},Oe.className,A,Je,G,Te.root),[Ie,lt]=Qu("Tooltip",H.zIndex),Tt={...Ye.container,...O,...Oe.overlayStyle},pt=f.createElement(tce,{unique:true,...H,zIndex:Ie,showArrow:J,placement:E,mouseEnterDelay:M,mouseLeaveDelay:T,prefixCls:Re,classNames:{root:ke,container:Te.container,arrow:Te.arrow,uniqueContainer:Y(Je,Te.container)},styles:{root:{...qe,...Ye.root,...j,...D},container:Tt,uniqueContainer:Tt,arrow:Ye.arrow},ref:ue,overlay:be,visible:Ne,onVisibleChange:$e,afterVisibleChange:l,arrowContent:f.createElement("span",{className:`${Re}-arrow-content`}),motion:{motionName:ac(fe,"zoom-big-fast",typeof x?.motionName=="string"?x?.motionName:void 0),motionDeadline:1e3},trigger:te,builtinPlacements:le,getTooltipContainer:ne,destroyOnHidden:re},Ne?qr(He,{className:je}):He);return f.createElement(M1.Provider,{value:lt},pt)}),Cc=mce;Cc._InternalPanelDoNotUseOrYouWillBeFired=fce;Cc.UniqueProvider=vz;const aD="50%",hce=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:x}=e,[w,E]=nr(x,"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",aD),`var(--arrow-y, ${aD})`].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}}},iA(e,E("arrow-background-color")),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},pce=e=>{const{componentCls:t,antCls:n}=e,[r]=nr(n,"tooltip");return {[t]:oa.map(o=>{const i=e[`${o}6`];return {[`&${t}-${o}`]:{[r("arrow-background-color")]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:"transparent"}}}})}},gce=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,...oA(e),...L1({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}},JF=Gt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=zt(e,{popoverBg:t,popoverColor:n});return [hce(r),pce(r),pg(r,"zoom-big")]},gce,{resetStyle:false,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),e7=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:Y(`${r}-title`,o?.title),style:i?.title},t),n&&f.createElement("div",{className:Y(`${r}-content`,o?.content),style:i?.content},n))},vce=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=Lf(s),g=Lf(l),b={...e,placement:i},[y,S]=Kt([d],[m],{props:b}),x=Y(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return f.createElement("div",{className:x,style:o},f.createElement("div",{className:`${n}-arrow`}),f.createElement(rA,{...e,className:t,prefixCls:n,classNames:y,styles:S},u||f.createElement(e7,{prefixCls:n,title:p,content:g,classNames:y,styles:S})))},t7=e=>{const{prefixCls:t,className:n,...r}=e,{getPrefixCls:o}=f.useContext(wt),i=o("popover",t),[s,l]=JF(i);return f.createElement(vce,{...r,prefixCls:i,hashId:s,className:Y(n,l)})},bce=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:x,...w}=e,{getPrefixCls:E,className:M,style:T,classNames:A,styles:I,arrow:N,trigger:P}=jt("popover"),O=E("popover",n),[D,_]=JF(O),H=E(),U=k1(x,N),W=l||P||"hover",z={...e,placement:s,trigger:W,mouseEnterDelay:d,mouseLeaveDelay:m,overlayStyle:g,styles:b,classNames:y},[L,G]=Kt([A,y],[I,b],{props:z}),j=Y(i,D,_,M,L.root),[K,X]=fn(e.defaultOpen??false,e.open),k=J=>{X(J),p?.(J);},V=Lf(r),Q=Lf(o);return f.createElement(Cc,{unique:false,arrow:U,placement:s,trigger:W,mouseEnterDelay:d,mouseLeaveDelay:m,...w,prefixCls:O,classNames:{root:j,container:L.container,arrow:L.arrow},styles:{root:{...G.root,...T,...g},container:G.container,arrow:G.arrow},ref:t,open:K,onOpenChange:k,overlay:V||Q?f.createElement(e7,{prefixCls:O,title:V,content:Q,classNames:L,styles:G}):null,motion:{motionName:ac(H,"zoom-big",typeof S?.motionName=="string"?S?.motionName:void 0)},"data-popover-inject":true},u)}),Os=bce;Os._InternalPanelDoNotUseOrYouWillBeFired=t7;const lD=e=>{const{size:t,shape:n}=f.useContext(k2),r=f.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return f.createElement(k2.Provider,{value:r},e.children)},yce=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),x=`${S}-group`,w=Zn(S),[E,M]=qF(S,w),T=Y(x,{[`${x}-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,_=y?.popover?.trigger||g||"hover",H=y?.popover?.placement||p||"top",U={content:O,...y?.popover,placement:H,trigger:_,rootClassName:Y(`${x}-popover`,y?.popover?.rootClassName)};return P.push(f.createElement(Os,{key:"avatar-popover-key",destroyOnHidden:true,...U},f.createElement(KF,{style:D},`+${N-I}`))),f.createElement(lD,{shape:m,size:d},f.createElement("div",{className:T,style:s},P))}return f.createElement(lD,{shape:m,size:d},f.createElement("div",{className:T,style:s},A))},wu=KF;wu.Group=yce;var Sce={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 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 Cce=(e,t)=>f.createElement(Qn,z2({},e,{ref:t,icon:Sce})),xce=f.forwardRef(Cce),cD=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:Y(`${t}-only-unit`,{current:r})},n)};function wce(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const Ece=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(cD,{...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,x=y.findIndex(E=>E%10===s);p=(S<0?y.slice(0,x+1):y.slice(x)).map((E,M)=>{const T=E%10;return f.createElement(cD,{...e,key:E,value:T,offset:S<0?M-x:M,current:M===x})}),g={transform:`translateY(${-wce(s,o,S)}00%)`};}return f.createElement("span",{className:`${t}-only`,style:g,onTransitionEnd:m},p)},$ce=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:Y(b,o,i),title:l};let S=r;if(r&&Number(r)%1===0){const x=String(r).split("");S=f.createElement("bdi",null,x.map((w,E)=>f.createElement(Ece,{prefixCls:b,count:Number(r),value:w,key:x.length-E})));}return s?.borderColor&&(y.style={...s,boxShadow:`0 0 0 1px ${s.borderColor} inset`}),m?qr(m,x=>({className:Y(`${b}-custom-component`,x?.className,i)})):f.createElement(d,{...y,ref:t},S)}),Mce=new kt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Tce=new kt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Ace=new kt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Rce=new kt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Nce=new kt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Pce=new kt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Ice=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=E1(e,(x,{darkColor:w})=>({[`&${t} ${t}-color-${x}`]:{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:Pce,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:Mce,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:Tce,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Ace,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Rce,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Nce,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%)"}}}}},n7=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%)"})},r7=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}},Oce=Gt("Badge",e=>{const t=n7(e);return Ice(t)},r7),Dce=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:x,classNames:w,styles:E,showZero:M=false,...T}=e,{getPrefixCls:A,direction:I,className:N,style:P,classNames:O,styles:D}=jt("badge"),_=A("badge",n),[H,U]=Oce(_),W={...e,overflowCount:d,size:p,dot:m,showZero:M},[z,L]=Kt([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,X=(Lr(i)||Lr(l))&&K,k=Lr(i)||!j,V=m&&!j,Q=V?"":G,J=f.useMemo(()=>((!Lr(Q)||Q==="")&&(!Lr(s)||s==="")||j&&!M)&&!V,[Q,j,M,V,s]),te=f.useRef(u);J||(te.current=u);const ne=te.current,re=f.useRef(Q);J||(re.current=Q);const ie=re.current,ue=f.useRef(V);J||(ue.current=V);const ee=f.useMemo(()=>{if(!b)return {...P,...y};const Te=Number.parseInt(b[0],10);return {...{marginTop:b[1],insetInlineEnd:-Te},...P,...y}},[b,y,P]),ae=g??(typeof ne=="string"||typeof ne=="number"?ne:void 0),ce=!J&&(s===0?M:!!s&&s!==true),se=ce?f.createElement("span",{className:`${_}-status-text`},s):null,$e=!ne||typeof ne!="object"?void 0:qr(ne,Te=>({style:{...ee,...Te.style}})),le=B1(l,false),pe=Y(z.indicator,{[`${_}-status-dot`]:X,[`${_}-status-${i}`]:!!i,[`${_}-color-${l}`]:le}),be={};l&&!le&&(be.color=l,be.background=l);const Ee=Y(_,{[`${_}-status`]:X,[`${_}-not-a-wrapper`]:!o,[`${_}-rtl`]:I==="rtl"},S,x,N,z.root,H,U);if(!o&&X&&(s||k||!K)){const Te=ee.color;return f.createElement("span",{ref:t,...T,className:Ee,style:{...L.root,...ee}},f.createElement("span",{className:pe,style:{...L.indicator,...be}}),ce&&f.createElement("span",{style:{color:Te},className:`${_}-status-text`},s))}return f.createElement("span",{ref:t,...T,className:Ee,style:L.root},o,f.createElement(No,{visible:!J,motionName:`${_}-zoom`,motionAppear:false,motionDeadline:1e3},({className:Te})=>{const Ye=A("scroll-number",r),Re=ue.current,fe=Y(z.indicator,{[`${_}-dot`]:Re,[`${_}-count`]:!Re,[`${_}-count-sm`]:p==="small",[`${_}-multiple-words`]:!Re&&ie&&ie.toString().length>1,[`${_}-status-${i}`]:!!i,[`${_}-color-${l}`]:le});let ge={...L.indicator,...ee};return l&&!le&&(ge=ge||{},ge.background=l),f.createElement($ce,{prefixCls:Ye,show:!J,motionClassName:Te,className:fe,count:ie,title:ae,style:ge,key:"scrollNumber"},$e)}),se)}),_ce=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,s=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,u=E1(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"}}}},Lce=Gt(["Badge","Ribbon"],e=>{const t=n7(e);return _ce(t)},r7),kce=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:x}=jt("ribbon"),w=p("ribbon",n),E=`${w}-wrapper`,[M,T]=Lce(w,E),A={...e,placement:l},[I,N]=Kt([S,m],[x,d],{props:A}),P=B1(o,false),O=Y(w,`${w}-placement-${l}`,{[`${w}-rtl`]:g==="rtl",[`${w}-color-${o}`]:P},t,b,I.indicator),D={},_={};return o&&!P&&(D.background=o,_.color=o),f.createElement("div",{className:Y(E,u,M,T,I.root),style:N.root},i,f.createElement("div",{className:Y(O,M),style:{...D,...N.indicator,...y,...r}},f.createElement("span",{className:Y(`${w}-content`,I.content),style:N.content},s),f.createElement("div",{className:`${w}-corner`,style:_})))},wg=Dce;wg.Ribbon=kce;var Bce={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 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 zce=(e,t)=>f.createElement(Qn,F2({},e,{ref:t,icon:Bce})),Pp=f.forwardRef(zce),{ESC:Fce,TAB:Hce}=at;function Vce({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 Fce:s();break;case Hce:{let m=false;i.current||(m=l()),m?d.preventDefault():s();break}}};f.useEffect(()=>e?(window.addEventListener("keydown",u),r&&Lt(l,3),()=>{window.removeEventListener("keydown",u),i.current=false;}):()=>{i.current=false;},[e]);}const jce=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,yc(i));return q.createElement(q.Fragment,null,r&&q.createElement("div",{className:`${o}-arrow`}),q.cloneElement(i,{ref:Ku(i)?s:void 0}))}),Qd={adjustX:1,adjustY:1},Zd=[0,0],Uce={topLeft:{points:["bl","tl"],overflow:Qd,offset:[0,-4],targetOffset:Zd},top:{points:["bc","tc"],overflow:Qd,offset:[0,-4],targetOffset:Zd},topRight:{points:["br","tr"],overflow:Qd,offset:[0,-4],targetOffset:Zd},bottomLeft:{points:["tl","bl"],overflow:Qd,offset:[0,4],targetOffset:Zd},bottom:{points:["tc","bc"],overflow:Qd,offset:[0,4],targetOffset:Zd},bottomRight:{points:["tr","br"],overflow:Qd,offset:[0,4],targetOffset:Zd}};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 o7=q.forwardRef((e,t)=>{const{arrow:n=false,prefixCls:r="rc-dropdown",transitionName:o,animation:i,align:s,placement:l="bottomLeft",placements:u=Uce,getPopupContainer:d,showAction:m,hideAction:p,overlayClassName:g,overlayStyle:b,visible:y,trigger:S=["hover"],autoFocus:x,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),_=q.useRef(null);q.useImperativeHandle(t,()=>O.current);const H=X=>{I(X),M?.(X);};Vce({visible:N,triggerRef:_,onVisibleChange:H,autoFocus:x,overlayRef:D});const U=X=>{const{onOverlayClick:k}=e;I(false),k&&k(X);},W=()=>q.createElement(jce,{ref:D,overlay:w,prefixCls:r,arrow:n}),z=()=>typeof w=="function"?W:W(),L=()=>{const{minOverlayWidthMatchTrigger:X,alignPoint:k}=e;return "minOverlayWidthMatchTrigger"in e?X:!k},G=()=>{const{openClassName:X}=e;return X!==void 0?X:`${r}-open`},j=q.cloneElement(E,{className:Y(E.props?.className,N&&G()),ref:Ku(E)?Yr(_,yc(E)):void 0});let K=p;return !K&&S.indexOf("contextMenu")!==-1&&(K=["click"]),q.createElement(A1,H2({builtinPlacements:u},T,{prefixCls:r,ref:O,popupClassName:Y(g,{[`${r}-show-arrow`]:n}),popupStyle:b,action:S,showAction:m,hideAction:K,popupPlacement:l,popupAlign:s,popupMotion:{motionName:P},popupVisible:N,stretch:L()?"minWidth":"",popup:z(),onOpenChange:H,onPopupClick:U,getPopupContainer:d}),j)}),Wce=e=>typeof e!="object"&&typeof e!="function"||e===null,i7=f.createContext(null);function s7(e,t){return `${e}-${t}`}function a7(e){const t=f.useContext(i7);return s7(t,e)}const Ns=f.createContext(null);function Gce(e,t){const n={...e};return Object.keys(t).forEach(r=>{const o=t[r];o!==void 0&&(n[r]=o);}),n}function Ip({children:e,locked:t,...n}){const r=f.useContext(Ns),o=Qf(()=>Gce(r,n),[r,n],(i,s)=>!t&&(i[0]!==s[0]||!ic(i[1],s[1],true)));return f.createElement(Ns.Provider,{value:o},e)}const qce=[],l7=f.createContext(null);function z1(){return f.useContext(l7)}const c7=f.createContext(qce);function om(e){const t=f.useContext(c7);return f.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const u7=f.createContext(null),sA=f.createContext({}),{LEFT:V2,RIGHT:j2,UP:U2,DOWN:vy,ENTER:by,ESC:d7,HOME:bh,END:yh}=at,uD=[U2,vy,V2,j2];function Kce(e,t,n,r){const o="prev",i="next",s="children",l="parent";if(e==="inline"&&r===by)return {inlineTrigger:true};const u={[U2]:o,[vy]:i},d={[V2]:n?i:o,[j2]:n?o:i,[vy]:s,[by]:s},m={[U2]:o,[vy]:i,[by]:s,[d7]:l,[V2]:n?s:l,[j2]: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 Yce(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function Xce(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement;}return null}function aA(e,t){return jT(e,true).filter(r=>t.has(r))}function dD(e,t,n,r=1){if(!e)return null;const o=aA(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 b0=(e,t)=>{const n=new Set,r=new Map,o=new Map;return e.forEach(i=>{const s=document.querySelector(`[data-menu-id='${s7(t,i)}']`);s&&(n.add(s),o.set(s,i),r.set(i,s));}),{elements:n,key2element:r,element2key:o}};function Qce(e,t,n,r,o,i,s,l,u,d){const m=f.useRef(),p=f.useRef();p.current=t;const g=()=>{Lt.cancel(m.current);};return f.useEffect(()=>()=>{g();},[]),b=>{const{which:y}=b;if([...uD,by,d7,bh,yh].includes(y)){const S=i();let x=b0(S,r);const{elements:w,key2element:E,element2key:M}=x,T=E.get(t),A=Xce(T,w),I=M.get(A),N=Kce(e,s(I,true).length===1,n,y);if(!N&&y!==bh&&y!==yh)return;(uD.includes(y)||[bh,yh].includes(y))&&b.preventDefault();const P=O=>{if(O){let D=O;const _=O.querySelector("a");_?.getAttribute("href")&&(D=_);const H=M.get(O);l(H),g(),m.current=Lt(()=>{p.current===H&&D.focus();});}};if([bh,yh].includes(y)||N.sibling||!A){let O;!A||e==="inline"?O=o.current:O=Yce(A);let D;const _=aA(O,w);y===bh?D=_[0]:y===yh?D=_[_.length-1]:D=dD(O,w,A,N.offset),P(D);}else if(N.inlineTrigger)u(I);else if(N.offset>0)u(I,true),g(),m.current=Lt(()=>{x=b0(S,r);const O=A.getAttribute("aria-controls"),D=document.getElementById(O),_=dD(D,x.elements);P(_);},5);else if(N.offset<0){const O=s(I,true),D=O[O.length-2],_=E.get(D);u(D,false),P(_);}}d?.(b);}}function Zce(e){Promise.resolve().then(e);}const lA="__RC_UTIL_PATH_SPLIT__",fD=e=>e.join(lA),Jce=e=>e.split(lA),W2="rc-menu-more";function eue(){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,x)=>{const w=fD(x);n.current.set(w,S),t.current.set(S,w),i.current+=1;const E=i.current;Zce(()=>{E===i.current&&l();});},[]),d=f.useCallback((S,x)=>{const w=fD(x);n.current.delete(w),t.current.delete(S);},[]),m=f.useCallback(S=>{o(S);},[]),p=f.useCallback((S,x)=>{const w=t.current.get(S)||"",E=Jce(w);return x&&r.includes(E[0])&&E.unshift(W2),E},[r]),g=f.useCallback((S,x)=>S.filter(w=>w!==void 0).some(w=>p(w,true).includes(x)),[p]),b=()=>{const S=[...t.current.keys()];return r.length&&S.push(W2),S},y=f.useCallback(S=>{const x=`${t.current.get(S)}${lA}`,w=new Set;return [...n.current.keys()].forEach(E=>{E.startsWith(x)&&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 Hh(e){const t=f.useRef(e);t.current=e;const n=f.useCallback((...r)=>t.current?.(...r),[]);return e?n:void 0}function f7(e,t,n,r){const{activeKey:o,onActive:i,onInactive:s}=f.useContext(Ns),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 m7(e){const{mode:t,rtl:n,inlineIndent:r}=f.useContext(Ns);if(t!=="inline")return null;const o=e;return n?{paddingRight:o*r}:{paddingLeft:o*r}}function h7({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 y0({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 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)}class tue extends f.Component{render(){const{title:t,attribute:n,elementRef:r,...o}=this.props,i=Fn(o,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Pr(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f.createElement(Wa.Item,Op({},n,{title:typeof t=="string"?t:void 0},i,{ref:r}))}}const nue=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,x=a7(o),{prefixCls:w,onItemClick:E,disabled:M,overflowDisabled:T,itemIcon:A,selectedKeys:I,onActive:N}=f.useContext(Ns),{_internalRenderMenuItem:P}=f.useContext(sA),O=`${w}-item`,D=f.useRef(),_=f.useRef(),H=M||s,U=tl(t,_),W=om(o),z=ne=>({key:o,keyPath:[...W].reverse(),item:D.current,domEvent:ne}),L=l||A,{active:G,...j}=f7(o,H,m,p),K=I.includes(o),X=m7(W.length),k=ne=>{if(H)return;const re=z(ne);g?.(y0(re)),E(re);},V=ne=>{if(b?.(ne),ne.which===at.ENTER){const re=z(ne);g?.(y0(re)),E(re);}},Q=ne=>{N(o),y?.(ne);},J={};e.role==="option"&&(J["aria-selected"]=K);let te=f.createElement(tue,Op({ref:D,elementRef:U,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":T&&x?null:x},Fn(S,["extra"]),j,J,{component:"li","aria-disabled":s,style:{...X,...n},className:Y(O,{[`${O}-active`]:G,[`${O}-selected`]:K,[`${O}-disabled`]:H},r),onClick:k,onKeyDown:V,onFocus:Q}),u,f.createElement(h7,{props:{...e,isSelected:K},icon:L}));return P&&(te=P(te,e,{selected:K})),te});function rue(e,t){const{eventKey:n}=e,r=z1(),o=om(n);return f.useEffect(()=>{if(r)return r.registerPath(n,o),()=>{r.unregisterPath(n,o);}},[o]),r?null:f.createElement(nue,Op({},e,{ref:t}))}const Eg=f.forwardRef(rue);function G2(){return G2=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},G2.apply(this,arguments)}const oue=({className:e,children:t,...n},r)=>{const{prefixCls:o,mode:i,rtl:s}=f.useContext(Ns);return f.createElement("ul",G2({className:Y(o,s&&`${o}-rtl`,`${o}-sub`,`${o}-${i==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":true,ref:r}),t)},p7=f.forwardRef(oue);function cA(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},iue={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}},sue={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 g7(e,t,n){if(t)return t;if(n)return n[e]||n.other}const aue={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function lue({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:x,rootClassName:w,motion:E,defaultMotions:M}=f.useContext(Ns),[T,A]=f.useState(false),I=p?{...sue,...y}:{...iue,...y},N=aue[u],P=g7(u,E,M),O=f.useRef(P);u!=="inline"&&(O.current=P);const D={...O.current,leavedClassName:`${e}-hidden`,removeOnLeave:false,motionAppear:true},_=f.useRef();return f.useEffect(()=>(_.current=Lt(()=>{A(t);}),()=>{Lt.cancel(_.current);}),[t]),f.createElement(A1,{prefixCls:e,popupClassName:Y(`${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:x,popupMotion:D,fresh:true},n)}function q2(){return q2=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},q2.apply(this,arguments)}function cue({id:e,open:t,keyPath:n,children:r}){const o="inline",{prefixCls:i,forceSubMenuRender:s,motion:l,defaultMotions:u,mode:d}=f.useContext(Ns),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={...g7(o,l,u)};n.length>1&&(y.motionAppear=false);const S=y.onVisibleChanged;return y.onVisibleChanged=x=>(!m.current&&!x&&g(true),S?.(x)),p?null:f.createElement(Ip,{mode:o,locked:!m.current},f.createElement(No,q2({visible:b},y,{forceRender:s,removeOnLeave:false,leavedClassName:`${i}-hidden`}),({className:x,style:w})=>f.createElement(p7,{id:e,className:x,style:w},r)))}function Dp(){return Dp=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},Dp.apply(this,arguments)}const uue=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:x,onClick:w,onMouseEnter:E,onMouseLeave:M,onTitleClick:T,onTitleMouseEnter:A,onTitleMouseLeave:I,popupRender:N,...P}=e,O=a7(l),{prefixCls:D,mode:_,openKeys:H,disabled:U,overflowDisabled:W,activeKey:z,selectedKeys:L,itemIcon:G,expandIcon:j,onItemClick:K,onOpenChange:X,onActive:k,popupRender:V}=f.useContext(Ns),{_internalRenderSubMenuItem:Q}=f.useContext(sA),{isSubPathKey:J}=f.useContext(u7),te=om(),ne=`${D}-submenu`,re=U||d,ie=f.useRef(),ue=f.useRef(),ee=g??G,ae=b??j,ce=H.includes(l),se=!W&&ce,$e=J(L,l),{active:le,...pe}=f7(l,re,A,I),[be,Ee]=f.useState(false),Te=Ie=>{re||Ee(Ie);},Ye=Ie=>{Te(true),E?.({key:l,domEvent:Ie});},Re=Ie=>{Te(false),M?.({key:l,domEvent:Ie});},fe=f.useMemo(()=>le||(_!=="inline"?be||J([z],l):false),[_,le,z,be,l,J]),ge=m7(te.length),Ne=Ie=>{re||(T?.({key:l,domEvent:Ie}),_==="inline"&&X(l,!ce));},He=Hh(Ie=>{w?.(y0(Ie)),K(Ie);}),We=Ie=>{_!=="inline"&&X(l,Ie);},je=()=>{k(l);},et=O&&`${O}-popup`,it=f.useMemo(()=>f.createElement(h7,{icon:_!=="horizontal"?ae:void 0,props:{...e,isOpen:se,isSubMenu:true}},f.createElement("i",{className:`${ne}-arrow`})),[_,ae,e,se,ne]);let Ke=f.createElement("div",Dp({role:"menuitem",style:ge,className:`${ne}-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":et,"aria-disabled":re,onClick:Ne,onFocus:je},pe),s,it);const Oe=f.useRef(_);_!=="inline"&&te.length>1?Oe.current="vertical":Oe.current=_;const qe=Oe.current,Je=f.useMemo(()=>{const Ie=f.createElement(Ip,{classNames:i,styles:o,mode:qe==="horizontal"?"vertical":qe},f.createElement(p7,{id:et,ref:ue},p)),lt=N||V;return lt?lt(Ie,{item:e,keys:te}):Ie},[N,V,te,et,p,e,qe]);if(!W){const Ie=Oe.current;Ke=f.createElement(lue,{mode:Ie,prefixCls:ne,visible:!m&&se&&_!=="inline",popupClassName:y,popupOffset:S,popupStyle:x,popup:Je,disabled:re,onVisibleChange:We},Ke);}let ke=f.createElement(Wa.Item,Dp({ref:t,role:"none"},P,{component:"li",style:n,className:Y(ne,`${ne}-${_}`,r,{[`${ne}-open`]:se,[`${ne}-active`]:fe,[`${ne}-selected`]:$e,[`${ne}-disabled`]:re}),onMouseEnter:Ye,onMouseLeave:Re}),Ke,!W&&f.createElement(cue,{id:et,open:se,keyPath:te},p));return Q&&(ke=Q(ke,e,{selected:$e,active:fe,open:se,disabled:re})),f.createElement(Ip,{classNames:i,styles:o,onItemClick:He,mode:_==="horizontal"?"vertical":_,itemIcon:ee,expandIcon:ae},ke)}),F1=f.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,o=om(n),i=cA(r,o),s=z1();f.useEffect(()=>{if(s)return s.registerPath(n,o),()=>{s.unregisterPath(n,o);}},[o]);let l;return s?l=i:l=f.createElement(uue,Dp({ref:t},e),i),f.createElement(c7.Provider,{value:o},l)});function uA({className:e,style:t}){const{prefixCls:n}=f.useContext(Ns);return z1()?null:f.createElement("li",{role:"separator",className:Y(`${n}-item-divider`,e),style:t})}function S0(){return S0=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},S0.apply(this,arguments)}const due=f.forwardRef((e,t)=>{const{className:n,title:r,eventKey:o,children:i,...s}=e,{prefixCls:l,classNames:u,styles:d}=f.useContext(Ns),m=`${l}-item-group`;return f.createElement("li",S0({ref:t,role:"presentation"},s,{onClick:p=>p.stopPropagation(),className:Y(m,n)}),f.createElement("div",{role:"presentation",className:Y(`${m}-title`,u?.listTitle),style:d?.listTitle,title:typeof r=="string"?r:void 0},r),f.createElement("ul",{role:"group",className:Y(`${m}-list`,u?.list),style:d?.list},i))}),dA=f.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,o=om(n),i=cA(r,o);return z1()?i:f.createElement(due,S0({ref:t},Fn(e,["warnKey"])),i)});function uf(){return uf=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},uf.apply(this,arguments)}function K2(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,uf({key:S},y,{title:d}),K2(m,t,n)):f.createElement(i,uf({key:S},y,{title:d}),K2(m,t,n)):g==="divider"?f.createElement(s,uf({key:S},y)):f.createElement(r,uf({key:S},y,{extra:b}),d,(!!b||b===0)&&f.createElement("span",{className:`${n}-item-extra`},b))}return null}).filter(l=>l)}function mD(e,t,n,r,o){let i=e;const s={divider:uA,item:Eg,group:dA,submenu:F1,...r};return t&&(i=K2(t,s,o)),cA(i,n)}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 Xc=[],fue=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:x,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:_,onSelect:H,onDeselect:U,inlineIndent:W=24,motion:z,defaultMotions:L,triggerSubMenuAction:G="hover",builtinPlacements:j,itemIcon:K,expandIcon:X,overflowedIndicator:k="...",overflowedIndicatorPopupClassName:V,getPopupContainer:Q,onClick:J,onOpenChange:te,onKeyDown:ne,openAnimation:re,openTransitionName:ie,_internalRenderMenuItem:ue,_internalRenderSubMenuItem:ee,_internalComponents:ae,popupRender:ce,...se}=e,[$e,le]=f.useMemo(()=>[mD(m,d,Xc,ae,n),mD(m,d,Xc,{},n)],[m,d,ae]),[pe,be]=f.useState(false),Ee=f.useRef(),Te=rl(g?`rc-menu-uuid-${g}`:"rc-menu-uuid"),Ye=p==="rtl",[Re,fe]=fn(T,A),ge=Re||Xc,Ne=(tt,Qe=false)=>{function Ge(){fe(tt),te?.(tt);}Qe?Oo.flushSync(Ge):Ge();},[He,We]=f.useState(ge),je=f.useRef(false),[et,it]=f.useMemo(()=>(b==="inline"||b==="vertical")&&y?["vertical",y]:[b,false],[b,y]),Ke=et==="inline",[Oe,qe]=f.useState(et),[Je,ke]=f.useState(it);f.useEffect(()=>{qe(et),ke(it),je.current&&(Ke?fe(He):Ne(Xc));},[et,it]);const[Ie,lt]=f.useState(0),Tt=Ie>=$e.length-1||Oe!=="horizontal"||x;f.useEffect(()=>{Ke&&We(ge);},[ge]),f.useEffect(()=>(je.current=true,()=>{je.current=false;}),[]);const{registerPath:pt,unregisterPath:Dt,refreshOverflowKeys:xt,isSubPathKey:Ot,getKeyPath:dt,getKeys:ut,getSubPathKeys:bt}=eue(),Fe=f.useMemo(()=>({registerPath:pt,unregisterPath:Dt}),[pt,Dt]),Ue=f.useMemo(()=>({isSubPathKey:Ot}),[Ot]);f.useEffect(()=>{xt(Tt?Xc:$e.slice(Ie+1).map(tt=>tt.key));},[Ie,Tt]);const[ye,Me]=fn(I||N&&$e[0]?.key,I),Se=Hh(tt=>{Me(tt);}),he=Hh(()=>{Me(void 0);});f.useImperativeHandle(t,()=>({list:Ee.current,focus:tt=>{const Qe=ut(),{elements:Ge,key2element:mt,element2key:Nt}=b0(Qe,Te),Ut=aA(Ee.current,Ge);let Jt;ye&&Qe.includes(ye)?Jt=ye:Jt=Ut[0]?Nt.get(Ut[0]):$e.find(Nn=>!Nn.props.disabled)?.key;const nn=mt.get(Jt);Jt&&nn&&nn?.focus?.(tt);},findItem:({key:tt})=>{const Qe=ut(),{key2element:Ge}=b0(Qe,Te);return Ge.get(tt)||null}}));const[De,Ce]=fn(D||[],_),Be=f.useMemo(()=>Array.isArray(De)?De:De==null?Xc:[De],[De]),Xe=tt=>{if(P){const{key:Qe}=tt,Ge=Be.includes(Qe);let mt;O?Ge?mt=Be.filter(Ut=>Ut!==Qe):mt=[...Be,Qe]:mt=[Qe],Ce(mt);const Nt={...tt,selectedKeys:mt};Ge?U?.(Nt):H?.(Nt);}!O&&ge.length&&Oe!=="inline"&&Ne(Xc);},st=Hh(tt=>{J?.(y0(tt)),Xe(tt);}),ft=Hh((tt,Qe)=>{let Ge=ge.filter(mt=>mt!==tt);if(Qe)Ge.push(tt);else if(Oe!=="inline"){const mt=bt(tt);Ge=Ge.filter(Nt=>!mt.has(Nt));}ic(ge,Ge,true)||Ne(Ge,true);}),At=Qce(Oe,ye,Ye,Te,Ee,ut,dt,Me,(tt,Qe)=>{const Ge=Qe??!ge.includes(tt);ft(tt,Ge);},ne);f.useEffect(()=>{be(true);},[]);const Rt=f.useMemo(()=>({_internalRenderMenuItem:ue,_internalRenderSubMenuItem:ee}),[ue,ee]),yn=Oe!=="horizontal"||x?$e:$e.map((tt,Qe)=>f.createElement(Ip,{key:tt.key,overflowDisabled:Qe>Ie,classNames:l,styles:s},tt)),Wn=f.createElement(Wa,Y2({id:g,ref:Ee,prefixCls:`${n}-overflow`,component:"ul",itemComponent:Eg,className:Y(n,`${n}-root`,`${n}-${Oe}`,i,{[`${n}-inline-collapsed`]:Je,[`${n}-rtl`]:Ye},r),dir:p,style:o,role:"menu",tabIndex:u,data:yn,renderRawItem:tt=>tt,renderRawRest:tt=>{const Qe=tt.length,Ge=Qe?$e.slice(-Qe):null;return f.createElement(F1,{eventKey:W2,title:k,disabled:Tt,internalPopupClose:Qe===0,popupClassName:V},Ge)},maxCount:Oe!=="horizontal"||x?Wa.INVALIDATE:Wa.RESPONSIVE,ssr:"full","data-menu-list":true,onVisibleChange:tt=>{lt(tt);},onKeyDown:At},se));return f.createElement(sA.Provider,{value:Rt},f.createElement(i7.Provider,{value:Te},f.createElement(Ip,{prefixCls:n,rootClassName:r,classNames:l,styles:s,mode:Oe,openKeys:ge,rtl:Ye,disabled:S,motion:pe?z:null,defaultMotions:pe?L:null,activeKey:ye,onActive:Se,onInactive:he,selectedKeys:Be,inlineIndent:W,subMenuOpenDelay:w,subMenuCloseDelay:E,forceSubMenuRender:M,builtinPlacements:j,triggerSubMenuAction:G,getPopupContainer:Q,itemIcon:K,expandIcon:X,onItemClick:st,onOpenChange:ft,popupRender:ce},f.createElement(u7.Provider,{value:Ue},Wn),f.createElement("div",{style:{display:"none"},"aria-hidden":true},f.createElement(l7.Provider,{value:Fe},le)))))}),im=fue;im.Item=Eg;im.SubMenu=F1;im.ItemGroup=dA;im.Divider=uA;const v7=f.createContext({});var mue={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 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)}const hue=(e,t)=>f.createElement(Qn,X2({},e,{ref:t,icon:mue})),fA=f.forwardRef(hue),C0=f.createContext({prefixCls:"",firstLevel:true,inlineCollapsed:false,styles:null,classNames:null}),b7=e=>{const{prefixCls:t,className:n,dashed:r,...o}=e,{getPrefixCls:i}=f.useContext(wt),s=i("menu",t),l=Y({[`${s}-item-divider-dashed`]:!!r},n);return f.createElement(uA,{className:l,...o})},y7=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(C0),S=N=>{const P=n?.[0],O=f.createElement("span",{className:Y(`${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:x}=f.useContext(v7);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};!x&&!g&&(T.title=null,T.open=false);const A=ri(n).length;let I=f.createElement(Eg,{...Fn(e,["title","icon","danger"]),className:Y(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:Y(`${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=_=>({..._,root:Y(P,_?.root)}),D=E&&typeof E.classNames=="function"?_=>{const H=E.classNames(_);return O(H)}:O(E?.classNames);I=f.createElement(Cc,{...T,placement:N,classNames:D},I);}return I},x0=f.createContext(null),pue=f.forwardRef((e,t)=>{const{children:n,...r}=e,o=f.useContext(x0),i=f.useMemo(()=>({...o,...r}),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),s=pJ(n),l=tl(t,s?yc(n):null);return f.createElement(x0.Provider,{value:i},f.createElement(cc,{space:true},s?f.cloneElement(n,{ref:l}):n))}),gue=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"}}}},vue=({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)})`}}}}),hD=e=>Ts(e),pD=(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:x,motionDurationMid:w,itemHoverColor:E,lineType:M,colorSplit:T,itemDisabledColor:A,dangerItemColor:I,dangerItemHoverColor:N,dangerItemSelectedColor:P,dangerItemActiveBg:O,dangerItemSelectedBg:D,popupBg:_,itemHoverBg:H,itemActiveBg:U,menuSubMenuBg:W,horizontalItemSelectedColor:z,horizontalItemSelectedBg:L,horizontalItemBorderRadius:G,horizontalItemHoverBg:j}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:{...hD(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`]:{...hD(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}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:E}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:H},"&:active":{backgroundColor:U}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:H},"&: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:_},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:_},[`&${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:x,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:L,"&:hover":{backgroundColor:L},"&::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(",")}}}}}},gD=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}}},bue=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:x}=e,w={height:r,lineHeight:oe(r),listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...gD(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...gD(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`]:{display:"flex",alignItems:"center",justifyContent:"center",insetInlineStart:0,paddingInline:`calc(50% - ${oe(e.calc(x).div(2).equal())} - ${oe(d)})`,textOverflow:"clip",[`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:"hidden"},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:x,lineHeight:oe(r),"+ span":{display:"inline-block",width:0,opacity:0,overflow:"hidden",marginInlineStart: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`]:{...ia,paddingInline:b}}}]},vD=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`]:{...Yu()},[`&${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"}}}},bD=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)})`}}}}},yue=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:x,groupTitleLineHeight:w,groupTitleFontSize:E}=e;return [{"":{[n]:{...o0(),"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...mn(e),...o0(),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:x,borderWidth:0,borderTopWidth:m,marginBlock:m,padding:0,"&-dashed":{borderStyle:"dashed"}},...vD(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,...vD(e),...bD(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}},...bD(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"}}}]},Sue=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:x,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,_=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:x,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:_,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:I,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:_,darkItemHoverColor:I,darkDangerItemHoverColor:N,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:n,itemWidth:P?`calc(100% + ${O}px)`:`calc(100% - ${D*2}px)`}},Cue=(e,t=e,n=true)=>Gt("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:x,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:x,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 [yue(O),gue(O),bue(O),pD(O,"light"),pD(D,"dark"),vue(O),Oz(O),lc(O,"slide-up"),lc(O,"slide-down"),pg(O,"zoom-big")]},Sue,{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),S7=e=>{const{popupClassName:t,icon:n,title:r,theme:o}=e,i=f.useContext(C0),{prefixCls:s,inlineCollapsed:l,theme:u,classNames:d,styles:m}=i,p=om();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,x=>({className:Y(x.className,`${s}-item-icon`,d?.itemIcon),style:{...x.style,...m?.itemIcon}})),S?r:f.createElement("span",{className:`${s}-title-content`},r));}const b=f.useMemo(()=>({...i,firstLevel:false}),[i]),[y]=Qu("Menu");return f.createElement(C0.Provider,{value:b},f.createElement(F1,{...Fn(e,["icon"]),title:g,classNames:{list:d?.subMenu?.list,listTitle:d?.subMenu?.itemTitle},styles:{list:m?.subMenu?.list,listTitle:m?.subMenu?.itemTitle},popupClassName:Y(s,t,d?.popup?.root,`${s}-${o||u}`),popupStyle:{zIndex:y,...e.popupStyle,...m?.popup?.root}}))};function Iw(e){return e===null||e===false}const xue={item:y7,submenu:S7,divider:b7},wue=f.forwardRef((e,t)=>{const n=f.useContext(x0),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:x,overflowedIndicatorPopupClassName:w,classNames:E,styles:M,...T}=e,{menu:A}=f.useContext(wt),{getPrefixCls:I,getPopupContainer:N,direction:P,className:O,style:D,classNames:_,styles:H}=jt("menu"),U=I(),W=Fn(T,["collapsedWidth"]);r.validator?.({mode:y});const z=Mt((...ee)=>{x?.(...ee),r.onClick?.();}),L=r.mode||y,G=S??r.selectable,j=p??g,K={...e,mode:L,inlineCollapsed:j,selectable:G,theme:l},[X,k]=Kt([_,E],[H,M],{props:K},{popup:{_default:"root"},subMenu:{_default:"item"}}),V={horizontal:{motionName:`${U}-slide-up`},inline:Nz(U),other:{motionName:`${U}-zoom-big`}},Q=I("menu",o||r.prefixCls),J=Zn(Q),[te,ne]=Cue(Q,J,!n),re=Y(`${Q}-${l}`,O,i),ie=f.useMemo(()=>{if(typeof u=="function"||Iw(u))return u||null;if(typeof r.expandIcon=="function"||Iw(r.expandIcon))return r.expandIcon||null;if(typeof A?.expandIcon=="function"||Iw(A?.expandIcon))return A?.expandIcon||null;const ee=u??r?.expandIcon??A?.expandIcon;return qr(ee,{className:Y(`${Q}-submenu-expand-icon`,f.isValidElement(ee)?ee.props?.className:void 0)})},[u,r?.expandIcon,A?.expandIcon,Q]),ue=f.useMemo(()=>({prefixCls:Q,inlineCollapsed:j||false,direction:P,firstLevel:true,theme:l,mode:L,disableMenuItemTitleTooltip:d,tooltip:m,classNames:X,styles:k}),[Q,j,P,d,l,L,X,k,m]);return f.createElement(x0.Provider,{value:null},f.createElement(C0.Provider,{value:ue},f.createElement(im,{getPopupContainer:N,overflowedIndicator:f.createElement(fA,null),overflowedIndicatorPopupClassName:Y(Q,`${Q}-${l}`,w),classNames:{list:X.list,listTitle:X.itemTitle},styles:{list:k.list,listTitle:k.itemTitle},mode:L,selectable:G,onClick:z,...W,inlineCollapsed:j,style:{...k.root,...D,...s},className:re,prefixCls:Q,direction:P,defaultMotions:V,expandIcon:ie,ref:t,rootClassName:Y(b,te,r.rootClassName,ne,J,X.root),_internalComponents:xue})))}),xc=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f.useContext(v7);return f.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{n.current?.focus(o);}})),f.createElement(wue,{ref:n,...e,...r})});xc.Item=y7;xc.SubMenu=S7;xc.Divider=b7;xc.ItemGroup=dA;const Eue=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}}}}}},$ue=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:OT},[`&${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:_T},[`&${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:DT},[`&${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:LT}}},iA(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,...oi(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},...oi(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}}}},[lc(e,"slide-up"),lc(e,"slide-down"),d0(e,"move-up"),d0(e,"move-down"),pg(e,"zoom-big")]]},Mue=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...L1({contentRadius:e.borderRadiusLG,limitVerticalRadius:true}),...oA(e)}),Tue=Gt("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 [$ue(i),Eue(i)]},Mue,{resetStyle:false}),H1=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:x=.1,autoAdjustOverflow:w=true,placement:E="",transitionName:M,classNames:T,styles:A,destroyPopupOnHide:I,destroyOnHidden:N}=e,{getPrefixCls:P,direction:O,getPopupContainer:D,className:_,style:H,classNames:U,styles:W}=jt("dropdown"),z={...e,mouseEnterDelay:S,mouseLeaveDelay:x,autoAdjustOverflow:w},[L,G]=Kt([U,T],[W,A],{props:z}),j={...H,...g,...G.root},K=u||l,X=f.useMemo(()=>{const Re=P();return M!==void 0?M:E.includes("top")?`${Re}-slide-down`:`${Re}-slide-up`},[P,E,M]),k=f.useMemo(()=>E?E.includes("Center")?E.slice(0,E.indexOf("Center")):E:O==="rtl"?"bottomRight":"bottomLeft",[E,O]),V=P("dropdown",r),Q=Zn(V),[J,te]=Tue(V,Q),[,ne]=Xr(),re=f.Children.only(Wce(o)?f.createElement("span",null,o):o),ie=qr(re,{className:Y(`${V}-trigger`,{[`${V}-rtl`]:O==="rtl"},re.props.className),disabled:re.props.disabled??s}),ue=s?[]:i,ee=!!ue?.includes("contextMenu"),[ae,ce]=fn(false,b),se=Mt(Re=>{y?.(Re,{source:"trigger"}),ce(Re);}),$e=Y(m,p,J,te,Q,_,L.root,{[`${V}-rtl`]:O==="rtl"}),le=XF({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:w,offset:ne.marginXXS,arrowWidth:n?ne.sizePopupArrow:0,borderRadius:ne.borderRadius}),pe=Mt(()=>{t?.selectable&&t?.multiple||(y?.(false,{source:"menu"}),ce(false));}),be=()=>{const Re=Fn(L,["root"]),fe=Fn(G,["root"]);let ge;return t?.items&&(ge=f.createElement(xc,{...t,classNames:{...Re,subMenu:{...Re}},styles:{...fe,subMenu:{...fe}}})),K&&(ge=K(ge)),ge=f.Children.only(typeof ge=="string"?f.createElement("span",null,ge):ge),f.createElement(pue,{prefixCls:`${V}-menu`,rootClassName:Y(te,Q),expandIcon:f.createElement("span",{className:`${V}-menu-submenu-arrow`},O==="rtl"?f.createElement(Pp,{className:`${V}-menu-submenu-arrow-icon`}):f.createElement(Df,{className:`${V}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:false,onClick:pe,validator:({mode:Ne})=>{}},ge)},[Ee,Te]=Qu("Dropdown",j.zIndex);let Ye=f.createElement(o7,{alignPoint:ee,...Fn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:S,mouseLeaveDelay:x,visible:ae,builtinPlacements:le,arrow:!!n,overlayClassName:$e,prefixCls:V,getPopupContainer:d||D,transitionName:X,trigger:ue,overlay:be,placement:k,onVisibleChange:se,overlayStyle:{...j,zIndex:Ee},autoDestroy:N??I},ie);return Ee&&(Ye=f.createElement(M1.Provider,{value:Te},Ye)),Ye},Aue=YT(H1,"align",void 0,"dropdown",e=>e),Rue=e=>f.createElement(Aue,{...e},f.createElement("span",null));H1._InternalPanelDoNotUseOrYouWillBeFired=Rue;var yy={exports:{}},Nue=yy.exports,yD;function Pue(){return yD||(yD=1,(function(e,t){(function(n,r){e.exports=r();})(Nue,(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",x=/^(\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"],L=W%100;return "["+W+(z[(L-20)%10]||z[L]||z[0])+"]"}},M=function(W,z,L){var G=String(W);return !G||G.length>=z?W:""+Array(z+1-G.length).join(L)+W},T={s:M,z:function(W){var z=-W.utcOffset(),L=Math.abs(z),G=Math.floor(L/60),j=L%60;return (z<=0?"+":"-")+M(G,2,"0")+":"+M(j,2,"0")},m:function W(z,L){if(z.date()<L.date())return -W(L,z);var G=12*(L.year()-z.year())+(L.month()-z.month()),j=z.clone().add(G,p),K=L-j<0,X=z.clone().add(G+(K?-1:1),p);return +(-(G+(L-j)/(K?j-X:X-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 H||!(!W||!W[N])},O=function W(z,L,G){var j;if(!z)return A;if(typeof z=="string"){var K=z.toLowerCase();I[K]&&(j=K),L&&(I[K]=L,j=K);var X=z.split("-");if(!j&&X.length>1)return W(X[0])}else {var k=z.name;I[k]=z,j=k;}return !G&&j&&(A=j),j||!G&&A},D=function(W,z){if(P(W))return W.clone();var L=typeof z=="object"?z:{};return L.date=W,L.args=arguments,new H(L)},_=T;_.l=O,_.i=P,_.w=function(W,z){return D(W,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var H=(function(){function W(L){this.$L=O(L.locale,null,true),this.parse(L),this.$x=this.$x||L.x||{},this[N]=true;}var z=W.prototype;return z.parse=function(L){this.$d=(function(G){var j=G.date,K=G.utc;if(j===null)return new Date(NaN);if(_.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var X=j.match(x);if(X){var k=X[2]-1||0,V=(X[7]||"0").substring(0,3);return K?new Date(Date.UTC(X[1],k,X[3]||1,X[4]||0,X[5]||0,X[6]||0,V)):new Date(X[1],k,X[3]||1,X[4]||0,X[5]||0,X[6]||0,V)}}return new Date(j)})(L),this.init();},z.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds();},z.$utils=function(){return _},z.isValid=function(){return this.$d.toString()!==S},z.isSame=function(L,G){var j=D(L);return this.startOf(G)<=j&&j<=this.endOf(G)},z.isAfter=function(L,G){return D(L)<this.startOf(G)},z.isBefore=function(L,G){return this.endOf(G)<D(L)},z.$g=function(L,G,j){return _.u(L)?this[G]:this.set(j,L)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(L,G){var j=this,K=!!_.u(G)||G,X=_.p(L),k=function(ue,ee){var ae=_.w(j.$u?Date.UTC(j.$y,ee,ue):new Date(j.$y,ee,ue),j);return K?ae:ae.endOf(d)},V=function(ue,ee){return _.w(j.toDate()[ue].apply(j.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(ee)),j)},Q=this.$W,J=this.$M,te=this.$D,ne="set"+(this.$u?"UTC":"");switch(X){case b:return K?k(1,0):k(31,11);case p:return K?k(1,J):k(0,J+1);case m:var re=this.$locale().weekStart||0,ie=(Q<re?Q+7:Q)-re;return k(K?te-ie:te+(6-ie),J);case d:case y:return V(ne+"Hours",0);case u:return V(ne+"Minutes",1);case l:return V(ne+"Seconds",2);case s:return V(ne+"Milliseconds",3);default:return this.clone()}},z.endOf=function(L){return this.startOf(L,false)},z.$set=function(L,G){var j,K=_.p(L),X="set"+(this.$u?"UTC":""),k=(j={},j[d]=X+"Date",j[y]=X+"Date",j[p]=X+"Month",j[b]=X+"FullYear",j[u]=X+"Hours",j[l]=X+"Minutes",j[s]=X+"Seconds",j[i]=X+"Milliseconds",j)[K],V=K===d?this.$D+(G-this.$W):G;if(K===p||K===b){var Q=this.clone().set(y,1);Q.$d[k](V),Q.init(),this.$d=Q.set(y,Math.min(this.$D,Q.daysInMonth())).$d;}else k&&this.$d[k](V);return this.init(),this},z.set=function(L,G){return this.clone().$set(L,G)},z.get=function(L){return this[_.p(L)]()},z.add=function(L,G){var j,K=this;L=Number(L);var X=_.p(G),k=function(J){var te=D(K);return _.w(te.date(te.date()+Math.round(J*L)),K)};if(X===p)return this.set(p,this.$M+L);if(X===b)return this.set(b,this.$y+L);if(X===d)return k(1);if(X===m)return k(7);var V=(j={},j[l]=r,j[u]=o,j[s]=n,j)[X]||1,Q=this.$d.getTime()+L*V;return _.w(Q,this)},z.subtract=function(L,G){return this.add(-1*L,G)},z.format=function(L){var G=this,j=this.$locale();if(!this.isValid())return j.invalidDate||S;var K=L||"YYYY-MM-DDTHH:mm:ssZ",X=_.z(this),k=this.$H,V=this.$m,Q=this.$M,J=j.weekdays,te=j.months,ne=j.meridiem,re=function(ee,ae,ce,se){return ee&&(ee[ae]||ee(G,K))||ce[ae].slice(0,se)},ie=function(ee){return _.s(k%12||12,ee,"0")},ue=ne||function(ee,ae,ce){var se=ee<12?"AM":"PM";return ce?se.toLowerCase():se};return K.replace(w,(function(ee,ae){return ae||(function(ce){switch(ce){case "YY":return String(G.$y).slice(-2);case "YYYY":return _.s(G.$y,4,"0");case "M":return Q+1;case "MM":return _.s(Q+1,2,"0");case "MMM":return re(j.monthsShort,Q,te,3);case "MMMM":return re(te,Q);case "D":return G.$D;case "DD":return _.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(k);case "HH":return _.s(k,2,"0");case "h":return ie(1);case "hh":return ie(2);case "a":return ue(k,V,true);case "A":return ue(k,V,false);case "m":return String(V);case "mm":return _.s(V,2,"0");case "s":return String(G.$s);case "ss":return _.s(G.$s,2,"0");case "SSS":return _.s(G.$ms,3,"0");case "Z":return X}return null})(ee)||X.replace(":","")}))},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(L,G,j){var K,X=this,k=_.p(G),V=D(L),Q=(V.utcOffset()-this.utcOffset())*r,J=this-V,te=function(){return _.m(X,V)};switch(k){case b:K=te()/12;break;case p:K=te();break;case g:K=te()/3;break;case m:K=(J-Q)/6048e5;break;case d:K=(J-Q)/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:_.a(K)},z.daysInMonth=function(){return this.endOf(p).$D},z.$locale=function(){return I[this.$L]},z.locale=function(L,G){if(!L)return this.$L;var j=this.clone(),K=O(L,G,true);return K&&(j.$L=K),j},z.clone=function(){return _.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=H.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,H,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}));})(yy)),yy.exports}var Iue=Pue();const Xn=bc(Iue);function Oue(e){return e===void 0||e===false?[]:Array.isArray(e)?e:[e]}function Due(e){return Oue(e).join("_")}const C7=f.createContext(void 0),_ue=C7.Provider,x7=f.createContext(void 0),Lue=x7.Provider;function Q2(){return Q2=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},Q2.apply(this,arguments)}const w7=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 x=Y(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:x,title:d,style:o,ref:b},f.createElement("input",Q2({},p,{className:`${n}-input`,ref:g,onChange:w,disabled:s,checked:!!y,type:u})))});function E7(e){const t=q.useRef(null),n=()=>{Lt.cancel(t.current),t.current=null;};return [()=>{n(),t.current=Lt(()=>{t.current=null;});},i=>{t.current&&(i.stopPropagation(),n()),e?.(i);}]}const kue=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}}}}},Bue=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:x,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(${x} * 1px)`,height:`calc(${x} * 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)`]:Ts(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}}}},zue=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:x,borderRadiusLG:w,buttonCheckedBg:E,buttonSolidCheckedColor:M,colorTextDisabled:T,colorBgContainerDisabled:A,buttonCheckedBgDisabled:I,buttonCheckedColorDisabled:N,colorPrimary:P,colorPrimaryHover:O,colorPrimaryActive:D,buttonSolidCheckedBg:_,buttonSolidCheckedHoverBg:H,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:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},"&:hover":{position:"relative",color:P},"&:has(:focus-visible)":Ts(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:_,borderColor:_,"&:hover":{color:M,background:H,borderColor:H},"&: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"}}}},Fue=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,x=i,w=t?x-S*2:x-(S+o)*2;return {radioSize:x,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}},$7=Gt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${oe(n)} ${t}`,i=zt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return [kue(i),Bue(i),zue(i)]},Fue,{unitless:{radioSize:true,dotSize:true}}),Hue=(e,t)=>{const n=f.useContext(C7),r=f.useContext(x7),{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(Ro),b=V=>{e.onChange?.(V),n?.onChange?.(V);},{prefixCls:y,className:S,rootClassName:x,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=Zn(N),[_,H]=$7(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 L={...e,...U,checked:z},[G,j]=Kt([u,T],[d,A],{props:L}),K=Y(`${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,x,G.root,_,H,D),[X,k]=E7(U.onClick);return f.createElement(hg,{component:"Radio",disabled:U.disabled},f.createElement("label",{className:K,style:{...j.root,...l,...E},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:M,onClick:X},f.createElement(w7,{...U,checked:z,className:Y(G.icon,{[P1]:!P}),style:j.icon,type:"radio",prefixCls:O,ref:p,onClick:k}),w!==void 0?f.createElement("span",{className:Y(`${O}-label`,G.label),style:j.label},w):null))},w0=f.forwardRef(Hue),Vue=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f.useContext(wt),{name:o}=f.useContext(Ro),i=rl(Due(o)),{prefixCls:s,className:l,rootClassName:u,options:d,buttonStyle:m="outline",disabled:p,children:g,size:b,style:y,id:S,optionType:x,name:w=i,defaultValue:E,value:M,block:T=false,onChange:A,onMouseEnter:I,onMouseLeave:N,onFocus:P,onBlur:O,orientation:D,vertical:_,role:H="radiogroup"}=e,[U,W]=fn(E,M),z=f.useCallback(ne=>{const re=U,ie=ne.target.value;"value"in e||W(ie),ie!==re&&A?.(ne);},[U,W,A]),L=n("radio",s),G=`${L}-group`,j=Zn(L),[K,X]=$7(L,j);let k=g;d&&d.length>0&&(k=d.map(ne=>typeof ne=="string"||typeof ne=="number"?f.createElement(w0,{key:ne.toString(),prefixCls:L,disabled:p,value:ne,checked:U===ne},ne):f.createElement(w0,{key:`radio-group-value-options-${ne.value}`,prefixCls:L,disabled:ne.disabled||p,value:ne.value,checked:U===ne.value,title:ne.title,style:ne.style,className:ne.className,id:ne.id,required:ne.required},ne.label)));const V=br(b),[,Q]=Xu(D,_),J=Y(G,`${G}-${m}`,{[`${G}-large`]:V==="large",[`${G}-small`]:V==="small",[`${G}-rtl`]:r==="rtl",[`${G}-block`]:T},l,u,K,X,j),te=f.useMemo(()=>({onChange:z,value:U,disabled:p,name:w,optionType:x,block:T}),[z,U,p,w,x,T]);return f.createElement("div",{...Ao(e,{aria:true,data:true}),role:H,className:Y(J,{[`${L}-group-vertical`]:Q}),style:y,onMouseEnter:I,onMouseLeave:N,onFocus:P,onBlur:O,id:S,ref:t},f.createElement(_ue,{value:te},k))}),jue=f.memo(Vue),Uue=(e,t)=>{const{getPrefixCls:n}=f.useContext(wt),{prefixCls:r,...o}=e,i=n("radio",r);return f.createElement(Lue,{value:"button"},f.createElement(w0,{prefixCls:i,...o,type:"radio",ref:t}))},Wue=f.forwardRef(Uue),Rr=w0;Rr.Button=Wue;Rr.Group=jue;Rr.__ANT_RADIO=true;function sm(e){return zt(e,{inputAffixPadding:e.paddingXXS})}const am=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:x,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,_=Math.round((i-P*r)/2*10)/10-o,H=Math.ceil((s-O*u)/2*10)/10-o;return {paddingBlock:Math.max(D,0),paddingBlockSM:Math.max(_,0),paddingBlockLG:Math.max(H,0),paddingInline:d-o,paddingInlineSM:m-o,paddingInlineLG:p-o,addonBg:g,activeBorderColor:y,hoverBorderColor:b,activeShadow:`0 0 0 ${S}px ${x}`,errorActiveShadow:`0 0 0 ${S}px ${w}`,warningActiveShadow:`0 0 0 ${S}px ${E}`,hoverBg:M,activeBg:M,inputFontSize:N,inputFontSizeLG:O,inputFontSizeSM:P}},Gue=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),V1=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])":{...Gue(zt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),mA=(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}}),SD=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...mA(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),M7=(e,t)=>({"&-outlined":{...mA(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...V1(e)},...SD(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...SD(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),CD=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),que=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}},...CD(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...CD(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...V1(e)}}}}),T7=(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}}},A7=(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}}),xD=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...A7(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),R7=(e,t)=>({"&-filled":{...A7(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...V1(e)},...xD(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...xD(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),wD=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Kue=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...wD(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...wD(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}`}}}}}),N7=(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}}),ED=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...N7(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`}}),P7=(e,t)=>({"&-underlined":{...N7(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"},...ED(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...ED(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),I7=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),hA=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return {padding:`${oe(t)} ${oe(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},pA=e=>({padding:`${oe(e.paddingBlockSM)} ${oe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),j1=(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}`,...I7(e.colorTextPlaceholder),"&-lg":{...hA(e),...t.largeStyle},"&-sm":{...pA(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Yue=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`]:{...hA(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...pA(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",...o0(),[`${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`]:{}}}}},Xue=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),...j1(e),...M7(e),...R7(e),...T7(e),...P7(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"}}}},Que=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)}`}}}},Zue=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]:{...j1(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}},...Que(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}}}}},Jue=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return {[`${t}-group`]:{...mn(e),...Yue(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}},...que(e),...Kue(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}}}}}},ede=e=>{const{componentCls:t}=e;return {[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},O7=Gt(["Input","Shared"],e=>{const t=zt(e,sm(e));return [Xue(t),Zue(t)]},am,{resetFont:false}),D7=Gt(["Input","Component"],e=>{const t=zt(e,sm(e));return [Jue(t),ede(t),tm(t,{focus:true,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},am,{resetFont:false});var tde={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 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 nde=(e,t)=>f.createElement(Qn,Z2({},e,{ref:t,icon:tde})),_7=f.forwardRef(nde);var Sh={exports:{}},$D;function rde(){if($D)return Sh.exports;$D=1,Sh.exports=r,Sh.exports.isMobile=r,Sh.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 Sh.exports}var ode=rde();const ide=bc(ode);let Ow;const sde=()=>(typeof Ow>"u"&&(Ow=ide()),Ow),gA=f.createContext(null),ade=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(){Lt.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=Lt(()=>{l&&g&&Object.keys(g).every(y=>{const S=g[y],x=l[y];return typeof S=="number"&&typeof x=="number"?Math.round(S)===Math.round(x):S===x})||u(g);}),p},[JSON.stringify(t),n,r,s,m]),{style:l}},MD={width:0,height:0,left:0,top:0};function lde(e,t,n){return f.useMemo(()=>{const r=new Map,o=t.get(e[0]?.key)||MD,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)||MD);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 TD(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 cde=.1,AD=.01,Sy=20,RD=.995**Sy;function ude(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)<cde)return;let A=w,I=E;m.current=window.setInterval(()=>{if(Math.abs(A)<AD&&Math.abs(I)<AD){window.clearInterval(m.current);return}A*=RD,I*=RD,t(A*Sy,I*Sy);},Sy);}}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 x=f.useRef(null);x.current={onTouchStart:p,onTouchMove:g,onTouchEnd:b,onWheel:S},f.useEffect(()=>{function w(A){x.current.onTouchStart(A);}function E(A){x.current.onTouchMove(A);}function M(A){x.current.onTouchEnd(A);}function T(A){x.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 L7(e){const[t,n]=f.useState(0),r=f.useRef(0),o=f.useRef();return o.current=e,ay(()=>{o.current?.();},[t]),()=>{r.current===t&&(r.current+=1,n(r.current));}}function dde(e){const t=f.useRef([]),[,n]=f.useState({}),r=f.useRef(typeof e=="function"?e():e),o=L7(()=>{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 ND={width:0,height:0,left:0,top:0,right:0};function fde(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 x=e.get(s[S].key)||ND;if(Math.floor(x[m]+x[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)||ND)[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 PD(e){let t;return e instanceof Map?(t={},e.forEach((n,r)=>{t[r]=n;})):t=e,JSON.stringify(t)}const mde="TABS_DQ";function k7(e){return String(e).replace(/"/g,mde)}function vA(e,t,n,r){return !(!n||r||e===false||e===void 0&&(t===false||t===null))}const B7=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||"+")}),ID=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 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 hde=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:x,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 _(j,K){j.preventDefault(),j.stopPropagation(),m.onEdit("remove",{key:K,event:j});}const H=f.createElement(im,{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:X,closeIcon:k,key:V,label:Q}=j,J=vA(K,k,m,X);return f.createElement(Eg,{key:V,id:`${N}-${V}`,role:"option","aria-controls":r&&`${r}-panel-${V}`,disabled:X},f.createElement("span",null,Q),J&&f.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:`${P}-menu-item-remove`,onClick:te=>{te.stopPropagation(),_(te,V);}},k||m.removeIcon||"×"))}));function U(j){const K=o.filter(V=>!V.disabled);let X=K.findIndex(V=>V.key===T)||0;const k=K.length;for(let V=0;V<k;V+=1){X=(X+j+k)%k;const Q=K[X];if(!Q.disabled){A(Q.key);return}}}function W(j){const{which:K}=j;if(!E){[at.DOWN,at.SPACE,at.ENTER].includes(K)&&(M(true),j.preventDefault());return}switch(K){case at.UP:U(-1),j.preventDefault();break;case at.DOWN:U(1),j.preventDefault();break;case at.ESC:M(false);break;case at.SPACE:case at.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 L=Y(x,{[`${P}-rtl`]:g}),G=s?null:f.createElement(o7,J2({prefixCls:P,overlay:H,visible:o.length?E:false,onVisibleChange:M,overlayClassName:L,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:Y(`${n}-nav-operations`,d),style:u,ref:t},G,f.createElement(B7,{prefixCls:n,locale:i,editable:m}))}),pde=f.memo(hde,(e,t)=>t.tabMoving),gde=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:x,onKeyDown:w,onMouseDown:E,onMouseUp:M,style:T,className:A,tabCount:I,currentPosition:N}=e,P=`${t}-tab`,O=vA(m,u,b,l);function D(z){l||y(z);}function _(z){z.preventDefault(),z.stopPropagation(),b.onEdit("remove",{key:i,event:z});}const H=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":k7(i),className:Y(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:x},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&&H),O&&f.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:r?0:-1,className:`${P}-remove`,onClick:z=>{z.stopPropagation(),_(z);}},u||b.removeIcon||"×"));return p?p(W):W};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 vde=(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]},Jd=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]},Ab=(e,t)=>e[t?0:1],OD=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:x,classNames:w,styles:E}=e,{prefixCls:M,tabs:T}=f.useContext(gA),A=f.useRef(null),I=f.useRef(null),N=f.useRef(null),P=f.useRef(null),O=f.useRef(null),D=f.useRef(null),_=f.useRef(null),H=p==="top"||p==="bottom",[U,W]=TD(0,(he,De)=>{H&&S&&S({direction:he>De?"left":"right"});}),[z,L]=TD(0,(he,De)=>{!H&&S&&S({direction:he>De?"top":"bottom"});}),[G,j]=f.useState([0,0]),[K,X]=f.useState([0,0]),[k,V]=f.useState([0,0]),[Q,J]=f.useState([0,0]),[te,ne]=dde(new Map),re=lde(T,te,K[0]),ie=Ab(G,H),ue=Ab(K,H),ee=Ab(k,H),ae=Ab(Q,H),ce=Math.floor(ie)<Math.floor(ue+ee),se=ce?ie-ae:ie-ee,$e=`${M}-nav-operations-hidden`;let le=0,pe=0;H&&l?(le=0,pe=Math.max(0,ue-se)):(le=Math.min(0,se-ue),pe=0);function be(he){return he<le?le:he>pe?pe:he}const Ee=f.useRef(null),[Te,Ye]=f.useState();function Re(){Ye(Date.now());}function fe(){Ee.current&&clearTimeout(Ee.current);}ude(P,(he,De)=>{function Ce(Be,Xe){Be(st=>be(st+Xe));}return ce?(H?Ce(W,he):Ce(L,De),fe(),Re(),true):false}),f.useEffect(()=>(fe(),Te&&(Ee.current=setTimeout(()=>{Ye(0);},100)),fe),[Te]);const[ge,Ne]=fde(re,se,H?U:z,ue,ee,ae,{...e,tabs:T}),He=Mt((he=s)=>{const De=re.get(he)||{width:0,height:0,left:0,right:0,top:0};if(H){let Ce=U;l?De.right<U?Ce=De.right:De.right+De.width>U+se&&(Ce=De.right+De.width-se):De.left<-U?Ce=-De.left:De.left+De.width>-U+se&&(Ce=-(De.left+De.width-se)),L(0),W(be(Ce));}else {let Ce=z;De.top<-z?Ce=-De.top:De.top+De.height>-z+se&&(Ce=-(De.top+De.height-se)),W(0),L(be(Ce));}}),[We,je]=f.useState(),[et,it]=f.useState(false),Ke=T.filter(he=>!he.disabled).map(he=>he.key),Oe=he=>{const De=Ke.indexOf(We||s),Ce=Ke.length,Be=(De+he+Ce)%Ce,Xe=Ke[Be];je(Xe);},qe=(he,De)=>{const Ce=Ke.indexOf(he),Be=T.find(st=>st.key===he);vA(Be?.closable,Be?.closeIcon,d,Be?.disabled)&&(De.preventDefault(),De.stopPropagation(),d.onEdit("remove",{key:he,event:De}),Ce===Ke.length-1?Oe(-1):Oe(1));},Je=(he,De)=>{it(true),De.button===1&&qe(he,De);},ke=he=>{const{code:De}=he,Ce=l&&H,Be=Ke[0],Xe=Ke[Ke.length-1];switch(De){case "ArrowLeft":{H&&Oe(Ce?1:-1);break}case "ArrowRight":{H&&Oe(Ce?-1:1);break}case "ArrowUp":{he.preventDefault(),H||Oe(-1);break}case "ArrowDown":{he.preventDefault(),H||Oe(1);break}case "Home":{he.preventDefault(),je(Be);break}case "End":{he.preventDefault(),je(Xe);break}case "Enter":case "Space":{he.preventDefault(),y(We??s,he);break}case "Backspace":case "Delete":{qe(We,he);break}}},Ie={};H?Ie.marginInlineStart=g:Ie.marginTop=g;const lt=T.map((he,De)=>{const{key:Ce}=he;return f.createElement(gde,{id:o,prefixCls:M,key:Ce,tab:he,className:w?.item,style:De===0?E?.item:{...Ie,...E?.item},closable:he.closable,editable:d,active:Ce===s,focus:Ce===We,renderWrapper:b,removeAriaLabel:m?.removeAriaLabel,tabCount:Ke.length,currentPosition:De+1,onClick:Be=>{y(Ce,Be);},onKeyDown:ke,onFocus:()=>{et||je(Ce),He(Ce),Re(),P.current&&(l||(P.current.scrollLeft=0),P.current.scrollTop=0);},onBlur:()=>{je(void 0);},onMouseDown:Be=>Je(Ce,Be),onMouseUp:()=>{it(false);}})}),Tt=()=>ne(()=>{const he=new Map,De=O.current?.getBoundingClientRect();return T.forEach(({key:Ce})=>{const Be=O.current?.querySelector(`[data-node-key="${k7(Ce)}"]`);if(Be){const[Xe,st,ft,Et]=vde(Be,De);he.set(Ce,{width:Xe,height:st,left:ft,top:Et});}}),he});f.useEffect(()=>{Tt();},[T.map(he=>he.key).join("_")]);const pt=L7(()=>{const he=Jd(A),De=Jd(I),Ce=Jd(N);j([he[0]-De[0]-Ce[0],he[1]-De[1]-Ce[1]]);const Be=Jd(_);V(Be);const Xe=Jd(D);J(Xe);const st=Jd(O);X([st[0]-Be[0],st[1]-Be[1]]),Tt();}),Dt=T.slice(0,ge),xt=T.slice(Ne+1),Ot=[...Dt,...xt],dt=re.get(s),{style:ut}=ade({activeTabOffset:dt,horizontal:H,indicator:x,rtl:l});f.useEffect(()=>{He();},[s,le,pe,PD(dt),PD(re),H]),f.useEffect(()=>{pt();},[l]);const bt=!!Ot.length,Fe=`${M}-nav-wrap`;let Ue,ye,Me,Se;return H?l?(ye=U>0,Ue=U!==pe):(Ue=U<0,ye=U!==le):(Me=z<0,Se=z!==le),f.createElement(Cs,{onResize:pt},f.createElement("div",{ref:tl(t,A),role:"tablist","aria-orientation":H?"horizontal":"vertical",className:Y(`${M}-nav`,n,w?.header),style:{...E?.header,...r},onKeyDown:()=>{Re();}},f.createElement(ID,{ref:I,position:"left",extra:u,prefixCls:M}),f.createElement(Cs,{onResize:pt},f.createElement("div",{className:Y(Fe,{[`${Fe}-ping-left`]:Ue,[`${Fe}-ping-right`]:ye,[`${Fe}-ping-top`]:Me,[`${Fe}-ping-bottom`]:Se}),ref:P},f.createElement(Cs,{onResize:pt},f.createElement("div",{ref:O,className:`${M}-nav-list`,style:{transform:`translate(${U}px, ${z}px)`,transition:Te?"none":void 0}},lt,f.createElement(B7,{ref:_,prefixCls:M,locale:m,editable:d,style:{...lt.length===0?void 0:Ie,visibility:bt?"hidden":null}}),f.createElement("div",{className:Y(`${M}-ink-bar`,w?.indicator,{[`${M}-ink-bar-animated`]:i.inkBar}),style:{...ut,...E?.indicator}}))))),f.createElement(pde,e3({},e,{removeAriaLabel:m?.removeAriaLabel,ref:D,prefixCls:M,tabs:Ot,className:!bt&&$e,popupStyle:E?.popup,tabMoving:!!Te})),f.createElement(ID,{ref:N,position:"right",extra:u,prefixCls:M})))}),bde=({renderTabBar:e,...t})=>e?e(t,OD):f.createElement(OD,t),yde=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:Y(n,s&&`${n}-active`,r),ref:t},u)});function E0(){return E0=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},E0.apply(this,arguments)}const Sde=e=>{const{id:t,activeKey:n,animated:r,tabPosition:o,destroyOnHidden:i,contentStyle:s,contentClassName:l}=e,{prefixCls:u,tabs:d}=f.useContext(gA),m=r.tabPane,p=`${u}-tabpane`;return f.createElement("div",{className:Y(`${u}-content-holder`)},f.createElement("div",{className:Y(`${u}-content`,`${u}-content-${o}`,{[`${u}-content-animated`]:m})},d.map(g=>{const{key:b,forceRender:y,style:S,className:x,destroyOnHidden:w,...E}=g,M=b===n;return f.createElement(No,E0({key:b,visible:M,forceRender:y,removeOnLeave:!!(i??w),leavedClassName:`${p}-hidden`},r.tabPaneMotion),({style:T,className:A},I)=>f.createElement(yde,E0({},E,{prefixCls:p,id:t,tabKey:b,animated:m,active:M,style:{...s,...S,...T},className:Y(l,x,A),ref:I})))})))};function Cde(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 tp(){return tp=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},tp.apply(this,arguments)}let DD=0;const xde=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:x,destroyOnHidden:w,renderTabBar:E,onChange:M,onTabClick:T,onTabScroll:A,getPopupContainer:I,popupClassName:N,indicator:P,classNames:O,styles:D,..._}=e,H=f.useMemo(()=>(i||[]).filter(re=>re&&typeof re=="object"&&"key"in re),[i]),U=s==="rtl",W=Cde(m),[z,L]=f.useState(false);f.useEffect(()=>{L(sde());},[]);const[G,j]=fn(u??H[0]?.key,l),[K,X]=f.useState(()=>H.findIndex(re=>re.key===G));f.useEffect(()=>{let re=H.findIndex(ie=>ie.key===G);re===-1&&(re=Math.max(0,Math.min(K,H.length-1)),j(H[re]?.key)),X(re);},[H.map(re=>re.key).join("_"),G,K]);const[k,V]=fn(null,n);f.useEffect(()=>{n||(V(`rc-tabs-${DD}`),DD+=1);},[]);function Q(re,ie){T?.(re,ie);const ue=re!==G;j(re),ue&&M?.(re);}const J={id:k,activeKey:G,animated:W,tabPosition:p,rtl:U,mobile:z},te={...J,editable:d,locale:S,more:x,tabBarGutter:g,onTabClick:Q,onTabScroll:A,extra:y,style:b,getPopupContainer:I,popupClassName:Y(N,O?.popup),indicator:P,styles:D,classNames:O},ne=f.useMemo(()=>({tabs:H,prefixCls:r}),[H,r]);return f.createElement(gA.Provider,{value:ne},f.createElement("div",tp({ref:t,id:n,className:Y(r,`${r}-${p}`,{[`${r}-mobile`]:z,[`${r}-editable`]:d,[`${r}-rtl`]:U},o)},_),f.createElement(bde,tp({},te,{renderTabBar:E})),f.createElement(Sde,tp({destroyOnHidden:w},J,{contentStyle:D?.content,contentClassName:O?.content,animated:W}))))}),wde={motionAppear:false,motionEnter:true,motionLeave:true};function Ede(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={...wde,motionName:ac(e,"switch")}),n}function $de(e){return e.filter(t=>t)}function Mde(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 $de(n)}const Tde=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}`}}}}},[lc(e,"slide-up"),lc(e,"slide-down")]]},Ade=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)`]:Ts(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}}}}}}},Rde=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":{...ia,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"}}}}}}},Nde=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}}}}}},Pde=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}}}}}},Ide=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},...oi(e)},"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:l},[`&${d}-focus ${d}-btn:focus-visible`]:Ts(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}}}},Ode=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:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:true,value:e.marginXS},marginLeft:{_skip_check_:true,value: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"}}}}},Dde=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},...oi(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...Ide(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{...oi(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"}}}}}},_de=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}},Lde=Gt("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 [Pde(t),Ode(t),Nde(t),Rde(t),Ade(t),Dde(t),Tde(t)]},_de),kde=()=>null,Bde=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:x,style:w,indicatorSize:E,indicator:M,classNames:T,styles:A,destroyInactiveTabPane:I,destroyOnHidden:N,tabPlacement:P,tabPosition:O,...D}=e,{prefixCls:_}=D,{getPrefixCls:H,direction:U,getPopupContainer:W,className:z,style:L,classNames:G,styles:j}=jt("tabs"),{tabs:K}=f.useContext(wt),X=H("tabs",_),k=Zn(X),[V,Q]=Lde(X,k),J=f.useRef(null);f.useImperativeHandle(t,()=>({nativeElement:J.current}));let te;n==="editable-card"&&(te={onEdit:(le,{key:pe,event:be})=>{s?.(le==="add"?be:pe,le);},removeIcon:m??K?.removeIcon??f.createElement(nl,null),addIcon:(d??K?.addIcon)||f.createElement(_7,null),showAdd:l!==true});const ne=H(),re=br(i),ie=Mde(S,y),ue=Ede(X,x),ee={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]=Kt([G,T],[j,A],{props:ce},{popup:{_default:"root"}});return f.createElement(xde,{ref:J,direction:U,getPopupContainer:W,...D,items:ie,className:Y({[`${X}-large`]:re==="large",[`${X}-small`]:re==="small",[`${X}-card`]:["card","editable-card"].includes(n),[`${X}-editable-card`]:n==="editable-card",[`${X}-centered`]:u},z,r,o,se.root,V,Q,k),classNames:{...se,popup:Y(b,V,Q,k,se.popup?.root)},styles:$e,style:{...$e.root,...L,...w},editable:te,more:{icon:K?.more?.icon??K?.moreIcon??p??f.createElement(fA,null),transitionName:`${ne}-slide-up`,...g},prefixCls:X,animated:ue,indicator:ee,destroyOnHidden:N??I,tabPosition:ae})}),bA=Bde;bA.TabPane=kde;function zde(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 z7(e,t){if(e==null)return {};var n,r,o=zde(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 Fde(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(x){var w=x||{},E=w.upcomingOnly,M=E===void 0?false:E;b(),p=!M;}function S(){for(var x=arguments.length,w=new Array(x),E=0;E<x;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 Hde(e,t,n){var r={},o=r.atBegin,i=o===void 0?false:o;return Fde(e,t,{debounceMode:i!==false})}const Vde=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",...Ua(),"&: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}`,...Ua()},[`${t}-input`]:{position:"absolute",inset:`calc(-1 * (${r}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:Ts(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}`,...Ua()},[`&: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 jde(e,t){const n=zt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return Vde(n)}const F7=Gt("Checkbox",(e,{prefixCls:t})=>[jde(t,e)]),H7=q.createContext(null),Ude=(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:x,defaultChecked:w,onChange:E,...M}=e,{getPrefixCls:T,direction:A,className:I,style:N,classNames:P,styles:O}=jt("checkbox"),D=f.useContext(H7),{isFormItemInput:_}=f.useContext(Ro),H=f.useContext(fo),U=(D?.disabled||u)??H,[W,z]=fn(w,x);let L=W;const G=Mt(ce=>{z(ce.target.checked),E?.(ce),!l&&D?.toggleOption&&D.toggleOption({label:r,value:S});});D&&!l&&(L=D.value.includes(S));const j=f.useRef(null),K=tl(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 X=T("checkbox",n),k=Zn(X),[V,Q]=F7(X,k),J={...M},te={...e,indeterminate:o,disabled:U,checked:L},[ne,re]=Kt([P,g],[O,b],{props:te}),ie=Y(`${X}-wrapper`,{[`${X}-rtl`]:A==="rtl",[`${X}-wrapper-checked`]:L,[`${X}-wrapper-disabled`]:U,[`${X}-wrapper-in-form-item`]:_},I,m,ne.root,d,Q,k,V),ue=Y(ne.icon,{[`${X}-indeterminate`]:o},P1,V),[ee,ae]=E7(J.onClick);return f.createElement(hg,{component:"Checkbox",disabled:U},f.createElement("label",{className:ie,style:{...re.root,...N,...p},onMouseEnter:i,onMouseLeave:s,onClick:ee},f.createElement(w7,{...J,name:!l&&D?D.name:y,checked:L,onClick:ae,onChange:G,prefixCls:X,className:ue,style:re.icon,disabled:U,ref:K,value:S}),Lr(r)&&f.createElement("span",{className:Y(`${X}-label`,ne.label),style:re.label},r)))},V7=f.forwardRef(Ude),Wde=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||[]),[x,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(L=>L.filter(G=>G!==z));},T=z=>{w(L=>[].concat(Xt(L),[z]));},A=z=>{const L=y.indexOf(z.value),G=Xt(y);L===-1?G.push(z.value):G.splice(L,1),"value"in p||S(G),d?.(G.filter(j=>x.includes(j)).sort((j,K)=>{const X=E.findIndex(V=>V.value===j),k=E.findIndex(V=>V.value===K);return X-k}));},I=g("checkbox",i),N=`${I}-group`,P=Zn(I),[O,D]=F7(I,P),_=Fn(p,["value","disabled"]),H=o.length?E.map(z=>f.createElement(V7,{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:Y(`${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=Y(N,{[`${N}-rtl`]:b==="rtl"},s,l,D,P,O);return f.createElement("div",{className:W,style:u,role:m,..._,ref:t},f.createElement(H7.Provider,{value:U},H))}),Ni=V7;Ni.Group=Wde;Ni.__ANT_CHECKBOX=true;const Gde=e=>{const{componentCls:t}=e;return {[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},qde=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}}}}},Kde=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Yde=Gt("Divider",e=>{const t=zt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return [qde(t),Gde(t)]},Kde,{unitless:{orientationMargin:true}}),Xde=["left","right","center","start","end"],dc=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:x,variant:w="solid",plain:E,style:M,size:T,classNames:A,styles:I,...N}=e,P=t("divider",l),O=`${P}-rail`,[D,_]=Yde(P),H=br(T),U=!!S,W=Xde.includes(d||""),z=f.useMemo(()=>{const ne=p??(W?d:"center");return ne==="left"?n==="rtl"?"end":"start":ne==="right"?n==="rtl"?"start":"end":ne},[n,d,p,W]),L=z==="start"&&g!=null,G=z==="end"&&g!=null,[j,K]=Xu(d,m,u),X={...e,orientation:j,titlePlacement:z,size:H},[k,V]=Kt([i,A],[s,I],{props:X}),Q=Y(P,r,D,_,`${P}-${j}`,{[`${P}-with-text`]:U,[`${P}-with-text-${z}`]:U,[`${P}-dashed`]:!!x,[`${P}-${w}`]:w!=="solid",[`${P}-plain`]:!!E,[`${P}-rtl`]:n==="rtl",[`${P}-no-default-orientation-margin-start`]:L,[`${P}-no-default-orientation-margin-end`]:G,[`${P}-md`]:H==="medium"||H==="middle",[`${P}-sm`]:H==="small",[O]:!S,[k.rail]:k.rail&&!S},b,y,k.root),J=f.useMemo(()=>typeof g=="number"?g:/^\d+$/.test(g)?Number(g):g,[g]),te={marginInlineStart:L?J:void 0,marginInlineEnd:G?J:void 0};return f.createElement("div",{className:Q,style:{...o,...V.root,...S?{}:V.rail,...M},...N,role:"separator"},S&&!K&&f.createElement(f.Fragment,null,f.createElement("div",{className:Y(O,`${O}-start`,k.rail),style:V.rail}),f.createElement("span",{className:Y(`${P}-inner-text`,k.content),style:{...te,...V.content}},S),f.createElement("div",{className:Y(O,`${O}-end`,k.rail),style:V.rail})))},_D=(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}},Hs=e=>e!==void 0?`${e}px`:void 0;function Qde(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),[x,w]=f.useState(null);Rn(()=>{if(p!==r){const N=b(p),P=b(r),O=_D(N,d),D=_D(P,d);g(r),S(O),w(D),N&&P?s():l();}},[r]);const E=f.useMemo(()=>Hs(d?y?.top??0:u==="rtl"?-y?.right:y?.left),[d,u,y]),M=f.useMemo(()=>Hs(d?x?.top??0:u==="rtl"?-x?.right:x?.left),[d,u,x]),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||!x?null:f.createElement(No,{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":Hs(y?.width),"--thumb-active-left":M,"--thumb-active-width":Hs(x?.width),"--thumb-start-top":E,"--thumb-start-height":Hs(y?.height),"--thumb-active-top":M,"--thumb-active-height":Hs(x?.height)},_={ref:Yr(m,O),style:D,className:Y(`${t}-thumb`,N)};return f.createElement("div",_)})}function Zde(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}function Jde(e){return e.map(t=>{if(typeof t=="object"&&t!==null){const n=Zde(t);return {...t,title:n}}return {label:t?.toString(),title:t?.toString(),value:t}})}const efe=({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:x,onMouseDown:w,itemRender:E=M=>M})=>{const M=A=>{s||g(A,m);},T=f.createElement("label",{className:Y(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:x}),f.createElement("div",{className:Y(`${e}-item-label`,o?.label),title:d,style:r?.label},u));return E(T,{item:i})},tfe=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:x,...w}=e,E=f.useRef(null),M=f.useMemo(()=>Yr(E,t),[E,t]),T=f.useMemo(()=>Jde(i),[i]),[A,I]=fn(l??T[0]?.value,u),[N,P]=f.useState(false),O=(V,Q)=>{I(Q),m?.(Q);},D=Fn(w,["children"]),[_,H]=f.useState(false),[U,W]=f.useState(false),z=()=>{W(true);},L=()=>{W(false);},G=()=>{H(false);},j=V=>{V.key==="Tab"&&H(true);},K=V=>{const Q=T.findIndex(re=>re.value===A),J=T.length,te=(Q+V+J)%J,ne=T[te];ne&&(I(ne.value),m?.(ne.value));},X=V=>{switch(V.key){case "ArrowLeft":case "ArrowUp":K(-1);break;case "ArrowRight":case "ArrowDown":K(1);break}},k=V=>{const{value:Q,disabled:J}=V;return f.createElement(efe,dr({},V,{name:d,data:V,itemRender:x,key:Q,prefixCls:n,className:Y(V.className,`${n}-item`,y?.item,{[`${n}-item-selected`]:Q===A&&!N,[`${n}-item-focused`]:U&&_&&Q===A}),style:b?.item,classNames:y,styles:b,checked:Q===A,onChange:O,onFocus:z,onBlur:L,onKeyDown:X,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:Y(n,{[`${n}-rtl`]:r==="rtl",[`${n}-disabled`]:s,[`${n}-vertical`]:o},p),ref:M}),f.createElement("div",{className:`${n}-group`},f.createElement(Qde,{vertical:o,prefixCls:n,value:A,containerRef:E,motionName:`${n}-${S}`,direction:r,getValueIndex:V=>T.findIndex(Q=>Q.value===V),onMotionStart:()=>{P(true);},onMotionEnd:()=>{P(false);}}),T.map(k)))}),nfe=tfe;function LD(e,t){return {[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}const kD=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),rfe={overflow:"hidden",...ia},ofe=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}`,...oi(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":{...kD(e),color:e.itemSelectedColor},"&-focused":Ts(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)}`,...rfe},"&-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`]:{...kD(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}},...LD(`&-disabled ${t}-item`,e),...LD(`${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}}}}},ife=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}},sfe=Gt("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 ofe(r)},ife);function afe(e){return typeof e=="object"&&!!e?.icon}const lfe=f.forwardRef((e,t)=>{const n=rl(),{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,...x}=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]=Kt([A,S],[I,y],{props:N}),D=w("segmented",r),[_,H]=sfe(D),U=br(u),W=f.useMemo(()=>l.map(K=>{if(afe(K)){const{icon:X,label:k,...V}=K;return {...V,label:f.createElement(f.Fragment,null,f.createElement("span",{className:Y(`${D}-item-icon`,P.icon),style:O.icon},X),k&&f.createElement("span",null,k))}}return K}),[l,D,P.icon,O.icon]),[,z]=Xu(p,m),L=Y(o,i,M,P.root,{[`${D}-block`]:s,[`${D}-sm`]:U==="small",[`${D}-lg`]:U==="large",[`${D}-vertical`]:z,[`${D}-shape-${g}`]:g==="round"},_,H),G={...O.root,...T,...d},j=(K,{item:X})=>{if(!X.tooltip)return K;const k=typeof X.tooltip=="object"?X.tooltip:{title:X.tooltip};return f.createElement(Cc,{...k},K)};return f.createElement(nfe,{...x,name:b,className:L,style:G,classNames:P,styles:O,itemRender:j,options:W,ref:t,prefixCls:D,direction:E,vertical:z})}),yA=lfe,j7=q.createContext({}),U7=q.createContext({}),W7=({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:Y(`${e}-clear`,r),style:o,onClick:i})},G7="hex",q7="rgb",K7="hsb";var cfe={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 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 ufe=(e,t)=>f.createElement(Qn,t3({},e,{ref:t,icon:cfe})),dfe=f.forwardRef(ufe);var ffe={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 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 mfe=(e,t)=>f.createElement(Qn,n3({},e,{ref:t,icon:ffe})),hfe=f.forwardRef(mfe);function r3(){return typeof BigInt=="function"}function Y7(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Eu(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 SA(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function pu(e){var t=String(e);if(SA(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(".")&&CA(t)?t.length-t.indexOf(".")-1:0}function U1(e){var t=String(e);if(SA(e)){if(e>Number.MAX_SAFE_INTEGER)return String(r3()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(r3()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(pu(t));}return Eu(t).fullStr}function CA(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 pfe=(function(){function e(t){if(os(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),Y7(t)){this.empty=true;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=true;return}var n=t;if(SA(n)&&(n=Number(n)),n=typeof n=="string"?n:U1(n),CA(n)){var r=Eu(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 is(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=Eu(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()?"":Eu("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),gfe=(function(){function e(t){if(os(this,e),Ct(this,"origin",""),Ct(this,"number",void 0),Ct(this,"empty",void 0),Y7(t)){this.empty=true;return}this.origin=String(t),this.number=Number(t);}return is(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(pu(this.number),pu(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(pu(this.number),pu(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()?"":U1(this.number):this.origin}}]),e})();function ds(e){return r3()?new pfe(e):new gfe(e)}function Cy(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:false;if(e==="")return "";var o=Eu(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=ds(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-m));return Cy(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 vfe(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 bfe(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 yfe=200,Sfe=600;function BD({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 x(){s(l,"handler"),u.current=setTimeout(x,yfe);}u.current=setTimeout(x,Sfe);};f.useEffect(()=>()=>{m(),d.current.forEach(S=>{Lt.cancel(S);});},[]);const g=`${e}-action`,b=Y(g,`${g}-${t}`,{[`${g}-${t}-disabled`]:r},o),y=()=>d.current.push(Lt(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 zD(e){const t=typeof e=="number"?U1(e):Eu(e).fullStr;return t.includes(".")?Eu(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Cfe=(()=>{const e=f.useRef(0),t=()=>{Lt.cancel(e.current);};return f.useEffect(()=>t,[]),n=>{t(),e.current=Lt(()=>{n();});}});function np(){return np=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},np.apply(this,arguments)}const FD=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),HD=e=>{const t=ds(e);return t.isInvalidate()?null:t},xfe=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:x,keyboard:w,changeOnWheel:E=false,controls:M=true,prefix:T,suffix:A,stringMode:I,parser:N,formatter:P,precision:O,decimalSeparator:D,onChange:_,onInput:H,onPressEnter:U,onStep:W,onMouseDown:z,onClick:L,onMouseUp:G,onMouseLeave:j,onMouseMove:K,onMouseEnter:X,onMouseOut:k,changeOnBlur:V=true,...Q}=e,[J,te]=f.useState(false),ne=f.useRef(false),re=f.useRef(false),ie=f.useRef(false),ue=f.useRef(null),ee=f.useRef(null);f.useImperativeHandle(t,()=>vfe(ee.current,{focus:Fe=>{UT(ee.current,Fe);},blur:()=>{ee.current?.blur();},nativeElement:ue.current}));const[ae,ce]=f.useState(()=>ds(g??p));function se(Fe){g===void 0&&ce(Fe);}const $e=f.useCallback((Fe,Ue)=>{if(!Ue)return O>=0?O:Math.max(pu(Fe),pu(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"?U1(Fe):Fe;if(!Ue){const Me=$e(ye,Ue);CA(ye)&&(D||Me>=0)&&(ye=Cy(ye,D||".",Me));}return ye},[P,$e,D]),[Ee,Te]=f.useState(()=>{const Fe=p??g;return ae.isInvalidate()&&["string","number"].includes(typeof Fe)?Number.isNaN(Fe)?"":Fe:be(ae.toString(),false)});pe.current=Ee;function Ye(Fe,Ue){Te(be(Fe.isInvalidate()?Fe.toString(false):Fe.toString(!Ue),Ue));}const Re=f.useMemo(()=>HD(d),[d,O]),fe=f.useMemo(()=>HD(u),[u,O]),ge=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,We]=bfe(ee.current,J),je=Fe=>Re&&!Fe.lessEquals(Re)?Re:fe&&!fe.lessEquals(Fe)?fe:null,et=Fe=>!je(Fe),it=(Fe,Ue)=>{let ye=Fe,Me=et(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=ds(Cy(Se,".",he)),et(ye)||(ye=ds(Cy(Se,".",he,true)))),ye.equals(ae)||(se(ye),_?.(ye.isEmpty()?null:FD(I,ye)),g===void 0&&Ye(ye,Ue)),ye}return ae},Ke=Cfe(),Oe=Fe=>{if(He(),pe.current=Fe,Te(Fe),!re.current){const Ue=le(Fe),ye=ds(Ue);ye.isNaN()||it(ye,true);}H?.(Fe),Ke(()=>{let Ue=Fe;N||(Ue=Fe.replace(/。/g,".")),Ue!==Fe&&Oe(Ue);});},qe=()=>{re.current=true;},Je=()=>{re.current=false,Oe(ee.current.value);},ke=Fe=>{Oe(Fe.target.value);},Ie=Mt((Fe,Ue)=>{if(Fe&&ge||!Fe&&Ne)return;ne.current=false;let ye=ds(ie.current?zD(m):m);Fe||(ye=ye.negate());const Me=(ae||ds(0)).add(ye.toString()),Se=it(Me,false);W?.(FD(I,Se),{offset:ie.current?zD(m):m,type:Fe?"up":"down",emitter:Ue}),ee.current?.focus();}),lt=Fe=>{const Ue=ds(le(Ee));let ye;Ue.isNaN()?ye=it(ae,Fe):ye=it(Ue,Fe),g!==void 0?Ye(ae,false):ye.isNaN()||Ye(ye,false);},Tt=()=>{ne.current=true;},pt=Fe=>{const{key:Ue,shiftKey:ye}=Fe;ne.current=true,ie.current=ye,Ue==="Enter"&&(re.current||(ne.current=false),lt(false),U?.(Fe)),w!==false&&!re.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ue)&&(Ie(Ue==="Up"||Ue==="ArrowUp","keyboard"),Fe.preventDefault());},Dt=()=>{ne.current=false,ie.current=false;};f.useEffect(()=>{if(E&&J){const Fe=ye=>{Ie(ye.deltaY<0,"wheel"),ye.preventDefault();},Ue=ee.current;if(Ue)return Ue.addEventListener("wheel",Fe,{passive:false}),()=>Ue.removeEventListener("wheel",Fe)}});const xt=()=>{V&&lt(false),te(false),ne.current=false;},Ot=Fe=>{ee.current&&Fe.target!==ee.current&&(ee.current.focus(),Fe.preventDefault()),z?.(Fe);};ay(()=>{ae.isInvalidate()||Ye(ae,false);},[O,P]),ay(()=>{const Fe=ds(g);ce(Fe);const Ue=ds(le(Ee));(!Fe.equals(Ue)||!ne.current||P)&&Ye(Fe,ne.current);},[g]),ay(()=>{P&&We();},[Ee]);const dt={prefixCls:r,onStep:Ie,className:s?.action,style:l?.action},ut=f.createElement(BD,np({},dt,{action:"up",disabled:ge}),S),bt=f.createElement(BD,np({},dt,{action:"down",disabled:Ne}),x);return f.createElement("div",{ref:ue,className:Y(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()&&!et(ae)}),style:{...l?.root,...i},onMouseDown:Ot,onMouseUp:G,onMouseLeave:j,onMouseMove:K,onMouseEnter:X,onMouseOut:k,onClick:L,onFocus:()=>{te(true);},onBlur:xt,onKeyDown:pt,onKeyUp:Dt,onCompositionStart:qe,onCompositionEnd:Je,onBeforeInput:Tt},n==="spinner"&&M&&bt,T!==void 0&&f.createElement("div",{className:Y(`${r}-prefix`,s?.prefix),style:l?.prefix},T),f.createElement("input",np({autoComplete:"off",role:"spinbutton","aria-valuemin":u,"aria-valuemax":d,"aria-valuenow":ae.isInvalidate()?null:ae.toString(),step:m,ref:ee,className:Y(`${r}-input`,s?.input),style:l?.input,value:Ee,onChange:ke,disabled:b,readOnly:y},Q)),A!==void 0&&f.createElement("div",{className:Y(`${r}-suffix`,s?.suffix),style:l?.suffix},A),n==="spinner"&&M&&ut,n==="input"&&M&&f.createElement("div",{className:Y(`${r}-actions`,s?.actions),style:l?.actions},ut,bt))}),wfe=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}}]}},Efe=Gt(["Space","Addon"],e=>[wfe(e),tm(e,{focus:false})]),X7=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]=Efe(g),{compactItemClassnames:S,compactSize:x}=ol(g,p),w=uc(g,u),E=Y(g,b,S,y,`${g}-variant-${s}`,w,{[`${g}-${x}`]:x,[`${g}-disabled`]:l},n);return q.createElement("div",{ref:t,className:E,style:o,...d},r)}),$fe=e=>{const t=e.handleVisible??"auto",n=e.controlHeightSM-e.lineWidth*2;return {...am(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}},Mfe=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:x,paddingBlock:w,handleBg:E,handleActiveBg:M,inputAffixPadding:T,borderRadiusSM:A,controlWidth:I,handleBorderColor:N,filledHandleBg:P,lineHeightLG:O,antCls:D}=e,_=`${oe(n)} ${r} ${N}`,[H,U]=nr(D,"input-number");return [{[t]:{...mn(e),...j1(e),[H("input-padding-block")]:oe(w),[H("input-padding-inline")]:oe(x),display:"inline-flex",width:I,margin:0,paddingBlock:0,borderRadius:o,...M7(e,{[`${t}-actions`]:{background:E,[`${t}-action-down`]:{borderBlockStart:_}}}),...R7(e,{[`${t}-actions`]:{background:P,[`${t}-action-down`]:{borderBlockStart:_}},"&:focus-within":{[`${t}-actions`]:{background:E}}}),...P7(e,{[`${t}-actions`]:{background:E,[`${t}-action-down`]:{borderBlockStart:_}}}),...T7(e),[`&${t}-borderless`]:{paddingBlock:0,[H("input-padding-block")]:oe(e.calc(w).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[H("input-padding-block")]:oe(e.calc(d).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[H("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",...I7(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`]:{...Yu(),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:_,"&: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:_},"&-down":{borderInlineEnd:_}},[`${t}-input`]:{textAlign:"center",paddingInline:U("input-padding-inline")}}}},{[t]:{"&-lg":{[H("input-padding-block")]:oe(m),[H("input-padding-inline")]:oe(p),paddingBlock:0,fontSize:s,lineHeight:O},"&-sm":{[H("input-padding-block")]:oe(d),[H("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}}}}]},Tfe=e=>{const{componentCls:t,antCls:n}=e;return {[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},Afe=Gt("InputNumber",e=>{const t=zt(e,sm(e));return [Mfe(t),Tfe(t),tm(t)]},$fe,{unitless:{handleOpacity:true},resetFont:false}),Rfe=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:x,style:w,classNames:E,styles:M,mode:T,...A}=e,{direction:I,className:N,style:P,styles:O,classNames:D}=jt("inputNumber"),_=f.useContext(fo),H=i??_,U=f.useMemo(()=>!y||H||g?false:y,[y,H,g]),{compactSize:W,compactItemClassnames:z}=ol(s,I);let L=T==="spinner"?f.createElement(_7,null):f.createElement(hfe,null),G=T==="spinner"?f.createElement(dfe,null):f.createElement(tA,null);const j=typeof U=="boolean"?U:void 0;typeof U=="object"&&(L=U.upIcon||L,G=U.downIcon||G);const{hasFeedback:K,isFormItemInput:X,feedbackIcon:k}=f.useContext(Ro),V=br(ue=>o??W??ue),[Q,J]=_1("inputNumber",S,p),te=K&&f.createElement(f.Fragment,null,k),ne={...e,size:V,disabled:H,controls:U},[re,ie]=Kt([D,E],[O,M],{props:ne});return f.createElement(xfe,{ref:n,mode:T,disabled:H,className:Y(x,r,re.root,N,z,uc(s,b,K),{[`${s}-${Q}`]:J,[`${s}-lg`]:V==="large",[`${s}-sm`]:V==="small",[`${s}-rtl`]:I==="rtl",[`${s}-in-form-item`]:X,[`${s}-without-controls`]:!U}),style:{...ie.root,...P,...w},upHandler:L,downHandler:G,prefixCls:s,readOnly:g,controls:j,prefix:d,suffix:te||m,classNames:re,styles:ie,...A})}),Q7=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(Ro),g=rm(p,s),b=Zn(m),[y,S]=Afe(m,b),x=n||r,w=f.createElement(Rfe,{ref:t,...u,prefixCls:m,status:g,className:Y(S,b,y,i),rootClassName:x?void 0:l});if(x){const E=A=>A?f.createElement(X7,{className:Y(`${m}-addon`,S,y),variant:e.variant,disabled:e.disabled,status:g},f.createElement(cc,{form:true},A)):null,M=E(n),T=E(r);return f.createElement(NT,{rootClassName:l},M,w,T)}return w}),$u=Q7,Nfe=e=>f.createElement(Fo,{theme:{components:{InputNumber:{handleVisible:true}}}},f.createElement(Q7,{...e}));$u._InternalPanelDoNotUseOrYouWillBeFired=Nfe;const Mu=({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($u,{className:Y(l,i),min:t,max:n,value:m,formatter:s,size:"small",onChange:p=>{d(p||0),o?.(p);}})},Pfe=({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(Mu,{value:zT(s),prefixCls:e,formatter:u=>`${u}%`,className:r,onChange:l})};function Ife(e){return !!(e.addonBefore||e.addonAfter)}function Ofe(e){return !!(e.prefix||e.suffix||e.allowClear)}function VD(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 $0(e,t,n,r){if(!n)return;let o=t;if(t.type==="click"){o=VD(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=VD(t,e,r),n(o);return}n(o);}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 Z7=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:x,handleReset:w,hidden:E,classes:M,classNames:T,dataAttrs:A,styles:I,components:N,onClear:P}=e,O=r??n,D=N?.affixWrapper||"span",_=N?.groupWrapper||"span",H=N?.wrapper||"span",U=N?.groupAddon||"span",W=f.useRef(null),z=K=>{W.current?.contains(K.target)&&y?.();},L=Ofe(e);let G=f.cloneElement(O,{value:x,className:Y(O.props?.className,!L&&T?.variant)||null});const j=f.useRef(null);if(q.useImperativeHandle(t,()=>({nativeElement:j.current||W.current})),L){let K=null;if(S){const Q=!p&&!g&&x,J=`${o}-clear-icon`,te=typeof S=="object"&&S?.clearIcon?S.clearIcon:"✖";K=q.createElement("button",{type:"button",tabIndex:-1,onClick:ne=>{w?.(ne),P?.();},onMouseDown:ne=>ne.preventDefault(),className:Y(J,{[`${J}-hidden`]:!Q,[`${J}-has-suffix`]:!!s})},te);}const X=`${o}-affix-wrapper`,k=Y(X,{[`${o}-disabled`]:p,[`${X}-disabled`]:p,[`${X}-focused`]:b,[`${X}-readonly`]:g,[`${X}-input-with-clear-btn`]:s&&S&&x},M?.affixWrapper,T?.affixWrapper,T?.variant),V=(s||S)&&q.createElement("span",{className:Y(`${o}-suffix`,T?.suffix),style:I?.suffix},K,s);G=q.createElement(D,o3({className:k,style:I?.affixWrapper,onClick:z},A?.affixWrapper,{ref:W}),i&&q.createElement("span",{className:Y(`${o}-prefix`,T?.prefix),style:I?.prefix},i),G,V);}if(Ife(e)){const K=`${o}-group`,X=`${K}-addon`,k=`${K}-wrapper`,V=Y(`${o}-wrapper`,K,M?.wrapper,T?.wrapper),Q=Y(k,{[`${k}-disabled`]:p},M?.group,T?.groupWrapper);G=q.createElement(_,{className:Q,ref:j},q.createElement(H,{className:V},l&&q.createElement(U,{className:X},l),G,u&&q.createElement(U,{className:X},u)));}return q.cloneElement(G,{className:Y(G.props?.className,d)||null,style:{...G.props?.style,...m},hidden:E})});function J7(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 M0(){return M0=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},M0.apply(this,arguments)}const Dfe=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:x,type:w="text",classes:E,classNames:M,styles:T,onCompositionStart:A,onCompositionEnd:I,...N}=e,[P,O]=f.useState(false),D=f.useRef(false),_=f.useRef(false),H=f.useRef(null),U=f.useRef(null),W=le=>{H.current&&UT(H.current,le);},[z,L]=fn(e.defaultValue,e.value),G=z==null?"":String(z),[j,K]=f.useState(null),X=J7(x,S),k=X.max||b,V=X.strategy(G),Q=!!k&&V>k;f.useImperativeHandle(t,()=>({focus:W,blur:()=>{H.current?.blur();},setSelectionRange:(le,pe,be)=>{H.current?.setSelectionRange(le,pe,be);},select:()=>{H.current?.select();},input:H.current,nativeElement:U.current?.nativeElement||H.current})),f.useEffect(()=>{_.current&&(_.current=false),O(le=>le&&m?false:le);},[m]);const J=(le,pe,be)=>{let Ee=pe;if(!D.current&&X.exceedFormatter&&X.max&&X.strategy(pe)>X.max)Ee=X.exceedFormatter(pe,{max:X.max}),pe!==Ee&&K([H.current?.selectionStart||0,H.current?.selectionEnd||0]);else if(be.source==="compositionEnd")return;L(Ee),H.current&&$0(H.current,le,r,Ee);};f.useEffect(()=>{j&&H.current?.setSelectionRange(...j);},[j]);const te=le=>{J(le,le.target.value,{source:"change"});},ne=le=>{D.current=false,J(le,le.currentTarget.value,{source:"compositionEnd"}),I?.(le);},re=le=>{s&&le.key==="Enter"&&!_.current&&!le.nativeEvent.isComposing&&(_.current=true,s(le)),l?.(le);},ie=le=>{le.key==="Enter"&&(_.current=false),u?.(le);},ue=le=>{O(true),o?.(le);},ee=le=>{_.current&&(_.current=false),O(false),i?.(le);},ae=le=>{L(""),W(),H.current&&$0(H.current,le,r);},ce=Q&&`${d}-out-of-range`,se=()=>{const le=Fn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return q.createElement("input",M0({autoComplete:n},le,{onChange:te,onFocus:ue,onBlur:ee,onKeyDown:re,onKeyUp:ie,className:Y(d,{[`${d}-disabled`]:m},M?.input),style:T?.input,ref:H,size:p,type:w,onCompositionStart:pe=>{D.current=true,A?.(pe);},onCompositionEnd:ne}))},$e=()=>{const le=Number(k)>0;if(y||X.show){const pe=X.showFormatter?X.showFormatter({value:G,count:V,maxLength:k}):`${V}${le?` / ${k}`:""}`;return q.createElement(q.Fragment,null,X.show&&q.createElement("span",{className:Y(`${d}-show-count-suffix`,{[`${d}-show-count-has-suffix`]:!!y},M?.count),style:{...T?.count}},pe),y)}return null};return q.createElement(Z7,M0({},N,{prefixCls:d,className:Y(g,ce),handleReset:ae,value:G,focused:P,triggerFocus:W,suffix:$e(),disabled:m,classes:E,classNames:M,styles:T,ref:U}),se())}),eH=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:q.createElement(dg,null)}),t};function tH(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 _fe(e){return !!(e.prefix||e.suffix||e.allowClear||e.showCount)}const lm=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:x,onChange:w,classNames:E,variant:M,...T}=e,{getPrefixCls:A,direction:I,allowClear:N,autoComplete:P,className:O,style:D,classNames:_,styles:H}=jt("input"),U=A("input",n),W=f.useRef(null),z=Zn(U),[L,G]=O7(U,x);D7(U,z);const{compactSize:j,compactItemClassnames:K}=ol(U,I),X=br(Te=>i??j??Te),k=q.useContext(fo),V=s??k,Q={...e,size:X,disabled:V},[J,te]=Kt([_,E],[H,S],{props:Q}),{status:ne,hasFeedback:re,feedbackIcon:ie}=f.useContext(Ro),ue=rm(ne,o),ee=_fe(e)||!!re;f.useRef(ee);const ae=tH(W,true),ce=Te=>{ae(),l?.(Te);},se=Te=>{ae(),u?.(Te);},$e=Te=>{ae(),w?.(Te);},le=(re||d)&&q.createElement(q.Fragment,null,d,re&&ie),pe=eH(m??N),[be,Ee]=_1("input",M,r);return q.createElement(Dfe,{ref:Yr(t,W),prefixCls:U,autoComplete:P,...T,disabled:V,onBlur:ce,onFocus:se,style:{...te.root,...D,...y},styles:te,suffix:le,allowClear:pe,className:Y(b,x,G,z,K,O,J.root),onChange:$e,addonBefore:g&&q.createElement(cc,{form:true,space:true},g),addonAfter:p&&q.createElement(cc,{form:true,space:true},p),classNames:{...J,input:Y({[`${U}-sm`]:X==="small",[`${U}-lg`]:X==="large",[`${U}-rtl`]:I==="rtl"},J.input,L),variant:Y({[`${U}-${be}`]:Ee},uc(U,ue)),affixWrapper:Y({[`${U}-affix-wrapper-sm`]:X==="small",[`${U}-affix-wrapper-lg`]:X==="large",[`${U}-affix-wrapper-rtl`]:I==="rtl"},L),wrapper:Y({[`${U}-group-rtl`]:I==="rtl"},L),groupWrapper:Y({[`${U}-group-wrapper-sm`]:X==="small",[`${U}-group-wrapper-lg`]:X==="large",[`${U}-group-wrapper-rtl`]:I==="rtl",[`${U}-group-wrapper-${be}`]:Ee},uc(`${U}-group-wrapper`,ue,re),L)}})}),Lfe=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,kfe=e=>Lfe.test(`#${e}`),Bfe=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hex-input`,[o,i]=f.useState(()=>t?Bh(t.toHexString()):void 0);f.useEffect(()=>{t&&i(Bh(t.toHexString()));},[t]);const s=l=>{const u=l.target.value;i(Bh(u)),kfe(Bh(u,true))&&n?.(mo(u));};return q.createElement(lm,{className:r,value:o,prefix:"#",onChange:s,size:"small"})},zfe=({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(Mu,{max:360,min:0,value:Number(s.toHsb().h),prefixCls:e,className:r,formatter:u=>py(u||0).toString(),onChange:u=>l(Number(u),"h")}),q.createElement(Mu,{max:100,min:0,value:Number(s.toHsb().s)*100,prefixCls:e,className:r,formatter:u=>`${py(u||0)}%`,onChange:u=>l(Number(u),"s")}),q.createElement(Mu,{max:100,min:0,value:Number(s.toHsb().b)*100,prefixCls:e,className:r,formatter:u=>`${py(u||0)}%`,onChange:u=>l(Number(u),"b")}))},Ffe=({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(Mu,{max:255,min:0,value:Number(s.toRgb().r),prefixCls:e,className:r,onChange:u=>l(Number(u),"r")}),q.createElement(Mu,{max:255,min:0,value:Number(s.toRgb().g),prefixCls:e,className:r,onChange:u=>l(Number(u),"g")}),q.createElement(Mu,{max:255,min:0,value:Number(s.toRgb().b),prefixCls:e,className:r,onChange:u=>l(Number(u),"b")}))},Hfe=[G7,K7,q7].map(e=>({value:e,label:e.toUpperCase()})),Vfe=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:i,onChange:s,disabledFormat:l}=e,[u,d]=fn(G7,n),m=`${t}-input`,p=b=>{d(b),i?.(b);},g=f.useMemo(()=>{const b={value:r,prefixCls:t,onChange:s};switch(u){case K7:return q.createElement(zfe,{...b});case q7:return q.createElement(Ffe,{...b});default:return q.createElement(Bfe,{...b})}},[u,t,r,s]);return q.createElement("div",{className:`${m}-container`},!l&&q.createElement(Sc,{value:u,variant:"borderless",getPopupContainer:b=>b,popupMatchSelectWidth:68,placement:"bottomRight",onChange:p,className:`${t}-format-select`,size:"small",options:Hfe}),q.createElement("div",{className:m},g),!o&&q.createElement(Pfe,{prefixCls:t,value:r,onChange:s}))};function i3(e,t,n){return (e-t)/(n-t)}function xA(e,t,n,r){const o=i3(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 cu(e,t){return Array.isArray(e)?e[t]:e}const Ju=f.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:true,styles:{},classNames:{}}),nH=f.createContext({});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 jD=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:x,max:w,direction:E,disabled:M,keyboard:T,range:A,tabIndex:I,ariaLabelForHandle:N,ariaLabelledByForHandle:P,ariaRequired:O,ariaValueTextFormatterForHandle:D,styles:_,classNames:H}=f.useContext(Ju),U=`${n}-handle`,W=V=>{M||i(V,o);},z=V=>{b?.(V,o);},L=V=>{y(V,o);},G=V=>{if(!M&&T){let Q=null;switch(V.which||V.keyCode){case at.LEFT:Q=E==="ltr"||E==="btt"?-1:1;break;case at.RIGHT:Q=E==="ltr"||E==="btt"?1:-1;break;case at.UP:Q=E!=="ttb"?1:-1;break;case at.DOWN:Q=E!=="ttb"?-1:1;break;case at.HOME:Q="min";break;case at.END:Q="max";break;case at.PAGE_UP:Q=2;break;case at.PAGE_DOWN:Q=-2;break;case at.BACKSPACE:case at.DELETE:s?.(o);break}Q!==null&&(V.preventDefault(),p(Q,o));}},j=V=>{switch(V.which||V.keyCode){case at.LEFT:case at.RIGHT:case at.UP:case at.DOWN:case at.HOME:case at.END:case at.PAGE_UP:case at.PAGE_DOWN:g?.();break}},K=xA(E,r,x,w);let X={};o!==null&&(X={tabIndex:M?null:cu(I,o),role:"slider","aria-valuemin":x,"aria-valuemax":w,"aria-valuenow":r,"aria-disabled":M,"aria-label":cu(N,o),"aria-labelledby":cu(P,o),"aria-required":cu(O,o),"aria-valuetext":cu(D,o)?.(r),"aria-orientation":E==="ltr"||E==="rtl"?"horizontal":"vertical",onMouseDown:W,onTouchStart:W,onFocus:z,onMouseEnter:L,onKeyDown:G,onKeyUp:j});let k=f.createElement("div",s3({ref:t,className:Y(U,{[`${U}-${o+1}`]:o!==null&&A,[`${U}-dragging`]:d,[`${U}-dragging-delete`]:m},H.handle),style:{...K,...l,..._.handle}},X,S));return u&&(k=u(k,{index:o,prefixCls:n,value:r,dragging:d,draggingDelete:m})),k});function T0(){return T0=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},T0.apply(this,arguments)}const jfe=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),[x,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:()=>{Oo.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(jD,T0({ref:O=>{O?b.current[N]=O:delete b.current[N];},dragging:P,draggingDelete:P&&m,style:cu(r,N),key:N,value:I,valueIndex:N},A))}),u&&y&&f.createElement(jD,T0({key:"a11y"},A,{value:s[x],valueIndex:null,dragging:d!==-1,draggingDelete:m,render:u,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":true})))}),Ufe=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(Ju),g=`${t}-text`,b=xA(u,o,s,l);return f.createElement("span",{className:Y(g,{[`${g}-active`]:p&&d<=o&&o<=m}),style:{...b,...n},onMouseDown:y=>{y.stopPropagation();},onClick:()=>{i(o);}},r)},Wfe=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(Ufe,{key:i,prefixCls:o,style:s,value:i,onClick:r},l))):null},Gfe=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(Ju),p=`${t}-dot`,g=u&&d<=n&&n<=m;let b={...xA(l,n,i,s),...typeof r=="function"?r(n):r};return g&&(b={...b,...typeof o=="function"?o(n):o}),f.createElement("span",{className:Y(p,{[`${p}-active`]:g}),style:b})},qfe=e=>{const{prefixCls:t,marks:n,dots:r,style:o,activeStyle:i}=e,{min:s,max:l,step:u}=f.useContext(Ju),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(Gfe,{prefixCls:t,key:m,value:m,style:o,activeStyle:i})))},UD=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(Ju),y=`${t}-track`,S=i3(r,d,m),x=i3(o,d,m),w=T=>{!p&&s&&s(T,-1);},E={};switch(u){case "rtl":E.right=`${S*100}%`,E.width=`${x*100-S*100}%`;break;case "btt":E.bottom=`${S*100}%`,E.height=`${x*100-S*100}%`;break;case "ttb":E.top=`${S*100}%`,E.height=`${x*100-S*100}%`;break;default:E.left=`${S*100}%`,E.width=`${x*100-S*100}%`;}const M=l||Y(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})},Kfe=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(Ju),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(UD,{index:null,prefixCls:t,start:p[0].start,end:p[p.length-1].end,replaceCls:Y(m.tracks,`${t}-tracks`),style:d.tracks}):null;return f.createElement(f.Fragment,null,g,p.map(({start:b,end:y},S)=>f.createElement(UD,{index:S,prefixCls:t,style:{...cu(n,S),...d.track},start:b,end:y,key:S,onStartMove:i})))},Yfe=130;function WD(e){const t="targetTouches"in e?e.targetTouches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function Xfe(e,t,n,r,o,i,s,l,u,d,m){const[p,g]=f.useState(null),[b,y]=f.useState(-1),[S,x]=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(nH);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,L)=>{z!==void 0&&g(z),E(W);let G=W;L&&(G=W.filter((j,K)=>K!==b)),s(G),O&&O({rawValues:W,deleteIndex:L?b:-1,draggingIndex:b,draggingValue:z});},_=Mt((W,z,L)=>{if(W===-1){const G=M[0],j=M[M.length-1],K=r-G,X=o-j;let k=z*(o-r);k=Math.max(k,K),k=Math.min(k,X),k=i(G+k)-G;const Q=M.map(J=>J+k);D(Q);}else {const G=(o-r)*z,j=[...w];j[W]=M[W];const K=u(j,G,W,"dist");D(K.values,K.value,L);}}),H=(W,z,L)=>{W.stopPropagation();const G=L||n,j=G[z];y(z),g(j),T(G),E(G),x(false);const{pageX:K,pageY:X}=WD(W);let k=false;P&&P({rawValues:G,draggingIndex:z,draggingValue:j});const V=J=>{J.preventDefault();const{pageX:te,pageY:ne}=WD(J),re=te-K,ie=ne-X,{width:ue,height:ee}=e.current.getBoundingClientRect();let ae,ce;switch(t){case "btt":ae=-ie/ee,ce=re;break;case "ttb":ae=ie/ee,ce=re;break;case "rtl":ae=-re/ue,ce=ie;break;default:ae=re/ue,ce=ie;}k=d?Math.abs(ce)>Yfe&&m<w.length:false,x(k),_(z,ae,k);},Q=J=>{J.preventDefault(),document.removeEventListener("mouseup",Q),document.removeEventListener("mousemove",V),N.current&&(N.current.removeEventListener("touchmove",A.current),N.current.removeEventListener("touchend",I.current)),A.current=null,I.current=null,N.current=null,l(k),y(-1),x(false);};document.addEventListener("mouseup",Q),document.addEventListener("mousemove",V),W.currentTarget.addEventListener("touchend",Q),W.currentTarget.addEventListener("touchmove",V),A.current=V,I.current=Q,N.current=W.currentTarget;},U=f.useMemo(()=>{const W=[...n].sort((K,X)=>K-X),z=[...w].sort((K,X)=>K-X),L={};z.forEach(K=>{L[K]=(L[K]||0)+1;}),W.forEach(K=>{L[K]=(L[K]||0)-1;});const G=d?1:0;return Object.values(L).reduce((K,X)=>K+Math.abs(X),0)<=G?w:n},[n,w,d]);return [b,p,S,U,H]}function Qfe(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,x=Math.max(S(n),S(t),S(e)),w=Number(y.toFixed(x));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 x=S[0],w=t-e;return S.forEach(E=>{const M=Math.abs(y-E);M<=w&&(x=E,w=M);}),x},[e,t,r,n,s,l]),d=(b,y,S,x="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;x==="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),x==="unit"&&(T=T.filter(P=>P!==E));const I=x==="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(x==="dist")return w;if(Math.abs(y)>1){const P=[...b];return P[S]=w,d(P,y-A,S,x)}return w}else {if(y==="min")return e;if(y==="max")return t}},m=(b,y,S,x="unit")=>{const w=b[S],E=d(b,y,S,x);return {value:E,changed:E!==w}},p=b=>i===null&&b===0||typeof i=="number"&&b<i;return [u,(b,y,S,x="unit")=>{const w=b.map(u),E=w[S],M=d(w,y,S,x);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 Zfe(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 Jfe=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:x,defaultValue:w,range:E,count:M,onChange:T,onBeforeChange:A,onAfterChange:I,onChangeComplete:N,allowCross:P=true,pushable:O=false,reverse:D,vertical:_,included:H=true,startPoint:U,trackStyle:W,handleStyle:z,railStyle:L,dotStyle:G,activeDotStyle:j,marks:K,dots:X,handleRender:k,activeHandleRender:V,track:Q,tabIndex:J=0,ariaLabelForHandle:te,ariaLabelledByForHandle:ne,ariaRequired:re,ariaValueTextFormatterForHandle:ie}=e,ue=f.useRef(null),ee=f.useRef(null),ae=f.useMemo(()=>_?D?"ttb":"btt":D?"rtl":"ltr",[D,_]),[ce,se,$e,le,pe]=Zfe(E),be=f.useMemo(()=>isFinite(b)?b:0,[b]),Ee=f.useMemo(()=>isFinite(y)?y:100,[y]),Te=f.useMemo(()=>S!==null&&S<=0?1:S,[S]),Ye=f.useMemo(()=>typeof O=="boolean"?O?Te:false:O>=0?O:false,[O,Te]),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,ge]=Qfe(be,Ee,Te,Re,P,Ye),[Ne,He]=fn(w,x),We=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 De=M>=0?M+1:2;for(he=he.slice(0,De);he.length<De;)he.push(he[he.length-1]??be);}he.sort((De,Ce)=>De-Ce);}return he.forEach((De,Ce)=>{he[Ce]=fe(De);}),he},[Ne,ce,be,M,fe]),je=Me=>ce?Me:Me[0],et=Mt(Me=>{const Se=[...Me].sort((he,De)=>he-De);T&&!ic(Se,We,true)&&T(je(Se)),He(Se);}),it=Mt(Me=>{Me&&ue.current.hideHelp();const Se=je(We);I?.(Se),Pr(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),N?.(Se);}),Ke=Me=>{if(u||!se||We.length<=le)return;const Se=[...We];Se.splice(Me,1),A?.(je(Se)),et(Se);const he=Math.max(0,Me-1);ue.current.hideHelp(),ue.current.focus(he);},[Oe,qe,Je,ke,Ie]=Xfe(ee,ae,We,be,Ee,fe,et,it,ge,se,le),lt=(Me,Se)=>{if(!u){const he=[...We];let De=0,Ce=0,Be=Ee-be;We.forEach((ft,Et)=>{const At=Math.abs(Me-ft);At<=Be&&(Be=At,De=Et),ft<Me&&(Ce=Et);});let Xe=De;se&&Be!==0&&(!pe||We.length<pe)?(he.splice(Ce+1,0,Me),Xe=Ce+1):he[De]=Me,ce&&!We.length&&M===void 0&&he.push(Me);const st=je(he);A?.(st),et(he),Se?(document.activeElement?.blur?.(),ue.current.focus(Xe),Ie(Se,Xe,he)):(I?.(st),Pr(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),N?.(st));}},Tt=Me=>{Me.preventDefault();const{width:Se,height:he,left:De,top:Ce,bottom:Be,right:Xe}=ee.current.getBoundingClientRect(),{clientX:st,clientY:ft}=Me;let Et;switch(ae){case "btt":Et=(Be-ft)/he;break;case "ttb":Et=(ft-Ce)/he;break;case "rtl":Et=(Xe-st)/Se;break;default:Et=(st-De)/Se;}const At=be+Et*(Ee-be);lt(fe(At),Me);},[pt,Dt]=f.useState(null),xt=(Me,Se)=>{if(!u){const he=ge(We,Me,Se);A?.(je(We)),et(he.values),Dt(he.value);}};f.useEffect(()=>{if(pt!==null){const Me=We.indexOf(pt);Me>=0&&ue.current.focus(Me);}Dt(null);},[pt]);const Ot=f.useMemo(()=>$e&&Te===null?false:$e,[$e,Te]),dt=Mt((Me,Se)=>{Ie(Me,Se),A?.(je(We));}),ut=Oe!==-1;f.useEffect(()=>{if(!ut){const Me=We.lastIndexOf(qe);ue.current.focus(Me);}},[ut]);const bt=f.useMemo(()=>[...ke].sort((Me,Se)=>Me-Se),[ke]),[Fe,Ue]=f.useMemo(()=>ce?[bt[0],bt[bt.length-1]]:[be,bt[0]],[bt,ce,be]);f.useImperativeHandle(t,()=>({focus:()=>{ue.current.focus(0);},blur:()=>{const{activeElement:Me}=document;ee.current?.contains(Me)&&Me?.blur();}})),f.useEffect(()=>{m&&ue.current.focus(0);},[]);const ye=f.useMemo(()=>({min:be,max:Ee,direction:ae,disabled:u,keyboard:d,step:Te,included:H,includedStart:Fe,includedEnd:Ue,range:ce,tabIndex:J,ariaLabelForHandle:te,ariaLabelledByForHandle:ne,ariaRequired:re,ariaValueTextFormatterForHandle:ie,styles:s||{},classNames:i||{}}),[be,Ee,ae,u,d,Te,H,Fe,Ue,ce,J,te,ne,re,ie,s,i]);return f.createElement(Ju.Provider,{value:ye},f.createElement("div",{ref:ee,className:Y(n,r,{[`${n}-disabled`]:u,[`${n}-vertical`]:_,[`${n}-horizontal`]:!_,[`${n}-with-marks`]:Re.length}),style:o,onMouseDown:Tt,id:l},f.createElement("div",{className:Y(`${n}-rail`,i?.rail),style:{...L,...s?.rail}}),Q!==false&&f.createElement(Kfe,{prefixCls:n,style:W,values:We,startPoint:U,onStartMove:Ot?dt:void 0}),f.createElement(qfe,{prefixCls:n,marks:Re,dots:X,style:G,activeStyle:j}),f.createElement(jfe,{ref:ue,prefixCls:n,style:z,values:ke,draggingIndex:Oe,draggingDelete:Je,onStartMove:dt,onOffsetChange:xt,onFocus:p,onBlur:g,handleRender:k,activeHandleRender:V,onChangeComplete:it,onDelete:se?Ke:void 0}),f.createElement(Wfe,{prefixCls:n,marks:Re,onClick:lt})))}),rH=f.createContext({}),GD=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(){Lt.cancel(l.current),l.current=null;}function d(){l.current=Lt(()=>{i.current?.forceAlign(),l.current=null;});}return f.useEffect(()=>(s?d():u(),u),[s,e.title,o]),f.createElement(Cc,{ref:Yr(i,t),...e,open:s})}),eme=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:x}=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 ${x}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${x}`},[`${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} ${x}`).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"}}}},oH=(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()}}},tme=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:{...oH(e,true),[`&${t}-with-marks`]:{marginBottom:n}}}},nme=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:{...oH(e,false),height:"100%"}}},rme=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}},ome=Gt("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 [eme(t),tme(t),nme(t)]},rme);function Dw(){const[e,t]=f.useState(false),n=f.useRef(null),r=()=>{Lt.cancel(n.current);},o=i=>{r(),i?t(i):n.current=Lt(()=>{t(i);});};return f.useEffect(()=>r,[]),[e,o]}function ime(e){return e||e===null?e:t=>typeof t=="number"?t.toString():""}const wA=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]=Xu(b,g),{getPrefixCls:x,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,_]=Kt([T,m],[A,p],{props:O}),{handleRender:H,direction:U}=q.useContext(rH),z=(U||w)==="rtl",[L,G]=Dw(),[j,K]=Dw(),X={...u},{open:k,placement:V,getPopupContainer:Q,prefixCls:J,formatter:te}=X,ne=k,re=(L||j)&&ne!==false,ie=ime(te),[ue,ee]=Dw(),ae=Re=>{d?.(Re),ee(false);},ce=(Re,fe)=>Re||(fe?z?"left":"right":"top"),se=x("slider",n),[$e,le]=ome(se),pe=Y(o,E,D.root,i,{[`${se}-rtl`]:z,[`${se}-lock`]:ue},$e,le);z&&!S&&(y.reverse=!y.reverse),q.useEffect(()=>{const Re=()=>{Lt(()=>{K(false);},1);};return document.addEventListener("mouseup",Re),()=>{document.removeEventListener("mouseup",Re);}},[]);const be=r&&!ne,Ee=H||((Re,fe)=>{const{index:ge}=fe,Ne=Re.props;function He(it,Ke,Oe){Oe&&y[it]?.(Ke),Ne[it]?.(Ke);}const We={...Ne,onMouseEnter:it=>{G(true),He("onMouseEnter",it);},onMouseLeave:it=>{G(false),He("onMouseLeave",it);},onMouseDown:it=>{K(true),ee(true),He("onMouseDown",it);},onFocus:it=>{K(true),y.onFocus?.(it),He("onFocus",it,true);},onBlur:it=>{K(false),y.onBlur?.(it),He("onBlur",it,true);}},je=q.cloneElement(Re,We),et=(!!ne||re)&&ie!==null;return be?je:q.createElement(GD,{...X,prefixCls:x("tooltip",J),title:ie?ie(fe.value):"",value:fe.value,open:et,placement:ce(V,S),key:ge,classNames:{root:`${se}-tooltip`},getPopupContainer:Q||I},je)}),Te=be?(Re,fe)=>{const ge=q.cloneElement(Re,{style:{...Re.props.style,visibility:"hidden"}});return q.createElement(GD,{...X,prefixCls:x("tooltip",J),title:ie?ie(fe.value):"",open:ie!==null&&re,placement:ce(V,S),key:"tooltip",classNames:{root:`${se}-tooltip`},getPopupContainer:Q||I,draggingDelete:fe.draggingDelete},ge)}:void 0,Ye={..._.root,...M,...s};return q.createElement(Jfe,{...y,classNames:D,styles:_,step:y.step,range:r,className:pe,style:Ye,disabled:P,vertical:S,ref:t,prefixCls:se,handleRender:Ee,activeHandleRender:Te,onChangeComplete:ae})}),iH=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]),x=Mt(d),w=Mt(m),E=f.useMemo(()=>({onDragStart:x,onDragChange:w}),[]),M=Mt((A,I)=>{const{onFocus:N,style:P,className:O,onKeyDown:D}=A.props,_={...P};return r==="gradient"&&(_.background=jz(n,I.value)),f.cloneElement(A,{onFocus:H=>{u?.(I.index),N?.(H);},style:_,className:Y(O,{[`${t}-slider-handle-active`]:l===I.index}),onKeyDown:H=>{(H.key==="Delete"||H.key==="Backspace")&&p&&p(I.index),D?.(H);}})}),T=f.useMemo(()=>({direction:"ltr",handleRender:M}),[]);return f.createElement(rH.Provider,{value:T},f.createElement(nH.Provider,{value:E},f.createElement(wA,{...b,className:Y(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`}})))},sme=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,o=s=>n(s[0]),i=s=>r(s[0]);return f.createElement(iH,{...e,value:[t],onChange:o,onChangeComplete:i})};function qD(e){return Xt(e).sort((t,n)=>t.percent-n.percent)}const ame=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=jz(m,M),A=Xt(m);A.splice(E,0,{percent:M,color:T}),g.current=A;}else g.current=m;l(true),r(new Jo(qD(g.current)),true);},y=({deleteIndex:w,draggingIndex:E,draggingValue:M})=>{let T=Xt(g.current);w!==-1?T.splice(w,1):(T[E]={...T[E],percent:M},T=qD(T)),r(new Jo(T),true);},S=w=>{const E=Xt(m);E.splice(w,1);const M=new Jo(E);r(M),o(M);},x=w=>{o(new Jo(m)),s>=w.length&&i(w.length-1),l(false);};return d?f.createElement(iH,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:m,color:null,value:p,range:true,onChangeComplete:x,disabled:false,type:"gradient",activeIndex:s,onActive:i,onDragStart:b,onDragChange:y,onKeyDelete:S}):null},lme=f.memo(ame),cme={slider:sme},KD=()=>{const e=f.useContext(j7),{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 Jo("")},{percent:100,color:new Jo("")}]:s.getColors(),[s]),S=!s.isGradient(),[x,w]=q.useState(s);Rn(()=>{S||w(y[p]?.color);},[S,y,g,p]);const E=q.useMemo(()=>S?s:g?x:y[p]?.color,[y,s,p,S,x,g]),[M,T]=q.useState(E),[A,I]=nz(),N=M?.equals(E)?E:M;Rn(()=>{T(E);},[A,E?.toHexString()]);const P=(W,z)=>{let L=mo(W);if(s.cleared){const j=L.toRgb();if(!j.r&&!j.g&&!j.b&&z){const{type:K,value:X=0}=z;L=new Jo({h:K==="hue"?X:0,s:1,b:1,a:K==="alpha"?X/100:1});}else L=gy(L);}if(t==="single")return L;const G=Xt(y);return G[p]={...G[p],color:L},new Jo(G)},O=(W,z,L)=>{const G=P(W,L);T(G.isGradient()?G.getColors()[p].color:G),u(G,z);},D=(W,z)=>{m(P(W,z)),I();},_=W=>{u(P(W));};let H=null;const U=r.length>1;return (i||U)&&(H=q.createElement("div",{className:`${o}-operation`},U&&q.createElement(yA,{size:"small",options:r,value:t,onChange:n}),q.createElement(W7,{prefixCls:o,value:s,onChange:W=>{u(W),d?.();},...b}))),q.createElement(q.Fragment,null,H,q.createElement(lme,{...e,colors:y}),q.createElement(boe,{prefixCls:o,value:N?.toHsb(),disabledAlpha:l,onChange:(W,z)=>{O(W,true,z);},onChangeComplete:(W,z)=>{D(W,z);},components:cme}),q.createElement(Vfe,{value:E,onChange:_,prefixCls:o,disabledAlpha:l,...b}))},YD=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=f.useContext(U7);return Array.isArray(n)?q.createElement(Boe,{value:t,presets:n,prefixCls:e,onChange:r}):null},ume=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:x,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:x,gradientDragging:w,onGradientDragging:E,disabledFormat:M}),[t,o,i,s,l,u,d,m,p,g,b,y,S,x,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(KD,null),Array.isArray(n)&&q.createElement(dc,null),q.createElement(YD,null));return q.createElement(j7.Provider,{value:A},q.createElement(U7.Provider,{value:I},q.createElement("div",{className:T},typeof r=="function"?r(N,{components:{Picker:KD,Presets:YD}}):N)))},dme=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`,x=`${S}-cell`,[w]=zo("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:Y(x,P&&`${x}-inactive`)},I.color.toRgbString()," ",I.percent,"%")});const T=n.toHexString().toUpperCase(),A=zT(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,x]),M=f.useMemo(()=>n.cleared?q.createElement(W7,{prefixCls:r,className:d.body,style:m.body}):q.createElement(kT,{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:Y(y,l,d.root,{[`${y}-active`]:o,[`${y}-disabled`]:i}),style:{...m.root,...u},...Ao(b)},M,p&&q.createElement("div",{className:Y(S,d.description),style:m.description},E))});function fme(e,t,n){const[r]=zo("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 x=new Set(S),w=[],E=(M,T)=>{x.has(M)&&w.push({label:T,value:M});};return E("single",r.singleColor),E("gradient",r.gradientColor),[w,x]},[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 sH=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:`${e} ${e}`}),XD=(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",...sH("50%",e.colorFillSecondary),[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${oe(i)} ${s}`,borderRadius:"inherit"}}}},mme=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}}}}}},hme=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}`}}},pme=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}}}},gme=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`]:[sH(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}}}},a3=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${oe(e.controlOutlineWidth)} ${n}`,outline:0}),vme=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},QD=(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}}}},bme=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`]:{...a3(e,n,s)}},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:{...a3(e,r,l)}}}},yme=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)}}}},Sme=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:x,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`]:{...hme(e)},...gme(e),...XD(e,w),...mme(e),...pme(e),...QD(e,x,{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`]:{...a3(e,o,N)},"&-disabled":{color:l,background:d,cursor:"not-allowed","&:hover":{borderColor:S},[`${n}-trigger-text`]:{color:l}},...QD(e,y),...XD(e,y),...bme(e),...yme(e)},...vme(e)}},tm(e,{focusElCls:`${n}-trigger-active`})]},Cme=Gt("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 Sme(o)}),EA=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:x,className:w,size:E,rootClassName:M,prefixCls:T,styles:A,classNames:I,disabledAlpha:N=false,onFormatChange:P,onChange:O,onClear:D,onOpenChange:_,onChangeComplete:H,getPopupContainer:U,autoAdjustOverflow:W=true,destroyTooltipOnHide:z,destroyOnHidden:L,disabledFormat:G,...j}=e,{getPrefixCls:K,direction:X,className:k,style:V,classNames:Q,styles:J,arrow:te}=jt("colorPicker"),ne=f.useContext(fo),re=p??ne,ie=K("color-picker",T),ue=k1(b,te),{compactSize:ee,compactItemClassnames:ae}=ol(ie,X),ce=br(Me=>E??ee??Me),se={...e,trigger:d,allowClear:s,autoAdjustOverflow:W,disabledAlpha:N,arrow:ue,placement:g,disabled:re,size:ce},[$e,le]=Kt([Q,I],[J,A],{props:se},{popup:{_default:"root"}}),[pe,be]=fn(false,m),Ee=!re&&pe,[Te,Ye]=fn(i,o),Re=Me=>{Ye(Me),Te!==Me&&P?.(Me);},fe=Me=>{(!Me||!re)&&(be(Me),_?.(Me));},[ge,Ne,He,We,je]=fme(r,n,t),et=f.useMemo(()=>zT(ge)<100,[ge]),[it,Ke]=q.useState(null),Oe=Me=>{if(H){let Se=mo(Me);N&&et&&(Se=gy(Me)),H(Se);}},qe=(Me,Se)=>{let he=mo(Me);N&&et&&(he=gy(he)),Ne(he),Ke(null),O&&O(he,he.toCssString()),Se||Oe(he);},[Je,ke]=q.useState(0),[Ie,lt]=q.useState(false),Tt=Me=>{if(We(Me),Me==="single"&&ge.isGradient())ke(0),qe(new Jo(ge.getColors()[0].color)),Ke(ge);else if(Me==="gradient"&&!ge.isGradient()){const Se=et?gy(ge):ge;qe(new Jo(it||[{percent:0,color:Se},{percent:100,color:Se}]));}},{status:pt}=q.useContext(Ro),Dt=Zn(ie),[xt,Ot]=Cme(ie,Dt),dt={[`${ie}-rtl`]:X},ut=Y(M,Ot,Dt,dt),bt=Y(uc(ie,pt),{[`${ie}-sm`]:ce==="small",[`${ie}-lg`]:ce==="large"},ae,k,ut,w,xt),Fe=Y(ie,ut,$e.popup?.root),Ue={open:Ee,trigger:d,placement:g,arrow:ue,rootClassName:M,getPopupContainer:U,autoAdjustOverflow:W,destroyOnHidden:L??!!z},ye={...V,...x};return q.createElement(Os,{classNames:{root:Fe},styles:{root:le.popup?.root,container:A?.popupOverlayInner},onOpenChange:fe,content:q.createElement(cc,{form:true},q.createElement(ume,{mode:He,onModeChange:Tt,modeOptions:je,prefixCls:ie,value:ge,allowClear:s,disabled:re,disabledAlpha:N,presets:l,panelRender:y,format:Te,onFormatChange:Re,onChange:qe,onChangeComplete:Oe,onClear:D,activeIndex:Je,onActive:ke,gradientDragging:Ie,onGradientDragging:lt,disabledFormat:G})),...Ue},u||q.createElement(dme,{activeIndex:Ee?Je:-1,open:Ee,className:bt,style:ye,classNames:$e,styles:le,prefixCls:ie,disabled:re,showText:S,format:Te,...j,color:ge}))},xme=YT(EA,void 0,e=>({...e,placement:"bottom",autoAdjustOverflow:false}),"color-picker",e=>e);EA._InternalPanelDoNotUseOrYouWillBeFired=xme;function A0(e){return ["small","middle","medium","large"].includes(e)}function ZD(e){return e?typeof e=="number"&&!Number.isNaN(e):false}const aH=q.createContext({latestIndex:0}),wme=aH.Provider,Eme=e=>{const{className:t,prefix:n,index:r,children:o,separator:i,style:s,classNames:l,styles:u}=e,{latestIndex:d}=f.useContext(aH);return Lr(o)?f.createElement(f.Fragment,null,f.createElement("div",{className:t,style:s},o),r<d&&i&&f.createElement("span",{className:Y(`${n}-item-separator`,l?.separator),style:u?.separator},i)):null},$me=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"}}}},Mme=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}}}},Tme=Gt("Space",e=>{const t=zt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [$me(t),Mme(t)]},()=>({}),{resetStyle:false}),Ame=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:x,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],_=A0(D),H=A0(O),U=ZD(D),W=ZD(O),z=ri(b,{keepEmpty:true}),[L,G]=Xu(S,T,y),j=m===void 0&&!G?"center":m,K=E??w,X=n("space",x),[k,V]=Tme(X),Q={...e,size:d,orientation:L,align:j},[J,te]=Kt([l,I],[u,N],{props:Q}),ne=Y(X,i,k,`${X}-${L}`,{[`${X}-rtl`]:r==="rtl",[`${X}-align-${j}`]:j,[`${X}-gap-row-${D}`]:_,[`${X}-gap-col-${O}`]:H},p,g,V,J.root),re=Y(`${X}-item`,J.item),ie=z.map((ae,ce)=>{const se=ae?.key||`${re}-${ce}`;return f.createElement(Eme,{prefix:X,classNames:J,styles:te,className:re,key:se,index:ce,separator:K,style:te.item},ae)}),ue=f.useMemo(()=>({latestIndex:z.reduce((ce,se,$e)=>Lr(se)?$e:ce,0)}),[z]);if(z.length===0)return null;const ee={};return A&&(ee.flexWrap="wrap"),!H&&W&&(ee.columnGap=O),!_&&U&&(ee.rowGap=D),f.createElement("div",{ref:t,className:ne,style:{...ee,...te.root,...s,...M},...P},f.createElement(wme,{value:ue},ie))}),Tr=Ame;Tr.Compact=NT;Tr.Addon=X7;const lH=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:x,align:w,open:E,onOpenChange:M,placement:T,getPopupContainer:A,href:I,icon:N=f.createElement(fA,null),title:P,buttonsRender:O=ee=>ee,mouseEnterDelay:D,mouseLeaveDelay:_,overlayClassName:H,overlayStyle:U,destroyOnHidden:W,destroyPopupOnHide:z,dropdownRender:L,popupRender:G,...j}=e,K=n("dropdown",o),X=`${K}-button`,V={menu:b,arrow:y,autoFocus:S,align:w,disabled:l,trigger:l?[]:x,onOpenChange:M,getPopupContainer:A||t,mouseEnterDelay:D,mouseLeaveDelay:_,classNames:{root:H},styles:{root:U},destroyOnHidden:W,popupRender:G||L},{compactSize:Q,compactItemClassnames:J}=ol(K,r),te=Y(X,J,g);"destroyPopupOnHide"in e&&(V.destroyPopupOnHide=z),"open"in e&&(V.open=E),"placement"in e?V.placement=T:V.placement=r==="rtl"?"bottomLeft":"bottomRight";const ne=f.createElement(ct,{type:i,danger:s,disabled:l,loading:u,onClick:d,htmlType:m,href:I,title:P},p),re=f.createElement(ct,{type:i,danger:s,icon:N}),[ie,ue]=O([ne,re]);return f.createElement(Tr.Compact,{className:te,size:Q,block:true,...j},ie,f.createElement(H1,{...V},ue))};lH.__ANT_BUTTON=true;const wc=H1;wc.Button=lH;const cH=["wrap","nowrap","wrap-reverse"],uH=["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"],Rme=(e,t)=>{const n=t.wrap===true?"wrap":t.wrap;return {[`${e}-wrap-${n}`]:n&&cH.includes(n)}},Nme=(e,t)=>{const n={};return dH.forEach(r=>{n[`${e}-align-${r}`]=t.align===r;}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},Pme=(e,t)=>{const n={};return uH.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r;}),n},Ime=(e,t)=>Y({...Rme(e,t),...Nme(e,t),...Pme(e,t)}),Ome=e=>{const{componentCls:t}=e;return {[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Dme=e=>{const{componentCls:t}=e;return {[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},_me=e=>{const{componentCls:t}=e,n={};return cH.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r};}),n},Lme=e=>{const{componentCls:t}=e,n={};return dH.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r};}),n},kme=e=>{const{componentCls:t}=e,n={};return uH.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r};}),n},Bme=()=>({}),zme=Gt("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=zt(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return [Ome(o),Dme(o),_me(o),Lme(o),kme(o)]},Bme,{resetStyle:false}),Fme=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),x=S("flex",n),[w,E]=zme(x),[,M]=Xu(d,u??b?.vertical),T=Y(o,r,b?.className,x,w,E,Ime(x,{...e,vertical:M}),{[`${x}-rtl`]:y==="rtl",[`${x}-gap-${l}`]:A0(l),[`${x}-vertical`]:M}),A={...b?.style,...i};return Lr(s)&&(A.flex=s),Lr(l)&&!A0(l)&&(A.gap=l),q.createElement(m,{ref:t,className:T,style:A,...Fn(g,["justify","wrap","align"])},p)}),R0=q.createContext(null);var Hme={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 l3(){return l3=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},l3.apply(this,arguments)}const Vme=(e,t)=>f.createElement(Qn,l3({},e,{ref:t,icon:Hme})),fH=f.forwardRef(Vme),jme=(e,t)=>Lr(e)?typeof e=="object"&&!f.isValidElement(e)?{...t,...e}:{...t,title:e}:null,Ume=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}}}]}},Wme=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")}}}]}},Gme=()=>({}),mH=Gt("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 [Ume(s),Wme(s),IT(e)]},Gme,{order:-998}),W1="float-btn",qme=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:x,direction:w}=q.useContext(wt),E=q.useContext(R0),M=x(W1,n),T=Zn(M),{shape:A,individual:I,classNames:N,styles:P}=E||{},O=A||l,D=I??true,_=m??d,H={...e,type:s,shape:O},[U,W]=mH(M,T),z=q.useMemo(()=>({icon:`${M}-icon`,content:`${M}-content`}),[M]),[L,G]=Kt([z,N,b],[P,y],{props:H}),j=!_&&!u?q.createElement(fH,null):u,[K]=Qu("FloatButton",i?.zIndex),X={...i,zIndex:K},k=Fn(g,["title","children","status","text"]),V="badge"in e&&q.createElement(wg,{...k,className:Y(k.className,`${M}-badge`,{[`${M}-badge-dot`]:k.dot})}),Q=jme(p);let J=q.createElement(ct,{...S,ref:t,className:Y(U,W,T,M,r,o,`${M}-${s}`,`${M}-${O}`,{[`${M}-rtl`]:w==="rtl",[`${M}-individual`]:D,[`${M}-icon-only`]:!_}),classNames:L,styles:G,style:X,shape:O,type:s,size:"large",icon:j,_skipSemantic:true},_,V);return Q&&(J=q.createElement(Cc,{...Q},J)),J}),ed=qme,Kme=q.createElement(xce,null),hH=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??Kme,[y,S]=f.useState(l===0),x=q.useRef(null);q.useImperativeHandle(t,()=>({nativeElement:x.current}));const w=()=>x.current?.ownerDocument||window,E=LJ(D=>{const _=oz(D.target);S(_>=l);});f.useEffect(()=>{const _=(d||w)();return E({target:_}),_?.addEventListener("scroll",E),()=>{E.cancel(),_?.removeEventListener("scroll",E);}},[d]);const M=D=>{bne(0,{getContainer:d||w,duration:p}),m?.(D);},{getPrefixCls:T}=f.useContext(wt),A=T(W1,r),I=T(),P=f.useContext(R0)?.shape||s,O={prefixCls:A,icon:b,type:i,shape:P,...g};return q.createElement(No,{visible:y,motionName:`${I}-fade`},({className:D},_)=>q.createElement(ed,{ref:Yr(x,_),...O,onClick:M,className:Y(o,D)}))}),pH=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(fH,null),closeIcon:p,trigger:g,children:b,onOpenChange:y,open:S,onClick:x,...w}=e,{direction:E,getPrefixCls:M,closeIcon:T,classNames:A,styles:I,className:N,style:P}=jt("floatButtonGroup"),O=p??T??q.createElement(nl,null),D=M(W1,t),_=Zn(D),[H,U]=mH(D,_),W=`${D}-group`,z=g&&["click","hover"].includes(g),[L]=Qu("FloatButton",r?.zIndex),G=q.useRef(null),j=["top","left","right","bottom"].includes(d)?d:"top",[K,X]=fn(false,S),k=g==="hover",V=g==="click",Q=Mt(pe=>{K!==pe&&(X(pe),y?.(pe));}),J=()=>{k&&Q(true);},te=()=>{k&&Q(false);},ne=pe=>{V&&Q(!K),x?.(pe);};q.useEffect(()=>{if(V){const pe=be=>{G.current?.contains(be.target)||Q(false);};return document.addEventListener("click",pe,{capture:true}),()=>document.removeEventListener("click",pe,{capture:true})}},[V]);const re=l==="circle",ie={...e,shape:l,type:u,placement:j},[ue,ee]=Kt([A,o],[I,i],{props:ie}),ae=q.useMemo(()=>({shape:l,individual:re,classNames:{root:ue.item,icon:ue.itemIcon,content:ue.itemContent},styles:{root:ee.item,icon:ee.itemIcon,content:ee.itemContent}}),[l,re,ue,ee]),ce=q.useMemo(()=>({...ae,individual:true,classNames:{root:ue.trigger,icon:ue.triggerIcon,content:ue.triggerContent},styles:{root:ee.trigger,icon:ee.triggerIcon,content:ee.triggerContent}}),[ae,ue,ee]);let se;const $e=`${W}-list`,le=pe=>{const be=j==="top"||j==="bottom",Ee={className:Y($e,ue.list,pe),style:ee.list};return re?se=q.createElement(Fme,{vertical:be,...Ee},b):se=q.createElement(Tr.Compact,{vertical:be,...Ee},b),se};return q.createElement(R0.Provider,{value:ae},q.createElement("div",{className:Y(W,H,U,_,N,ue.root,n,s,{[`${W}-rtl`]:E==="rtl",[`${W}-individual`]:re,[`${W}-${j}`]:z,[`${W}-menu-mode`]:z}),style:{...P,zIndex:L,...ee.root,...r},ref:G,onMouseEnter:J,onMouseLeave:te},z?q.createElement(No,{visible:K,motionName:`${$e}-motion`},({className:pe})=>le(pe)):le(),z&&q.createElement(R0.Provider,{value:ce},q.createElement(ed,{type:u,icon:K?O:m,"aria-label":e["aria-label"],className:`${W}-trigger`,onClick:ne,...w}))))},JD=({backTop:e,...t})=>e?f.createElement(hH,{...t,visibilityHeight:0}):f.createElement(ed,{...t}),Yme=({className:e,items:t,classNames:n,styles:r,prefixCls:o,...i})=>{const{getPrefixCls:s}=f.useContext(wt),u=`${s(W1,o)}-pure`;return t?f.createElement(pH,{className:Y(e,u),classNames:n,styles:r,...i},t.map((d,m)=>f.createElement(JD,{key:m,...d}))):f.createElement(JD,{className:Y(e,u),classNames:n,styles:r,...i})};ed.BackTop=hH;ed.Group=pH;ed._InternalPanelDoNotUseOrYouWillBeFired=Yme;const Xme=e=>{const{getPrefixCls:t,direction:n}=f.useContext(wt),{prefixCls:r,className:o}=e,i=t("input-group",r),s=t("input"),[l,u]=D7(s),d=Y(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(Ro),p=f.useMemo(()=>({...m,isFormItemInput:false}),[m]);return f.createElement(Ro.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))},Qme=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}}}},Zme=Gt(["Input","OTP"],e=>{const t=zt(e,sm(e));return Qme(t)},am),Jme=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=()=>{Lt(()=>{const E=b.current?.input;document.activeElement===E&&E&&E.select();});},x=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(lm,{"aria-label":`OTP Input ${s+1}`,type:l===true?"password":"text",...d,ref:b,value:r,onInput:y,onFocus:x,onKeyDown:w,onMouseDown:S,onMouseUp:S,className:Y(n,{[`${p}-mask-input`]:l})}))});function Rb(e){return (e||"").split("")}const ehe=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:Y(`${n}-separator`,o),style:i},s):null},the=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:x,onInput:w,onFocus:E,inputMode:M,classNames:T,styles:A,className:I,style:N,...P}=e,{classNames:O,styles:D,getPrefixCls:_,direction:H,style:U,className:W}=jt("otp"),z=_("otp",n),L={...e,length:r},[G,j]=Kt([O,T],[D,A],{props:L}),K=Ao(P,{aria:true,data:true,attr:true}),[X,k]=Zme(z),V=br(be=>o??be),Q=f.useContext(Ro),J=rm(Q.status,g),te=f.useMemo(()=>({...Q,status:J,hasFeedback:false,feedbackIcon:null}),[Q,J]),ne=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:ne.current}));const ie=be=>u?u(be):be,[ue,ee]=f.useState(()=>Rb(ie(i||"")));f.useEffect(()=>{s!==void 0&&ee(Rb(s));},[s]);const ae=Mt(be=>{ee(be),w&&w(be),l&&be.length===r&&be.every(Ee=>Ee)&&be.some((Ee,Te)=>ue[Te]!==Ee)&&l(be.join(""));}),ce=Mt((be,Ee)=>{let Te=Xt(ue);for(let Re=0;Re<be;Re+=1)Te[Re]||(Te[Re]="");Ee.length<=1?Te[be]=Ee:Te=Te.slice(0,be).concat(Rb(Ee)),Te=Te.slice(0,r);for(let Re=Te.length-1;Re>=0&&!Te[Re];Re-=1)Te.pop();const Ye=ie(Te.map(Re=>Re||" ").join(""));return Te=Rb(Ye).map((Re,fe)=>Re===" "&&!Te[fe]?Te[fe]:Re),Te}),se=(be,Ee)=>{const Te=ce(be,Ee),Ye=Math.min(be+Ee.length,r-1);Ye!==be&&Te[be]!==void 0&&re.current[Ye]?.focus(),ae(Te);},$e=be=>{re.current[be]?.focus();},le=(be,Ee)=>{for(let Te=0;Te<Ee;Te+=1)if(!re.current[Te]?.input?.value){re.current[Te]?.focus();break}E?.(be);},pe={variant:m,disabled:p,status:J,mask:y,type:S,inputMode:M,autoComplete:x};return f.createElement("div",{...K,ref:ne,className:Y(I,z,{[`${z}-sm`]:V==="small",[`${z}-lg`]:V==="large",[`${z}-rtl`]:H==="rtl"},k,X,W,G.root),style:{...j.root,...U,...N},role:"group"},f.createElement(Ro.Provider,{value:te},Array.from({length:r}).map((be,Ee)=>{const Te=`otp-${Ee}`,Ye=ue[Ee]||"";return f.createElement(f.Fragment,{key:Te},f.createElement(Jme,{ref:Re=>{re.current[Ee]=Re;},index:Ee,size:V,htmlSize:1,className:Y(G.input,`${z}-input`),style:j.input,onChange:se,value:Ye,onActiveChange:$e,autoFocus:Ee===0&&b,onFocus:Re=>le(Re,Ee),...pe}),Ee<r-1&&f.createElement(ehe,{separator:d,index:Ee,prefixCls:z,className:Y(G.separator),style:j.separator}))})))});var nhe={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 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 rhe=(e,t)=>f.createElement(Qn,c3({},e,{ref:t,icon:nhe})),ohe=f.forwardRef(rhe);var ihe={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 u3(){return u3=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},u3.apply(this,arguments)}const she=(e,t)=>f.createElement(Qn,u3({},e,{ref:t,icon:ihe})),ahe=f.forwardRef(she),lhe=e=>e?f.createElement(ahe,null):f.createElement(ohe,null),che={click:"onClick",hover:"onMouseOver"},uhe=f.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=true,iconRender:i=lhe,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=tH(g),y=()=>{if(u)return;m&&b();const _=!m;p(_),typeof o=="object"&&o.onVisibleChange?.(_);},S=_=>{const H=che[r]||"",U=i(m),W={[H]:y,className:`${_}-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:x,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=Y(N,x,{[`${N}-${M}`]:!!M}),D={...Fn(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(lm,{ref:Yr(t,g),...D})}),dhe=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}}}}}}},fhe=Gt(["Input","Search"],dhe),mhe=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:x,classNames:w,styles:E,hidden:M,...T}=e,{direction:A,getPrefixCls:I,classNames:N,styles:P}=jt("inputSearch"),O={...e,enterButton:l},[D,_]=Kt([N,w],[P,E],{props:O},{button:{_default:"root"}}),H=f.useRef(false),U=I("input-search",n),W=I("input",r),[z,L]=fhe(U),{compactSize:G}=ol(U,A),j=br(le=>i??G??le),K=f.useRef(null),X=le=>{le?.target&&le.type==="click"&&p&&p(le.target.value,le,{source:"clear"}),g?.(le);},k=le=>{document.activeElement===K.current?.input&&le.preventDefault();},V=le=>{p&&p(K.current?.input?.value,le,{source:"input"});},Q=le=>{H.current||d||(x?.(le),V(le));},J=typeof l=="boolean"?f.createElement(nA,null):null,te=`${U}-btn`,ne=Y(te,{[`${te}-${S}`]:S});let re;const ie=l||{},ue=ie.type&&ie.type.__ANT_BUTTON===true;ue||ie.type==="button"?re=qr(ie,{onMouseDown:k,onClick:le=>{ie?.props?.onClick?.(le),V(le);},key:"enterButton",...ue?{className:ne,size:j}:{}}):re=f.createElement(ct,{classNames:D.button,styles:_.button,className:ne,color:l?"primary":"default",size:j,disabled:m,key:"enterButton",onMouseDown:k,onClick:V,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 ee=Y(U,L,{[`${U}-rtl`]:A==="rtl",[`${U}-${j}`]:!!j,[`${U}-with-button`]:!!l},o,z,D.root),ae=le=>{H.current=true,b?.(le);},ce=le=>{H.current=false,y?.(le);},se=Ao(T,{data:true}),$e=Fn({...T,classNames:Fn(D,["button","root"]),styles:Fn(_,["button","root"]),prefixCls:W,type:"search",size:j,variant:S,onPressEnter:Q,onCompositionStart:ae,onCompositionEnd:ce,onChange:X,disabled:m},Object.keys(se));return f.createElement(NT,{className:ee,style:{...s,..._.root},...se,hidden:M},f.createElement(lm,{ref:Yr(K,t),...$e}),re)}),hhe=`
  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;
`,phe=["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"],_w={};let pi;function ghe(e,t=false){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&_w[n])return _w[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:phe.map(d=>`${d}:${r.getPropertyValue(d)}`).join(";"),paddingSize:i,borderSize:s,boxSizing:o};return t&&n&&(_w[n]=u),u}function vhe(e,t=false,n=null,r=null){pi||(pi=document.createElement("textarea"),pi.setAttribute("tab-index","-1"),pi.setAttribute("aria-hidden","true"),pi.setAttribute("name","hiddenTextarea"),document.body.appendChild(pi)),e.getAttribute("wrap")?pi.setAttribute("wrap",e.getAttribute("wrap")):pi.removeAttribute("wrap");const{paddingSize:o,borderSize:i,boxSizing:s,sizingStyle:l}=ghe(e,t);pi.setAttribute("style",`${l};${hhe}`),pi.value=e.value||e.placeholder||"";let u,d,m,p=pi.scrollHeight;if(s==="border-box"?p+=i:s==="content-box"&&(p-=o),n!==null||r!==null){pi.value=" ";const b=pi.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 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 Lw=0,kw=1,Bw=2,bhe=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??"",x=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(Bw),[N,P]=f.useState(),O=()=>{I(Lw);};Rn(()=>{T&&O();},[o,E,M,T]),Rn(()=>{if(A===Lw)I(kw);else if(A===kw){const z=vhe(w.current,false,E,M);I(Bw),P(z);}},[A]);const D=f.useRef(),_=()=>{Lt.cancel(D.current);},H=z=>{A===Bw&&(s?.(z),i&&(_(),D.current=Lt(()=>{O();})));};f.useEffect(()=>_,[]);const W={...u,...T?N:null};return (A===Lw||A===kw)&&(W.overflowY="hidden",W.overflowX="hidden"),f.createElement(Cs,{onResize:H,disabled:!(i||s)},f.createElement("textarea",d3({},g,{ref:w,style:W,className:Y(n,l,{[`${n}-disabled`]:d}),disabled:d,value:S,onChange:x})))});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 yhe=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:x,classNames:w,styles:E,onResize:M,onClear:T,onPressEnter:A,readOnly:I,autoSize:N,onKeyDown:P,...O},D)=>{const[_,H]=fn(e,t),U=_==null?"":String(_),[W,z]=q.useState(false),L=q.useRef(false),[G,j]=q.useState(null),K=f.useRef(null),X=f.useRef(null),k=()=>X.current?.textArea,V=()=>{k().focus();};f.useImperativeHandle(D,()=>({resizableTextArea:X.current,focus:V,blur:()=>{k().blur();},nativeElement:K.current?.nativeElement||k()})),f.useEffect(()=>{z(fe=>!S&&fe);},[S]);const[Q,J]=q.useState(null);q.useEffect(()=>{Q&&k().setSelectionRange(...Q);},[Q]);const te=J7(g,p),ne=te.max??s,re=Number(ne)>0,ie=te.strategy(U),ue=!!ne&&ie>ne,ee=(fe,ge)=>{let Ne=ge;!L.current&&te.exceedFormatter&&te.max&&te.strategy(ge)>te.max&&(Ne=te.exceedFormatter(ge,{max:te.max}),ge!==Ne&&J([k().selectionStart||0,k().selectionEnd||0])),H(Ne),$0(fe.currentTarget,fe,o,Ne);},ae=fe=>{L.current=true,l?.(fe);},ce=fe=>{L.current=false,ee(fe,fe.currentTarget.value),u?.(fe);},se=fe=>{ee(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=>{H(""),V(),$0(k(),fe,o);};let Ee=d,Te;te.show&&(te.showFormatter?Te=te.showFormatter({value:U,count:ie,maxLength:ne}):Te=`${ie}${re?` / ${ne}`:""}`,Ee=q.createElement(q.Fragment,null,Ee,q.createElement("span",{className:Y(`${m}-data-count`,w?.count),style:E?.count},Te)));const Ye=fe=>{M?.(fe),k()?.style.height&&j(true);},Re=!N&&!p&&!i;return q.createElement(Z7,{ref:K,value:U,allowClear:i,handleReset:be,suffix:Ee,prefixCls:m,classNames:{...w,affixWrapper:Y(w?.affixWrapper,{[`${m}-show-count`]:p,[`${m}-textarea-allow-clear`]:i})},disabled:S,focused:W,className:Y(b,ue&&`${m}-out-of-range`),style:{...y,...G&&!Re?{height:"auto"}:{}},dataAttrs:{affixWrapper:{"data-count":typeof Te=="string"?Te:void 0}},hidden:x,readOnly:I,onClear:T},q.createElement(bhe,f3({},O,{autoSize:N,maxLength:s,onKeyDown:$e,onChange:se,onFocus:le,onBlur:pe,onCompositionStart:ae,onCompositionEnd:ce,className:Y(w?.textarea),style:{resize:y?.resize,...E?.textarea},disabled:S,prefixCls:m,onResize:Ye,ref:X,readOnly:I})))}),She=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}}}}}},Che=Gt(["Input","TextArea"],e=>{const t=zt(e,sm(e));return She(t)},am,{resetFont:false}),xhe=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:x,...w}=e,{getPrefixCls:E,direction:M,allowClear:T,autoComplete:A,className:I,style:N,classNames:P,styles:O}=jt("textArea"),D=f.useContext(fo),_=i??D,{status:H,hasFeedback:U,feedbackIcon:W}=f.useContext(Ro),z=rm(H,s),[L,G]=Kt([P,u],[O,g],{props:e}),j=f.useRef(null);f.useImperativeHandle(t,()=>({resizableTextArea:j.current?.resizableTextArea,focus:le=>{UT(j.current?.resizableTextArea?.textArea,le);},blur:()=>j.current?.blur(),nativeElement:j.current?.nativeElement||null}));const K=E("input",n),X=Zn(K),[k,V]=O7(K,d);Che(K,X);const{compactSize:Q,compactItemClassnames:J}=ol(K,M),te=br(le=>o??Q??le),[ne,re]=_1("textArea",b,r),ie=eH(l??T),[ue,ee]=f.useState(false),[ae,ce]=f.useState(false),se=le=>{ee(true),S?.(le);const pe=()=>{ee(false),document.removeEventListener("mouseup",pe);};document.addEventListener("mouseup",pe);},$e=le=>{if(x?.(le),ue&&typeof getComputedStyle=="function"){const pe=j.current?.nativeElement?.querySelector("textarea");pe&&getComputedStyle(pe).resize==="both"&&ce(true);}};return f.createElement(yhe,{autoComplete:A,...w,style:{...G.root,...N,...p},styles:G,disabled:_,allowClear:ie,className:Y(V,X,m,d,J,I,L.root,{[`${K}-textarea-affix-wrapper-resize-dirty`]:ae}),classNames:{...L,textarea:Y({[`${K}-sm`]:te==="small",[`${K}-lg`]:te==="large"},k,L.textarea,ue&&`${K}-mouse-active`),variant:Y({[`${K}-${ne}`]:re},uc(K,z)),affixWrapper:Y(`${K}-textarea-affix-wrapper`,{[`${K}-affix-wrapper-rtl`]:M==="rtl",[`${K}-affix-wrapper-sm`]:te==="small",[`${K}-affix-wrapper-lg`]:te==="large",[`${K}-textarea-show-count`]:y||e.count?.show},k)},prefixCls:K,suffix:U&&f.createElement("span",{className:`${K}-textarea-suffix`},W),showCount:y,ref:j,onResize:$e,onMouseDown:se})}),es=lm;es.Group=Xme;es.Search=mhe;es.TextArea=xhe;es.Password=uhe;es.OTP=the;var whe={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 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 Ehe=(e,t)=>f.createElement(Qn,m3({},e,{ref:t,icon:whe})),e8=f.forwardRef(Ehe);var $he={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 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 Mhe=(e,t)=>f.createElement(Qn,h3({},e,{ref:t,icon:$he})),t8=f.forwardRef(Mhe),The={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:"页码"},Ahe=[10,20,50,100],Rhe=e=>{const{pageSizeOptions:t=Ahe,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}`,x=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===at.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),_=Number.isNaN(Number(O))?0:Number(O);return D-_}),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:x,onKeyUp:E,onBlur:w,"aria-label":n.page}),n.page,N)),q.createElement("li",{className:T},A,I)},Ch=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=Y(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 Ul(){return Ul=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},Ul.apply(this,arguments)}const Nhe=(e,t,n)=>n;function n8(){}function r8(e){const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Qc(e,t,n){const r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}const Phe=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=n8,hideOnSinglePage:g,align:b,showPrevNextJumpers:y=true,showQuickJumper:S,showLessItems:x,showTitle:w=true,onShowSizeChange:E=n8,locale:M=The,style:T,totalBoundaryShowSizeChanger:A=50,disabled:I,simple:N,showTotal:P,showSizeChanger:O=u>A,sizeChangerRender:D,pageSizeOptions:_,itemRender:H=Nhe,jumpPrevIcon:U,jumpNextIcon:W,prevIcon:z,nextIcon:L}=e,G=q.useRef(null),[j,K]=fn(m,d),[X,k]=fn(l,s),V=Math.max(1,Math.min(X,Qc(void 0,j,u))),[Q,J]=q.useState(V);f.useEffect(()=>{J(V);},[V]);const te=Math.max(1,V-(x?3:5)),ne=Math.min(Qc(void 0,j,u),V+(x?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=Qc(void 0,j,u);let he;return Me===""?he=Me:Number.isNaN(Number(Me))?he=Q:Me>=Se?he=Se:he=Number(Me),he}function ue(ye){return r8(ye)&&ye!==V&&r8(u)&&u>0}const ee=u>j?S:false;function ae(ye){(ye.keyCode===at.UP||ye.keyCode===at.DOWN)&&ye.preventDefault();}function ce(ye){const Me=ie(ye);switch(Me!==Q&&J(Me),ye.keyCode){case at.ENTER:le(Me);break;case at.UP:le(Me-1);break;case at.DOWN:le(Me+1);break}}function se(ye){le(ie(ye));}function $e(ye){const Me=Qc(ye,j,u),Se=V>Me&&Me!==0?Me:V;K(ye),J(Se),E?.(V,ye),k(Se),p?.(Se,ye);}function le(ye){if(ue(ye)&&!I){const Me=Qc(void 0,j,u);let Se=ye;return ye>Me?Se=Me:ye<1&&(Se=1),Se!==Q&&J(Se),k(Se),p?.(Se,j),Se}return V}const pe=V>1,be=V<Qc(void 0,j,u);function Ee(){pe&&le(V-1);}function Te(){be&&le(V+1);}function Ye(){le(te);}function Re(){le(ne);}function fe(ye,Me,...Se){(ye.key==="Enter"||ye.charCode===at.ENTER||ye.keyCode===at.ENTER)&&Me(...Se);}function ge(ye){fe(ye,Ee);}function Ne(ye){fe(ye,Te);}function He(ye){fe(ye,Ye);}function We(ye){fe(ye,Re);}function je(ye){const Me=H(ye,"prev",re(z,"prev page"));return q.isValidElement(Me)?q.cloneElement(Me,{disabled:!pe}):Me}function et(ye){const Me=H(ye,"next",re(L,"next page"));return q.isValidElement(Me)?q.cloneElement(Me,{disabled:!be}):Me}function it(ye){(ye.type==="click"||ye.keyCode===at.ENTER)&&le(Q);}let Ke=null;const Oe=Ao(e,{aria:true,data:true}),qe=P&&q.createElement("li",{className:`${t}-total-text`},P(u,[u===0?0:(V-1)*j+1,V*j>u?u:V*j]));let Je=null;const ke=Qc(void 0,j,u);if(g&&u<=j)return null;const Ie=[],lt={rootPrefixCls:t,onClick:le,onKeyPress:fe,showTitle:w,itemRender:H,page:-1,className:o?.item,style:i?.item},Tt=V-1>0?V-1:0,pt=V+1<ke?V+1:ke,Dt=S&&S.goButton,xt=typeof N=="object"?N.readOnly:!N;let Ot=Dt,dt=null;N&&(Dt&&(typeof Dt=="boolean"?Ot=q.createElement("button",{type:"button",onClick:it,onKeyUp:it},M.jump_to_confirm):Ot=q.createElement("span",{onClick:it,onKeyUp:it},Dt),Ot=q.createElement("li",{title:w?`${M.jump_to}${V}/${ke}`:null,className:`${t}-simple-pager`},Ot)),dt=q.createElement("li",{title:w?`${V}/${ke}`:null,className:Y(`${t}-simple-pager`,o?.item),style:i?.item},xt?Q:q.createElement("input",{type:"text","aria-label":M.jump_to,value:Q,disabled:I,onKeyDown:ae,onKeyUp:ce,onChange:ce,onBlur:se,size:3}),q.createElement("span",{className:`${t}-slash`},"/"),ke));const ut=x?1:2;if(ke<=3+ut*2){ke||Ie.push(q.createElement(Ch,Ul({},lt,{key:"noPager",page:1,className:`${t}-item-disabled`})));for(let ye=1;ye<=ke;ye+=1)Ie.push(q.createElement(Ch,Ul({},lt,{key:ye,page:ye,active:V===ye})));}else {const ye=x?M.prev_3:M.prev_5,Me=x?M.next_3:M.next_5,Se=H(te,"jump-prev",re(U,"prev page")),he=H(ne,"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:Y(`${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:We,className:Y(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!W})},he):null);let De=Math.max(1,V-ut),Ce=Math.min(V+ut,ke);V-1<=ut&&(Ce=1+ut*2),ke-V<=ut&&(De=ke-ut*2);for(let Be=De;Be<=Ce;Be+=1)Ie.push(q.createElement(Ch,Ul({},lt,{key:Be,page:Be,active:V===Be})));if(V-1>=ut*2&&V!==3&&(Ie[0]=q.cloneElement(Ie[0],{className:Y(`${t}-item-after-jump-prev`,Ie[0].props.className)}),Ie.unshift(Ke)),ke-V>=ut*2&&V!==ke-2){const Be=Ie[Ie.length-1];Ie[Ie.length-1]=q.cloneElement(Be,{className:Y(`${t}-item-before-jump-next`,Be.props.className)}),Ie.push(Je);}De!==1&&Ie.unshift(q.createElement(Ch,Ul({},lt,{key:1,page:1}))),Ce!==ke&&Ie.push(q.createElement(Ch,Ul({},lt,{key:ke,page:ke})));}let bt=je(Tt);if(bt){const ye=!pe||!ke;bt=q.createElement("li",{title:w?M.prev_page:null,onClick:Ee,tabIndex:ye?null:0,onKeyDown:ge,className:Y(`${t}-prev`,o?.item,{[`${t}-disabled`]:ye}),style:i?.item,"aria-disabled":ye},bt);}let Fe=et(pt);if(Fe){let ye,Me;N?(ye=!be,Me=pe?0:null):(ye=!be||!ke,Me=ye?null:0),Fe=q.createElement("li",{title:w?M.next_page:null,onClick:Te,tabIndex:Me,onKeyDown:Ne,className:Y(`${t}-next`,o?.item,{[`${t}-disabled`]:ye}),style:i?.item,"aria-disabled":ye},Fe);}const Ue=Y(t,r,{[`${t}-start`]:b==="start",[`${t}-center`]:b==="center",[`${t}-end`]:b==="end",[`${t}-simple`]:N,[`${t}-disabled`]:I});return q.createElement("ul",Ul({className:Ue,style:T,ref:G},Oe),qe,bt,N?dt:Ie,Fe,q.createElement(Rhe,{locale:M,rootPrefixCls:t,disabled:I,selectPrefixCls:n,changeSize:$e,pageSize:j,pageSizeOptions:_,quickGo:ee?le:null,goButton:Ot,showSizeChanger:O,sizeChangerRender:D}))},Ihe=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}}}}},Ohe=e=>{const{componentCls:t}=e;return {[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...pA(e),width:e.paginationMiniQuickJumperInputWidth}}}}},Dhe=e=>{const{componentCls:t}=e;return {[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...hA(e)}}}}},_he=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}}}}}},Lhe=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:{...j1(e),...mA(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...V1(e)},width:e.quickJumperInputWidth,height:r("item-size-actual"),boxSizing:"border-box",margin:0,marginInlineStart:r("item-spacing-actual"),marginInlineEnd:r("item-spacing-actual")}}}}},khe=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}}}}},Bhe=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"},...khe(e),...Lhe(e),..._he(e),...Ohe(e),...Dhe(e),...Ihe(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"}}},zhe=e=>{const{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...oi(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Ts(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Ts(e)}}}},gH=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,...am(e)}),vH=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"},sm(e)),Fhe=Gt("Pagination",e=>{const t=vH(e);return [Bhe(t),zhe(t)]},gH),Hhe=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}}}}},Vhe=Jf(["Pagination","bordered"],e=>{const t=vH(e);return Hhe(t)},gH);function o8(e){return f.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[true,e]:[void 0,void 0],[e])}const jhe=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:x}=GF(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),[_,H]=Fhe(D),U=br(l),W=U==="small"||!!(x&&!U&&d),z={...e,size:U},[L,G]=Kt([N,y],[P,b],{props:z}),[j]=zo("Pagination",Q9),K={...j,...u},[X,k]=o8(m),[V,Q]=o8(T),J=X??V,te=k??Q,ne=p||Sc,re=f.useMemo(()=>g?g.map(Number):void 0,[g]),ie=se=>{const{disabled:$e,size:le,onSizeChange:pe,"aria-label":be,className:Ee,options:Te}=se,{className:Ye,onChange:Re}=te||{},fe=Te.find(ge=>String(ge.value)===String(le))?.value;return f.createElement(ne,{disabled:$e,showSearch:true,popupMatchSelectWidth:false,getPopupContainer:ge=>ge.parentNode,"aria-label":be,options:Te,...te,value:fe,onChange:(ge,Ne)=>{pe?.(ge),Re?.(ge,Ne);},size:U,className:Y(Ee,Ye)})},ue=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(Df,null):f.createElement(Pp,null)),le=f.createElement("button",{className:`${D}-item-link`,type:"button",tabIndex:-1},M==="rtl"?f.createElement(Pp,null):f.createElement(Df,null)),pe=f.createElement("a",{className:`${D}-item-link`},f.createElement("div",{className:`${D}-item-container`},M==="rtl"?f.createElement(t8,{className:`${D}-item-link-icon`}):f.createElement(e8,{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(e8,{className:`${D}-item-link-icon`}):f.createElement(t8,{className:`${D}-item-link-icon`}),se));return {prevIcon:$e,nextIcon:le,jumpPrevIcon:pe,jumpNextIcon:be}},[M,D]),ee=E("select",r),ae=Y({[`${D}-${t}`]:!!t,[`${D}-${U}`]:U,[`${D}-mini`]:W,[`${D}-rtl`]:M==="rtl",[`${D}-bordered`]:w.wireframe},A,o,i,L.root,_,H),ce={...G.root,...I,...s};return f.createElement(f.Fragment,null,w.wireframe&&f.createElement(Vhe,{prefixCls:D}),f.createElement(Phe,{...ue,...S,styles:G,classNames:L,style:ce,prefixCls:D,selectPrefixCls:ee,className:ae,locale:K,pageSizeOptions:re,showSizeChanger:J,totalBoundaryShowSizeChanger:S.totalBoundaryShowSizeChanger??O,sizeChangerRender:ie}))},N0=100,bH=N0/5,yH=N0/2-bH/2,zw=yH*2*Math.PI,i8=50,s8=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return f.createElement("circle",{className:Y(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:yH,cx:i8,cy:i8,strokeWidth:bH,style:n})},Uhe=({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:`${zw/4}`,strokeDasharray:`${zw*l/100} ${zw*(100-l)/100}`};return f.createElement("span",{className:Y(r,`${n}-progress`,l<=0&&o)},f.createElement("svg",{viewBox:`0 0 ${N0} ${N0}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},f.createElement(s8,{dotClassName:n,hasCircleCls:true}),f.createElement(s8,{dotClassName:n,style:u})))};function Whe(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:Y(s,r,n>0&&l),style:o},f.createElement("span",{className:Y(i,`${t}-dot-spin`)},[1,2,3,4].map(u=>f.createElement("i",{className:`${t}-dot-item`,key:u})))),f.createElement(Uhe,{prefixCls:t,percent:n}))}function Ghe(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:Y(l.className,s,o),style:{...l.style,...i},percent:r})):f.createElement(Whe,{prefixCls:t,percent:r,className:o,style:i})}const qhe=new kt("antSpinMove",{to:{opacity:1}}),Khe=new kt("antRotate",{to:{transform:"rotate(405deg)"}}),Yhe=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}}}}}},Xhe=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:Khe,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:qhe,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}}}}},Qhe=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}}}},Zhe=e=>{const{controlHeightLG:t,controlHeight:n}=e;return {contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},Jhe=Gt("Spin",e=>{const t=zt(e,{spinDotDefault:e.colorTextDescription});return [Yhe(t),Xhe(t),Qhe(t)]},Zhe),epe=200,a8=[[30,.05],[70,.03],[96,.01]];function tpe(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<a8.length;u+=1){const[d,m]=a8[u];if(s<=d)return s+l*m}return s});},epe)),()=>{o.current&&(clearInterval(o.current),o.current=null);}),[i,e]),i?n:t}let SH;function npe(e,t){return !!e&&!!t&&!Number.isNaN(Number(t))}const G1=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:x,...w}=e,{getPrefixCls:E,direction:M,indicator:T,className:A,style:I,classNames:N,styles:P}=jt("spin"),O=E("spin",t),[D,_]=Jhe(O),[H,U]=f.useState(()=>n&&!npe(n,r)),W=tpe(H,y);f.useEffect(()=>{if(n){const J=Hde(r,()=>{U(true);});return J(),()=>{J?.cancel?.();}}U(false);},[r,n]);const z=br(J=>s??J),L=u??l,G={...e,size:z,spinning:H,tip:L,description:L,fullscreen:g,children:p,percent:W},[j,K]=Kt([N,S],[P,x],{props:G}),X=b??T??SH,k=typeof p<"u",V=k||g,Q=f.createElement(f.Fragment,null,f.createElement(Ghe,{className:Y(j.indicator),style:K.indicator,prefixCls:O,indicator:X,percent:W}),L&&f.createElement("div",{className:Y(`${O}-description`,j.tip,j.description),style:{...K.tip,...K.description}},L));return f.createElement("div",{className:Y(O,{[`${O}-sm`]:z==="small",[`${O}-lg`]:z==="large",[`${O}-spinning`]:H,[`${O}-rtl`]:M==="rtl",[`${O}-fullscreen`]:g},i,j.root,g&&j.mask,V?d:[`${O}-section`,j.section],A,o,D,_),style:{...K.root,...V?{}:K.section,...g?K.mask:{},...I,...m},"aria-live":"polite","aria-busy":H,...w},H&&(V?f.createElement("div",{className:Y(`${O}-section`,j.section),style:K.section},Q):Q),k&&f.createElement("div",{className:Y(`${O}-container`,j.container),style:K.container},p))};G1.setDefaultIndicator=e=>{SH=e;};let ou=null,gu=e=>e(),_p=[],Lp={};function l8(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Lp,i=e?.()||document.body;return {getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const rpe=q.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=f.useContext(wt),i=Lp.prefixCls||o("message"),s=f.useContext(p0),[l,u]=Tz({...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}),ope=q.forwardRef((e,t)=>{const[n,r]=q.useState(l8),o=()=>{r(l8);};q.useEffect(o,[]);const i=TT(),s=i.getRootPrefixCls(),l=i.getIconPrefixCls(),u=i.getTheme(),d=q.createElement(rpe,{ref:t,sync:o,messageConfig:n});return q.createElement(Fo,{prefixCls:s,iconPrefixCls:l,theme:u},i.holderRender?i.holderRender(d):d)}),q1=()=>{if(!ou){const e=document.createDocumentFragment(),t={fragment:e};ou=t,gu(()=>{N1(q.createElement(ope,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,q1());});}}),e);});return}ou.instance&&(_p.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case "open":{gu(()=>{const r=ou.instance.open({...Lp,...e.config});r?.then(e.resolve),e.setCloseFn(r);});break}case "destroy":gu(()=>{ou?.instance.destroy(e.key);});break;default:gu(()=>{var r;const o=(r=ou.instance)[t].apply(r,Xt(e.args));o?.then(e.resolve),e.setCloseFn(o);});}}),_p=[]);};function ipe(e){Lp={...Lp,...e},gu(()=>{ou?.sync?.();});}function spe(e){const t=RT(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i;}};return _p.push(o),()=>{r?gu(()=>{r();}):o.skipped=true;}});return q1(),t}function ape(e,t){const n=RT(r=>{let o;const i={type:e,args:t,resolve:r,setCloseFn:s=>{o=s;}};return _p.push(i),()=>{o?gu(()=>{o();}):i.skipped=true;}});return q1(),n}const lpe=e=>{_p.push({type:"destroy",key:e}),q1();},cpe=["success","info","warning","error","loading"],upe={open:spe,destroy:lpe,config:ipe,useMessage:Az,_InternalPanelDoNotUseOrYouWillBeFired:fre},$A=upe;cpe.forEach(e=>{$A[e]=(...t)=>ape(e,t);});const dpe=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:x}=jt("modal"),w=g(),E=t||g("modal"),M=Zn(w),[T,A]=aF(E,M),[I,N]=Kt([S,d],[x,m],{props:e}),P=`${E}-confirm`;let O={};return i?O={closable:o??false,title:"",footer:"",children:f.createElement(cF,{...e,prefixCls:E,confirmPrefixCls:P,rootPrefixCls:w,content:l})}:O={closable:o??true,title:s,footer:u!==null&&f.createElement(rF,{...e}),children:l},f.createElement(Kz,{prefixCls:E,className:Y(T,`${E}-pure-panel`,i&&P,i&&`${P}-${i}`,n,b,A,M,I.root),style:{...y,...N.root},...p,closeIcon:nF(E,r),closable:o,classNames:I,styles:N,...O})},fpe=TF(dpe);function CH(e){return Sg(mF(e))}const Ds=lF;Ds.useModal=bF;Ds.info=function(t){return Sg(hF(t))};Ds.success=function(t){return Sg(pF(t))};Ds.error=function(t){return Sg(gF(t))};Ds.warning=CH;Ds.warn=CH;Ds.confirm=function(t){return Sg(vF(t))};Ds.destroyAll=function(){for(;hu.length;){const t=hu.pop();t&&t();}};Ds.config=qse;Ds._InternalPanelDoNotUseOrYouWillBeFired=fpe;let nf=null,xy=e=>e(),P0=[],kp={};function c8(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:s}=kp,l=e?.()||document.body;return {getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:s}}const mpe=q.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=f.useContext(wt),i=kp.prefixCls||o("notification"),s=f.useContext(p0),[l,u]=EF({...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}),hpe=q.forwardRef((e,t)=>{const[n,r]=q.useState(c8),o=()=>{r(c8);};q.useEffect(o,[]);const i=TT(),s=i.getRootPrefixCls(),l=i.getIconPrefixCls(),u=i.getTheme(),d=q.createElement(mpe,{ref:t,sync:o,notificationConfig:n});return q.createElement(Fo,{prefixCls:s,iconPrefixCls:l,theme:u},i.holderRender?i.holderRender(d):d)}),MA=()=>{if(!nf){const e=document.createDocumentFragment(),t={fragment:e};nf=t,xy(()=>{N1(q.createElement(hpe,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,MA());});}}),e);});return}nf.instance&&(P0.forEach(e=>{switch(e.type){case "open":{xy(()=>{nf.instance.open({...kp,...e.config});});break}case "destroy":xy(()=>{nf?.instance?.destroy(e.key);});break}}),P0=[]);};function ppe(e){kp={...kp,...e},xy(()=>{nf?.sync?.();});}function xH(e){P0.push({type:"open",config:e}),MA();}const gpe=e=>{P0.push({type:"destroy",key:e}),MA();},vpe=["success","info","warning","error"],bpe={open:xH,destroy:gpe,config:ppe,useNotification:$F,_InternalPanelDoNotUseOrYouWillBeFired:sae},wH=bpe;vpe.forEach(e=>{wH[e]=t=>xH({...t,type:e});});const ype=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}}}}},Spe=e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},EH=Gt("Popconfirm",ype,Spe,{resetStyle:false}),$H=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:s,okText:l,okType:u="primary",icon:d=f.createElement(fg,null),showCancel:m=true,close:p,onConfirm:g,onCancel:b,onPopupClick:y,classNames:S,styles:x}=e,{getPrefixCls:w}=f.useContext(wt),[E]=zo("Popconfirm",As.Popconfirm),M=Lf(o),T=Lf(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:Y(`${t}-title`,S?.title),style:x?.title},M),T&&f.createElement("div",{className:Y(`${t}-description`,S?.content),style:x?.content},T))),f.createElement("div",{className:`${t}-buttons`},m&&f.createElement(ct,{onClick:b,size:"small",...r},s||E?.cancelText),f.createElement(VT,{buttonProps:{size:"small",...PT(u),...n},actionFn:g,close:p,prefixCls:w("btn"),quitOnNullishReturnValue:true,emitEvent:true},l||E?.okText)))},Cpe=e=>{const{prefixCls:t,placement:n,className:r,style:o,...i}=e,{getPrefixCls:s}=f.useContext(wt),l=s("popconfirm",t);return EH(l),f.createElement(t7,{placement:n,className:Y(l,r),style:o,content:f.createElement($H,{prefixCls:l,...i})})},xpe=f.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o,okType:i="primary",icon:s=f.createElement(fg,null),children:l,overlayClassName:u,onOpenChange:d,overlayStyle:m,styles:p,arrow:g,classNames:b,...y}=e,{getPrefixCls:S,className:x,style:w,classNames:E,styles:M,arrow:T,trigger:A}=jt("popconfirm"),[I,N]=fn(e.defaultOpen??false,e.open),P=k1(g,T),O=o||A||"click",D=X=>{N(X),d?.(X);},_=()=>{D(false);},H=X=>e.onConfirm?.call(void 0,X),U=X=>{D(false),e.onCancel?.call(void 0,X);},W=X=>{const{disabled:k=false}=e;k||D(X);},z=S("popconfirm",n),L={...e,placement:r,trigger:O,okType:i,overlayStyle:m,styles:p,classNames:b},[G,j]=Kt([E,b],[M,p],{props:L}),K=Y(z,x,u,G.root);return EH(z),f.createElement(Os,{arrow:P,...Fn(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($H,{okType:i,icon:s,...e,prefixCls:z,close:_,onConfirm:H,onCancel:U,classNames:G,styles:j}),"data-popover-inject":true},l)}),Bp=xpe;Bp._InternalPanelDoNotUseOrYouWillBeFired=Cpe;function df(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=oT(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 cm,$g;function Xo(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 Oa(e,t){return (e>>>t&1)!=0}function gi(e){if(!e)throw new Error("Assertion error")}var Js=(function(){function e(t,n){os(this,e),Ct(this,"modeBits",void 0),Ct(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n;}return is(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e})();cm=Js;Ct(Js,"NUMERIC",new cm(1,[10,12,14]));Ct(Js,"ALPHANUMERIC",new cm(2,[9,11,13]));Ct(Js,"BYTE",new cm(4,[8,16,16]));Ct(Js,"KANJI",new cm(8,[8,10,12]));Ct(Js,"ECI",new cm(7,[0,0,0]));var Yi=is(function e(t,n){os(this,e),Ct(this,"ordinal",void 0),Ct(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n;});$g=Yi;Ct(Yi,"LOW",new $g(0,1));Ct(Yi,"MEDIUM",new $g(1,0));Ct(Yi,"QUARTILE",new $g(2,3));Ct(Yi,"HIGH",new $g(3,2));var Tu=(function(){function e(t,n,r){if(os(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 is(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],o=df(n),i;try{for(o.s();!(i=o.n()).done;){var s=i.value;Xo(s,8,r);}}catch(l){o.e(l);}finally{o.f();}return new e(Js.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);Xo(parseInt(n.substring(o,o+i),10),i*3+1,r),o+=i;}return new e(Js.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)),Xo(i,11,r);}return o<n.length&&Xo(e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(o)),6,r),new e(Js.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)Xo(n,8,r);else if(n<16384)Xo(2,2,r),Xo(n,14,r);else if(n<1e6)Xo(6,3,r),Xo(n,21,r);else throw new RangeError("ECI assignment value out of range");return new e(Js.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=df(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(Tu,"NUMERIC_REGEX",/^[0-9]*$/);Ct(Tu,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/);Ct(Tu,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var il=(function(){function e(t,n,r,o){os(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);}gi(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[];}return is(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;gi(s>>>15==0);for(var l=0;l<=5;l++)this.setFunctionModule(8,l,Oa(s,l));this.setFunctionModule(8,7,Oa(s,6)),this.setFunctionModule(8,8,Oa(s,7)),this.setFunctionModule(7,8,Oa(s,8));for(var u=9;u<15;u++)this.setFunctionModule(14-u,8,Oa(s,u));for(var d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,Oa(s,d));for(var m=8;m<15;m++)this.setFunctionModule(8,this.size-15+m,Oa(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;gi(o>>>18==0);for(var i=0;i<18;i++){var s=Oa(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 x=[],w=function(T){m.forEach(function(A,I){(T!=d-s||I>=u)&&x.push(A[T]);});},E=0;E<m[0].length;E++)w(E);return gi(x.length==l),x}},{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]=Oa(n[r>>>3],7-(r&7)),r++);}}gi(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 x=0,w=df(this.modules),E;try{for(w.s();!(E=w.n()).done;){var M=E.value;x=M.reduce(function(I,N){return I+(N?1:0)},x);}}catch(I){w.e(I);}finally{w.f();}var T=this.size*this.size,A=Math.ceil(Math.abs(x*20-T*10)/T)-1;return gi(0<=A&&A<=9),n+=A*e.PENALTY_N4,gi(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];gi(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=Tu.makeSegments(n);return e.encodeSegments(o,r)}},{key:"encodeBinary",value:function(n,r){var o=Tu.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=Tu.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=[Yi.MEDIUM,Yi.QUARTILE,Yi.HIGH];b<y.length;b++){var S=y[b];l&&d<=e.getNumDataCodewords(u,S)*8&&(g=S);}var x=[],w=df(n),E;try{for(w.s();!(E=w.n()).done;){var M=E.value;Xo(M.mode.modeBits,4,x),Xo(M.numChars,M.mode.numCharCountBits(u),x);var T=df(M.getData()),A;try{for(T.s();!(A=T.n()).done;){var I=A.value;x.push(I);}}catch(D){T.e(D);}finally{T.f();}}}catch(D){w.e(D);}finally{w.f();}gi(x.length==d);var N=e.getNumDataCodewords(u,g)*8;gi(x.length<=N),Xo(0,Math.min(4,N-x.length),x),Xo(0,(8-x.length%8)%8,x),gi(x.length%8==0);for(var P=236;x.length<N;P^=253)Xo(P,8,x);for(var O=[];O.length*8<x.length;)O.push(0);return x.forEach(function(D,_){O[_>>>3]|=D<<7-(_&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 gi(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=df(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 gi(o>>>8==0),o}}]),e})();Ct(il,"MIN_VERSION",1);Ct(il,"MAX_VERSION",40);Ct(il,"PENALTY_N1",3);Ct(il,"PENALTY_N2",3);Ct(il,"PENALTY_N3",40);Ct(il,"PENALTY_N4",10);Ct(il,"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(il,"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 wpe={L:Yi.LOW,M:Yi.MEDIUM,Q:Yi.QUARTILE,H:Yi.HIGH},MH=128,TH="L",AH="#FFFFFF",RH="#000000",NH=false,PH=1,Epe=4,$pe=0,Mpe=.1,IH=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("")},OH=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})})},Tpe=function(t,n,r,o){if(o==null)return null;var i=t.length+r*2,s=Math.floor(n*Mpe),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),x=Math.ceil(u+m-y),w=Math.ceil(d+p-S);b={x:y,y:S,w:x,h:w};}var E=o.crossOrigin;return {x:m,y:p,h:d,w:u,excavation:b,opacity:g,crossOrigin:E}},Ape=function(t,n){return n!=null?Math.max(Math.floor(n),0):t?Epe:$pe},Rpe=(function(){try{new Path2D().addPath(new Path2D);}catch{return  false}return  true})(),DH=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,Xt(Tu.makeSegments(y))),b},[]);return il.encodeSegments(g,wpe[r],o,void 0,void 0,d)},[n,r,o,d]);return q.useMemo(function(){var p=m.getModules(),g=Ape(i,s),b=p.length+g*2,y=Tpe(p,u,g,l);return {cells:p,margin:g,numCells:b,calculatedImageSettings:y,qrcode:m}},[m,u,l,i,s])},Npe=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings","boostLevel"],Ppe=q.forwardRef(function(e,t){var n=e.value,r=e.size,o=r===void 0?MH:r,i=e.level,s=i===void 0?TH:i,l=e.bgColor,u=l===void 0?AH:l,d=e.fgColor,m=d===void 0?RH:d,p=e.includeMargin,g=p===void 0?NH:p,b=e.minVersion,y=b===void 0?PH:b,S=e.marginSize,x=e.style,w=e.imageSettings,E=e.boostLevel,M=z7(e,Npe),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=mT(P,2),D=O[1],_=DH({value:n,level:s,minVersion:y,includeMargin:g,marginSize:S,imageSettings:w,size:o,boostLevel:E}),H=_.margin,U=_.cells,W=_.numCells,z=_.calculatedImageSettings;q.useEffect(function(){if(A.current){var j=A.current,K=j.getContext("2d");if(!K)return;var X=U,k=I.current,V=z!=null&&k!==null&&k.complete&&k.naturalHeight!==0&&k.naturalWidth!==0;V&&z.excavation!=null&&(X=OH(U,z.excavation));var Q=window.devicePixelRatio||1;j.height=j.width=o*Q;var J=o/W*Q;K.scale(J,J),K.fillStyle=u,K.fillRect(0,0,W,W),K.fillStyle=m,Rpe?K.fill(new Path2D(IH(X,H))):U.forEach(function(te,ne){te.forEach(function(re,ie){re&&K.fillRect(ie+H,ne+H,1,1);});}),z&&(K.globalAlpha=z.opacity),V&&K.drawImage(k,z.x+H,z.y+H,z.w,z.h);}}),q.useEffect(function(){D(false);},[T]);var L=rr({height:o,width:o},x),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:L,height:o,width:o,ref:N,role:"img"},M)),G)}),Ipe=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings","boostLevel"],Ope=q.forwardRef(function(e,t){var n=e.value,r=e.size,o=r===void 0?MH:r,i=e.level,s=i===void 0?TH:i,l=e.bgColor,u=l===void 0?AH:l,d=e.fgColor,m=d===void 0?RH:d,p=e.includeMargin,g=p===void 0?NH:p,b=e.minVersion,y=b===void 0?PH:b,S=e.title,x=e.marginSize,w=e.imageSettings,E=e.boostLevel,M=z7(e,Ipe),T=DH({value:n,level:s,minVersion:y,includeMargin:g,marginSize:x,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=OH(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 _=IH(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:_,shapeRendering:"crispEdges"}),D)}),Dpe={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 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 _pe=(e,t)=>f.createElement(Qn,p3({},e,{ref:t,icon:Dpe})),Lpe=f.forwardRef(_pe),kpe=q.createElement(G1,null);function Bpe({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(ct,{type:"link",icon:q.createElement(Lpe,null),onClick:n},t?.refresh)),s=q.createElement("p",{className:`${e}-scanned`},t?.scanned),l={expired:i,loading:kpe,scanned:s};return (r??(m=>l[m.status]))({status:o,locale:t,onRefresh:n})}const zpe=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}}},Fpe=e=>({QRCodeCoverBackgroundColor:new dn(e.colorBgContainer).setA(.96).toRgbString()}),Hpe=Gt("QRCode",e=>{const t=zt(e,{QRCodeTextColor:e.colorText});return zpe(t)},Fpe),Vpe=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:x="transparent",marginSize:w,statusRender:E,classNames:M,styles:T,boostLevel:A,...I}=e,{getPrefixCls:N,className:P,style:O,classNames:D,styles:_}=jt("qrcode"),H={...e,bgColor:x,type:r,size:i,status:d,bordered:m,errorLevel:u},[U,W]=Kt([D,M],[_,T],{props:H}),z=N("qrcode",S),[L,G]=Hpe(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=Ao(I,true),X=Fn(I,Object.keys(K)),k={value:n,size:i,level:u,bgColor:x,fgColor:l,style:{width:g?.width,height:g?.height},imageSettings:o?j:void 0,marginSize:w,boostLevel:A,...K},[V]=zo("QRCode");if(!n)return null;const Q=Y(z,b,y,L,G,P,U.root,{[`${z}-borderless`]:!m}),J={backgroundColor:x,...W.root,...O,...g,width:g?.width??i,height:g?.height??i};return q.createElement("div",{...X,className:Q,style:J},d!=="active"&&q.createElement("div",{className:Y(`${z}-cover`,U.cover),style:W.cover},q.createElement(Bpe,{prefixCls:z,locale:V,status:d,onRefresh:p,statusRender:E})),r==="canvas"?q.createElement(Ppe,{...k}):q.createElement(Ope,{...k}))};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 _H=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,x]=fn(r??false,n);function w(A,I){let N=S;return o||(N=A,x(N),d?.(N,I)),N}function E(A){A.which===at.LEFT?w(false,A):A.which===at.RIGHT&&w(true,A),m?.(A);}function M(A){const I=w(!S,A);u?.(I,A);}const T=Y(e,t,{[`${e}-checked`]:S,[`${e}-disabled`]:o});return f.createElement("button",g3({},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:Y(`${e}-inner-checked`,g?.content),style:p?.content},s),f.createElement("span",{className:Y(`${e}-inner-unchecked`,g?.content),style:p?.content},l)))});_H.displayName="Switch";const jpe=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()}}}}}}},Upe=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}}}},Wpe=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`,...Ua(),"&::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:'""',...Ua()}},[`&${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}}}}},Gpe=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(", "),...Ua(),[`${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(", "),...Ua()},[`${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()}}}}}},qpe=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",...Ua(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...oi(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"}}}},Kpe=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}},Ype=Gt("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 [qpe(t),Gpe(t),Wpe(t),Upe(t),jpe(t)]},Kpe),Xpe=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,...x}=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,_=M("switch",n),[H,U]=Ype(_),W=br(r),z={...e,size:W,disabled:D},[L,G]=Kt([N,S],[P,y],{props:z}),j=f.createElement("div",{className:Y(`${_}-handle`,L.indicator),style:G.indicator},i&&f.createElement(R1,{className:`${_}-loading-icon`})),K=Y(A,{[`${_}-small`]:W==="small",[`${_}-loading`]:i,[`${_}-rtl`]:T==="rtl"},s,l,L.root,H,U),X={...G.root,...I,...u},k=(...V)=>{E(V[0]),b?.(...V);};return f.createElement(hg,{component:"Switch",disabled:D},f.createElement(_H,{...x,classNames:L,styles:G,checked:w,onChange:k,prefixCls:_,className:K,style:X,disabled:D,ref:t,loadingIcon:j}))}),LH=Xpe;LH.__ANT_SWITCH=true;const Qpe=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}}}}},TA=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})},AA=e=>{const t=FT(new Jo(e.colorBgSolid),"#fff")?"#000":"#fff";return {defaultBg:new dn(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},RA=Gt("Tag",e=>{const t=TA(e);return Qpe(t)},AA),kH=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,x=A=>{S||(u?.(!i),d?.(A));},w=g("tag",n),[E,M]=RA(w),T=Y(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:x},l,f.createElement("span",null,s))}),Zpe=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:x,direction:w,className:E,style:M,classNames:T,styles:A}=jt("tag"),I=x("tag",r),N=`${I}-checkable-group`,P=Zn(I),[O,D]=RA(I,P),[_,H]=Kt([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),L=(K,X)=>{let k=null;if(y){const V=W||[];k=K?[].concat(Xt(V),[X.value]):V.filter(Q=>Q!==X.value);}else k=K?X.value:null;z(k),b?.(k);},G=q.useRef(null);f.useImperativeHandle(t,()=>({nativeElement:G.current}));const j=Ao(S,{aria:true,data:true});return q.createElement("div",{...j,className:Y(N,E,o,{[`${N}-disabled`]:d,[`${N}-rtl`]:w==="rtl"},O,D,i,_.root),style:{...M,...H.root,...s},id:n,ref:G},U.map(K=>q.createElement(kH,{key:K.value,className:Y(`${N}-item`,_.item),style:H.item,checked:y?(W||[]).includes(K.value):W===K.value,onChange:X=>L(X,K),disabled:d},K.label)))});function Jpe(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=B1(n),d=dce(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 ege=e=>E1(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}}})),tge=Jf(["Tag","preset"],e=>{const t=TA(e);return ege(t)},AA);function nge(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Nb=(e,t,n)=>{const r=nge(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}`]}}}},rge=Jf(["Tag","status"],e=>{const t=TA(e);return [Nb(t,"success","Success"),Nb(t,"processing","Info"),Nb(t,"error","Error"),Nb(t,"warning","Warning")]},AA),oge=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:x,...w}=e,{getPrefixCls:E,direction:M,className:T,variant:A,style:I,classNames:N,styles:P}=jt("tag"),[O,D,_,H,U]=Jpe(e,A),W=_||H,z=f.useContext(fo),L=g??z,{tag:G}=f.useContext(wt),[j,K]=f.useState(true),X=Fn(w,["closeIcon","closable"]),k={...e,color:D,variant:O,disabled:L},[V,Q]=Kt([N,x],[P,S],{props:k}),J=f.useMemo(()=>{let pe={...Q.root,...I,...i};return L||(pe={...U,...pe}),pe},[Q.root,I,i,U,L]),te=E("tag",n),[ne,re]=RA(te),ie=Y(te,T,V.root,`${te}-${O}`,{[`${te}-${D}`]:W,[`${te}-hidden`]:!j,[`${te}-rtl`]:M==="rtl",[`${te}-disabled`]:L},r,o,ne,re),ue=pe=>{L||(pe.stopPropagation(),m?.(pe),!pe.defaultPrevented&&K(false));},[,ee]=wT(sc(e),sc(G),{closable:false,closeIconRender:pe=>{const be=f.createElement("span",{className:`${te}-close-icon`,onClick:ue},pe);return gz(pe,be,Ee=>({onClick:Te=>{Ee?.onClick?.(Te),ue(Te);},className:Y(Ee?.className,`${te}-close-icon`)}))}}),ae=typeof w.onClick=="function"||s&&s.type==="a",ce=qr(l,{className:Y(f.isValidElement(l)?l.props?.className:void 0,V.icon),style:Q.icon}),se=ce?f.createElement(f.Fragment,null,ce,s&&f.createElement("span",{className:V.content,style:Q.content},s)):s,$e=b?"a":"span",le=f.createElement($e,{...X,ref:t,className:ie,style:J,href:L?void 0:b,target:y,onClick:L?void 0:X.onClick,...b&&L?{"aria-disabled":true}:{}},se,ee,_&&f.createElement(tge,{key:"preset",prefixCls:te}),H&&f.createElement(rge,{key:"status",prefixCls:te}));return ae?f.createElement(hg,{component:"Tag"},le):le}),ws=oge;ws.CheckableTag=kH;ws.CheckableTagGroup=Zpe;const ige=e=>{const t=e?.algorithm?n0(e.algorithm):gT,n={...If,...e?.token};return f9(n,{override:e?.token},t,D9)};function sge(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 age=(e,t)=>{const n=t??w1(e),r=n.fontSizeSM,o=n.controlHeight-4;return {...n,...sge(t??e),...O9(r),controlHeight:o,...I9({...n,controlHeight:o})}},Vi=(e,t)=>new dn(e).setA(t).toRgbString(),Zc=(e,t)=>new dn(e).lighten(t).toHexString(),u8=e=>{const t=ug(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]}},lge=(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:Zc(n,12),colorBgContainer:Zc(n,8),colorBgLayout:Zc(n,0),colorBgSpotlight:Zc(n,26),colorBgBlur:Vi(r,.04),colorBorder:Zc(n,26),colorBorderDisabled:Zc(n,26),colorBorderSecondary:Zc(n,19)}},cge=(e,t)=>{const n=Object.keys(pT).map(s=>{const l=ug(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??w1(e),o=P9(e,{generateColorPalettes:u8,generateNeutralColorPalettes:lge}),i=oa.reduce((s,l)=>{const u=e[l];if(u){const d=u8(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 uge(){const[e,t,n,r]=Xr();return {theme:e,token:t,hashId:n,cssVar:r}}const I0={defaultSeed:Ap.token,useToken:uge,defaultAlgorithm:w1,darkAlgorithm:cge,compactAlgorithm:age,getDesignToken:ige,defaultConfig:Ap,_internalContext:vT},O0=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},dge=e=>{const t=new Map;return e.forEach(({disabled:n,key:r},o)=>{n&&t.set(r,o);}),t};function fge(e,t){const n=e==="right";return t!=="rtl"?n?q.createElement(Df,null):q.createElement(Pp,null):n?q.createElement(Pp,null):q.createElement(Df,null)}const d8=({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=fge(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(ct,{type:"primary",size:"small",disabled:l||!p,onClick:b=>m?.(b),icon:g},d)},BH=e=>{const{className:t,style:n,oneWay:r,actions:o,...i}=e;return q.createElement("div",{className:t,style:n},q.createElement(d8,{type:"right",actions:o,...i}),!r&&q.createElement(d8,{type:"left",actions:o,...i}),o.slice(r?1:2))},mge=(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=O0(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)]},hge=[];function Pb(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function f8(e){return Array.from(e).join(";")}function pge(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(hge,n),l=f.useMemo(()=>Pb(i,r),[i,r]),u=f.useMemo(()=>Pb(i,o),[i,o]);f.useEffect(()=>{s([].concat(Xt(Pb(i,r)),Xt(Pb(i,o))));},[f8(r),f8(o)]);const d=Mt(p=>{s([].concat(Xt(p),Xt(u)));}),m=Mt(p=>{s([].concat(Xt(l),Xt(p)));});return [l,u,d,m]}const zH=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(lm,{placeholder:t,className:r,value:n,onChange:l,disabled:o,allowClear:true,prefix:f.createElement(nA,null)})};var gge={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 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 vge=(e,t)=>f.createElement(Qn,v3({},e,{ref:t,icon:gge})),bge=f.forwardRef(vge),yge=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=Y(`${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]=zo("Transfer",As.Transfer),x={className:b,style:r.item,title:y},w=f.createElement("span",{className:Y(`${t}-content-item-text`,n.itemContent),style:r.itemContent},i);return p?f.createElement("li",{...x},w,f.createElement("button",{type:"button",disabled:g,className:`${t}-content-item-remove`,"aria-label":S?.remove,onClick:()=>m?.(s)},f.createElement(bge,null))):(x.onClick=g?void 0:E=>d(s,E),f.createElement("li",{...x},f.createElement(Ni,{className:Y(`${t}-checkbox`,n.itemIcon),style:r.itemIcon,checked:l,disabled:g}),w))},Sge=f.memo(yge),Cge=["handleFilter","handleClear","checkedKeys"],xge=e=>({...{simple:true,showSizeChanger:false,showLessItems:false},...e}),wge=(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?xge(typeof d=="object"?d:{}):null,[d]),[x,w]=fn(10,S?.pageSize);f.useEffect(()=>{if(S){const P=Math.ceil(i.length/x);y(Math.min(b,P));}},[i,S,x]);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)*x,b*x):i,[b,i,S,x]);f.useImperativeHandle(t,()=>({items:I}));const N=S?f.createElement(jhe,{size:"small",disabled:l,simple:S.simple,pageSize:x,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:Y(`${n}-content`,r.list,{[`${n}-content-show-remove`]:u}),style:o.list,onScroll:m},(I||[]).map(({renderedEl:P,renderedText:O,item:D})=>f.createElement(Sge,{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)},Ege=f.forwardRef(wge),$ge=()=>null;function Mge(e){return !!(e&&!q.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function xh(e){return e.filter(t=>!t.disabled).map(t=>t.key)}function Tge(e,t){for(const n of [e,t.title,t.key])if(typeof n=="string"||typeof n=="number")return String(n);return ""}const Age=e=>e!==void 0,Rge=e=>e&&typeof e=="object"?{...e,defaultValue:e.defaultValue||""}:{defaultValue:"",placeholder:""},b3=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:x,removeCurrent:w,showSelectAll:E=true,showRemove:M,pagination:T,direction:A,itemsUnit:I,itemUnit:N,selectAllLabel:P,selectionsIcon:O,footer:D,renderList:_,onItemSelectAll:H,onItemRemove:U,handleFilter:W,handleClear:z,filterOption:L,render:G=$ge}=e,j=`${t}-section`,K=`${t}-list`,X=Rge(d),[k,V]=f.useState(X.defaultValue),Q=f.useRef({}),J=fe=>{V(fe.target.value),W(fe);},te=()=>{V(""),z();},ne=(fe,ge)=>typeof L=="function"?L(k,ge,A):fe.includes(k),re=fe=>{let ge=_?_({...fe,onItemSelect:(He,We)=>fe.onItemSelect(He,We)}):null;const Ne=!!ge;return Ne||(ge=q.createElement(Ege,{ref:Q,...fe,prefixCls:K})),{customize:Ne,bodyContent:ge}},ie=fe=>{const ge=G(fe),Ne=Mge(ge),He=Ne?ge.label:ge,We=Ne?ge.value:Tge(ge,fe);return {item:fe,renderedEl:He,renderedText:We}},ue=f.useMemo(()=>Array.isArray(p)?p[A==="left"?0:1]:p,[p,A]),[ee,ae]=f.useMemo(()=>{const fe=[],ge=[];return i.forEach(Ne=>{const He=ie(Ne);k&&!ne(He.renderedText,Ne)||(fe.push(Ne),ge.push(He));}),[fe,ge]},[i,k]),ce=f.useMemo(()=>ee.filter(fe=>l.includes(fe.key)&&!fe.disabled),[l,ee]),se=f.useMemo(()=>{if(ce.length===0)return "none";const fe=O0(l);return ee.every(ge=>fe.has(ge.key)||!!ge.disabled)?"all":"part"},[ce.length,l,ee]),$e=()=>{const fe=d?q.createElement("div",{className:`${K}-body-search-wrapper`},q.createElement(zH,{prefixCls:`${K}-search`,onChange:J,handleClear:te,placeholder:X.placeholder||m,value:k,disabled:u})):null,{customize:ge,bodyContent:Ne}=re({...Fn(e,Cge),filteredItems:ee,filteredRenderItems:ae,selectedKeys:l,classNames:r,styles:o});let He;return ge?He=q.createElement("div",{className:`${K}-body-customize-wrapper`},Ne):He=ee.length?Ne:q.createElement("div",{className:`${K}-body-not-found`},ue),q.createElement("div",{className:Y(`${K}-body`,{[`${K}-body-with-search`]:d},r.body),style:o.body},fe,He)},le=q.createElement(Ni,{disabled:i.filter(fe=>!fe.disabled).length===0||u,checked:se==="all",indeterminate:se==="part",className:`${K}-checkbox`,onChange:()=>{H?.(ee.filter(fe=>!fe.disabled).map(({key:fe})=>fe),se!=="all");}}),pe=(fe,ge)=>{if(P)return typeof P=="function"?P({selectedCount:fe,totalCount:ge}):P;const Ne=ge>1?I:N;return q.createElement(q.Fragment,null,(fe>0?`${fe}/`:"")+ge," ",Ne)},be=D&&(D.length<2?D(e):D(e,{direction:A})),Ee=be?q.createElement("div",{className:Y(`${K}-footer`,r.footer),style:o.footer},be):null,Te=!M&&!T&&le;let Ye;M?Ye=[T?{key:"removeCurrent",label:w,onClick(){const fe=xh((Q.current?.items||[]).map(ge=>ge.item));U?.(fe);}}:null,{key:"removeAll",label:x,onClick(){U?.(xh(ee));}}].filter(Boolean):Ye=[{key:"selectAll",label:se==="all"?b:g,onClick(){const fe=xh(ee);H?.(fe,fe.length!==l.length);}},T?{key:"selectCurrent",label:y,onClick(){const fe=Q.current?.items||[];H?.(xh(fe.map(ge=>ge.item)),true);}}:null,{key:"selectInvert",label:S,onClick(){const fe=xh((Q.current?.items||[]).map(He=>He.item)),ge=new Set(l),Ne=new Set(ge);fe.forEach(He=>{ge.has(He)?Ne.delete(He):Ne.add(He);}),H?.(Xt(Ne),"replace");}}];const Re=q.createElement(wc,{className:`${K}-header-dropdown`,menu:{items:Ye},disabled:u},Age(O)?O:q.createElement(tA,null));return q.createElement("div",{className:Y(j,r.section,{[`${j}-with-pagination`]:!!T,[`${j}-with-footer`]:!!be}),style:{...n,...o.section}},q.createElement("div",{className:Y(`${K}-header`,r.header),style:o.header},E?q.createElement(q.Fragment,null,Te,Re):null,q.createElement("span",{className:`${K}-header-selected`},pe(ce.length,ee.length)),q.createElement("span",{className:Y(`${K}-header-title`,r.title),style:o.title},s)),$e(),Ee)},Nge=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"}}}},m8=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-section`]:{borderColor:t,[`${n}-list-search:not([disabled])`]:{borderColor:r}}}},Pge=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:{...m8(e,e.colorError)},[`${t}-status-warning`]:{...m8(e,e.colorWarning)}}},Ige=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:x,paddingSM:w,lineType:E,antCls:M,iconCls:T,motionDurationSlow:A,controlItemBgHover:I,borderRadiusLG:N,colorBgContainer:P,colorText:O,controlItemBgActiveHover:D}=e,_=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":{...ia,flex:"0 1 auto",textAlign:"end",marginInlineStart:"auto"},"&-dropdown":{...Yu(),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 ${_} ${_}`,"&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${oe(u)} ${oe(w)}`,transition:`all ${A}`,"> *:not(:last-child)":{marginInlineEnd:x},"> *":{flex:"none"},"&-text":{...ia,flex:"auto"},"&-remove":{...ute(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}}}},Oge=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`]:Ige(e),[`${r}-actions`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${oe(o)}`,verticalAlign:"middle",gap:i,[`${t}-btn ${n}`]:{fontSize:s}}}}},Dge=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},_ge=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)}},Lge=Gt("Transfer",e=>{const t=zt(e);return [Oge(t),Nge(t),Pge(t),Dge(t)]},_ge),K1=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:x,disabled:w,showSearch:E=false,showSelectAll:M,oneWay:T,pagination:A,status:I,selectionsIcon:N,filterOption:P,render:O,footer:D,children:_,rowKey:H,onScroll:U,onChange:W,onSearch:z,onSelectChange:L}=e,{getPrefixCls:G,renderEmpty:j,direction:K,className:X,style:k,classNames:V,styles:Q,selectionsIcon:J}=jt("transfer"),te=f.useContext(fo),ne=w??te,re={...e,disabled:ne},ie=G("transfer",t),[ue,ee]=Lge(ie),ae=m||d||[],ce=K==="rtl",[se,$e,le]=mge(p,H,g),[pe,be,Ee,Te]=pge($e,le,b),[Ye,Re]=X5(Qe=>Qe.key),[fe,ge]=X5(Qe=>Qe.key),Ne=f.useCallback((Qe,Ge)=>{if(Qe==="left"){const mt=typeof Ge=="function"?Ge(pe||[]):Ge;Ee(mt);}else {const mt=typeof Ge=="function"?Ge(be||[]):Ge;Te(mt);}},[pe,be]),He=(Qe,Ge)=>{(Qe==="left"?Re:ge)(Ge);},We=f.useCallback((Qe,Ge)=>{Qe==="left"?L?.(Ge,be):L?.(pe,Ge);},[pe,be]),je=Qe=>x??Qe.titles??[],et=Qe=>{U?.("left",Qe);},it=Qe=>{U?.("right",Qe);},Ke=Qe=>{const Ge=Qe==="right"?pe:be,mt=dge(se),Nt=Ge.filter(Nn=>!mt.has(Nn)),Ut=O0(Nt),Jt=Qe==="right"?Nt.concat(g):g.filter(Nn=>!Ut.has(Nn)),nn=Qe==="right"?"left":"right";Ne(nn,[]),We(nn,[]),W?.(Jt,Qe,Nt);},Oe=()=>{Ke("left"),He("left",null);},qe=()=>{Ke("right"),He("right",null);},Je=(Qe,Ge,mt)=>{Ne(Qe,Nt=>{let Ut=[];if(mt==="replace")Ut=Ge;else if(mt)Ut=Array.from(new Set([].concat(Xt(Nt),Xt(Ge))));else {const Jt=O0(Ge);Ut=Nt.filter(nn=>!Jt.has(nn));}return We(Qe,Ut),Ut}),He(Qe,null);},ke=(Qe,Ge)=>Je("left",Qe,Ge),Ie=(Qe,Ge)=>Je("right",Qe,Ge),lt=Qe=>z?.("left",Qe.target.value),Tt=Qe=>z?.("right",Qe.target.value),pt=()=>z?.("left",""),Dt=()=>z?.("right",""),xt=(Qe,Ge,mt,Nt,Ut)=>{Ge.has(mt)&&(Ge.delete(mt),He(Qe,null)),Nt&&(Ge.add(mt),He(Qe,Ut));},Ot=(Qe,Ge,mt,Nt)=>{(Qe==="left"?Ye:fe)(Nt,Ge,mt);},dt=(Qe,Ge,mt,Nt)=>{const Ut=Qe==="left",Jt=Ut?pe:be,nn=new Set(Jt),Nn=(Ut?$e:le).filter(vo=>!vo.disabled),ir=Nn.findIndex(vo=>vo.key===Ge);Nt&&Jt.length>0?Ot(Qe,Nn,nn,ir):xt(Qe,nn,Ge,mt,ir);const Sn=Array.from(nn);We(Qe,Sn),e.selectedKeys||Ne(Qe,Sn);},ut=(Qe,Ge,mt)=>{dt("left",Qe,Ge,mt?.shiftKey);},bt=(Qe,Ge,mt)=>dt("right",Qe,Ge,mt?.shiftKey),Fe=Qe=>{Ne("right",[]),W?.(g.filter(Ge=>!Qe.includes(Ge)),"left",Xt(Qe));},Ue=Qe=>typeof l=="function"?l({direction:Qe}):l||{},ye=f.useContext(Ro),{hasFeedback:Me,status:Se}=ye,he=Qe=>({...Qe,notFoundContent:j?.("Transfer")||q.createElement(UF,{componentName:"Transfer"}),...S}),De=rm(Se,I),Ce=!_&&A,Be=le.filter(Qe=>be.includes(Qe.key)&&!Qe.disabled).length>0,Xe=$e.filter(Qe=>pe.includes(Qe.key)&&!Qe.disabled).length>0,[st,ft]=Kt([V,o],[Q,i],{props:re}),Et=Y(ie,{[`${ie}-disabled`]:ne,[`${ie}-customize-list`]:!!_,[`${ie}-rtl`]:ce},uc(ie,De,Me),X,n,r,ue,ee,st.root),[At]=zo("Transfer",As.Transfer),Rt=he(At),[yn,Wn]=je(Rt),tt=N??J;return q.createElement("div",{className:Et,style:{...k,...ft.root,...s}},q.createElement(b3,{prefixCls:ie,style:Ue("left"),classNames:st,styles:ft,titleText:yn,dataSource:$e,filterOption:P,checkedKeys:pe,handleFilter:lt,handleClear:pt,onItemSelect:ut,onItemSelectAll:ke,render:O,showSearch:E,renderList:_,footer:D,onScroll:et,disabled:ne,direction:ce?"right":"left",showSelectAll:M,selectAllLabel:y[0],pagination:Ce,selectionsIcon:tt,...Rt}),q.createElement(BH,{className:Y(`${ie}-actions`,st.actions),rightActive:Xe,moveToRight:qe,leftActive:Be,actions:ae,moveToLeft:Oe,style:{...u,...ft.actions},disabled:ne,direction:K,oneWay:T}),q.createElement(b3,{prefixCls:ie,style:Ue("right"),classNames:st,styles:ft,titleText:Wn,dataSource:le,filterOption:P,checkedKeys:be,handleFilter:Tt,handleClear:Dt,onItemSelect:bt,onItemSelectAll:Ie,onItemRemove:Fe,render:O,showSearch:E,renderList:_,footer:D,onScroll:it,disabled:ne,direction:ce?"left":"right",showSelectAll:M,selectAllLabel:y[1],showRemove:T,pagination:Ce,selectionsIcon:tt,...Rt}))};K1.List=b3;K1.Search=zH;K1.Operation=BH;const{proxyStateMap:kge}=jM(),Bge=e=>kge.has(e),y3=new Set;BQ("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 y3)l(o,i,s);return r(o,i,s)},n});const Fw=[],zge=e=>{Fw.length?Fw[Fw.length-1].add(e):e();};function Fge(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=NI(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=ua(u,()=>zge(o),true);t.set(u,d);}},s=()=>{n.clear();const u=(d,m,p)=>{if(!Bge(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,NI(b)]);};y3.add(u);try{e();}finally{y3.delete(u),i();}};return s(),()=>{for(const u of t.values())u();t.clear(),n.clear();}}function Hge(e,t){const n=Fge(e);return ()=>{n();}}function kf(e,t,n){return e<t?t:e>n?n:e}function Vge(e){return e.value}var NA=class FH{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 FH(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=Vge(n);try{return await t(r)}finally{this.idleState.set(n,true),setTimeout(()=>this.replenish(n));}}};async function sa(e,t,n){if(!e.length)return [];n=Math.min(n,e.length);const r=NA.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 PA(e){const t=NA.fromConcurrency(e,"pLimit");return function(r,...o){return t.dispatch(()=>r(...o))}}var jge=Uge;function Uge(e,t){const n=NA.fromConcurrency(t,"createLimitedVersionOfFn");return function(...o){return n.dispatch(()=>e(...o))}}function IA(e,t,n,r){let o=e[t];return ua(e,()=>{const i=e[t];Object.is(o,i)||n(o=i);},r)}const{proxyStateMap:Wge,snapCache:Gge}=jM(),Ib=e=>Wge.has(e);function HH(e){const t=[];let n=0;const r=new Map,o=new WeakMap,i=()=>{const d=Gge.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 Ib(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(!Ib(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(!Ib(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(!Ib(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=Dn(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:qge,snapCache:Kge}=jM(),Ob=e=>typeof e=="object"?Dn({x:e}).x:e,Db=e=>qge.has(e);function Or(e){const t=[],n=new Map;let r=0;const o=new WeakMap,i=()=>{const x=Kge.get(y),w=x?.[1];if(w&&!o.has(w)){const E=new Map(n);o.set(w,E);}},s=x=>o.get(x)||n;if(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("not iterable");for(const x of e)if(!n.has(x)){const w=Ob(x);n.set(w,r),t[r++]=w;}}const l=x=>typeof x=="object"&&x!==null&&Symbol.iterator in x,u=x=>typeof x.forEach=="function",d=x=>{if(l(x))return x;if(u(x)){const w=[];return x.forEach(E=>w.push(E)),w}throw new TypeError("Expected an iterable")};function m(x){this.epoch;const w=Or(d(x)),E=Or();for(const M of this.values())w.has(M)&&E.add(M);return Or(E)}function p(x){this.epoch;const w=Or(d(x)),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(x){this.epoch;const w=Or(d(x)),E=Or();for(const M of this.values())w.has(M)||E.add(M);return Or(E)}function b(x){this.epoch;const w=Or(d(x)),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 Db(this)||i(),n.size},has(x){const w=s(this),E=Ob(x);return this.epoch,w.has(E)},add(x){if(!Db(this))throw new Error("Cannot perform mutations on a snapshot");const w=Ob(x);return n.has(w)||(n.set(w,this.index),this.data[this.index++]=w,this.epoch++),this},delete(x){if(!Db(this))throw new Error("Cannot perform mutations on a snapshot");const w=Ob(x),E=n.get(w);return E===void 0?false:(delete this.data[E],n.delete(w),this.epoch++,true)},clear(){if(!Db(this))throw new Error("Cannot perform mutations on a snapshot");this.data.length=0,this.index=0,this.epoch++,n.clear();},forEach(x){this.epoch,s(this).forEach(E=>{x(this.data[E],this.data[E],this);});},*values(){this.epoch;const x=s(this);for(const w of x.values())yield this.data[w];},keys(){return this.epoch,this.values()},*entries(){this.epoch;const x=s(this);for(const w of x.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(x){this.epoch;for(const w of this.values())if(!x.has(w))return  false;return  true},isSupersetOf(x){this.epoch;const w=d(x);for(const E of w)if(!this.has(E))return  false;return  true},isDisjointFrom(x){this.epoch;for(const w of this.values())if(x.has(w))return  false;return  true}},S=Dn(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 Yge=typeof GM_info<"u"&&GM_info.scriptHandler==="Userscripts";function yi(e,t=true){if(e.startsWith("/")&&(e=location.origin+e),Yge){GM.openInTab(e,!t);return}GM.openInTab(e,{active:t,insert:true,setParent:true});}function OA({storageKey:e,onUpdate:t,setPersist:n}){if(typeof GM_addValueChangeListener>"u")return;const r=PA(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 Ec(e){const t=Dn({value:e()});function n(){return gt(t).value}function r(){return t.value}function o(){return t.value=e()}const i=ca(o,100,{edges:["leading","trailing"]});return {state:t,use:n,get:r,update:o,updateThrottled:i}}function VH(e,t,n){let r=ku(Br(e),t);ua(e,()=>{const o=Br(e),i=ku(o,t);Mi(r,i)||n(o),r=i;});}function DA(e,t){t.startsWith(Lo)||(t=`${Kr}:${t}`);const n=Object.keys(e),[r,o]=oc(()=>{const s=localStorage.getItem(t);if(!s)return;const l=JSON.parse(s);return ku(l,n)});r&&Bo("failed to load from localStorage key=",t,"error=",r);const i=Dn({...e,...o});return setTimeout(()=>{ua(i,()=>{const s=Br(i);localStorage.setItem(t,JSON.stringify(s));});}),i}async function _A(e,t){async function n(){const o=Object.keys(e);return ku(await GM.getValue(t)||{},o)}const r=Dn({...e,...await n()});return setTimeout(()=>{const o=PA(1);ua(r,()=>o(async()=>{const i=await n(),s=fQ(i,Br(r));GM.setValue(t,s);}));}),r}async function jH(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(){ua(n,()=>{o&&GM.setValue(e,Array.from(Br(n)));}),OA({storageKey:e,setPersist:s=>o=s,onUpdate:r});}return {set:n,replaceAllWith:r}}async function LA(e,t){const r=HH(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(){ua(r,()=>{if(!i)return;let l=Array.from(Br(r));GM.setValue(e,l);}),OA({storageKey:e,setPersist:l=>i=l,onUpdate:o});}return {map:r,replaceAllWith:o}}const Xge=()=>document.querySelector(".bili-header__bar"),kA=Ec(UH);function UH(){const e=Xge();return !!(e&&window.getComputedStyle(e).display==="none")}const Hu=Ec(function(){if(!UH())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=Ec(function(){const t=document.documentElement.style.getPropertyValue("--navbar-bounds-padding");return !t||!/^\d+%$/.test(t)?void 0:100-kf(Number(t.replace("%","")),2,10)*2});function Qge(){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 Mg=Ec(function(){return window.getComputedStyle(document.documentElement).getPropertyValue("--theme-color")}),WH=`${Kr}:evolved-theme-color-hex`;Hge(()=>{const e=Mg.get();e&&localStorage.setItem(WH,e);});function GH(){return localStorage.getItem(WH)||Yf.Pink}function Zge(){kA.updateThrottled(),Hu.updateThrottled(),BA.updateThrottled(),Mg.updateThrottled();}const qH=new MutationObserver(()=>Zge());qH.observe(document.documentElement,{attributes:true,attributeFilter:["style"]});qH.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(Mg.updateThrottled,1e3);},{capture:true,passive:true});const KH={maxCount:5,top:Hu.get()-4};$A.config(KH);function Jge(){const e=Hu.use();return C(Cg,{message:{...KH,top:e-4},children:C(eve,{})})}let _b,Wt=$A,ys=wH,zA=Ds;function eve(){return _b=Cg.useApp(),Wt=_b.message,ys=_b.notification,zA=_b.modal,null}function Ci(e){return e.filter(Boolean).filter(t=>t.test===void 0?true:typeof t.test=="boolean"?t.test:t.test()).map(t=>dB(t,["test"]))}const tve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"}),C("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"})]}),nve=f.forwardRef(tve);function Tg(e){return t=>e({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",...t})}const rve=Tg(e=>C("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",...e,children:C("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"})})),ove=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{children:[C("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.14}),C("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.29,transform:"rotate(30 12 12)"}),C("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.43,transform:"rotate(60 12 12)"}),C("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.57,transform:"rotate(90 12 12)"}),C("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.71,transform:"rotate(120 12 12)"}),C("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.86,transform:"rotate(150 12 12)"}),C("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",transform:"rotate(180 12 12)"}),C("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"})]})]}),FA=f.forwardRef(ove),ive=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 256 256",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"currentColor",children:[C("path",{d:"M80 104v104H32a8 8 0 0 1-8-8v-88a8 8 0 0 1 8-8Z",opacity:.2}),C("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"})]})]}),sve=f.forwardRef(ive),ave=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 256 256",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"currentColor",children:[C("path",{d:"M80 48v104H32a8 8 0 0 1-8-8V56a8 8 0 0 1 8-8Z",opacity:.2}),C("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"})]})]}),lve=f.forwardRef(ave),cve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[C("path",{d:"m24 4l-6 6h-8v8l-6 6l6 6v8h8l6 6l6-6h8v-8l6-6l-6-6v-8h-8z"}),C("path",{d:"M24 30a6 6 0 1 0 0-12a6 6 0 0 0 0 12Z"})]})]}),uve=f.forwardRef(cve),dve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[C("rect",{width:36,height:36,x:6,y:6,strokeLinecap:"round",rx:3}),C("path",{d:"M18.5 24v-7.794l6.75 3.897L32 24l-6.75 3.897l-6.75 3.897z"})]})]}),fve=f.forwardRef(dve),mve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),hve=f.forwardRef(mve),pve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),gve=f.forwardRef(pve),vve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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(vve),yve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h7m-7 6h7m-7 6h9m2-9l3-3l3 3m-3-3v12"})]}),Sve=f.forwardRef(yve),Cve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h9m-9 6h7m-7 6h7m4-3l3 3l3-3m-3-9v12"})]}),xve=f.forwardRef(Cve),wve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",children:[C("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"}),C("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"}),C("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M24.5 34V20h-2M21 34h7"})]})]}),Eve=f.forwardRef(wve),$ve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"currentColor",d:"M16 4.5V7H5v2h11v2.5L19.5 8M16 12.5V15H5v2h11v2.5l3.5-3.5"})]}),Mve=f.forwardRef($ve),Tve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[C("path",{d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4S4 12.954 4 24s8.954 20 20 20Z"}),C("path",{strokeLinecap:"round",d:"M24.008 12v12.01l8.479 8.48"})]})]}),Ave=f.forwardRef(Tve),Rve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeWidth:4,children:[C("rect",{width:26,height:40,x:11,y:4,rx:3}),C("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M22 10h4m-6 28h8"})]})]}),Nve=f.forwardRef(Rve),Pve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeWidth:4,children:[C("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 32h10v9H19z"}),C("rect",{width:38,height:24,x:5,y:8,rx:2}),C("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M22 27h4M14 41h20"})]})]}),Ive=f.forwardRef(Pve),Ove=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",children:[C("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"}),C("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"})]})]}),Dve=f.forwardRef(Ove),_ve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 32 32",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),Lve=f.forwardRef(_ve),kve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 32 32",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),Bve=f.forwardRef(kve),zve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),Fve=f.forwardRef(zve),Hve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[C("path",{strokeDasharray:32,d:"M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9",children:C("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.6s",values:"32;0"})}),B("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:[C("set",{fill:"freeze",attributeName:"opacity",begin:"0.45s",to:1}),C("animateTransform",{fill:"freeze",attributeName:"transform",begin:"0.45s",dur:"0.6s",type:"rotate",values:"-180 12 12;0 12 12"}),C("animate",{attributeName:"stroke-dashoffset",begin:"0.85s",dur:"0.6s",repeatCount:"indefinite",to:0})]}),C("path",{strokeDasharray:10,strokeDashoffset:10,d:"M12 16v-7.5",children:C("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.85s",dur:"0.2s",to:0})}),C("path",{strokeDasharray:8,strokeDashoffset:8,d:"M12 8.5l3.5 3.5M12 8.5l-3.5 3.5",children:C("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"1.05s",dur:"0.2s",to:0})})]})]}),Vve=f.forwardRef(Hve),jve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[C("path",{d:"M19 20a7 7 0 1 0 0-14a7 7 0 0 0 0 14Z"}),C("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"})]})]}),Uve=f.forwardRef(jve),Wve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,children:[C("path",{d:"m13 8l-7 6l7 7"}),C("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"})]})]}),YH=f.forwardRef(Wve),Gve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[C("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"}),C("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"})]})]}),qve=f.forwardRef(Gve),Kve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),Yve=f.forwardRef(Kve),Xve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"m10 8l-6 6l6 6m28 8l6 6l-6 6M4 14h40M4 34h40"})]}),XH=f.forwardRef(Xve),Qve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[C("path",{d:"M5.325 43.5h8.485l31.113-31.113l-8.486-8.485L5.325 35.015z"}),C("path",{strokeLinecap:"round",d:"m27.952 12.387l8.485 8.485"})]})]}),Zve=f.forwardRef(Qve),Jve=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"currentColor",d:"M16 20v-7h4v7zm-6 0V4h4v16zm-6 0V9h4v11z"})]}),ebe=f.forwardRef(Jve),HA=f.createContext({});function Y1(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const tbe=typeof window<"u",QH=tbe?f.useLayoutEffect:f.useEffect,X1=f.createContext(null);function VA(e,t){e.indexOf(t)===-1&&e.push(t);}function Bf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1);}const aa=(e,t,n)=>n>t?t:n<e?e:n;let jA=()=>{};const fc={},ZH=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function JH(e){return typeof e=="object"&&e!==null}const eV=e=>/^0[^.\s]+$/u.test(e);function tV(e){let t;return ()=>(t===void 0&&(t=e()),t)}const Zi=e=>e,nbe=(e,t)=>n=>t(e(n)),Ag=(...e)=>e.reduce(nbe),zf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class UA{constructor(){this.subscriptions=[];}add(t){return VA(this.subscriptions,t),()=>Bf(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 ti=e=>e*1e3,Xi=e=>e/1e3;function nV(e,t){return t?e*(1e3/t):0}const rbe=(e,t,n)=>{const r=t-e;return ((n-e)%r+r)%r+e},rV=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,obe=1e-7,ibe=12;function sbe(e,t,n,r,o){let i,s,l=0;do s=t+(n-t)/2,i=rV(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>obe&&++l<ibe);return s}function Rg(e,t,n,r){if(e===t&&n===r)return Zi;const o=i=>sbe(i,0,1,e,n);return i=>i===0||i===1?i:rV(o(i),t,r)}const oV=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,iV=e=>t=>1-e(1-t),sV=Rg(.33,1.53,.69,.99),WA=iV(sV),aV=oV(WA),lV=e=>e>=1?1:(e*=2)<1?.5*WA(e):.5*(2-Math.pow(2,-10*(e-1))),GA=e=>1-Math.sin(Math.acos(e)),cV=iV(GA),uV=oV(GA),abe=Rg(.42,0,1,1),lbe=Rg(0,0,.58,1),dV=Rg(.42,0,.58,1),fV=e=>Array.isArray(e)&&typeof e[0]!="number";function mV(e,t){return fV(e)?e[rbe(0,e.length,t)]:e}const hV=e=>Array.isArray(e)&&typeof e[0]=="number",cbe={linear:Zi,easeIn:abe,easeInOut:dV,easeOut:lbe,circIn:GA,circInOut:uV,circOut:cV,backIn:WA,backInOut:aV,backOut:sV,anticipate:lV},ube=e=>typeof e=="string",h8=e=>{if(hV(e)){jA(e.length===4);const[t,n,r,o]=e;return Rg(t,n,r,o)}else if(ube(e))return cbe[e];return e},Lb=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function dbe(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 fbe=40;function pV(e,t){let n=false,r=true;const o={delta:0,timestamp:0,isProcessing:false},i=()=>n=true,s=Lb.reduce((M,T)=>(M[T]=dbe(i),M),{}),{setup:l,read:u,resolveKeyframes:d,preUpdate:m,update:p,preRender:g,render:b,postRender:y}=s,S=()=>{const M=fc.useManualTiming,T=M?o.timestamp:performance.now();n=false,M||(o.delta=r?1e3/60:Math.max(Math.min(T-o.timestamp,fbe),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));},x=()=>{n=true,r=true,o.isProcessing||e(S);};return {schedule:Lb.reduce((M,T)=>{const A=s[T];return M[T]=(I,N=false,P=false)=>(n||x(),A.schedule(I,N,P)),M},{}),cancel:M=>{for(let T=0;T<Lb.length;T++)s[Lb[T]].cancel(M);},state:o,steps:s}}const{schedule:Vn,cancel:mc,state:oo,steps:Hw}=pV(typeof requestAnimationFrame<"u"?requestAnimationFrame:Zi,true);let wy;function mbe(){wy=void 0;}const Do={now:()=>(wy===void 0&&Do.set(oo.isProcessing||fc.useManualTiming?oo.timestamp:performance.now()),wy),set:e=>{wy=e,queueMicrotask(mbe);}},gV=e=>t=>typeof t=="string"&&t.startsWith(e),vV=gV("--"),hbe=gV("var(--"),qA=e=>hbe(e)?pbe.test(e.split("/*")[0].trim()):false,pbe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function p8(e){return typeof e!="string"?false:e.split("/*")[0].includes("var(--")}const um={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},zp={...um,transform:e=>aa(0,1,e)},kb={...um,default:1},rp=e=>Math.round(e*1e5)/1e5,KA=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gbe(e){return e==null}const vbe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,YA=(e,t)=>n=>!!(typeof n=="string"&&vbe.test(n)&&n.startsWith(e)||t&&!gbe(n)&&Object.prototype.hasOwnProperty.call(n,t)),bV=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,l]=r.match(KA);return {[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},bbe=e=>aa(0,255,e),Vw={...um,transform:e=>Math.round(bbe(e))},vu={test:YA("rgb","red"),parse:bV("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Vw.transform(e)+", "+Vw.transform(t)+", "+Vw.transform(n)+", "+rp(zp.transform(r))+")"};function ybe(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 S3={test:YA("#"),parse:ybe,transform:vu.transform},Ng=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Hl=Ng("deg"),ra=Ng("%"),yt=Ng("px"),Sbe=Ng("vh"),Cbe=Ng("vw"),g8={...ra,parse:e=>ra.parse(e)/100,transform:e=>ra.transform(e*100)},ff={test:YA("hsl","hue"),parse:bV("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ra.transform(rp(t))+", "+ra.transform(rp(n))+", "+rp(zp.transform(r))+")"},Er={test:e=>vu.test(e)||S3.test(e)||ff.test(e),parse:e=>vu.test(e)?vu.parse(e):ff.test(e)?ff.parse(e):S3.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?vu.transform(e):ff.transform(e),getAnimatableNone:e=>{const t=Er.parse(e);return t.alpha=0,Er.transform(t)}},xbe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function wbe(e){return isNaN(e)&&typeof e=="string"&&(e.match(KA)?.length||0)+(e.match(xbe)?.length||0)>0}const yV="number",SV="color",Ebe="var",$be="var(",v8="${}",Mbe=/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 Ff(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const l=t.replace(Mbe,u=>(Er.test(u)?(r.color.push(i),o.push(SV),n.push(Er.parse(u))):u.startsWith($be)?(r.var.push(i),o.push(Ebe),n.push(u)):(r.number.push(i),o.push(yV),n.push(parseFloat(u))),++i,v8)).split(v8);return {values:n,split:l,indexes:r,types:o}}function Tbe(e){return Ff(e).values}function CV({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===yV?o+=rp(r[i]):s===SV?o+=Er.transform(r[i]):o+=r[i];}return o}}function Abe(e){return CV(Ff(e))}const Rbe=e=>typeof e=="number"?0:Er.test(e)?Er.getAnimatableNone(e):e,Nbe=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:Rbe(e);function Pbe(e){const t=Ff(e);return CV(t)(t.values.map((r,o)=>Nbe(r,t.split[o])))}const Es={test:wbe,parse:Tbe,createTransformer:Abe,getAnimatableNone:Pbe};function jw(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 Ibe({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=jw(u,l,e+1/3),i=jw(u,l,e),s=jw(u,l,e-1/3);}return {red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function D0(e,t){return n=>n>0?t:e}const Un=(e,t,n)=>e+(t-e)*n,Uw=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Obe=[S3,vu,ff],Dbe=e=>Obe.find(t=>t.test(e));function b8(e){const t=Dbe(e);if(!t)return  false;let n=t.parse(e);return t===ff&&(n=Ibe(n)),n}const y8=(e,t)=>{const n=b8(e),r=b8(t);if(!n||!r)return D0(e,t);const o={...n};return i=>(o.red=Uw(n.red,r.red,i),o.green=Uw(n.green,r.green,i),o.blue=Uw(n.blue,r.blue,i),o.alpha=Un(n.alpha,r.alpha,i),vu.transform(o))},C3=new Set(["none","hidden"]);function _be(e,t){return C3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Lbe(e,t){return n=>Un(e,t,n)}function XA(e){return typeof e=="number"?Lbe:typeof e=="string"?qA(e)?D0:Er.test(e)?y8:zbe:Array.isArray(e)?xV:typeof e=="object"?Er.test(e)?y8:kbe:D0}function xV(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>XA(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function kbe(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=XA(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function Bbe(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 zbe=(e,t)=>{const n=Es.createTransformer(t),r=Ff(e),o=Ff(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?C3.has(e)&&!o.values.length||C3.has(t)&&!r.values.length?_be(e,t):Ag(xV(Bbe(r,o),o.values),n):D0(e,t)};function wV(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Un(e,t,n):XA(e)(e,t)}const Fbe=e=>{const t=({timestamp:n})=>e(n);return {start:(n=true)=>Vn.update(t,n),stop:()=>mc(t),now:()=>oo.isProcessing?oo.timestamp:Do.now()}},EV=(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)})`},_0=2e4;function QA(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<_0;)t+=n,r=e.next(t);return t>=_0?1/0:t}function $V(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(QA(r),_0);return {type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Xi(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 x3(e,t){return e*Math.sqrt(1-t*t)}const Hbe=12;function Vbe(e,t,n){let r=n;for(let o=1;o<Hbe;o++)r=r-e(r)/t(r);return r}const Ww=.001;function jbe({duration:e=ur.duration,bounce:t=ur.bounce,velocity:n=ur.velocity,mass:r=ur.mass}){let o,i,s=1-t;s=aa(ur.minDamping,ur.maxDamping,s),e=aa(ur.minDuration,ur.maxDuration,Xi(e)),s<1?(o=d=>{const m=d*s,p=m*e,g=m-n,b=x3(d,s),y=Math.exp(-p);return Ww-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=x3(Math.pow(d,2),s);return (-o(d)+Ww>0?-1:1)*((g-b)*y)/S}):(o=d=>{const m=Math.exp(-d*e),p=(d-n)*e+1;return -Ww+m*p},i=d=>{const m=Math.exp(-d*e),p=(n-d)*(e*e);return m*p});const l=5/e,u=Vbe(o,i,l);if(e=ti(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 Ube=["duration","bounce"],Wbe=["stiffness","damping","mass"];function S8(e,t){return t.some(n=>e[n]!==void 0)}function Gbe(e){let t={velocity:ur.velocity,stiffness:ur.stiffness,damping:ur.damping,mass:ur.mass,isResolvedFromDuration:false,...e};if(!S8(e,Wbe)&&S8(e,Ube))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*aa(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ur.mass,stiffness:o,damping:i};}else {const n=jbe({...e,velocity:0});t={...t,...n,mass:ur.mass},t.isResolvedFromDuration=true;}return t}function Fp(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}=Gbe({...n,velocity:-Xi(n.velocity||0)}),y=g||0,S=d/(2*Math.sqrt(u*m)),x=s-i,w=Xi(Math.sqrt(u/m)),E=Math.abs(x)<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=x3(w,S),I=(y+S*w*x)/A,M=D=>{const _=Math.exp(-S*w*D);return s-_*(I*Math.sin(A*D)+x*Math.cos(A*D))},N=S*w*I+x*A,P=S*w*x-I*A,T=D=>Math.exp(-S*w*D)*(N*Math.sin(A*D)+P*Math.cos(A*D));else if(S===1){M=_=>s-Math.exp(-w*_)*(x+(y+w*x)*_);const D=y+w*x;T=_=>Math.exp(-w*_)*(w*D*_-y);}else {const D=w*Math.sqrt(S*S-1);M=W=>{const z=Math.exp(-S*w*W),L=Math.min(D*W,300);return s-z*((y+S*w*x)*Math.sinh(L)+D*x*Math.cosh(L))/D};const _=(y+S*w*x)/D,H=S*w*_-x*D,U=S*w*x-_*D;T=W=>{const z=Math.exp(-S*w*W),L=Math.min(D*W,300);return z*(H*Math.sinh(L)+U*Math.cosh(L))};}const O={calculatedDuration:b&&p||null,velocity:D=>ti(T(D)),next:D=>{if(!b&&S<1){const H=Math.exp(-S*w*D),U=Math.sin(A*D),W=Math.cos(A*D),z=s-H*(I*U+x*W),L=ti(H*(N*U+P*W));return l.done=Math.abs(L)<=r&&Math.abs(s-z)<=o,l.value=l.done?s:z,l}const _=M(D);if(b)l.done=D>=p;else {const H=ti(T(D));l.done=Math.abs(H)<=r&&Math.abs(s-_)<=o;}return l.value=l.done?s:_,l},toString:()=>{const D=Math.min(QA(O),_0),_=EV(H=>O.next(D*H).value,D,30);return D+"ms "+_},toTransition:()=>{}};return O}Fp.applyToOptions=e=>{const t=$V(e,100,Fp);return e.ease=t.ease,e.duration=ti(t.duration),e.type="keyframes",e};const qbe=5;function MV(e,t,n){const r=Math.max(t-qbe,0);return nV(n-e(r),t-r)}function w3({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 x=p+S,w=s===void 0?x:s(x);w!==x&&(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=Fp({keyframes:[g.value,y(g.value)],velocity:MV(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 Kbe(e,t,n){const r=[],o=n||fc.mix||wV,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]||Zi:t;l=Ag(u,l);}r.push(l);}return r}function Ybe(e,t,{clamp:n=true,ease:r,mixer:o}={}){const i=e.length;if(jA(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=Kbe(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=zf(e[p],e[p+1],m);return l[p](g)};return n?m=>d(aa(e[0],e[i-1],m)):d}function TV(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=zf(0,t,r);e.push(Un(n,1,o));}}function AV(e){const t=[0];return TV(t,e.length-1),t}function Xbe(e,t){return e.map(n=>n*t)}function Qbe(e,t){return e.map(()=>t||dV).splice(0,e.length-1)}function op({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=fV(r)?r.map(h8):h8(r),i={done:false,value:t[0]},s=Xbe(n&&n.length===t.length?n:AV(t),e),l=Ybe(s,t,{ease:Array.isArray(o)?o:Qbe(t,o)});return {calculatedDuration:e,next:u=>(i.value=l(u),i.done=u>=e,i)}}const Zbe=e=>e!==null;function Q1(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Zbe),l=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return !l||r===void 0?i[l]:r}const Jbe={decay:w3,inertia:w3,tween:op,keyframes:op,spring:Fp};function RV(e){typeof e.type=="string"&&(e.type=Jbe[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 eye=e=>e/100;class L0 extends ZA{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=false,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:false,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Do.now()&&this.tick(Do.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;RV(t);const{type:n=op,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:l}=t;const u=n||op;u!==op&&typeof l[0]!="number"&&(this.mixKeyframes=Ag(eye,wV(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=QA(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:x}=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=aa(0,1,D)*l;}let A;E?(this.delayState.value=m[0],A=this.delayState):A=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!==w3&&(A.value=Q1(m,this.options,x,this.speed)),S&&S(A.value),N&&this.finish(),A}then(t,n){return this.finished.then(t,n)}get duration(){return Xi(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Xi(t)}get time(){return Xi(this.currentTime)}set time(t){t=ti(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 MV(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(Do.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Xi(this.currentTime));}play(){if(this.isStopped)return;const{driver:t=Fbe,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(Do.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 tye(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1]);}const bu=e=>e*180/Math.PI,E3=e=>{const t=bu(Math.atan2(e[1],e[0]));return $3(t)},nye={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:E3,rotateZ:E3,skewX:e=>bu(Math.atan(e[1])),skewY:e=>bu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},$3=e=>(e=e%360,e<0&&(e+=360),e),C8=E3,x8=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),w8=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),rye={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:x8,scaleY:w8,scale:e=>(x8(e)+w8(e))/2,rotateX:e=>$3(bu(Math.atan2(e[6],e[5]))),rotateY:e=>$3(bu(Math.atan2(-e[2],e[0]))),rotateZ:C8,rotate:C8,skewX:e=>bu(Math.atan(e[4])),skewY:e=>bu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function M3(e){return e.includes("scale")?1:0}function T3(e,t){if(!e||e==="none")return M3(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=rye,o=n;else {const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=nye,o=l;}if(!o)return M3(t);const i=r[t],s=o[1].split(",").map(iye);return typeof i=="function"?i(s):s[i]}const oye=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return T3(n,t)};function iye(e){return parseFloat(e.trim())}const dm=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fm=new Set(dm),E8=e=>e===um||e===yt,sye=new Set(["x","y","z"]),aye=dm.filter(e=>!sye.has(e));function lye(e){const t=[];return aye.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0));}),t}const Ql={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})=>T3(t,"x"),y:(e,{transform:t})=>T3(t,"y")};Ql.translateX=Ql.x;Ql.translateY=Ql.y;const Au=new Set;let A3=false,R3=false,N3=false;function NV(){if(R3){const e=Array.from(Au).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=lye(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);});}R3=false,A3=false,Au.forEach(e=>e.complete(N3)),Au.clear();}function PV(){Au.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(R3=true);});}function cye(){N3=true,PV(),NV(),N3=false;}class JA{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?(Au.add(this),A3||(A3=true,Vn.read(PV),Vn.resolveKeyframes(NV))):(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]);}tye(t);}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=false){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Au.delete(this);}cancel(){this.state==="scheduled"&&(Au.delete(this),this.state="pending");}resume(){this.state==="pending"&&this.scheduleResolve();}}const uye=e=>e.startsWith("--");function IV(e,t,n){uye(t)?e.style.setProperty(t,n):e.style[t]=n;}const dye={};function OV(e,t){const n=tV(e);return ()=>dye[t]??n()}const fye=OV(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),DV=OV(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"});}catch{return  false}return  true},"linearEasing"),Vh=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,$8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vh([0,.65,.55,1]),circOut:Vh([.55,0,1,.45]),backIn:Vh([.31,.01,.66,-0.59]),backOut:Vh([.33,1.53,.69,.99])};function _V(e,t){if(e)return typeof e=="function"?DV()?EV(e,t):"ease-out":hV(e)?Vh(e):Array.isArray(e)?e.map(n=>_V(n,t)||$8.easeOut):$8[e]}function mye(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=_V(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 eR(e){return typeof e=="function"&&"applyToOptions"in e}function hye({type:e,...t}){return eR(e)&&DV()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class LV 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,jA(typeof t.type!="string");const d=hye(t);this.animation=mye(n,r,o,d,i),d.autoplay===false&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const m=Q1(o,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(m),IV(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 Xi(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Xi(t)}get time(){return Xi(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ti(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&&fye()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Zi):o(this)}}const kV={anticipate:lV,backInOut:aV,circInOut:uV};function pye(e){return e in kV}function gye(e){typeof e.ease=="string"&&pye(e.ease)&&(e.ease=kV[e.ease]);}const Gw=10;class vye extends LV{constructor(t){gye(t),RV(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 L0({...s,autoplay:false}),u=Math.max(Gw,Do.now()-this.startTime),d=aa(0,Gw,u-Gw),m=l.sample(u).value,{name:p}=this.options;i&&p&&IV(i,p,m),n.setWithVelocity(l.sample(Math.max(0,u-d)).value,m,d),l.stop();}}const M8=(e,t)=>t==="zIndex"?false:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Es.test(e)||e==="0")&&!e.startsWith("url("));function bye(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 yye(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=M8(o,t),l=M8(i,t);return !s||!l?false:bye(e)||(n==="spring"||eR(n))&&r}function P3(e){e.duration=0,e.type="keyframes";}const BV=new Set(["opacity","clipPath","filter","transform"]),Sye=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Cye(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Sye.test(e[t]))return  true;return  false}const xye=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),wye=tV(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Eye(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s,keyframes:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return  false;const{onUpdate:d,transformTemplate:m}=t.owner.getProps();return wye()&&n&&(BV.has(n)||xye.has(n)&&Cye(l))&&(n!=="transform"||!m)&&!d&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const $ye=40;class Mye 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=Do.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||JA;this.keyframeResolver=new b(l,(y,S,x)=>this.onKeyframesResolved(y,S,g,!x),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=Do.now();let p=true;yye(t,i,s,l)||(p=false,(fc.instantAnimations||!u)&&m?.(Q1(t,r,n)),t[0]=t[t.length-1],P3(r),r.repeat=0);const b={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>$ye?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=p&&!d&&Eye(b),S=b.motionValue?.owner?.current;let x;if(y)try{x=new vye({...b,element:S});}catch{x=new L0(b);}else x=new L0(b);x.finished.then(()=>{this.notifyFinished();}).catch(Zi),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x;}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(),cye()),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 Tye{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 T8(this.animations,"duration")}get iterationDuration(){return T8(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 T8(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 Aye extends Tye{then(t,n){return this.finished.finally(t).then(()=>{})}}function zV(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 Rye=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Nye(e){const t=Rye.exec(e);if(!t)return [,];const[,n,r,o]=t;return [`--${n??r}`,o]}function FV(e,t,n=1){const[r,o]=Nye(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return ZH(s)?parseFloat(s):s}return qA(o)?FV(o,t,n+1):o}const Pye={type:"spring",stiffness:500,damping:25,restSpeed:10},Iye=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Oye={type:"keyframes",duration:.8},Dye={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_ye=(e,{keyframes:t})=>t.length>2?Oye:fm.has(e)?e.startsWith("scale")?Iye(t[1]):Pye:Dye;function HV(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return {...t,...r}}return e}function tR(e,t){const n=e?.[t]??e?.default??e;return n!==e?HV(n,e):n}const Lye=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function kye(e){for(const t in e)if(!Lye.has(t))return  true;return  false}const nR=(e,t,n,r={},o,i)=>s=>{const l=tR(r,e)||{},u=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-ti(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};kye(l)||Object.assign(m,_ye(e,m)),m.duration&&(m.duration=ti(m.duration)),m.repeatDelay&&(m.repeatDelay=ti(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let p=false;if((m.type===false||m.duration===0&&!m.repeatDelay)&&(P3(m),m.delay===0&&(p=true)),(fc.instantAnimations||fc.skipAnimations||o?.shouldSkipAnimations)&&(p=true,P3(m),m.delay=0),m.allowFlatten=!l.type&&!l.ease,p&&!i&&t.get()!==void 0){const g=Q1(m.keyframes,l);if(g!==void 0){Vn.update(()=>{m.onUpdate(g),m.onComplete();});return}}return l.isSync?new L0(m):new Mye(m)};function A8(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity();}),t}function rR(e,t,n,r){if(typeof t=="function"){const[o,i]=A8(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]=A8(r);t=t(n!==void 0?n:e.custom,o,i);}return t}function Ru(e,t,n){const r=e.getProps();return rR(r,t,n!==void 0?n:r.custom,e)}const VV=new Set(["width","height","top","left","right","bottom",...dm]),R8=30,Bye=e=>!isNaN(parseFloat(e));class zye{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=Do.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=Do.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Bye(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 UA);const r=this.events[t].add(n);return t==="change"?()=>{r(),Vn.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=Do.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>R8)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,R8);return nV(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 Vu(e,t){return new zye(e,t)}const I3=e=>Array.isArray(e);function Fye(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Vu(n));}function Hye(e){return I3(e)?e[e.length-1]||0:e}function Vye(e,t){const n=Ru(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const l=Hye(i[s]);Fye(e,s,l);}}const kr=e=>!!(e&&e.getVelocity);function jye(e){return !!(kr(e)&&e.add)}function O3(e,t){const n=e.getValue("willChange");if(jye(n))return n.add(t);if(!n&&fc.WillChange){const r=new fc.WillChange("auto");e.addValue("willChange",r),r.add(t);}}function oR(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Uye="framerAppearId",jV="data-"+oR(Uye);function UV(e){return e.props[jV]}function Wye({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==true;return t[n]=false,r}function iR(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i,transitionEnd:s,...l}=t;const u=e.getDefaultTransition();i=i?HV(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&&Wye(p,g))continue;const S={delay:n,...tR(i||{},g)},x=b.get();if(x!==void 0&&!b.isAnimating()&&!Array.isArray(y)&&y===x&&!S.velocity){Vn.update(()=>b.set(y));continue}let w=false;if(window.MotionHandoffAnimation){const T=UV(e);if(T){const A=window.MotionHandoffAnimation(T,g,Vn);A!==null&&(S.startTime=A,w=true);}}O3(e,g);const E=d??e.shouldReduceMotion;b.start(nR(g,b,y,E&&VV.has(g)?{type:false}:S,e,w));const M=b.animation;M&&m.push(M);}if(s){const g=()=>Vn.update(()=>{s&&Vye(e,s);});m.length?Promise.all(m).then(g):g();}return m}function D3(e,t,n={}){const r=Ru(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(iR(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:m,staggerDirection:p}=o;return Gye(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 Gye(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(D3(u,t,{...s,delay:n+(typeof r=="function"?0:r)+zV(e.variantChildren,u,r,o,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(l)}function qye(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>D3(e,i,n));r=Promise.all(o);}else if(typeof t=="string")r=D3(e,t,n);else {const o=typeof t=="function"?Ru(e,t,n.custom):t;r=Promise.all(iR(e,o,n));}return r.then(()=>{e.notify("AnimationComplete",t);})}const Kye={test:e=>e==="auto",parse:e=>e},WV=e=>t=>t.test(e),GV=[um,yt,ra,Hl,Cbe,Sbe,Kye],N8=e=>GV.find(WV(e));function Yye(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||eV(e):true}const Xye=new Set(["brightness","contrast","saturate","opacity"]);function Qye(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(KA)||[];if(!r)return e;const o=n.replace(r,"");let i=Xye.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Zye=/\b([a-z-]*)\(.*?\)/gu,_3={...Es,getAnimatableNone:e=>{const t=e.match(Zye);return t?t.map(Qye).join(" "):e}},L3={...Es,getAnimatableNone:e=>{const t=Es.parse(e);return Es.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},P8={...um,transform:Math.round},Jye={rotate:Hl,rotateX:Hl,rotateY:Hl,rotateZ:Hl,scale:kb,scaleX:kb,scaleY:kb,scaleZ:kb,skew:Hl,skewX:Hl,skewY:Hl,distance:yt,translateX:yt,translateY:yt,translateZ:yt,x:yt,y:yt,z:yt,perspective:yt,transformPerspective:yt,opacity:zp,originX:g8,originY:g8,originZ:yt},sR={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,...Jye,zIndex:P8,fillOpacity:zp,strokeOpacity:zp,numOctaves:P8},e0e={...sR,color:Er,backgroundColor:Er,outlineColor:Er,fill:Er,stroke:Er,borderColor:Er,borderTopColor:Er,borderRightColor:Er,borderBottomColor:Er,borderLeftColor:Er,filter:_3,WebkitFilter:_3,mask:L3,WebkitMask:L3},qV=e=>e0e[e],t0e=new Set([_3,L3]);function KV(e,t){let n=qV(e);return t0e.has(n)||(n=Es),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const n0e=new Set(["auto","none","0"]);function r0e(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!n0e.has(i)&&Ff(i).values.length&&(o=e[r]),r++;}if(o&&n)for(const i of t)e[i]=KV(n,o);}class o0e extends JA{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(),qA(p))){const g=FV(p,n.current);g!==void 0&&(t[m]=g),m===t.length-1&&(this.finalKeyframe=p);}}if(this.resolveNoneKeyframes(),!VV.has(r)||t.length!==2)return;const[o,i]=t,s=N8(o),l=N8(i),u=p8(o),d=p8(i);if(u!==d&&Ql[r]){this.needsMeasurement=true;return}if(s!==l)if(E8(s)&&E8(l))for(let m=0;m<t.length;m++){const p=t[m];typeof p=="string"&&(t[m]=parseFloat(p));}else Ql[r]&&(this.needsMeasurement=true);}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Yye(t[o]))&&r.push(o);r.length&&r0e(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=Ql[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]=Ql[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();}}function aR(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 YV=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ey(e){return JH(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:lR}=pV(queueMicrotask,false),fs={x:false,y:false};function XV(){return fs.x||fs.y}function i0e(e){return e==="x"||e==="y"?fs[e]?null:(fs[e]=true,()=>{fs[e]=false;}):fs.x||fs.y?null:(fs.x=fs.y=true,()=>{fs.x=fs.y=false;})}function QV(e,t){const n=aR(e),r=new AbortController,o={passive:true,...t,signal:r.signal};return [n,o,()=>r.abort()]}function s0e(e){return !(e.pointerType==="touch"||XV())}function a0e(e,t,n={}){const[r,o,i]=QV(e,n);return r.forEach(s=>{let l=false,u=false,d;const m=()=>{s.removeEventListener("pointerleave",y);},p=x=>{d&&(d(x),d=void 0),m();},g=x=>{l=false,window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g),u&&(u=false,p(x));},b=()=>{l=true,window.addEventListener("pointerup",g,o),window.addEventListener("pointercancel",g,o);},y=x=>{if(x.pointerType!=="touch"){if(l){u=true;return}p(x);}},S=x=>{if(!s0e(x))return;u=false;const w=t(s,x);typeof w=="function"&&(d=w,s.addEventListener("pointerleave",y,o));};s.addEventListener("pointerenter",S,o),s.addEventListener("pointerdown",b,o);}),i}const ZV=(e,t)=>t?e===t?true:ZV(e,t.parentElement):false,cR=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==false,l0e=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function c0e(e){return l0e.has(e.tagName)||e.isContentEditable===true}const u0e=new Set(["INPUT","SELECT","TEXTAREA"]);function d0e(e){return u0e.has(e.tagName)||e.isContentEditable===true}const $y=new WeakSet;function I8(e){return t=>{t.key==="Enter"&&e(t);}}function qw(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:true,bubbles:true}));}const f0e=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=I8(()=>{if($y.has(n))return;qw(n,"down");const o=I8(()=>{qw(n,"up");}),i=()=>qw(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 O8(e){return cR(e)&&!XV()}const D8=new WeakSet;function m0e(e,t,n={}){const[r,o,i]=QV(e,n),s=l=>{const u=l.currentTarget;if(!O8(l)||D8.has(l))return;$y.add(u),n.stopPropagation&&D8.add(l);const d=t(u,l),m=(b,y)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",g),$y.has(u)&&$y.delete(u),O8(b)&&typeof d=="function"&&d(b,{success:y});},p=b=>{m(b,u===window||u===document||n.useGlobalTarget||ZV(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),Ey(l)&&(l.addEventListener("focus",d=>f0e(d,o)),!c0e(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0));}),i}function Z1(e){return JH(e)&&"ownerSVGElement"in e}const My=new WeakMap;let Ty;const JV=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:Z1(r)&&"getBBox"in r?r.getBBox()[t]:r[n],h0e=JV("inline","width","offsetWidth"),p0e=JV("block","height","offsetHeight");function g0e({target:e,borderBoxSize:t}){My.get(e)?.forEach(n=>{n(e,{get width(){return h0e(e,t)},get height(){return p0e(e,t)}});});}function v0e(e){e.forEach(g0e);}function b0e(){typeof ResizeObserver>"u"||(Ty=new ResizeObserver(v0e));}function y0e(e,t){Ty||b0e();const n=aR(e);return n.forEach(r=>{let o=My.get(r);o||(o=new Set,My.set(r,o)),o.add(t),Ty?.observe(r);}),()=>{n.forEach(r=>{const o=My.get(r);o?.delete(t),o?.size||Ty?.unobserve(r);});}}const Ay=new Set;let mf;function S0e(){mf=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ay.forEach(t=>t(e));},window.addEventListener("resize",mf);}function C0e(e){return Ay.add(e),mf||S0e(),()=>{Ay.delete(e),!Ay.size&&typeof mf=="function"&&(window.removeEventListener("resize",mf),mf=void 0);}}function _8(e,t){return typeof e=="function"?C0e(e):y0e(e,t)}function ej(e){return Z1(e)&&e.tagName==="svg"}const x0e=[...GV,Er,Es],w0e=e=>x0e.find(WV(e)),L8=()=>({translate:0,scale:1,origin:0,originPoint:0}),hf=()=>({x:L8(),y:L8()}),k8=()=>({min:0,max:0}),wr=()=>({x:k8(),y:k8()}),Hp=new WeakMap;function J1(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Vp(e){return typeof e=="string"||Array.isArray(e)}const uR=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],dR=["initial",...uR];function eS(e){return J1(e.animate)||dR.some(t=>Vp(e[t]))}function tj(e){return !!(eS(e)||e.variants)}function E0e(e,t,n){for(const r in t){const o=t[r],i=n[r];if(kr(o))e.addValue(r,o);else if(kr(i))e.addValue(r,Vu(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,Vu(s!==void 0?s:o,{owner:e}));}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const k0={current:null},fR={current:false},$0e=typeof window<"u";function nj(){if(fR.current=true,!!$0e)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>k0.current=e.matches;e.addEventListener("change",t),t();}else k0.current=false;}const B8=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let B0={};function rj(e){B0=e;}function M0e(){return B0}class oj{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=JA,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=Do.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,Vn.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=eS(n),this.isVariantNode=tj(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&&kr(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,Hp.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:(fR.current||nj(),this.shouldReduceMotion=k0.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(),mc(this.notifyUpdate),mc(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&&BV.has(t)&&this.current instanceof HTMLElement){const{factory:s,keyframes:l,times:u,ease:d,duration:m}=n.accelerate,p=new LV({element:this.current,name:t,keyframes:l,times:u,ease:d,duration:ti(m)}),g=s(p);this.valueSubscriptions.set(t,()=>{g(),p.cancel();});return}const r=fm.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Vn.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 B0){const n=B0[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<B8.length;r++){const o=B8[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=E0e(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=Vu(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"&&(ZH(r)||eV(r))?r=parseFloat(r):!w0e(r)&&Es.test(n)&&(r=KV(t,n)),this.setBaseTarget(t,kr(r)?r.get():r)),kr(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=rR(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&&!kr(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 UA),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n);}scheduleRenderMicrotask(){lR.render(this.render);}}class ij extends oj{constructor(){super(...arguments),this.KeyframeResolver=o0e;}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;kr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`);}));}}class $c{constructor(t){this.isMounted=false,this.node=t;}update(){}}function sj({top:e,left:t,right:n,bottom:r}){return {x:{min:t,max:n},y:{min:e,max:r}}}function T0e({x:e,y:t}){return {top:t.min,right:e.max,bottom:t.max,left:e.min}}function A0e(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 Kw(e){return e===void 0||e===1}function k3({scale:e,scaleX:t,scaleY:n}){return !Kw(e)||!Kw(t)||!Kw(n)}function iu(e){return k3(e)||aj(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function aj(e){return z8(e.x)||z8(e.y)}function z8(e){return e&&e!=="0%"}function z0(e,t,n){const r=e-n,o=t*r;return n+o}function F8(e,t,n,r,o){return o!==void 0&&(e=z0(e,o,r)),z0(e,n,r)+t}function B3(e,t=0,n=1,r,o){e.min=F8(e.min,t,n,r,o),e.max=F8(e.max,t,n,r,o);}function lj(e,{x:t,y:n}){B3(e.x,t.translate,t.scale,t.originPoint),B3(e.y,n.translate,n.scale,n.originPoint);}const H8=.999999999999,V8=1.0000000000001;function R0e(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&&(Ys(e.x,-i.scroll.offset.x),Ys(e.y,-i.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,lj(e,s)),r&&iu(i.latestValues)&&Ry(e,i.latestValues,i.layout?.layoutBox));}t.x<V8&&t.x>H8&&(t.x=1),t.y<V8&&t.y>H8&&(t.y=1);}function Ys(e,t){e.min+=t,e.max+=t;}function j8(e,t,n,r,o=.5){const i=Un(e.min,e.max,o);B3(e,t,n,i,r);}function U8(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Ry(e,t,n){const r=n??e;j8(e.x,U8(t.x,r.x),t.scaleX,t.scale,t.originX),j8(e.y,U8(t.y,r.y),t.scaleY,t.scale,t.originY);}function cj(e,t){return sj(A0e(e.getBoundingClientRect(),t))}function N0e(e,t,n){const r=cj(e,n),{scroll:o}=t;return o&&(Ys(r.x,o.offset.x),Ys(r.y,o.offset.y)),r}const P0e={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},I0e=dm.length;function O0e(e,t,n){let r="",o=true;for(let i=0;i<I0e;i++){const s=dm[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=YV(l,sR[s]);if(!u){o=false;const m=P0e[s]||s;r+=`${m}(${d}) `;}n&&(t[s]=d);}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function mR(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(fm.has(u)){s=true;continue}else if(vV(u)){o[u]=d;continue}else {const m=YV(d,sR[u]);u.startsWith("origin")?(l=true,i[u]=m):r[u]=m;}}if(t.transform||(s||n?r.transform=O0e(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 uj(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 W8(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const wh={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(yt.test(e))e=parseFloat(e);else return e;const n=W8(e,t.target.x),r=W8(e,t.target.y);return `${n}% ${r}%`}},D0e={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Es.parse(e);if(o.length>5)return r;const i=Es.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=Un(l,u,.5);return typeof o[2+s]=="number"&&(o[2+s]/=d),typeof o[3+s]=="number"&&(o[3+s]/=d),i(o)}},z3={borderRadius:{...wh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wh,borderTopRightRadius:wh,borderBottomLeftRadius:wh,borderBottomRightRadius:wh,boxShadow:D0e};function dj(e,{layout:t,layoutId:n}){return fm.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!z3[e]||e==="opacity")}function hR(e,t,n){const r=e.style,o=t?.style,i={};if(!r)return i;for(const s in r)(kr(r[s])||o&&kr(o[s])||dj(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}function _0e(e){return window.getComputedStyle(e)}class fj extends ij{constructor(){super(...arguments),this.type="html",this.renderInstance=uj;}readValueFromInstance(t,n){if(fm.has(n))return this.projection?.isProjecting?M3(n):oye(t,n);{const r=_0e(t),o=(vV(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return cj(t,n)}build(t,n,r){mR(t,n,r.transformTemplate);}scrapeMotionValuesFromProps(t,n,r){return hR(t,n,r)}}function L0e(e,t){return e in t}class k0e extends oj{constructor(){super(...arguments),this.type="object";}readValueFromInstance(t,n){if(L0e(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 B0e={offset:"stroke-dashoffset",array:"stroke-dasharray"},z0e={offset:"strokeDashoffset",array:"strokeDasharray"};function F0e(e,t,n=1,r=0,o=true){e.pathLength=1;const i=o?B0e:z0e;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`;}const H0e=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function mj(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...l},u,d,m){if(mR(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 H0e)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&&F0e(p,o,i,s,false);}const hj=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"]),pj=e=>typeof e=="string"&&e.toLowerCase()==="svg";function V0e(e,t,n,r){uj(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(hj.has(o)?o:oR(o),t.attrs[o]);}function gj(e,t,n){const r=hR(e,t,n);for(const o in e)if(kr(e[o])||kr(t[o])){const i=dm.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o];}return r}class vj extends ij{constructor(){super(...arguments),this.type="svg",this.isSVGTag=false,this.measureInstanceViewportBox=wr;}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(fm.has(n)){const r=qV(n);return r&&r.default||0}return n=hj.has(n)?n:oR(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return gj(t,n,r)}build(t,n,r){mj(t,n,this.isSVGTag,r.transformTemplate,r.style);}renderInstance(t,n,r,o){V0e(t,n,r,o);}mount(t){this.isSVGTag=pj(t.tagName),super.mount(t);}}const j0e=dR.length;function bj(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?bj(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<j0e;n++){const r=dR[n],o=e.props[r];(Vp(o)||o===false)&&(t[r]=o);}return t}function yj(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 U0e=[...uR].reverse(),W0e=uR.length;function G0e(e){return t=>Promise.all(t.map(({animation:n,options:r})=>qye(e,n,r)))}function q0e(e){let t=G0e(e),n=G8(),r=true,o=false;const i=d=>(m,p)=>{const g=Ru(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=bj(e.parent)||{},g=[],b=new Set;let y={},S=1/0;for(let w=0;w<W0e;w++){const E=U0e[w],M=n[E],T=m[E]!==void 0?m[E]:p[E],A=Vp(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||J1(T)||typeof T=="boolean")continue;if(E==="exit"&&M.isActive&&I!==true){M.prevResolvedValues&&(y={...y,...M.prevResolvedValues});continue}const P=K0e(M.prevProp,T);let O=P||E===d&&M.isActive&&!N&&A||w>S&&A,D=false;const _=Array.isArray(T)?T:[T];let H=_.reduce(i(E),{});I===false&&(H={});const{prevResolvedValues:U={}}=M,W={...U,...H},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=H[j],X=U[j];if(y.hasOwnProperty(j))continue;let k=false;I3(K)&&I3(X)?k=!yj(K,X):k=K!==X,k?K!=null?z(j):b.add(j):K!==void 0&&b.has(j)?z(j):M.protectedKeys[j]=true;}M.prevProp=T,M.prevResolvedValues=H,M.isActive&&(y={...y,...H}),(r||o)&&e.blockInitialAnimation&&(O=false);const L=N&&P;O&&(!L||D)&&g.push(..._.map(j=>{const K={type:E};if(typeof j=="string"&&(r||o)&&!L&&e.manuallyAnimateOnMount&&e.parent){const{parent:X}=e,k=Ru(X,j);if(X.enteringChildren&&k){const{delayChildren:V}=k.transition||{};K.delay=zV(X.enteringChildren,e,V);}}return {animation:j,options:K}}));}if(b.size){const w={};if(typeof m.initial!="boolean"){const E=Ru(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 x=!!g.length;return r&&(m.initial===false||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(x=false),r=false,o=false,x?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=G8(),o=true;}}}function K0e(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!yj(t,e):false}function Jc(e=false){return {isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function G8(){return {animate:Jc(true),whileInView:Jc(),whileHover:Jc(),whileTap:Jc(),whileDrag:Jc(),whileFocus:Jc(),exit:Jc()}}function F3(e,t){e.min=t.min,e.max=t.max;}function cs(e,t){F3(e.x,t.x),F3(e.y,t.y);}function q8(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin;}const Sj=1e-4,Y0e=1-Sj,X0e=1+Sj,Cj=.01,Q0e=0-Cj,Z0e=0+Cj;function _o(e){return e.max-e.min}function J0e(e,t,n){return Math.abs(e-t)<=n}function K8(e,t,n,r=.5){e.origin=r,e.originPoint=Un(t.min,t.max,e.origin),e.scale=_o(n)/_o(t),e.translate=Un(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Y0e&&e.scale<=X0e||isNaN(e.scale))&&(e.scale=1),(e.translate>=Q0e&&e.translate<=Z0e||isNaN(e.translate))&&(e.translate=0);}function ip(e,t,n,r){K8(e.x,t.x,n.x,r?r.originX:void 0),K8(e.y,t.y,n.y,r?r.originY:void 0);}function Y8(e,t,n,r=0){const o=r?Un(n.min,n.max,r):n.min;e.min=o+t.min,e.max=e.min+_o(t);}function e1e(e,t,n,r){Y8(e.x,t.x,n.x,r?.x),Y8(e.y,t.y,n.y,r?.y);}function X8(e,t,n,r=0){const o=r?Un(n.min,n.max,r):n.min;e.min=t.min-o,e.max=e.min+_o(t);}function F0(e,t,n,r){X8(e.x,t.x,n.x,r?.x),X8(e.y,t.y,n.y,r?.y);}function Q8(e,t,n,r,o){return e-=t,e=z0(e,1/n,r),o!==void 0&&(e=z0(e,1/o,r)),e}function t1e(e,t=0,n=1,r=.5,o,i=e,s=e){if(ra.test(t)&&(t=parseFloat(t),t=Un(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=Un(i.min,i.max,r);e===i&&(l-=t),e.min=Q8(e.min,t,n,l,o),e.max=Q8(e.max,t,n,l,o);}function Z8(e,t,[n,r,o],i,s){t1e(e,t[n],t[r],t[o],t.scale,i,s);}const n1e=["x","scaleX","originX"],r1e=["y","scaleY","originY"];function J8(e,t,n,r){Z8(e.x,t,n1e,n?n.x:void 0,r?r.x:void 0),Z8(e.y,t,r1e,n?n.y:void 0,r?r.y:void 0);}function e_(e){return e.translate===0&&e.scale===1}function xj(e){return e_(e.x)&&e_(e.y)}function t_(e,t){return e.min===t.min&&e.max===t.max}function o1e(e,t){return t_(e.x,t.x)&&t_(e.y,t.y)}function n_(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function wj(e,t){return n_(e.x,t.x)&&n_(e.y,t.y)}function r_(e){return _o(e.x)/_o(e.y)}function o_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Us(e){return [e("x"),e("y")]}function i1e(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 Ej=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],s1e=Ej.length,i_=e=>typeof e=="string"?parseFloat(e):e,s_=e=>typeof e=="number"||yt.test(e);function a1e(e,t,n,r,o,i){o?(e.opacity=Un(0,n.opacity??1,l1e(r)),e.opacityExit=Un(t.opacity??1,0,c1e(r))):i&&(e.opacity=Un(t.opacity??1,n.opacity??1,r));for(let s=0;s<s1e;s++){const l=Ej[s];let u=a_(t,l),d=a_(n,l);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||s_(u)===s_(d)?(e[l]=Math.max(Un(i_(u),i_(d),r),0),(ra.test(d)||ra.test(u))&&(e[l]+="%")):e[l]=d;}(t.rotate||n.rotate)&&(e.rotate=Un(t.rotate||0,n.rotate||0,r));}function a_(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const l1e=$j(0,.5,cV),c1e=$j(.5,.95,Zi);function $j(e,t,n){return r=>r<e?0:r>t?1:n(zf(e,t,r))}function Mj(e,t,n){const r=kr(e)?e:Vu(e);return r.start(nR("",r,t,n)),r.animation}function jp(e,t,n,r={passive:true}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const u1e=(e,t)=>e.depth-t.depth;class d1e{constructor(){this.children=[],this.isDirty=false;}add(t){VA(this.children,t),this.isDirty=true;}remove(t){Bf(this.children,t),this.isDirty=true;}forEach(t){this.isDirty&&this.children.sort(u1e),this.isDirty=false,this.children.forEach(t);}}function f1e(e,t){const n=Do.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(mc(r),e(i-t));};return Vn.setup(r,true),()=>mc(r)}function Ny(e){return kr(e)?e.get():e}class m1e{constructor(){this.members=[];}add(t){VA(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&&(Bf(this.members,r),r.unmount());}t.scheduleRender();}remove(t){if(Bf(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 Py={hasAnimatedSinceResize:true,hasEverUpdated:false},Yw=["","X","Y","Z"],h1e=1e3;let p1e=0;function Xw(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0));}function Tj(e){if(e.hasCheckedOptimisedAppear=true,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=UV(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Vn,!(o||i));}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Tj(r);}function Aj({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},l=t?.()){this.id=p1e++,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(E1e),this.nodes.forEach($1e),this.nodes.forEach(y1e);},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 d1e);}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new UA),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=Z1(s)&&!ej(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;Vn.read(()=>{p=window.innerWidth;}),e(s,()=>{const b=window.innerWidth;b!==p&&(p=b,this.root.updateBlockedByResize=true,m&&m(),m=f1e(g,250),Py.hasAnimatedSinceResize&&(Py.hasAnimatedSinceResize=false,this.nodes.forEach(u_)));});}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()||N1e,{onLayoutAnimationStart:S,onLayoutAnimationComplete:x}=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={...tR(y,"layout"),onPlay:S,onComplete:x};(d.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=false),this.startAnimation(M),this.setAnimationOrigin(m,E);}else p||u_(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(),mc(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(M1e),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&&Tj(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()){const u=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=false,this.clearAllSnapshots(),u&&this.nodes.forEach(C1e),this.nodes.forEach(l_);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(c_);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=false,this.nodes.forEach(x1e),this.nodes.forEach(w1e),this.nodes.forEach(g1e),this.nodes.forEach(v1e)):this.nodes.forEach(c_),this.clearAllSnapshots();const l=Do.now();oo.delta=aa(0,1e3/60,l-oo.timestamp),oo.timestamp=l,oo.isProcessing=true,Hw.update.process(oo),Hw.preRender.process(oo),Hw.render.process(oo),oo.isProcessing=false;}didUpdate(){this.updateScheduled||(this.updateScheduled=true,lR.read(this.scheduleUpdate));}clearAllSnapshots(){this.nodes.forEach(S1e),this.sharedNodes.forEach(T1e);}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=true,Vn.preRender(this.updateProjection,false,true));}scheduleCheckAfterUnmount(){Vn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed();});}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_o(this.snapshot.measuredBox.x)&&!_o(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||(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&&!xj(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,m=d!==this.prevTransformTemplateValue;s&&this.instance&&(l||iu(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)),P1e(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(I1e))){const{scroll:d}=this.root;d&&(Ys(l.x,d.offset.x),Ys(l.y,d.offset.y));}return l}removeElementScroll(s){const l=wr();if(cs(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&&cs(l,s),Ys(l.x,m.offset.x),Ys(l.y,m.offset.y));}return l}applyTransform(s,l=false,u){const d=u||wr();cs(d,s);for(let m=0;m<this.path.length;m++){const p=this.path[m];!l&&p.options.layoutScroll&&p.scroll&&p!==p.root&&(Ys(d.x,-p.scroll.offset.x),Ys(d.y,-p.scroll.offset.y)),iu(p.latestValues)&&Ry(d,p.latestValues,p.layout?.layoutBox);}return iu(this.latestValues)&&Ry(d,this.latestValues,this.layout?.layoutBox),d}removeTransform(s){const l=wr();cs(l,s);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!iu(d.latestValues))continue;let m;d.instance&&(k3(d.latestValues)&&d.updateSnapshot(),m=wr(),cs(m,d.measurePageBox())),J8(l,d.latestValues,d.snapshot?.layoutBox,m);}return iu(this.latestValues)&&J8(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&&(this.options.layoutAnchor!==false&&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(),e1e(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,false,this.target):cs(this.target,this.layout.layoutBox),lj(this.target,this.targetDelta)):cs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=false,this.options.layoutAnchor!==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||k3(this.parent.latestValues)||aj(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(),F0(this.relativeTargetOrigin,l,u,this.options.layoutAnchor||void 0),cs(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;cs(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,g=this.treeScale.y;R0e(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():(q8(this.prevProjectionDelta.x,this.projectionDelta.x),q8(this.prevProjectionDelta.y,this.projectionDelta.y)),ip(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==g||!o_(this.projectionDelta.x,this.prevProjectionDelta.x)||!o_(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=hf(),this.projectionDelta=hf(),this.projectionDeltaWithTransform=hf();}setAnimationOrigin(s,l=false){const u=this.snapshot,d=u?u.latestValues:{},m={...this.latestValues},p=hf();(!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,x=this.getStack(),w=!x||x.members.length<=1,E=!!(S&&!w&&this.options.crossfade===true&&!this.path.some(R1e));this.animationProgress=0;let M;this.mixTargetDelta=T=>{const A=T/1e3;d_(p.x,s.x,A),d_(p.y,s.y,A),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(F0(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),A1e(this.relativeTarget,this.relativeTargetOrigin,g,A),M&&o1e(this.relativeTarget,M)&&(this.isProjectionDirty=false),M||(M=wr()),cs(M,this.relativeTarget)),S&&(this.animationValues=m,a1e(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&&(mc(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Vn.update(()=>{Py.hasAnimatedSinceResize=true,this.motionValue||(this.motionValue=Vu(0)),this.motionValue.jump(0,false),this.currentAnimation=Mj(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(h1e),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&&Rj(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||wr();const p=_o(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+p;const g=_o(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+g;}cs(l,u),Ry(l,m),ip(this.projectionDeltaWithTransform,this.layoutCorrected,l,m);}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new m1e),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&&Xw("z",s,d,this.animationValues);for(let m=0;m<Yw.length;m++)Xw(`rotate${Yw[m]}`,s,d,this.animationValues),Xw(`skew${Yw[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=Ny(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=Ny(l?.pointerEvents)||""),this.hasProjected&&!iu(this.latestValues)&&(s.transform=u?u({},""):"none",this.hasProjected=false);return}s.visibility="";const m=d.animationValues||d.latestValues;this.applyTransformsToTarget();let p=i1e(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 z3){if(m[y]===void 0)continue;const{correct:S,applyTo:x,isCSSVariable:w}=z3[y],E=p==="none"?m[y]:S(m[y],d);if(x){const M=x.length;for(let T=0;T<M;T++)s[x[T]]=E;}else w?this.options.visualElement.renderState.vars[y]=E:s[y]=E;}this.options.layoutId&&(s.pointerEvents=d===this?Ny(l?.pointerEvents)||"":"none");}clearSnapshot(){this.resumeFrom=this.snapshot=void 0;}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(l_),this.root.sharedNodes.clear();}}}function g1e(e){e.updateLayout();}function v1e(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")Us(m=>{const p=i?t.measuredBox[m]:t.layoutBox[m],g=_o(p);p.min=n[m].min,p.max=p.min+g;});else if(o==="x"||o==="y"){const m=o==="x"?"y":"x";F3(i?t.measuredBox[m]:t.layoutBox[m],n[m]);}else Rj(o,t.layoutBox,n)&&Us(m=>{const p=i?t.measuredBox[m]:t.layoutBox[m],g=_o(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=hf();ip(s,n,t.layoutBox);const l=hf();i?ip(l,e.applyTransform(r,true),t.measuredBox):ip(l,n,t.layoutBox);const u=!xj(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=e.options.layoutAnchor||void 0,y=wr();F0(y,t.layoutBox,p.layoutBox,b);const S=wr();F0(S,n,g.layoutBox,b),wj(y,S)||(d=true),m.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=y,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 y1e(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=false;}function S1e(e){e.clearSnapshot();}function l_(e){e.clearMeasurements();}function C1e(e){e.isLayoutDirty=true,e.updateLayout();}function c_(e){e.isLayoutDirty=false;}function x1e(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=true);}function w1e(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform();}function u_(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=true;}function E1e(e){e.resolveTargetDelta();}function $1e(e){e.calcProjection();}function M1e(e){e.resetSkewAndRotation();}function T1e(e){e.removeLeadSnapshot();}function d_(e,t,n){e.translate=Un(t.translate,0,n),e.scale=Un(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint;}function f_(e,t,n,r){e.min=Un(t.min,n.min,r),e.max=Un(t.max,n.max,r);}function A1e(e,t,n,r){f_(e.x,t.x,n.x,r),f_(e.y,t.y,n.y,r);}function R1e(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const N1e={duration:.45,ease:[.4,0,.1,1]},m_=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),h_=m_("applewebkit/")&&!m_("chrome/")?Math.round:Zi;function p_(e){e.min=h_(e.min),e.max=h_(e.max);}function P1e(e){p_(e.x),p_(e.y);}function Rj(e,t,n){return e==="position"||e==="preserve-aspect"&&!J0e(r_(t),r_(n),.2)}function I1e(e){return e!==e.root&&e.scroll?.wasRoot}const O1e=Aj({attachResizeListener:(e,t)=>jp(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>true}),Qw={current:void 0},Nj=Aj({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Qw.current){const e=new O1e({});e.mount(window),e.setOptions({layoutScroll:true}),Qw.current=e;}return Qw.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none";},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),tS=f.createContext({transformPagePoint:e=>e,isStatic:false,reducedMotion:"never"});function g_(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t);}function D1e(...e){return t=>{let n=false;const r=e.map(o=>{const i=g_(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():g_(e[o],null);}}}}function _1e(...e){return f.useCallback(D1e(...e),e)}class L1e extends f.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Ey(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==false){const r=n.offsetParent,o=Ey(r)&&r.offsetWidth||0,i=Ey(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 k1e({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(tS),m=e.props?.ref??e?.ref,p=_1e(l,m);return f.useInsertionEffect(()=>{const{width:g,height:b,top:y,left:S,right:x,bottom:w}=u.current;if(t||i===false||!l.current||!g||!b)return;const E=n==="left"?`left: ${S}`:`right: ${x}`,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]),ei.jsx(L1e,{isPresent:t,childRef:l,sizeRef:u,pop:i,children:i===false?e:f.cloneElement(e,{ref:p})})}const B1e=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:l,anchorY:u,root:d})=>{const m=Y1(z1e),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=ei.jsx(k1e,{pop:s==="popLayout",isPresent:n,anchorX:l,anchorY:u,root:d,children:e}),ei.jsx(X1.Provider,{value:b,children:e})};function z1e(){return new Map}function Pj(e=true){const t=f.useContext(X1);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 v_(e){const t=[];return f.Children.forEach(e,n=>{f.isValidElement(n)&&t.push(n);}),t}const F1e=({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]=Pj(s),g=f.useMemo(()=>v_(e),[e]),b=s&&!m?[]:g.map(Bb),y=f.useRef(true),S=f.useRef(g),x=Y1(()=>new Map),w=f.useRef(new Set),[E,M]=f.useState(g),[T,A]=f.useState(g);QH(()=>{y.current=false,S.current=g;for(let P=0;P<T.length;P++){const O=Bb(T[P]);b.includes(O)?(x.delete(O),w.current.delete(O)):x.get(O)!==true&&x.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],_=Bb(D);b.includes(_)||(P.splice(O,0,D),I.push(D));}return i==="wait"&&I.length&&(P=I),A(v_(P)),M(g),null}const{forceRender:N}=f.useContext(HA);return ei.jsx(ei.Fragment,{children:T.map(P=>{const O=Bb(P),D=s&&!m?false:g===T||b.includes(O),_=()=>{if(w.current.has(O))return;if(x.has(O))w.current.add(O),x.set(O,true);else return;let H=true;x.forEach(U=>{U||(H=false);}),H&&(N?.(),A(S.current),s&&p?.(),r&&r());};return ei.jsx(B1e,{isPresent:D,initial:!y.current||n?void 0:false,custom:t,presenceAffectsLayout:o,mode:i,root:d,onExitComplete:D?void 0:_,anchorX:l,anchorY:u,children:P},O)})})},Ij=f.createContext({strict:false}),b_={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 y_=false;function H1e(){if(y_)return;const e={};for(const t in b_)e[t]={isEnabled:n=>b_[t].some(r=>!!n[r])};rj(e),y_=true;}function Oj(){return H1e(),M0e()}function V1e(e){const t=Oj();for(const n in e)t[n]={...t[n],...e[n]};rj(t);}const j1e=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 H0(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||j1e.has(e)}let Dj=e=>!H0(e);function U1e(e){typeof e=="function"&&(Dj=t=>t.startsWith("on")?!H0(t):e(t));}try{U1e(require("@emotion/is-prop-valid").default);}catch{}function W1e(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||kr(e[o])||(Dj(o)||n===true&&H0(o)||!t&&!H0(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const nS=f.createContext({});function G1e(e,t){if(eS(e)){const{initial:n,animate:r}=e;return {initial:n===false||Vp(n)?n:void 0,animate:Vp(r)?r:void 0}}return e.inherit!==false?t:{}}function q1e(e){const{initial:t,animate:n}=G1e(e,f.useContext(nS));return f.useMemo(()=>({initial:t,animate:n}),[S_(t),S_(n)])}function S_(e){return Array.isArray(e)?e.join(" "):e}const pR=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _j(e,t,n){for(const r in t)!kr(t[r])&&!dj(r,n)&&(e[r]=t[r]);}function K1e({transformTemplate:e},t){return f.useMemo(()=>{const n=pR();return mR(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Y1e(e,t){const n=e.style||{},r={};return _j(r,n,e),Object.assign(r,K1e(e,t)),r}function X1e(e,t){const n={},r=Y1e(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 Lj=()=>({...pR(),attrs:{}});function Q1e(e,t,n,r){const o=f.useMemo(()=>{const i=Lj();return mj(i,t,pj(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};_j(i,e.style,e),o.style={...i,...o.style};}return o}const Z1e=["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 gR(e){return typeof e!="string"||e.includes("-")?false:!!(Z1e.indexOf(e)>-1||/[A-Z]/u.test(e))}function J1e(e,t,n,{latestValues:r},o,i=false,s){const u=(s??gR(e)?Q1e:X1e)(t,r,o,e),d=W1e(t,typeof e=="string",i),m=e!==f.Fragment?{...d,...u,ref:n}:{},{children:p}=t,g=f.useMemo(()=>kr(p)?p.get():p,[p]);return f.createElement(e,{...m,children:g})}function eSe({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return {latestValues:tSe(n,r,o,e),renderState:t()}}function tSe(e,t,n,r){const o={},i=r(e,{});for(const g in i)o[g]=Ny(i[g]);let{initial:s,animate:l}=e;const u=eS(e),d=tj(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"&&!J1(p)){const g=Array.isArray(p)?p:[p];for(let b=0;b<g.length;b++){const y=rR(e,g[b]);if(y){const{transitionEnd:S,transition:x,...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 kj=e=>(t,n)=>{const r=f.useContext(nS),o=f.useContext(X1),i=()=>eSe(e,t,r,o);return n?i():Y1(i)},nSe=kj({scrapeMotionValuesFromProps:hR,createRenderState:pR}),rSe=kj({scrapeMotionValuesFromProps:gj,createRenderState:Lj}),oSe=Symbol.for("motionComponentSymbol");function iSe(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 Bj=f.createContext({});function rf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function sSe(e,t,n,r,o,i){const{visualElement:s}=f.useContext(nS),l=f.useContext(Ij),u=f.useContext(X1),d=f.useContext(tS),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(Bj);y&&!y.projection&&o&&(y.type==="html"||y.type==="svg")&&aSe(g.current,n,o,S);const x=f.useRef(false);f.useInsertionEffect(()=>{y&&x.current&&y.update(n,u);});const w=n[jV],E=f.useRef(!!w&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return QH(()=>{b.current=true,y&&(x.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 aSe(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:l,layoutScroll:u,layoutRoot:d,layoutAnchor:m,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:zj(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||l&&rf(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:u,layoutRoot:d,layoutAnchor:m});}function zj(e){if(e)return e.options.allowProjection!==false?e.projection:zj(e.parent)}function Zw(e,{forwardMotionProps:t=false,type:n}={},r,o){r&&V1e(r);const i=n?n==="svg":gR(e),s=i?rSe:nSe;function l(d,m){let p;const g={...f.useContext(tS),...d,layoutId:lSe(d)},{isStatic:b}=g,y=q1e(d),S=s(d,b);if(!b&&typeof window<"u"){cSe();const x=uSe(g);p=x.MeasureLayout,y.visualElement=sSe(e,S,g,o,x.ProjectionNode,i);}return ei.jsxs(nS.Provider,{value:y,children:[p&&y.visualElement?ei.jsx(p,{visualElement:y.visualElement,...g}):null,J1e(e,d,iSe(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[oSe]=e,u}function lSe({layoutId:e}){const t=f.useContext(HA).id;return t&&e!==void 0?t+"-"+e:e}function cSe(e,t){f.useContext(Ij).strict;}function uSe(e){const t=Oj(),{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 dSe(e,t){if(typeof Proxy>"u")return Zw;const n=new Map,r=(i,s)=>Zw(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,Zw(s,void 0,e,t)),n.get(s))})}const fSe=(e,t)=>t.isSVG??gR(e)?new vj(t):new fj(t,{allowProjection:e!==f.Fragment});class mSe extends $c{constructor(t){super(t),t.animationState||(t.animationState=q0e(t));}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();J1(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 hSe=0;class pSe extends $c{constructor(){super(...arguments),this.id=hSe++,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=Ru(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 gSe={animation:{Feature:mSe},exit:{Feature:pSe}};function Pg(e){return {point:{x:e.pageX,y:e.pageY}}}const vSe=e=>t=>cR(t)&&e(t,Pg(t));function sp(e,t,n,r){return jp(e,t,vSe(n),r)}const Fj=({current:e})=>e?e.ownerDocument.defaultView:null,C_=(e,t)=>Math.abs(e-t);function bSe(e,t){const n=C_(e.x,t.x),r=C_(e.y,t.y);return Math.sqrt(n**2+r**2)}const x_=new Set(["auto","scroll"]);class Hj{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=zb(this.lastRawMoveEventInfo,this.transformPagePoint));const b=Jw(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,S=bSe(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!S)return;const{point:x}=b,{timestamp:w}=oo;this.history.push({...x,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=zb(y,this.transformPagePoint),Vn.update(this.updatePoint,true);},this.handlePointerUp=(b,y)=>{this.end();const{onEnd:S,onSessionEnd:x,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=Jw(b.type==="pointercancel"?this.lastMoveEventInfo:zb(y,this.transformPagePoint),this.history);this.startEvent&&S&&S(b,E),x&&x(b,E);},!cR(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const u=Pg(t),d=zb(u,this.transformPagePoint),{point:m}=d,{timestamp:p}=oo;this.history=[{...m,timestamp:p}];const{onSessionStart:g}=n;g&&g(t,Jw(d,this.history)),this.removeListeners=Ag(sp(this.contextWindow,"pointermove",this.handlePointerMove),sp(this.contextWindow,"pointerup",this.handlePointerUp),sp(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l);}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(x_.has(r.overflowX)||x_.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),Vn.update(this.updatePoint,true));}updateHandlers(t){this.handlers=t;}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),mc(this.updatePoint);}}function zb(e,t){return t?{point:t(e.point)}:e}function w_(e,t){return {x:e.x-t.x,y:e.y-t.y}}function Jw({point:e},t){return {point:e,delta:w_(e,Vj(t)),offset:w_(e,ySe(t)),velocity:SSe(t,.1)}}function ySe(e){return e[0]}function Vj(e){return e[e.length-1]}function SSe(e,t){if(e.length<2)return {x:0,y:0};let n=e.length-1,r=null;const o=Vj(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ti(t)));)n--;if(!r)return {x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>ti(t)*2&&(r=e[1]);const i=Xi(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 CSe(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Un(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Un(n,e,r.max):Math.min(e,n)),e}function E_(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 xSe(e,{top:t,left:n,bottom:r,right:o}){return {x:E_(e.x,n,o),y:E_(e.y,t,r)}}function $_(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 wSe(e,t){return {x:$_(e.x,t.x),y:$_(e.y,t.y)}}function ESe(e,t){let n=.5;const r=_o(e),o=_o(t);return o>r?n=zf(t.min,t.max-r,e.min):r>o&&(n=zf(e.min,e.max-o,t.min)),aa(0,1,n)}function $Se(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 H3=.35;function MSe(e=H3){return e===false?e=0:e===true&&(e=H3),{x:M_(e,"left","right"),y:M_(e,"top","bottom")}}function M_(e,t,n){return {min:T_(e,t),max:T_(e,n)}}function T_(e,t){return typeof e=="number"?e:e[t]||0}const TSe=new WeakMap;class ASe{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(Pg(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=i0e(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),Us(w=>{let E=this.getAxisMotionValue(w).get()||0;if(ra.test(E)){const{projection:M}=this.visualElement;if(M&&M.layout){const T=M.layout.layoutBox[w];T&&(E=_o(T)*(parseFloat(E)/100));}}this.originPoint[w]=E;}),S&&Vn.update(()=>S(p,g),false,true),O3(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",true);},l=(p,g)=>{this.latestPointerEvent=p,this.latestPanInfo=g;const{dragPropagation:b,dragDirectionLock:y,onDirectionLock:S,onDrag:x}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:w}=g;if(y&&this.currentDirection===null){this.currentDirection=NSe(w),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",g.point,w),this.updateAxis("y",g.point,w),this.visualElement.render(),x&&Vn.update(()=>x(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 Hj(t,{onSessionStart:i,onStart:s,onMove:l,onSessionEnd:u,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:Fj(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&&Vn.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||!Fb(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=CSe(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&&rf(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=xSe(r.layoutBox,t):this.constraints=false,this.elastic=MSe(n),o!==this.constraints&&!rf(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Us(i=>{this.constraints!==false&&this.getAxisMotionValue(i)&&(this.constraints[i]=$Se(r.layoutBox[i],this.constraints[i]));});}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!rf(t))return  false;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return  false;const i=N0e(r,o.root,this.visualElement.getTransformPagePoint());let s=wSe(o.layout.layoutBox,i);if(n){const l=n(T0e(s));this.hasMutatedConstraints=!!l,l&&(s=sj(l));}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},d=Us(m=>{if(!Fb(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 O3(this.visualElement,t),r.start(nR(t,r,0,n,this.visualElement,false))}stopAnimation(){Us(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){Us(n=>{const{drag:r}=this.getProps();if(!Fb(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]-Un(s,l,.5)+u);}});}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!rf(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Us(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==false){const u=l.get();o[s]=ESe({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(),Us(s=>{if(!Fb(s,t,null))return;const l=this.getAxisMotionValue(s),{min:u,max:d}=this.constraints[s];l.set(Un(u,d,o[s]));}),this.visualElement.render();}addListeners(){if(!this.visualElement.current)return;TSe.set(this.visualElement,this);const t=this.visualElement.current,n=sp(t,"pointerdown",d=>{const{drag:m,dragListener:p=true}=this.getProps(),g=d.target,b=g!==t&&d0e(g);m&&p&&!b&&this.start(d);});let r;const o=()=>{const{dragConstraints:d}=this.getProps();rf(d)&&d.current&&(this.constraints=this.resolveRefConstraints(),r||(r=RSe(t,d.current,()=>this.scalePositionWithinConstraints())));},{projection:i}=this.visualElement,s=i.addEventListener("measure",o);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Vn.read(o);const l=jp(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:m})=>{this.isDragging&&m&&(Us(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=H3,dragMomentum:l=true}=t;return {...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:l}}}function A_(e){let t=true;return ()=>{if(t){t=false;return}e();}}function RSe(e,t,n){const r=_8(e,A_(n)),o=_8(t,A_(n));return ()=>{r(),o();}}function Fb(e,t,n){return (t===true||t===e)&&(n===null||n===e)}function NSe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class PSe extends $c{constructor(t){super(t),this.removeGroupControls=Zi,this.removeListeners=Zi,this.controls=new ASe(t);}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Zi;}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 eE=e=>(t,n)=>{e&&Vn.update(()=>e(t,n),false,true);};class ISe extends $c{constructor(){super(...arguments),this.removePointerDownListener=Zi;}onPointerDown(t){this.session=new Hj(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fj(this.node)});}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return {onSessionStart:eE(t),onStart:eE(n),onMove:eE(r),onEnd:(i,s)=>{delete this.session,o&&Vn.postRender(()=>o(i,s));}}}mount(){this.removePointerDownListener=sp(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 tE=false;class OSe 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),tE&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove();}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Py.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}),tE=true,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Vn.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove();}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),lR.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove();}));}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;tE=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 jj(e){const[t,n]=Pj(),r=f.useContext(HA);return ei.jsx(OSe,{...e,layoutGroup:r,switchLayoutGroup:f.useContext(Bj),isPresent:t,safeToRemove:n})}const DSe={pan:{Feature:ISe},drag:{Feature:PSe,ProjectionNode:Nj,MeasureLayout:jj}};function R_(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&&Vn.postRender(()=>i(t,Pg(t)));}class _Se extends $c{mount(){const{current:t}=this.node;t&&(this.unmount=a0e(t,(n,r)=>(R_(this.node,r,"Start"),o=>R_(this.node,o,"End"))));}unmount(){}}class LSe extends $c{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=Ag(jp(this.node.current,"focus",()=>this.onFocus()),jp(this.node.current,"blur",()=>this.onBlur()));}unmount(){}}function N_(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&&Vn.postRender(()=>i(t,Pg(t)));}class kSe extends $c{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=m0e(t,(o,i)=>(N_(this.node,i,"Start"),(s,{success:l})=>N_(this.node,s,l?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:r?.tap===false});}unmount(){}}const V3=new WeakMap,nE=new WeakMap,BSe=e=>{const t=V3.get(e.target);t&&t(e);},zSe=e=>{e.forEach(BSe);};function FSe({root:e,...t}){const n=e||document;nE.has(n)||nE.set(n,{});const r=nE.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(zSe,{root:e,...t})),r[o]}function HSe(e,t,n){const r=FSe(t);return V3.set(e,n),r.observe(e),()=>{V3.delete(e),r.unobserve(e);}}const VSe={some:0,all:1};class jSe extends $c{constructor(){super(...arguments),this.hasEnteredView=false,this.isInView=false;}startObserver(){this.stopObserver?.();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:VSe[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);};this.stopObserver=HSe(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(USe(t,n))&&this.startObserver();}unmount(){this.stopObserver?.(),this.hasEnteredView=false,this.isInView=false;}}function USe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const WSe={inView:{Feature:jSe},tap:{Feature:kSe},focus:{Feature:LSe},hover:{Feature:_Se}},GSe={layout:{ProjectionNode:Nj,MeasureLayout:jj}},qSe={...gSe,...WSe,...DSe,...GSe},vR=dSe(qSe,fSe);function KSe(e){return f.useEffect(()=>()=>e(),[])}function YSe(){!fR.current&&nj();const[e]=f.useState(k0.current);return e}function XSe(){const e=YSe(),{reducedMotion:t}=f.useContext(tS);return t==="never"?false:t==="always"?true:e}function bR(e){return typeof e=="object"&&!Array.isArray(e)}function Uj(e,t,n,r){return e==null?[]:typeof e=="string"&&bR(t)?aR(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(o=>o!=null):[e]}function QSe(e,t,n){return e*(t+1)}function P_(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 ZSe(e,t,n){for(let r=0;r<e.length;r++){const o=e[r];o.at>t&&o.at<n&&(Bf(e,o),r--);}}function JSe(e,t,n,r,o,i){ZSe(e,o,i);for(let s=0;s<t.length;s++)e.push({value:t[s],at:Un(o,i,r[s]),easing:mV(n,s)});}function eCe(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1);}function tCe(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const nCe="easeInOut";function rCe(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,P_(p,y.at,m,d));continue}let[S,x,w={}]=y;w.at!==void 0&&(p=P_(p,w.at,m,d));let E=0;const M=(T,A,I,N=0,P=0)=>{const O=oCe(T),{delay:D=0,times:_=AV(O),type:H=t.type||"keyframes",repeat:U,repeatType:W,repeatDelay:z=0,...L}=A;let{ease:G=t.ease||"easeOut",duration:j}=A;const K=typeof D=="function"?D(N,P):D,X=O.length,k=eR(H)?H:o?.[H||"keyframes"];if(X<=2&&k){let te=100;if(X===2&&aCe(O)){const ie=O[1]-O[0];te=Math.abs(ie);}const ne={...t,...L};j!==void 0&&(ne.duration=ti(j));const re=$V(ne,te,k);G=re.ease,j=re.duration;}j??(j=i);const V=p+K;_.length===1&&_[0]===0&&(_[1]=1);const Q=_.length-O.length;if(Q>0&&TV(_,Q),O.length===1&&O.unshift(null),U){j=QSe(j,U);const te=[...O],ne=[..._];G=Array.isArray(G)?[...G]:[G];const re=[...G];for(let ie=0;ie<U;ie++){O.push(...te);for(let ue=0;ue<te.length;ue++)_.push(ne[ue]+(ie+1)),G.push(ue===0?"linear":mV(re,ue-1));}eCe(_,U);}const J=V+j;JSe(I,O,G,_,V,J),E=Math.max(K+j,E),g=Math.max(J,g);};if(kr(S)){const T=I_(S,l);M(x,w,O_("default",T));}else {const T=Uj(S,x,r,u),A=T.length;for(let I=0;I<A;I++){x=x,w=w;const N=T[I],P=I_(N,l);for(const O in x)M(x[O],iCe(w,O),O_(O,P),I,A);}}m=p,p+=E;}return l.forEach((b,y)=>{for(const S in b){const x=b[S];x.sort(tCe);const w=[],E=[],M=[];for(let N=0;N<x.length;N++){const{at:P,value:O,easing:D}=x[N];w.push(O),E.push(zf(0,g,P)),M.push(D||"easeOut");}E[0]!==0&&(E.unshift(0),w.unshift(w[0]),M.unshift(nCe)),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 I_(e,t){return !t.has(e)&&t.set(e,{}),t.get(e)}function O_(e,t){return t[e]||(t[e]=[]),t[e]}function oCe(e){return Array.isArray(e)?e:[e]}function iCe(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const sCe=e=>typeof e=="number",aCe=e=>e.every(sCe);function lCe(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Z1(e)&&!ej(e)?new vj(t):new fj(t);n.mount(e),Hp.set(e,n);}function cCe(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new k0e(t);n.mount(e),Hp.set(e,n);}function uCe(e,t){return kr(e)||typeof e=="number"||typeof e=="string"&&!bR(t)}function Wj(e,t,n,r){const o=[];if(uCe(e,t))o.push(Mj(e,bR(t)&&t.default||t,n&&(n.default||n)));else {if(e==null)return o;const i=Uj(e,t,r),s=i.length;for(let l=0;l<s;l++){const u=i[l],d=u instanceof Element?lCe:cCe;Hp.has(u)||d(u);const m=Hp.get(u),p={...n};"delay"in p&&typeof p.delay=="function"&&(p.delay=p.delay(l,s)),o.push(...iR(m,{...t,transition:p},{}));}}return o}function dCe(e,t,n){const r=[],o=e.map(s=>{if(Array.isArray(s)&&typeof s[0]=="function"){const l=s[0],u=Vu(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 rCe(o,t,n,{spring:Fp}).forEach(({keyframes:s,transition:l},u)=>{r.push(...Wj(u,s,l));}),r}function fCe(e){return Array.isArray(e)&&e.some(Array.isArray)}function Gj(e={}){const{scope:t,reduceMotion:n}=e;function r(o,i,s){let l=[],u;if(fCe(o)){const{onComplete:m,...p}=i||{};typeof m=="function"&&(u=m),l=dCe(o,n!==void 0?{reduceMotion:n,...p}:p,t);}else {const{onComplete:m,...p}=s||{};typeof m=="function"&&(u=m),l=Wj(o,i,n!==void 0?{reduceMotion:n,...p}:p,t);}const d=new Aye(l);return u&&d.finished.then(u),t&&(t.animations.push(d),d.finished.then(()=>{Bf(t.animations,d);})),d}return r}Gj();function mCe(){const e=Y1(()=>({current:null,animations:[]})),t=XSe()??void 0,n=f.useMemo(()=>Gj({scope:e,reduceMotion:t}),[e,t]);return KSe(()=>{e.animations.forEach(r=>r.stop()),e.animations.length=0;}),[e,n]}function Up({size:e=18,useAnimation:t=false,color:n="currentColor",...r}){return C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:e,height:e,...r,children:C(vR.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 qj=sve,yR=lve,SR=uve,Ig=fve,$o=hve,j3=gve,U3=bve,hCe=Sve,D_=xve,Kj=Eve,pCe=Mve,Yj=nve,gCe=Ave,vCe=Nve,bCe=Ive,yCe=Dve,V0=rve,Hf=Lve,SCe=Bve,CCe=Fve,j0=Vve,W3=Uve,U0=YH,Nu=qve,Xj=FA,mm=Yve,xCe=XH,CR=Zve,wCe="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 xR({active:e=false,...t}){return e?C("img",{...t,src:wCe}):C(ebe,{...t})}const wR=Tg(e=>B("svg",{viewBox:"0 0 20 20",fill:"currentColor",...e,children:[C("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"}),C("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"}),C("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"})]})),Qj=VX(),ER=Qj.os.name?.toLowerCase()==="mac os",ECe=Qj.browser.name||"",$R=e=>new RegExp(String.raw`\b${e}\b`,"i").test(ECe),Og=$R("safari");$R("firefox");$R("edge");const $Ce=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),MCe=f.forwardRef($Ce),TCe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"currentColor",d:"M16 3h6v6h-2V5h-4zM2 3h6v2H4v4H2zm18 16v-4h2v6h-6v-2zM4 19h4v2H2v-6h2z"})]}),ACe=f.forwardRef(TCe),RCe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[C("rect",{width:20,height:16,x:2,y:4,rx:2}),C("rect",{width:9,height:7,x:13,y:13,rx:2})]})]}),NCe=f.forwardRef(RCe),PCe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"currentColor",d:"M6 3h8.99v1.5H6zM2.99 6h1.5v1.5h-1.5zm0-3h1.5v1.5h-1.5zm0 6.01H4.5v1.5H2.99z"}),C("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"}),C("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"})]}),ICe=f.forwardRef(PCe),__="0";function Pu(e,t){GM.setClipboard(e),Wt.success(`已复制: ${e}`,t);}var hc=(e=>(e.PlayerScreenMode=`${HI}-player-screen-mode`,e.ForceAutoPlay=`${HI}-force-auto-play`,e))(hc||{}),ql=(e=>(e.Normal="normal",e.Wide="wide",e.WebFullscreen="web",e.Fullscreen="full",e))(ql||{}),MR=(e=>(e.ON="on",e.OFF="off",e))(MR||{}),cr=(e=>(e.Normal="Normal",e.CurrentPage="CurrentPage",e.NormalWebFullscreen="NormalWebFullscreen",e.Popup="Popup",e.Background="Background",e.Iina="Iina",e))(cr||{});const L_=Object.entries(cr).reduce((e,[t,n])=>({...e,[n]:`LinkOpenMode.${t}`}),{}),vi={Normal:{icon:C($o,{className:"size-16px"}),label:"打开",desc:"默认在新标签页中打开"},CurrentPage:{icon:C(MCe,{className:"size-16px"}),label:"当前页中打开",desc:"不打开新标签页, 使用当前标签页打开, 适用于将网站作为应用安装场景"},NormalWebFullscreen:{icon:C(ACe,{className:"size-15px"}),label:"打开-网页全屏",desc:C(_e,{children:"默认在新标签页中打开, 打开后自动网页全屏"})},Popup:{icon:C(NCe,{className:"size-15px"}),label:"小窗打开",desc:B(_e,{children:["当"," ",C("a",{href:"https://developer.chrome.com/docs/web-platform/document-picture-in-picture",target:"_blank",children:"「文档画中画」API"})," ","可用时, 会使用「文档画中画」的形式: 窗口置顶 + 播放页网页全屏.",C("br",{}),"当该 API 不可用时, 会使用 popup window + 播放页网页全屏 的形式."]})},Background:{icon:C(ICe,{className:"size-15px"}),label:"后台打开"},Iina:{icon:C(Ig,{className:"size-15px"}),label:"在 IINA 中打开",enabled:ER,desc:C(_e,{children:C("a",{href:"https://github.com/magicdawn/Bilibili-Gate/blob/main/notes/iina.md",target:"_blank",children:"macOS IINA 设置教程"})})}};function OCe(){return new uo}const Zj=OCe(),G3={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"}},DCe="z-2",_Ce="z-3",LCe="z-4",kCe="z-5",BCe="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||{}),Gr=(e=>(e.NormalGrid="grid",e.List="list",e.TwoColumnGrid="two-column-grid",e.CenterEmptyGrid="center-empty-grid",e))(Gr||{}),Iu=(e=>(e.Center="center",e.Left="left",e.Right="right",e))(Iu||{}),Vf=(e=>(e.Left="left",e.Right="right",e))(Vf||{}),Qs=(e=>(e[e.Offline=0]="Offline",e[e.Streaming=1]="Streaming",e[e.Rolling=2]="Rolling",e))(Qs||{}),Mo=(e=>(e.AddTimeDesc="add-time-desc",e.AddTimeAsc="add-time-asc",e.Shuffle="shuffle",e))(Mo||{});function Jj(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)&&Jj(o,i,n);}return [...new Set(n)]}function eU(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(...eU(o,i)));}return [...new Set(n)]}function zCe(e){const t=Jj(e),n=eU(e);return t.filter(r=>!n.includes(r))}const tU=C(FA,{className:"text-gate-primary [.ant-spin_.ant-spin-dot&]:size-25px"}),nU="flex items-center gap-x-1 [&.ant-btn:not(:disabled):focus-visible]:outline-0";function k_(e){if(/^z-\d+$/.test(e))return Number.parseInt(e.slice(2))}const FCe="z-1001",HCe="z-10004",VCe="z-10005",B_="z-11000",jCe="z-11200",UCe="z-11300",WCe="z-90000",z_={default:Y("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",WCe),singleLine:"text-center"};function tn(e,t=2e3,n=document.body){const r=document.createElement("div");r.textContent=e;const o=!e.includes(`
`)&&!e.includes("<br");r.className=Y(Is,z_.default,o&&z_.singleLine),n.appendChild(r),setTimeout(()=>r.remove(),t);}var rE,F_;function GCe(){if(F_)return rE;F_=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;rE=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 rE}var qCe=GCe();const Qr=bc(qCe),KCe={withStackTrace:false},rU=(e,t,n=KCe)=>{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 eu(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 H_(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 Xs(e){return this instanceof Xs?(this.v=e,this):new Xs(e)}function V_(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(x,w){i.push([b,S,x,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 Xs?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 YCe(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:Xs(e[o](s)),done:false}:i?i(s):s}:i;}}function XCe(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 H_=="function"?H_(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 Vs(r));return new io(n)}static fromPromise(t,n){const r=t.then(o=>new Vs(o)).catch(o=>new ms(n(o)));return new io(r)}static fromThrowable(t,n){return (...r)=>new io(eu(this,void 0,void 0,function*(){try{return new Vs(yield t(...r))}catch(o){return new ms(n?n(o):o)}}))}static combine(t){return QCe(t)}static combineWithAllErrors(t){return ZCe(t)}map(t){return new io(this._promise.then(n=>eu(this,void 0,void 0,function*(){return n.isErr()?new ms(n.error):new Vs(yield t(n.value))})))}andThrough(t){return new io(this._promise.then(n=>eu(this,void 0,void 0,function*(){if(n.isErr())return new ms(n.error);const r=yield t(n.value);return r.isErr()?new ms(r.error):new Vs(n.value)})))}andTee(t){return new io(this._promise.then(n=>eu(this,void 0,void 0,function*(){if(n.isErr())return new ms(n.error);try{yield t(n.value);}catch{}return new Vs(n.value)})))}orTee(t){return new io(this._promise.then(n=>eu(this,void 0,void 0,function*(){if(n.isOk())return new Vs(n.value);try{yield t(n.error);}catch{}return new ms(n.error)})))}mapErr(t){return new io(this._promise.then(n=>eu(this,void 0,void 0,function*(){return n.isOk()?new Vs(n.value):new ms(yield t(n.error))})))}andThen(t){return new io(this._promise.then(n=>{if(n.isErr())return new ms(n.error);const r=t(n.value);return r instanceof io?r._promise:r}))}orElse(t){return new io(this._promise.then(n=>eu(this,void 0,void 0,function*(){return n.isErr()?t(n.error):new Vs(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 V_(this,arguments,function*(){return yield Xs(yield Xs(yield*YCe(XCe(yield Xs(this._promise.then(n=>n.safeUnwrap()))))))})}then(t,n){return this._promise.then(t,n)}[Symbol.asyncIterator](){return V_(this,arguments,function*(){const n=yield Xs(this._promise);return n.isErr()&&(yield yield Xs(Iy(n.error))),yield Xs(n.value)})}}function Iy(e){return new io(Promise.resolve(new ms(e)))}const q3=io.fromThrowable,oU=e=>{let t=bs([]);for(const n of e)if(n.isErr()){t=Eo(n.error);break}else t.map(r=>r.push(n.value));return t},QCe=e=>io.fromSafePromise(Promise.all(e)).andThen(oU),iU=e=>{let t=bs([]);for(const n of e)n.isErr()&&t.isErr()?t.error.push(n.error):n.isErr()&&t.isOk()?t=Eo([n.error]):n.isOk()&&t.isOk()&&t.value.push(n.value);return t},ZCe=e=>io.fromSafePromise(Promise.all(e)).andThen(iU);var K3;(function(e){function t(o,i){return (...s)=>{try{const l=o(...s);return bs(l)}catch(l){return Eo(i?i(l):l)}}}e.fromThrowable=t;function n(o){return oU(o)}e.combine=n;function r(o){return iU(o)}e.combineWithAllErrors=r;})(K3||(K3={}));function bs(e){return new Vs(e)}function Eo(e){return new ms(e)}class Vs{constructor(t){this.value=t;}isOk(){return  true}isErr(){return !this.isOk()}map(t){return bs(t(this.value))}mapErr(t){return bs(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 bs(this.value)}orTee(t){return bs(this.value)}orElse(t){return bs(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 rU("Called `_unsafeUnwrapErr` on an Ok",this,t)}*[Symbol.iterator](){return this.value}}class ms{constructor(t){this.error=t;}isOk(){return  false}isErr(){return !this.isOk()}map(t){return Eo(this.error)}mapErr(t){return Eo(t(this.error))}andThrough(t){return Eo(this.error)}andTee(t){return Eo(this.error)}orTee(t){try{t(this.error);}catch{}return Eo(this.error)}andThen(t){return Eo(this.error)}orElse(t){return t(this.error)}asyncAndThen(t){return Iy(this.error)}asyncAndThrough(t){return Iy(this.error)}asyncMap(t){return Iy(this.error)}unwrapOr(t){return t}match(t,n){return n(this.error)}safeUnwrap(){const t=this.error;return (function*(){throw yield Eo(t),new Error("Do not use this generator out of `safeTry`")})()}_unsafeUnwrap(t){throw rU("Called `_unsafeUnwrap` on an Err",this,t)}_unsafeUnwrapErr(t){return this.error}*[Symbol.iterator](){const t=this;return yield t,t}}K3.fromThrowable;function JCe(e){const t=e.trim();if(!t)return new Headers;const n=t.split(`\r
`).map(r=>{let o=r.split(":");return [o[0].trim(),o[1].trim()]});return new Headers(n)}function exe(e,t){const n=JCe(t.responseHeaders),r=typeof t.response=="string"?new Blob([t.response],{type:n.get("Content-Type")||"text/plain"}):t.response;return new TR(r,{statusCode:t.status,statusText:t.statusText,headers:n,finalUrl:t.finalUrl,redirected:t.finalUrl===e.url})}class TR{constructor(t,n){this.rawBody=t,this.init=n,this.body=t.stream();const{headers:r,statusCode:o,statusText:i,finalUrl:s,redirected:l}=n;this.headers=r,this.status=o,this.statusText=i,this.url=s,this.type="basic",this.redirected=l,this._bodyUsed=false;}get bodyUsed(){return this._bodyUsed}get ok(){return this.status<300}arrayBuffer(){if(this.bodyUsed)throw new TypeError("Failed to execute 'arrayBuffer' on 'Response': body stream already read");return this._bodyUsed=true,this.rawBody.arrayBuffer()}blob(){if(this.bodyUsed)throw new TypeError("Failed to execute 'blob' on 'Response': body stream already read");return this._bodyUsed=true,Promise.resolve(this.rawBody.slice(0,this.rawBody.size,this.rawBody.type))}clone(){if(this.bodyUsed)throw new TypeError("Failed to execute 'clone' on 'Response': body stream already read");return new TR(this.rawBody,this.init)}formData(){if(this.bodyUsed)throw new TypeError("Failed to execute 'formData' on 'Response': body stream already read");return this._bodyUsed=true,this.rawBody.text().then(txe)}async json(){if(this.bodyUsed)throw new TypeError("Failed to execute 'json' on 'Response': body stream already read");return this._bodyUsed=true,JSON.parse(await this.rawBody.text())}text(){if(this.bodyUsed)throw new TypeError("Failed to execute 'text' on 'Response': body stream already read");return this._bodyUsed=true,this.rawBody.text()}async bytes(){if(this.bodyUsed)throw new TypeError("Failed to execute 'bytes' on 'Response': body stream already read");return this._bodyUsed=true,new Uint8Array(await this.rawBody.arrayBuffer())}}function txe(e){const t=new FormData;return e.trim().split("&").forEach(function(n){if(n){const r=n.split("="),o=r.shift()?.replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i));}}),t}async function nxe(e,t){const n=new Request(e,t);let r;return t?.body&&(r=await n.text()),await rxe(n,t,r)}function rxe(e,t,n){return new Promise((r,o)=>{if(e.signal&&e.signal.aborted)return o(new DOMException("Aborted","AbortError"));GM.xmlHttpRequest({url:e.url,method:sxe(e.method.toUpperCase()),headers:Object.fromEntries(new Headers(t?.headers).entries()),data:n,responseType:"blob",onload(i){try{r(exe(e,i));}catch(s){o(s);}},onabort(){o(new DOMException("Aborted","AbortError"));},ontimeout(){o(new TypeError("Network request failed, timeout"));},onerror(i){o(new TypeError("Failed to fetch: "+i.finalUrl));}});})}const oxe=["GET","POST","PUT","DELETE","PATCH","HEAD","TRACE","OPTIONS","CONNECT"];function ixe(e,t){return e.includes(t)}function sxe(e){if(ixe(oxe,e))return e;throw new Error(`unsupported http method ${e}`)}const oE=()=>Xn().format("YYYY-MM-DD");function sU(e){async function t(){const n=oE();(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}:${oE()}`,n);},get(){return t(),GM.getValue(`${e}:${oE()}`)}}}const axe=(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);!lxe(o,i)&&r||Object.defineProperty(e,n,i);},lxe=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)},cxe=(e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n);},uxe=(e,t)=>`/* Wrapped ${e}*/
${t}`,dxe=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),fxe=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),mxe=(e,t,n)=>{const r=n===""?"":`with ${n.trim()}() `,o=uxe.bind(null,r,t.toString());Object.defineProperty(o,"name",fxe);const{writable:i,enumerable:s,configurable:l}=dxe;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:s,configurable:l});};function hxe(e,t,{ignoreNonConfigurable:n=false}={}){const{name:r}=e;for(const o of Reflect.ownKeys(t))axe(e,t,o,n);return cxe(e,t),mxe(e,t,r),e}const pxe=new WeakMap;function AR(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 hxe(s,e,{ignoreNonConfigurable:true}),pxe.set(s,o),s}function sl(e,t){return t??=(...n)=>JSON.stringify(n),AR(e,{cache:false,cacheKey(n){return t(...n)}})}async function rS(e){const{img_key:t,sub_key:n}=await gxe(),r=yxe(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 aU=sU("wbi-keys"),gxe=sl(async function(){const e=await aU.get();return e?.val&&e?.ts&&Date.now()-e.ts<=Qr("6h")?e.val:vxe()});async function vxe(){const t=(await DM.get("/x/web-interface/nav",{baseURL:TB})).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 aU.set({val:o,ts:Date.now()}),o}const bxe=[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 yxe(e){return bxe.map(t=>e[t]).join("").slice(0,32)}function lU(e,t,n){e.appkey=t;const r=new URLSearchParams(e);return r.sort(),sparkMd5.hash(r.toString()+n)}const Sxe={platform:"ios",mobi_app:"ipad",device:"pad",build:"37300100",c_locale:"zh-Hans_CN",s_locale:"zh-Hans_CN"};class RR extends Error{constructor(t,n){t||="需要有效的 access_key",super(t,{cause:n}),this.name="NeedValidAccessKeyError";}}const Qt=cU(DM.create({baseURL:TB,withCredentials:true}));Qt.interceptors.request.use(async function(e){return e.params||={},e.url?.includes("/wbi/")&&!(e.params.w_rid||e.params.wts)&&(e.params=await rS(e.params)),e});function jn(e){return e?.code===0&&["0","success","ok"].includes(e?.message?.toLowerCase())}class oS extends Error{constructor(t,n){n||=`${KM} (code: ${t?.code}, message: ${t?.message})`,super(n),this.json=t,this.name="OperationFailError";}}class Cxe extends Error{constructor(t){super(`Axios Request Error: ${t?.message||t?.toString()}`,{cause:t}),this.name="AxiosRequestError";}}function Y3(e){return e&&e instanceof Error?e:new Cxe(e)}const Dg=cU(DM.create({baseURL:qM,adapter:"fetch",env:{fetch:nxe}}));Dg.interceptors.request.use(function(e){if(!e.params?.sign){const{appkey:t,appsec:n}=pp;e.params={appkey:t,access_key:ot.accessKey||"",...dB(e.params,["sign"])},e.params.sign=lU(e.params,t,n);}return e});Dg.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){Bo("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 cU(e){const t=e;return t.safeGet=q3(e.get,Y3),t.safePost=q3(e.post,Y3),t}function NR(){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 Mc(){const e=NR().bili_jct;if(!e)throw tn("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}function ii(){return NR().DedeUserID}function iS(){return !!NR().DedeUserID}const X3=Ec(()=>({cookie:document.cookie,logined:iS()}));function uU(){return X3.update(),X3.state.value.logined}function PR(){return X3.use().logined}const Hb={async search(e){return (await Qt.get("/x/article/creative/draft/list",{params:{keyword:e,ps:10,pn:1}})).data.artlist?.drafts||[]},async view(e){const n=(await Qt.get("/x/article/creative/draft/view",{params:{aid:e}})).data?.data?.opus?.content?.paragraphs||[];let r;if(n.length===1&&(r=n[0])&&r?.code?.content&&r?.code?.lang==="json"){const o=r.code.content,[i,s]=oc(()=>JSON.parse(o));if(s)return s}},async addOrUpdate(e,t,n){const r=JSON.stringify(n,null,2),o={arg:{type:4,template_id:1,category_id:15,article_id:e||void 0,title:t,private_pub:1,reprint:1,original:0,list_id:0,summary:t,opus:{opus_source:2,title:t,content:{paragraphs:[{para_type:8,code:{lang:"json",content:r}}]},pub_info:{editor_version:"eva3-2.0.1"}}}},i=await Qt.safePost("/x/dynamic/feed/article/draft/add",o,{params:{csrf:Mc()}});if(i.isErr())return Eo(i.error);const s=i.value.data;if(!jn(s))return Eo(new oS(s));const l=s.data.article_id;return bs(l)}};class xxe{constructor(t){this.title=t;}articleId;searchExistingArticleId=async()=>(await Hb.search(this.title)).find(r=>r.title===this.title)?.id;ensureDraftExists=async(t={})=>{if(this.articleId||(this.articleId=await this.searchExistingArticleId(),this.articleId))return;const n=await Hb.addOrUpdate(void 0,this.title,t);if(n.isErr()){Wt.error(`创建「专栏草稿」失败: ${n.error.message}`);return}this.articleId=n.value;};getData=async()=>{if(await this.ensureDraftExists(),!this.articleId)return;const t=await Hb.view(this.articleId);if(t)return t};setData=async t=>{if(await this.ensureDraftExists(t),!this.articleId)return  false;const n=await Hb.addOrUpdate(this.articleId,this.title,t);return n.isErr()&&Wt.error(`保存「专栏草稿」失败: ${n.error.message}`),n.isOk()}}const wxe=po.extend("settings"),dU=new xxe(Lo),fU=["accessKey","accessKeyExpireAt"],Exe=()=>[...fU,...W0,"backupSettingsToArticleDraft","fav.addSeparator","watchlaterAddSeparator","watchlaterItemsOrder","popularWeeklyUseShuffle","popularGeneralUseAnonymous"],$xe=[...fU,"backupSettingsToArticleDraft"];let mU=false;function hU(e){mU=e;}let iE;const Mxe=ca(dU.setData,Qr("5s"));function Txe(e){if(!e.backupSettingsToArticleDraft||mU)return;const{pickedSettings:t}=Tc(e,rc(al,Exe()));if(!iE||!Mi(iE,t))try{Mxe(t),iE=t,wxe("backup to article draft complete");}catch(r){console.error(r.stack||r);}}const Axe=po.extend("settings"),_g={accessKey:"",accessKeyExpireAt:0,pureRecommend:true,appRecommend:{addOtherTabContents:false},modalFeedFullScreen:false,grid:{useCustomGrid:true,gridDisplayMode:Gr.NormalGrid,twoColumnModeAlign:Iu.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:Vf.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:Mo.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},videoPlayPage:{addQuickLinks:false},__internalEnableCopyBvidInfo:false,__internalAddTabbarCopyBvidButton:false,__internalHotSubUseDropdown:false,__internalRecTabRenderAsSegments:false},ot=Dn(Tf(_g)),al=zCe(_g),W0=al.filter(e=>e.includes("__internal")&&typeof tr(_g,e)=="boolean");Axe("allowedLeafSettingsPaths = %O, internalBooleanPaths = %O",al,W0);function Ft(e){return gt(ot,e)}function sS(){return Br(ot)}const IR="settings";async function Lg(){const e=await GM.getValue(IR);return !e||typeof e!="object"?{}:(OR(e),Tc(e,al).pickedSettings)}async function Rxe(){const e=await Lg();ts(e),ua(ot,()=>{Nxe();}),OA({storageKey:IR,setPersist(t){pU=t;},onUpdate(t){ts(t);}});}async function Nxe(){const e=Tf(Br(ot));await Pxe(e),await Txe(e);}let pU=true;async function Pxe(e){pU&&await GM.setValue(IR,e);}function ts(e){const{pickedPaths:t}=Tc(e,al);for(const n of t){const r=tr(e,n);Kf(ot,n,r);}}function Ixe(){return ts(_g)}function OR(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=>!Qi(i);o(tr(e,n))||o(tr(e,r))&&Kf(e,n,tr(e,r));}}function Tc(e,t){const n={},r=t.filter(o=>al.includes(o)&&!Qi(tr(e,o)));return r.forEach(o=>{const i=tr(e,o);Kf(n,o,i);}),{pickedPaths:r,pickedSettings:n}}function gU(e){const t=Ft();return tr(t,e)}async function vU(e){const t=await Lg();return tr(t,e)||tr(sS(),e)}function Oxe(e,t){Kf(ot,e,t);}async function Ga(e,{add:t,remove:n}){const r=await vU(e),o=new Set(r);for(const i of t??[])o.add(i);for(const i of n??[])o.delete(i);Oxe(e,Array.from(o));}await( Rxe());el&&ot.accessKey&&ot.accessKeyExpireAt&&Date.now()>=ot.accessKeyExpireAt&&tn("access_key 已过期, 请重新获取 !!!");var Oy={exports:{}},Dxe=Oy.exports,j_;function _xe(){return j_||(j_=1,(function(e,t){(function(n,r){e.exports=r();})(Dxe,(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"},x=function(I){return I<0},w=function(I){return x(I)?Math.ceil(I):Math.floor(I)},E=function(I){return Math.abs(I)},M=function(I,N){return I?x(I)?{negative:true,format:""+E(I)+N}:{negative:false,format:""+I+N}:{negative:false,format:""}},T=(function(){function I(P,O,D){var _=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){_.$d[S(W)]=P[W];})),this.calMilliseconds(),this;if(typeof P=="string"){var H=P.match(p);if(H){var U=H.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 _=M(D,"D"),H=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"),L=P.negative||O.negative||_.negative||H.negative||U.negative||z.negative,G=H.format||U.format||z.format?"T":"",j=(L?"-":"")+"P"+P.format+O.format+_.format+G+H.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(_,H){return H||String(D[_])}))},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 _;return _=O?P*g[S(O)]:b(P)?P.$ms:y(P,this).$ms,y(this.$ms+_*(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(_,H){var U=P.locale();return y(_,{$l:U},H)},P.isDuration=b;var O=N.prototype.add,D=N.prototype.subtract;N.prototype.add=function(_,H){return b(_)?A(this,_,1):O.bind(this)(_,H)},N.prototype.subtract=function(_,H){return b(_)?A(this,_,-1):D.bind(this)(_,H)};}}));})(Oy)),Oy.exports}var Lxe=_xe();const kxe=bc(Lxe);function U_(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,true)}function W_(e,t,n){var r=[],o=JM(e,r,n);return r.length<2?n:o+t(r)}var DR=function(t){var n=zB(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=bf(d,n.registered,void 0);return eT(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=bf(d,n.registered),g="animation-"+p.name;return U_(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=bf(d,n.registered);U_(n,p);},s=function(){for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];return W_(n.registered,r,Bxe(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:JM.bind(null,n.registered),merge:W_.bind(null,n.registered,r)}},Bxe=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},G_=function(t,n){var r=arguments;if(n==null||!cg.call(n,"css"))return f.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=nT,i[1]=tT(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={}));})(G_||(G_={}));var _R=UB(function(e,t){var n=e.styles,r=bf([n],void 0,f.useContext(WB)),o=f.useRef();return e5(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]),e5(function(){var i=o.current,s=i[0],l=i[1];if(l){i[1]=false;return}if(r.next!==void 0&&eT(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 bf(t)}const bU=f.createContext(null),zxe={};function Fxe({children:e,defaultOptions:t=zxe}){const n=f.useMemo(()=>({defaultOptions:t}),[t]);return q.createElement(bU.Provider,{value:n},e)}function Hxe(){return f.useContext(bU)?.defaultOptions??{}}function Vxe(e){return e!==null&&typeof e=="object"&&"current"in e}function fa(){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 kg=["Control","Alt","Shift","Meta"];new Set(kg);const jf={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",OS:"Meta",os:"Meta",Win:"Meta",win:"Meta",CommandOrControl:"Mod",Mod:"Mod",commandorcontrol:"Mod",mod:"Mod"};function yU(e,t=fa()){return e==="Mod"?t==="mac"?"Meta":"Control":e}const jxe=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"]),Uxe=new Set(["0","1","2","3","4","5","6","7","8","9"]),Wxe=new Set(["F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]),Gxe=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),qxe=new Set(["Enter","Escape","Space","Tab","Backspace","Delete"]),Kxe=new Set(["/","[","]","\\","=","-",",",".",";","`"]),q_={Backquote:"`",Backslash:"\\",BracketLeft:"[",BracketRight:"]",Comma:",",Equal:"=",Minus:"-",Period:".",Semicolon:";",Slash:"/"};[...jxe,...Uxe,...Wxe,...Gxe,...qxe,...Kxe];const K_={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 SU(e){return new RegExp("^\\p{Letter}$","u").test(e)}function wf(e){if(e in K_)return K_[e];if(SU(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 Yxe={Control:"⌃",Alt:"⌥",Shift:"⇧",Meta:"⌘",Mod:"⌘"},Xxe={Control:"Control",Alt:"Option",Shift:"Shift",Meta:"Cmd",Mod:"Cmd"},CU={Control:"Ctrl",Alt:"Alt",Shift:"Shift",Meta:"Win",Mod:"Ctrl"},Qxe={...CU,Meta:"Super"},Zxe={"`":"Backquote","\\":"Backslash","[":"Left Bracket","]":"Right Bracket",",":"Comma","=":"Equal","-":"Minus",".":"Period",";":"Semicolon"},Jxe={ArrowUp:"↑",ArrowDown:"↓",ArrowLeft:"←",ArrowRight:"→",Enter:"↵",Escape:"Esc",Backspace:"⌫",Delete:"⌦",Tab:"⇥",Space:"␣"};function LR(e,t=fa()){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=wf(s);else {const l=jf[s]??jf[s.toLowerCase()];if(l){const u=yU(l,t);r.add(u);}else n.length===1&&(o=wf(s));}}return !o&&n.length>0&&(o=wf(n[n.length-1].trim())),{key:o,ctrl:r.has("Control"),shift:r.has("Shift"),alt:r.has("Alt"),meta:r.has("Meta"),modifiers:kg.filter(i=>r.has(i))}}function xU(e,t=fa()){let n=e.ctrl??false;const r=e.shift??false,o=e.alt??false;let i=e.meta??false;e.mod&&(yU("Mod",t)==="Control"?n=true:i=true);const s=kg.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 wU(e,t){const n=t==="mac"?e.meta&&!e.ctrl:e.ctrl&&!e.meta,r=[];if(n)r.push("Mod"),e.alt&&r.push("Alt"),e.shift&&r.push("Shift");else for(const o of kg)e.modifiers.includes(o)&&r.push(o);return r.push(wf(e.key)),r.join("+")}function ewe(e,t=fa()){return wU(LR(e,t),t)}function twe(e,t=fa()){return wU(e,t)}function EU(e,t=fa()){return typeof e=="string"?ewe(e,t):twe(xU(e,t),t)}function nwe(e){return e in jf||e.toLowerCase()in jf}function rwe(e){const t=[];for(const n of kg)e.modifiers.includes(n)&&t.push(n);return t.push(e.key),t.join("+")}function $U(e,t={}){const n=t.platform??fa(),r=t.useSymbols??true,o=t.separatorToken??(n==="mac"&&r?" ":"+");return EU(e,n).split("+").map(i=>{if(nwe(i)){const s=jf[i]??jf[i.toLowerCase()];return n==="mac"?r?Yxe[s]:Xxe[s]:n==="windows"?CU[s]:Qxe[s]}else {const s=r&&Jxe[i];return s||!r&&Zxe[i]||i}}).join(o)}function G0(e,t,n=fa()){const r=typeof t=="string"?LR(t,n):t;if(e.ctrlKey!==r.ctrl||e.shiftKey!==r.shift||e.altKey!==r.alt||e.metaKey!==r.meta)return  false;const o=wf(e.key),i=r.key;if(o!=="Dead"&&o.length===1&&i.length===1){if(o.toUpperCase()===i.toUpperCase())return  true;if(SU(o)&&(/^[A-Za-z]$/.test(o)||!e.altKey))return  false}if(e.code&&(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 e.code in q_?q_[e.code]===i:false}return o===i}const owe={preventDefault:true,stopPropagation:true,eventType:"keydown",enabled:true,ignoreInputs:true,conflictBehavior:"warn"};function iwe(e){return !(e.ctrl||e.meta||e.key==="Escape")}function swe(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 awe(e){return typeof document>"u"?null:typeof Document<"u"&&e instanceof Document||typeof Node<"u"&&e.nodeType===Node.DOCUMENT_NODE?e.activeElement:typeof HTMLElement<"u"&&e instanceof HTMLElement?e.ownerDocument.activeElement??null:e.document.activeElement??null}function lwe(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 cwe(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 er=(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))(er||{});function uwe({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 x=y.subs;x.nextSub!==void 0&&l(x),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 x=d.nextDep;if(x!==void 0){d=x;continue}}for(;g--;){const x=m.subs,w=x.nextSub!==void 0;if(w?(d=p.value,p=p.prev):d=x,b){if(e(m)){w&&l(x),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}}function MU(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 Q3=[];let Dy=0;const{link:Y_,unlink:dwe,propagate:fwe,checkDirty:TU,shallowPropagate:X_}=uwe({update(e){return e._update()},notify(e){Q3[Z3++]=e,e.flags&=~er.Watching;},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=er.Mutable|er.Dirty,q0(e));}});let Vb=0,Z3=0,Gs;function q0(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=dwe(n,e);}function mwe(){for(;Vb<Z3;){const e=Q3[Vb];Q3[Vb++]=void 0,e.notify();}Vb=0,Z3=0;}function hwe(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?er.None:er.Mutable,get(){return Gs!==void 0&&Y_(o,Gs,Dy),o._snapshot},subscribe(i){const s=MU(i),l={current:false},u=pwe(()=>{o.get(),l.current?s.next?.(o._snapshot):l.current=!0;});return {unsubscribe:()=>{u.stop();}}},_update(i){const s=Gs,l=Object.is;if(n)Gs=o,++Dy,o.depsTail=void 0;else if(i===void 0)return  false;n&&(o.flags=er.Mutable|er.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{Gs=s,n&&(o.flags&=~er.RecursedCheck),q0(o);}}};return n?(o.flags=er.Mutable|er.Dirty,o.get=function(){const i=o.flags;if(i&er.Dirty||i&er.Pending&&TU(o.deps,o)){if(o._update()){const s=o.subs;s!==void 0&&X_(s);}}else i&er.Pending&&(o.flags=i&~er.Pending);return Gs!==void 0&&Y_(o,Gs,Dy),o._snapshot}):o.set=function(i){if(o._update(i)){const s=o.subs;s!==void 0&&(fwe(s),X_(s),mwe());}},o}function pwe(e){const t=()=>{const r=Gs;Gs=n,++Dy,n.depsTail=void 0,n.flags=er.Watching|er.RecursedCheck;try{return e()}finally{Gs=r,n.flags&=~er.RecursedCheck,q0(n);}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:er.Watching|er.RecursedCheck,notify(){const r=this.flags;r&er.Dirty||r&er.Pending&&TU(this.deps,this)?t():this.flags=er.Watching;},stop(){this.flags=er.None,this.depsTail=void 0,q0(this);}};return t(),n}class gwe{constructor(t){this.atom=hwe(t);}setState(t){this.atom.set(t);}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(MU(t))}}let vwe=0;function Q_(){return `hotkey_${++vwe}`}var bwe=class Vl{static#n=null;#t;#e=new Map;#r=new Map;constructor(){this.registrations=new gwe(new Map),this.#t=fa();}static getInstance(){return Vl.#n||(Vl.#n=new Vl),Vl.#n}static resetInstance(){Vl.#n&&(Vl.#n.destroy(),Vl.#n=null);}register(t,n,r={}){if(typeof document>"u"&&!r.target){let y=n;return {id:Q_(),unregister:()=>{},get callback(){return y},set callback(S){y=S;},setOptions:()=>{},get isActive(){return  false}}}const o=Q_(),i=r.platform??this.#t,s=typeof t=="string"?LR(t,i):xU(t,i),l=typeof t=="string"?t:rwe(s),u=r.target??document,d=r.conflictBehavior??"warn",m=this.#d(l,u);m&&cwe(m.id,l,d,y=>this.#s(y));const p=r.ignoreInputs??iwe(s),g={id:o,hotkey:l,parsedHotkey:s,callback:n,options:{...owe,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 x=S.get(o);if(x){const w=new Map(S);return w.set(o,{...x,options:{...x.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&&lwe(t,n)&&s.options.enabled&&!(s.options.ignoreInputs!==false&&[awe(n),t.target].some(l=>swe(l)&&l!==s.target)))if(r==="keydown"){if(s.options.eventType!=="keydown")continue;G0(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"&&G0(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=wf(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 ywe(){return bwe.getInstance()}function To(e,t,n={}){const r={...Hxe().hotkey,...n},o=ywe(),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=EU(e,r.platform??fa()),{target:g,...b}=r;f.useEffect(()=>{const y=Vxe(l.current.target)?l.current.target.current:l.current.target??(typeof document<"u"?document:null);if(!y){i.current?.isActive&&(i.current.unregister(),i.current=null),d.current=null,m.current=null;return}const S=d.current!==null&&d.current!==y,x=m.current!==null&&m.current!==p;return i.current?.isActive&&(S||x)&&(i.current.unregister(),i.current=null),(!i.current||!i.current.isActive)&&(i.current=u.current.register(p,s.current,{...l.current,target:y})),d.current=y,m.current=p,()=>{i.current?.isActive&&(i.current.unregister(),i.current=null);}},[p]),i.current?.isActive&&(i.current.callback=t,i.current.setOptions(b));}var Eh={},sE={exports:{}},Z_;function Bg(){return Z_||(Z_=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;})(sE)),sE.exports}var $h={},J_;function Swe(){if(J_)return $h;J_=1,Object.defineProperty($h,"__esModule",{value:true}),$h.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 $h.default=e,$h}var Mh={},Th={},Ah={},Rh={},eL;function Cwe(){return eL||(eL=1,Object.defineProperty(Rh,"__esModule",{value:true}),Rh.commonLocale=void 0,Rh.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:true}),Rh}var tL;function xwe(){if(tL)return Ah;tL=1,Object.defineProperty(Ah,"__esModule",{value:true}),Ah.default=void 0;var e=Cwe();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 Ah.default=l,Ah}var Nh={},nL;function AU(){if(nL)return Nh;nL=1,Object.defineProperty(Nh,"__esModule",{value:true}),Nh.default=void 0;const e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};return Nh.default=e,Nh}var rL;function RU(){if(rL)return Th;rL=1;var e=Bg().default;Object.defineProperty(Th,"__esModule",{value:true}),Th.default=void 0;var t=e(xwe()),n=e(AU());const r={lang:{placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"],...t.default},timePickerLocale:{...n.default}};return r.lang.ok="确定",Th.default=r,Th}var oL;function wwe(){if(oL)return Mh;oL=1;var e=Bg().default;Object.defineProperty(Mh,"__esModule",{value:true}),Mh.default=void 0;var t=e(RU());return Mh.default=t.default,Mh}var iL;function Ewe(){if(iL)return Eh;iL=1;var e=Bg().default;Object.defineProperty(Eh,"__esModule",{value:true}),Eh.default=void 0;var t=e(Swe()),n=e(wwe()),r=e(RU()),o=e(AU());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 Eh.default=s,Eh}var aE,sL;function $we(){return sL||(sL=1,aE=Ewe()),aE}var Mwe=$we();const Twe=bc(Mwe),Awe="--bilibili-gate--font",Rwe="--bilibili-gate--video-card--border-radius",NU="--bilibili-gate--primary-color",Nwe="--bilibili-gate--border-color",PU="--bilibili-gate--text-color",IU="--bilibili-gate--bg",Pwe="--bilibili-gate--primary-color--lv1",Iwe="--bilibili-gate--primary-color--lv2",Owe="--bilibili-gate--primary-color--lv3",Dwe="--bilibili-gate--bg--lv1",_we="--bilibili-gate--bg--lv2",Lwe="--bilibili-gate--bg--lv3",kwe="#ff6699",Bwe='"Alibaba PuHuiTi 3.0", "PingFang SC", "HarmonyOS_Regular", "Helvetica Neue", "Microsoft YaHei", sans-serif',OU="var(--custom-font-family--options--font-family, var(--bilibili-gate--font))",zwe="bilibili-gate-root",DU="bilibili-gate-using-dark",_U="bilibili-gate-using-light",LU="html.bilibili-gate-using-dark",Fwe="html.bilibili-gate-using-light",ll={appCustomFontId:Awe,appVideoCardBorderRadiusId:Rwe,appPrimaryColorId:NU,appBorderColorId:Nwe,appTextColorId:PU,appBgId:IU,appPrimaryColorLv1Id:Pwe,appPrimaryColorLv2Id:Iwe,appPrimaryColorLv3Id:Owe,appBgLv1Id:Dwe,appBgLv2Id:_we,appBgLv3Id:Lwe,biliPink:kwe,appCustomFontValue:Bwe,appUsingFont:OU,appClsRoot:zwe,appClsDark:DU,appClsLight:_U,appClsDarkSelector:LU,appClsLightSelector:Fwe},aL=po.extend("utility:dom"),kU=10*1e3,BU=200;async function td(e,t){const n=t?.interval??BU;let r=t?.timeout??kU;r===0&&(r=1/0);const o=t?.validate??(m=>!Qi(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 aS(e,t,n){const r=n?.pollTimeout??kU,o=n?.pollInterval??BU,i=n?.selectorPredicate,s=n?.warnOnTimeout??false,l=await td(()=>{let u=Array.from(document.querySelectorAll(e));if(i&&(u=u.filter(i)),u.length)return u},{timeout:r,interval:o});if(!l?.length){aL("tryAction: timeout for selector = `%s`",e),s&&Bo("tryAction timeout, selector = `%s`",e);return}aL("tryAction: selector=`%s` count=%s",e,l.length);for(const u of l)await Promise.resolve(t(u));}async function ap(e,t,n){return aS(e,r=>r.remove(),{selectorPredicate:t,warnOnTimeout:false})}function Hwe(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 Vwe(){return !!Hwe(document.activeElement)}function jwe(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 lS(e){return new Promise(t=>{typeof requestIdleCallback=="function"?requestIdleCallback(()=>t(),e):setTimeout(t);})}let lE="";function kR(e){lE||(lE=document.title),document.title=`${e} - ${lE}`;}function J3(...e){return e.map(t=>t.trim()).filter(Boolean).map(t=>t.startsWith(".")?t:`.${t}`).join(",")}const Wp={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}}},lL=e=>{const t=e.getDetectEl();return t?e.detect(t):false},Uf=Ec(()=>lL(Wp.Bili)||lL(Wp.Evolved)||document.body.classList.contains("bilibili-helper-dark-mode")||document.documentElement.classList.contains("dark"));function cS(){return Uf.use()}const zU=()=>{document.documentElement.classList.toggle(DU,Uf.get()),document.documentElement.classList.toggle(_U,!Uf.get());};zU();ua(Uf.state,zU);const BR=new MutationObserver(async()=>{await gn(0),Uf.updateThrottled();});BR.observe(document.body,{attributes:true,attributeFilter:["class"]});BR.observe(document.documentElement,{attributes:true,attributeFilter:["data-darkreader-scheme"]});Uwe();async function Uwe(){const e=await td(Wp.Bili.getDetectEl);e&&BR.observe(e,{attributes:true});}document.addEventListener("click",Wwe,{passive:true});async function Wwe(e){const t=e.target;(Wp.Bili.isTrigger(t)||t.closest(Wp.Evolved.trigger))&&(await gn(0),Uf.updateThrottled());}const Gwe=po.extend("components:css-vars");Gwe(":export = %O",ll);const Ac=e=>(e.startsWith("--")||(e=`--${e}`),`var(${e})`),zR=Ac(ll.appVideoCardBorderRadiusId),ns=Ac(ll.appPrimaryColorId),FU=Ac(ll.appBorderColorId);Ac(ll.appTextColorId);const eM=Ac(ll.appBgId),K0=Ac(ll.appBgLv1Id),qwe=Ac(ll.appBgLv2Id);Ac(ll.appBgLv3Id);const nd={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 Kwe(){return I0.useToken().token.colorPrimaryHover}function rd(){const{popoverBorderColorUseColorPrimary:e}=gt(ot.style.general),t=Kwe();return e?t:FU}function Ywe(){const e=rd();return f.useMemo(()=>({border:`1px solid ${e}`}),[e])}function Xwe(){const{colorLink:e,colorLinkActive:t,colorLinkHover:n}=I0.useToken().token;return f.useMemo(()=>un("color:",e,";&:visited{color:",e,";}&:hover{color:",n,";}&:active{color:",t,";}",""),[e,t,n])}const HU=`${Kr}--use-ant-link-color`;function Qwe(){const e=Xwe();return un(":root .",HU,"{",e,";}","")}var Zwe=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);}},gs=function(){return gs=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},gs.apply(this,arguments)};function VU(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 jU(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 UU(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 WU=function(e){return typeof e=="function"},rt=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 Ya=Zwe(f.useEffect);var GU=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,Ya(function(){!n&&o&&(m.current=true,e.run.apply(e,lo([],gr(s),false)));},[o]),Ya(function(){m.current||n||(m.current=true,d?d():e.refresh());},lo([],gr(u),false)),{onBefore:function(){if(!o)return {stopNow:true}}}};GU.onInit=function(e){var t=e.ready,n=t===void 0?true:t,r=e.manual;return {loading:!r&&n}};function tM(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 zg=function(e,t){var n=f.useRef({deps:t,obj:void 0,initialized:false}).current;return (n.initialized===false||!tM(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=true),n.obj};function Fg(e){var t=f.useRef(e);return t.current=e,t}var hm=function(e){var t=Fg(e);f.useEffect(function(){return function(){t.current();}},[]);},_y=new Map,Jwe=function(e,t,n){var r=_y.get(e);r?.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){_y.delete(e);},t)),_y.set(e,gs(gs({},n),{timer:o}));},eEe=function(e){return _y.get(e)},Ly=new Map,tEe=function(e){return Ly.get(e)},nEe=function(e,t){Ly.set(e,t),t.then(function(n){return Ly.delete(e),n}).catch(function(){Ly.delete(e);});},uu={},rEe=function(e,t){uu[e]&&uu[e].forEach(function(n){return n(t)});},cE=function(e,t){return uu[e]||(uu[e]=[]),uu[e].push(t),function(){var r=uu[e].indexOf(t);uu[e].splice(r,1);}},oEe=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):Jwe(b,o,y),rEe(b,y.data);},g=function(b,y){return y===void 0&&(y=[]),u?u(y):eEe(b)};return zg(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=cE(n,function(y){e.setState({data:y});});}},[]),hm(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=tEe(n);return S&&S!==m.current?{servicePromise:S}:(S=b.apply(void 0,lo([],gr(y),false)),m.current=S,nEe(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=cE(n,function(x){e.setState({data:x});}));},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=cE(n,function(S){e.setState({data:S});}));}}:{}},uE,cL;function FR(){if(cL)return uE;cL=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return uE=e,uE}var dE,uL;function iEe(){if(uL)return dE;uL=1;var e=typeof fb=="object"&&fb&&fb.Object===Object&&fb;return dE=e,dE}var fE,dL;function qU(){if(dL)return fE;dL=1;var e=iEe(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return fE=n,fE}var mE,fL;function sEe(){if(fL)return mE;fL=1;var e=qU(),t=function(){return e.Date.now()};return mE=t,mE}var hE,mL;function aEe(){if(mL)return hE;mL=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return hE=t,hE}var pE,hL;function lEe(){if(hL)return pE;hL=1;var e=aEe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return pE=n,pE}var gE,pL;function KU(){if(pL)return gE;pL=1;var e=qU(),t=e.Symbol;return gE=t,gE}var vE,gL;function cEe(){if(gL)return vE;gL=1;var e=KU(),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 vE=i,vE}var bE,vL;function uEe(){if(vL)return bE;vL=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return bE=n,bE}var yE,bL;function dEe(){if(bL)return yE;bL=1;var e=KU(),t=cEe(),n=uEe(),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 yE=s,yE}var SE,yL;function fEe(){if(yL)return SE;yL=1;function e(t){return t!=null&&typeof t=="object"}return SE=e,SE}var CE,SL;function mEe(){if(SL)return CE;SL=1;var e=dEe(),t=fEe(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return CE=r,CE}var xE,CL;function hEe(){if(CL)return xE;CL=1;var e=lEe(),t=FR(),n=mEe(),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 xE=u,xE}var wE,xL;function YU(){if(xL)return wE;xL=1;var e=FR(),t=sEe(),n=hEe(),r="Expected a function",o=Math.max,i=Math.min;function s(l,u,d){var m,p,g,b,y,S,x=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,x=U,b=l.apply(z,W),b}function A(U){return x=U,y=setTimeout(P,u),w?T(U):b}function I(U){var W=U-S,z=U-x,L=u-W;return E?i(L,g-z):L}function N(U){var W=U-S,z=U-x;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),x=0,m=S=p=y=void 0;}function _(){return y===void 0?b:O(t())}function H(){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 H.cancel=D,H.flush=_,H}return wE=s,wE}var pEe=YU();const gEe=bc(pEe);var vEe=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=gEe(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();}}:{}},bEe=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();}}},Hg=!!(typeof window<"u"&&window.document&&window.document.createElement);function HR(){return Hg?document.visibilityState!=="hidden":true}var ky=new Set;function yEe(e){return ky.add(e),function(){ky.has(e)&&ky.delete(e);}}if(Hg){var SEe=function(){HR()&&ky.forEach(function(e){return e()});};window.addEventListener("visibilitychange",SEe,false);}var CEe=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 Ya(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&&!HR()?u.current=yEe(function(){e.refresh();}):e.refresh();},n):d.current=0;},onCancel:function(){m();}}:{}};function xEe(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 wEe=function(){return Hg&&typeof navigator.onLine<"u"?navigator.onLine:true},By=new Set;function EEe(e){return By.add(e),function(){By.has(e)&&By.delete(e);}}if(Hg){var wL=function(){!HR()||!wEe()||By.forEach(function(e){return e()});};window.addEventListener("visibilitychange",wL,false),window.addEventListener("focus",wL,false);}var $Ee=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=xEe(e.refresh.bind(e),o);i.current=EEe(function(){l();});}return function(){s();}},[n,o]),hm(function(){s();}),{}},MEe=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);}}:{}},EE,EL;function TEe(){if(EL)return EE;EL=1;var e=YU(),t=FR(),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 EE=r,EE}var AEe=TEe();const REe=bc(AEe);var NEe=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=REe(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},[]);},PEe=function(){var e=gr(f.useState({}),2),t=e[1];return rt(function(){return t({})})},IEe=(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=gs(gs(gs({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=gs(gs({},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 jU(this,void 0,void 0,function(){var r,o,i,s,l,u,d,m,p,g,b,y,S,x,w,E,M,T,A,I,N;return UU(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=VU(o,["stopNow","returnNow"]),s)return [2,Promise.resolve(d.data)];if(this.setState(gs({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=(x=this.options).onSuccess)===null||w===void 0||w.call(x,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=WU(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e})();function OEe(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=VU(t,["manual","ready"]),u=gs({manual:o,ready:s},l),d=Fg(e),m=PEe(),p=zg(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 IEe(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));}}),hm(function(){p.cancel();}),{loading:p.state.loading,data:p.state.data,error:p.state.error,params:p.state.params||[],cancel:rt(p.cancel.bind(p)),refresh:rt(p.refresh.bind(p)),refreshAsync:rt(p.refreshAsync.bind(p)),run:rt(p.run.bind(p)),runAsync:rt(p.runAsync.bind(p)),mutate:rt(p.mutate.bind(p))}}function $s(e,t,n){return OEe(e,t,lo(lo([],gr([]),false),[vEe,bEe,CEe,$Ee,NEe,GU,oEe,MEe],false))}function XU(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 DEe(e){var t=gr(XU(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 Vg(e,t){if(Hg){if(!e)return t;var n;return WU(e)?n=e():"current"in e?n=e.current:n=e,n}}var _Ee=function(e){return e.every(function(t){var n=Vg(t);return n?n.getRootNode()instanceof ShadowRoot:false})},LEe=function(e){return e?e.getRootNode():document},kEe=function(e){if(!e||!document.getRootNode)return document;var t=Array.isArray(e)?e:[e];return _Ee(t)?LEe(Vg(t[0])):document},BEe=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 Vg(g)});if(!i.current){i.current=true,s.current=p,l.current=r,u.current=n();return}(p.length!==s.current.length||!tM(s.current,p)||!tM(l.current,r))&&((d=u.current)===null||d===void 0||d.call(u),s.current=p,l.current=r,u.current=n());}),hm(function(){var d;(d=u.current)===null||d===void 0||d.call(u),i.current=false;});};return t},QU=BEe(f.useEffect);function zEe(e,t,n){n===void 0&&(n="click");var r=Fg(e);QU(function(){var o=function(l){var u=Array.isArray(t)?t:[t];u.some(function(d){var m=Vg(d);return !m||m.contains(l.target)})||r.current(l);},i=kEe(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 Ms(e,t,n){n===void 0&&(n={});var r=n.enable,o=r===void 0?true:r,i=Fg(t);QU(function(){if(o){var s=Vg(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 uS=(function(e,t){var n={},r=n.onEnter,o=n.onLeave,i=n.onChange,s=gr(DEe(),2),l=s[0],u=s[1],d=u.setTrue,m=u.setFalse;return Ms("mouseenter",function(){r?.(),d(),i?.(true);},{target:e}),Ms("mouseleave",function(){o?.(),m(),i?.(false);},{target:e}),l});function dS(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 jU(t,void 0,void 0,function(){var i,s;return UU(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 $L(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 hm(function(){cancelAnimationFrame(t.current);}),[r,i]}var FEe=function(e,t){return !Object.is(e,t)};function VR(e,t){t===void 0&&(t=FEe);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 ZU=function(){var e=f.useRef(false);return f.useEffect(function(){return e.current=false,function(){e.current=true;}},[]),e};function HEe(e){return [...new Set(e)]}function VEe(e,t){if(!e)throw Error(t)}const JU=String.raw,tu=(e,...t)=>new RegExp(JU(e,...t)),ML=JU`(\d+(\.\d+)?)?(xs|sm|md|lg|xl)`,jb="(solid|dashed|dotted|double|none|hidden)";function hr(e,t){return VEe(e.endsWith("-"),"prefix must end with `-`"),t.map(n=>e+n)}const jEe=[[[...["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"],[tu`^(text|text-size|font-size)-(\d+|${ML}$)`,"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"],[tu`^b(?:order)?-${jb}$`,"border-style"],[tu`^b(?:order)?-([tblrxyse])-${jb}$`,(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",tu`^outline-${jb}$`],"outline-style"],[tu`^divide-${jb}$`,"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"]),tu`^shadow-${ML}$`],"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=>[tu`^${e}($|-)`,e])],nM=new Map,eW=new Map;for(let[e,t]of jEe){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);nM.set(i,s);}),o.forEach(i=>{eW.set(i,t);});}function UEe(e){if(nM.has(e))return nM.get(e);for(let[t,n]of eW.entries())if(t.test(e)){let r=t.exec(e);return typeof n=="string"?n:n(e,r)}}function WEe(e){return GEe.map(t=>typeof t=="string"?[t,t]:t).find(([t,n])=>e.startsWith(`${t}-`))}const GEe=["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"],TL=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 qEe(e){return (e||"").split(" ").map(t=>t.trim()).filter(Boolean)}function tW(...e){let t=new Map;return qEe(Y(...e)).filter(Boolean).forEach(n=>KEe(n,t)),HEe(Array.from(t.values())).join(" ")}function KEe(e,t){let n=e,r;function o(p){[p].flat().forEach(g=>{TL.has(g)&&[TL.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=UEe(e);if(p)return o(p),true}function s(){let p=WEe(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(()=>Y(...e),[...e]);return f.useMemo(()=>tW(t),[t])}const YEe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),XEe=f.forwardRef(YEe),ko={modalMask:Y("fixed inset-0 flex items-center justify-center bg-black/50",VCe),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`,QEe=un("body:has(.",rM,"){overflow-y:hidden;}","");function jg({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=rt(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();});To("Escape",b=>{u.current&&(u.current.matches(`:has(~ .${rM})`)||(b.preventDefault(),b.stopImmediatePropagation(),setTimeout(t)));},{enabled:e&&l,conflictBehavior:"allow"});const p=or(ko.modalMask,r),g=or(ko.modal,o);return e?Oo.createPortal(C("div",{className:Y(Is,{[rM]:e}),"data-role":"base-modal",ref:u,children:C("div",{className:p,onClick:m,children:C("div",{className:g,style:{width:i},ref:d,children:n})})}),document.body):null}const Ug=({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 C(XEe,{...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 ZEe=[{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:"极深紫红"}],JEe=[{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)"}],Y0={id:"default-bili-pink",name:"B站粉",colorPrimary:Yf.Pink,tooltip:"B站品牌色"},nW={id:"color-picker",name:"自定义",isCustom:true,colorPrimary:Yf.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 jR="UP长期洗涤",t$e=e$e(jR,`
  #0545b2 理想之蓝
  #f4cd00 柠檬黄
  #ef2729 石榴红
  #f89c00 鹿箭
  #233728 黛绿
  #f2b9b7 和熙粉
  #f3cc91 芝士黄
  #6b4c68 葡萄紫
  #ff7227 落日橙
  #004d62 碧海天
  #23909b 洗碧空
  #aeb400 芥丝绿
  #425a17 箬叶青

  #002fa7 克莱因蓝
  #003153 普鲁士蓝
  #01847f 马尔斯绿
  #fbd26a 申布伦黄
  #470024 勃艮第红
  #492d22 凡戴克棕
  `),rW="bilibili-evolved-sync",oW=[{name:"预设",themes:[Y0,{id:"bilibili-blue",name:"B站蓝",colorPrimary:Yf.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:rW,name:"B-Evolved",colorPrimary:`var(--theme-color,${GH()})`,tooltip:B(_e,{children:["使用 Bilibili-Evolved 的主题色",C("br",{}),"在 Bilibili-Evolved 设置中修改主题色后可能需要刷新页面同步"]})},nW]},{name:"LX Themes",themes:JEe,tooltip:B(_e,{children:["提取自"," ",C("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),C("br",{}),"Apache License 2.0"]})},{name:jR,themes:t$e,tooltip:B(_e,{children:["提取自"," ",C("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",C("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})},{name:"紫定能行",themes:ZEe.map(e=>({id:`purple-colors-${e.name}`,name:e.nameZh,colorPrimary:e.hex,tooltip:B(_e,{children:[e.name," ",e.nameZh," ",C("br",{}),e.desc]})})),tooltip:B(_e,{children:["提取自"," ",C("a",{target:"_blank",href:"https://magicdawn.github.io/purple-colors/",children:"purple-colors"})," "]})}],n$e=oW.map(e=>e.themes).flat(),AL={[`${jR}:马尔斯绿`]:B(_e,{children:["马尔斯绿 MARRS GREEN ",C("br",{}),"2017年英国的百年造纸商G.F SMITH和英国城市文化节联合发起了「选出全世界最受欢迎的颜色」的活动, ",C("br",{}),"在为期半年由来自100多个约3万名用户的投票后,由来自苏格兰的联合国教科文组织工作人员 ",C("br",{}),"安妮•马尔斯(ANNIE MARRS)提交的一种蓝绿色当选。 ",C("br",{}),"马尔斯绿也因此由ANNIE MARRS的姓氏和主色调组合而得名。 ",C("br",{}),"马尔斯绿的灵感来源于ANNIE家乡苏格兰的泰勒河畔自然景观的一种蓝绿色调。 ",C("br",{})]})};function iW(){let{theme:e,colorPickerThemeSelectedColor:t}=Ft();return e||=Y0.id,f.useMemo(()=>{const n=n$e.find(r=>r.id===e)||Y0;return n.id===nW.id&&t?{...n,colorPrimary:t}:n},[e,t])}function sW(){const e=iW(),t=Mg.use();let n=e.colorPrimary;return e.id===rW&&(n=t||GH()),n}function r$e(e,t){return e||t?"--bg1":"--bg2"}function o$e(){const e=sW(),t=cS(),n=Qwe(),{style:{pureRecommend:{useWhiteBackground:r}}}=Ft(),o=f.useMemo(()=>({bgSrc:r$e(t,r),bgFallback:t?"#17181a":r?"#fff":"#f6f7f8",text:t?"#fff":"#333"}),[t,r]);return C(_R,{styles:[n,QEe,un`
            :root {
              ${NU}: ${e};
              ${IU}: var(${o.bgSrc}, ${o.bgFallback});
              ${PU}: var(--text1, ${o.text});
            }
          `,"",""]})}var i$e={name:"1ughwg6",styles:".bili-feed4 .bili-header{min-height:64px!important;}"},s$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 a$e(){const{grid:{useCustomGrid:e},style:{pureRecommend:{useWhiteBackground:t,hideTopChannel:n}}}=Ft(),r=cS(),o=Qge(),i=kA.use(),s=BA.use()??90,l="0 10px";if(el)return C(_R,{styles:[s$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(".",Is,"{--back-top-right:",o,"px;}",""),un("body{background-color:",eM,"!important;}.large-header,#i_cecream,body>#app,.bili-header.large-header,.bili-header.large-header .bili-header__channel{background-color:",eM,";}",""),!r&&!t&&un(".bili-header .bili-header__channel .channel-entry-more__link,.bili-header .bili-header__channel .channel-link{background-color:",K0,";}",""),n&&un(".bili-header__channel,.bili-header__banner{display:none!important;}",!i&&i$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 l$e(...e){return function(t){return e.reduceRight((n,r)=>r?r(n):n,t)}}function ma({children:e,cssInsertContainer:t,cssInsertContainerEmotionKey:n}){t&&Nr(n,"cssInsertContainerEmotionKey is required when cssInsertContainer is provided");const r=f.useMemo(()=>{if(t)return DR({key:n,container:t}).cache},[t,n]),o=cS(),i=sW();return l$e(!!r&&(l=>C(nJ,{value:r,children:l})),!!t&&(l=>C(WJ,{container:t,children:l})),l=>C(Fxe,{defaultOptions:{hotkey:{requireReset:true}},children:l}),l=>C(Fo,{locale:Twe,button:{autoInsertSpace:false},getPopupContainer:u=>u?.closest("."+Is)??document.body,theme:{algorithm:o?I0.darkAlgorithm:I0.defaultAlgorithm,token:{colorPrimary:i,colorBgSpotlight:i,zIndexPopupBase:k_(B_),fontFamily:OU},components:{Notification:{zIndexPopup:k_(B_)},Button:{defaultShadow:"none",primaryShadow:"none"},Dropdown:{}}},children:l}))(e)}function fS({antd:e,baseGlobalStyle:t,homePageGlobalStyle:n}){return B(_e,{children:[e&&C(Jge,{}),t&&C(o$e,{}),n&&C(a$e,{})]})}function c$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 mS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function pm(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function UR(e){return "nodeType"in e}function si(e){var t,n;return e?pm(e)?e:UR(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function WR(e){const{Document:t}=si(e);return e instanceof t}function Wg(e){return pm(e)?false:e instanceof si(e).HTMLElement}function aW(e){return e instanceof si(e).SVGElement}function gm(e){return e?pm(e)?e.document:UR(e)?WR(e)?e:Wg(e)||aW(e)?e.ownerDocument:document:document:document}const la=mS?f.useLayoutEffect:f.useEffect;function GR(e){const t=f.useRef(e);return la(()=>{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 u$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 Gp(e,t){t===void 0&&(t=[e]);const n=f.useRef(e);return la(()=>{n.current!==e&&(n.current=e);},t),n}function Gg(e,t){const n=f.useRef();return f.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function X0(e){const t=GR(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 $E={};function qg(e,t){return f.useMemo(()=>{if(t)return t;const n=$E[e]==null?0:$E[e]+1;return $E[e]=n,e+"-"+n},[e,t])}function lW(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 Ef=lW(1),Q0=lW(-1);function d$e(e){return "clientX"in e&&"clientY"in e}function qR(e){if(!e)return  false;const{KeyboardEvent:t}=si(e.target);return t&&e instanceof t}function f$e(e){if(!e)return  false;const{TouchEvent:t}=si(e.target);return t&&e instanceof t}function iM(e){if(f$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 d$e(e)?{x:e.clientX,y:e.clientY}:null}const Wf=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 [Wf.Translate.toString(e),Wf.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),RL="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function m$e(e){return e.matches(RL)?e:e.querySelector(RL)}const h$e={display:"none"};function p$e(e){let{id:t,value:n}=e;return q.createElement("div",{id:t,style:h$e},n)}function g$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 v$e(){const[e,t]=f.useState("");return {announce:f.useCallback(r=>{r!=null&&t(r);},[]),announcement:e}}const cW=f.createContext(null);function uW(e){const t=f.useContext(cW);f.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t]);}function b$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 y$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.
  `},S$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 C$e(e){let{announcements:t=S$e,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=y$e}=e;const{announce:i,announcement:s}=v$e(),l=qg("DndLiveRegion"),[u,d]=f.useState(false);if(f.useEffect(()=>{d(true);},[]),uW(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(p$e,{id:r,value:o.draggable}),q.createElement(g$e,{id:l,announcement:s}));return n?Oo.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 Z0(){}function x$e(e,t){return f.useMemo(()=>({sensor:e,options:{}}),[e,t])}function w$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 Ps=Object.freeze({x:0,y:0});function E$e(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function $$e(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function M$e(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function T$e(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function NL(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 A$e=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=NL(t,t.left,t.top),i=[];for(const s of r){const{id:l}=s,u=n.get(l);if(u){const d=E$e(NL(u),o);i.push({id:l,data:{droppableContainer:s,value:d}});}}return i.sort($$e)};function R$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 N$e=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=R$e(l,t);u>0&&o.push({id:s,data:{droppableContainer:i,value:u}});}}return o.sort(M$e)};function P$e(e,t,n){return {...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function dW(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ps}function I$e(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 O$e=I$e(1);function D$e(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 _$e(e,t,n){const r=D$e(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 L$e={ignoreTransform:false};function vm(e,t){t===void 0&&(t=L$e);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:m}=si(e).getComputedStyle(e);d&&(n=_$e(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 PL(e){return vm(e,{ignoreTransform:true})}function k$e(e){const t=e.innerWidth,n=e.innerHeight;return {top:0,left:0,right:t,bottom:n,width:t,height:n}}function B$e(e,t){return t===void 0&&(t=si(e).getComputedStyle(e)),t.position==="fixed"}function z$e(e,t){t===void 0&&(t=si(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 KR(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(WR(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Wg(o)||aW(o)||n.includes(o))return n;const i=si(e).getComputedStyle(o);return o!==e&&z$e(o,i)&&n.push(o),B$e(o,i)?n:r(o.parentNode)}return e?r(e):n}function fW(e){const[t]=KR(e,1);return t??null}function ME(e){return !mS||!e?null:pm(e)?e:UR(e)?WR(e)||e===gm(e).scrollingElement?window:Wg(e)?e:null:null}function mW(e){return pm(e)?e.scrollX:e.scrollLeft}function hW(e){return pm(e)?e.scrollY:e.scrollTop}function sM(e){return {x:mW(e),y:hW(e)}}var Wr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward";})(Wr||(Wr={}));function pW(e){return !mS||!e?false:e===document.scrollingElement}function gW(e){const t={x:0,y:0},n=pW(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 F$e={x:.2,y:.2};function H$e(e,t,n,r,o){let{top:i,left:s,right:l,bottom:u}=n;r===void 0&&(r=10),o===void 0&&(o=F$e);const{isTop:d,isBottom:m,isLeft:p,isRight:g}=gW(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=Wr.Backward,y.y=r*Math.abs((t.top+S.height-i)/S.height)):!m&&u>=t.bottom-S.height&&(b.y=Wr.Forward,y.y=r*Math.abs((t.bottom-S.height-u)/S.height)),!g&&l>=t.right-S.width?(b.x=Wr.Forward,y.x=r*Math.abs((t.right-S.width-l)/S.width)):!p&&s<=t.left+S.width&&(b.x=Wr.Backward,y.x=r*Math.abs((t.left+S.width-s)/S.width)),{direction:b,speed:y}}function V$e(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 vW(e){return e.reduce((t,n)=>Ef(t,sM(n)),Ps)}function j$e(e){return e.reduce((t,n)=>t+mW(n),0)}function U$e(e){return e.reduce((t,n)=>t+hW(n),0)}function W$e(e,t){if(t===void 0&&(t=vm),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);fW(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"});}const G$e=[["x",["left","right"],j$e],["y",["top","bottom"],U$e]];class YR{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=KR(n),o=vW(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,s,l]of G$e)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 lp{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 q$e(e){const{EventTarget:t}=si(e);return e instanceof t?e:gm(e)}function TE(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 Ui;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange";})(Ui||(Ui={}));function IL(e){e.preventDefault();}function K$e(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 bW={start:[$n.Space,$n.Enter],cancel:[$n.Esc],end:[$n.Space,$n.Enter,$n.Tab]},Y$e=(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 yW{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 lp(gm(n)),this.windowListeners=new lp(si(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach();}attach(){this.handleStart(),this.windowListeners.add(Ui.Resize,this.handleCancel),this.windowListeners.add(Ui.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ui.Keydown,this.handleKeyDown));}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&W$e(r),n(Ps);}handleKeyDown(t){if(qR(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=bW,coordinateGetter:s=Y$e,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}:Ps;this.referenceCoordinates||(this.referenceCoordinates=m);const p=s(t,{active:n,context:r.current,currentCoordinates:m});if(p){const g=Q0(p,m),b={x:0,y:0},{scrollableAncestors:y}=r.current;for(const S of y){const x=t.code,{isTop:w,isRight:E,isLeft:M,isBottom:T,maxScroll:A,minScroll:I}=gW(S),N=V$e(S),P={x:Math.min(x===$n.Right?N.right-N.width/2:N.right,Math.max(x===$n.Right?N.left:N.left+N.width/2,p.x)),y:Math.min(x===$n.Down?N.bottom-N.height/2:N.bottom,Math.max(x===$n.Down?N.top:N.top+N.height/2,p.y))},O=x===$n.Right&&!E||x===$n.Left&&!M,D=x===$n.Down&&!T||x===$n.Up&&!w;if(O&&P.x!==p.x){const _=S.scrollLeft+g.x,H=x===$n.Right&&_<=A.x||x===$n.Left&&_>=I.x;if(H&&!g.y){S.scrollTo({left:_,behavior:l});return}H?b.x=S.scrollLeft-_:b.x=x===$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 _=S.scrollTop+g.y,H=x===$n.Down&&_<=A.y||x===$n.Up&&_>=I.y;if(H&&!g.x){S.scrollTo({top:_,behavior:l});return}H?b.y=S.scrollTop-_:b.y=x===$n.Down?S.scrollTop-A.y:S.scrollTop-I.y,b.y&&S.scrollBy({top:-b.y,behavior:l});break}}this.handleMove(t,Ef(Q0(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();}}yW.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=bW,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 OL(e){return !!(e&&"distance"in e)}function DL(e){return !!(e&&"delay"in e)}class XR{constructor(t,n,r){var o;r===void 0&&(r=q$e(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=gm(s),this.documentListeners=new lp(this.document),this.listeners=new lp(r),this.windowListeners=new lp(si(s)),this.initialCoordinates=(o=iM(i))!=null?o:Ps,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(Ui.Resize,this.handleCancel),this.windowListeners.add(Ui.DragStart,IL),this.windowListeners.add(Ui.VisibilityChange,this.handleCancel),this.windowListeners.add(Ui.ContextMenu,IL),this.documentListeners.add(Ui.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(DL(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(OL(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(Ui.Click,K$e,{capture:true}),this.removeTextSelection(),this.documentListeners.add(Ui.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:Ps,d=Q0(o,u);if(!r&&l){if(OL(l)){if(l.tolerance!=null&&TE(d,l.tolerance))return this.handleCancel();if(TE(d,l.distance))return this.handleStart()}if(DL(l)&&TE(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 X$e={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class QR extends XR{constructor(t){const{event:n}=t,r=gm(n.target);super(t,X$e,r);}}QR.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 Q$e={move:{name:"mousemove"},end:{name:"mouseup"}};var aM;(function(e){e[e.RightClick=2]="RightClick";})(aM||(aM={}));class Z$e extends XR{constructor(t){super(t,Q$e,gm(t.event.target));}}Z$e.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===aM.RightClick?false:(r?.({event:n}),true)}}];const AE={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class J$e extends XR{constructor(t){super(t,AE);}static setup(){return window.addEventListener(AE.move.name,t,{capture:false,passive:false}),function(){window.removeEventListener(AE.move.name,t);};function t(){}}}J$e.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 cp;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect";})(cp||(cp={}));var J0;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder";})(J0||(J0={}));function e2e(e){let{acceleration:t,activator:n=cp.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:l=J0.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:m,delta:p,threshold:g}=e;const b=n2e({delta:p,disabled:!i}),[y,S]=u$e(),x=f.useRef({x:0,y:0}),w=f.useRef({x:0,y:0}),E=f.useMemo(()=>{switch(n){case cp.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case cp.DraggableRect:return o}},[n,o,u]),M=f.useRef(null),T=f.useCallback(()=>{const I=M.current;if(!I)return;const N=x.current.x*w.current.x,P=x.current.y*w.current.y;I.scrollBy(N,P);},[]),A=f.useMemo(()=>l===J0.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}=H$e(I,P,E,t,g);for(const _ of ["x","y"])b[_][O[_]]||(D[_]=0,O[_]=0);if(D.x>0||D.y>0){S(),M.current=I,y(T,s),x.current=D,w.current=O;return}}x.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 t2e={x:{[Wr.Backward]:false,[Wr.Forward]:false},y:{[Wr.Backward]:false,[Wr.Forward]:false}};function n2e(e){let{delta:t,disabled:n}=e;const r=oM(t);return Gg(o=>{if(n||!r||!o)return t2e;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return {x:{[Wr.Backward]:o.x[Wr.Backward]||i.x===-1,[Wr.Forward]:o.x[Wr.Forward]||i.x===1},y:{[Wr.Backward]:o.y[Wr.Backward]||i.y===-1,[Wr.Forward]:o.y[Wr.Forward]||i.y===1}}},[n,t,r])}function r2e(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Gg(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function o2e(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 qp;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging";})(qp||(qp={}));var lM;(function(e){e.Optimized="optimized";})(lM||(lM={}));const _L=new Map;function i2e(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=x(),g=Gp(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=Gg(w=>{if(p&&!n)return _L;if(!w||w===_L||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 YR(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 x(){switch(d){case qp.Always:return  false;case qp.BeforeDragging:return n;default:return !n}}}function SW(e,t){return Gg(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function s2e(e,t){return SW(e,t)}function a2e(e){let{callback:t,disabled:n}=e;const r=GR(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 hS(e){let{callback:t,disabled:n}=e;const r=GR(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 l2e(e){return new YR(vm(e),e)}function LL(e,t,n){t===void 0&&(t=l2e);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=a2e({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=hS({callback:i});return la(()=>{i(),e?(l?.observe(e),s?.observe(document.body,{childList:true,subtree:true})):(l?.disconnect(),s?.disconnect());},[e]),r}function c2e(e){const t=SW(e);return dW(e,t)}const kL=[];function u2e(e){const t=f.useRef(e),n=Gg(r=>e?r&&r!==kL&&e&&t.current&&e.parentNode===t.current.parentNode?r:KR(e):kL,[e]);return f.useEffect(()=>{t.current=e;},[e]),n}function d2e(e){const[t,n]=f.useState(null),r=f.useRef(e),o=f.useCallback(i=>{const s=ME(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=ME(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=ME(u);d?.removeEventListener("scroll",o);});}},[o,e]),f.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>Ef(i,s),Ps):vW(e):Ps,[e,t])}function BL(e,t){t===void 0&&(t=[]);const n=f.useRef(null);return f.useEffect(()=>{n.current=null;},t),f.useEffect(()=>{const r=e!==Ps;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null);},[e]),n.current?Q0(e,n.current):Ps}function f2e(e){f.useEffect(()=>{if(!mS)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 m2e(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 CW(e){return f.useMemo(()=>e?k$e(e):null,[e])}const zL=[];function h2e(e,t){t===void 0&&(t=vm);const[n]=e,r=CW(n?si(n):null),[o,i]=f.useState(zL);function s(){i(()=>e.length?e.map(u=>pW(u)?r:new YR(t(u),u)):zL);}const l=hS({callback:s});return la(()=>{l?.disconnect(),s(),e.forEach(u=>l?.observe(u));},[e]),o}function p2e(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Wg(t)?t:e}function g2e(e){let{measure:t}=e;const[n,r]=f.useState(null),o=f.useCallback(d=>{for(const{target:m}of d)if(Wg(m)){r(p=>{const g=t(m);return p?{...p,width:g.width,height:g.height}:g});break}},[t]),i=hS({callback:o}),s=f.useCallback(d=>{const m=p2e(d);i?.disconnect(),m&&i?.observe(m),r(m?t(m):null);},[t,i]),[l,u]=X0(s);return f.useMemo(()=>({nodeRef:l,rect:n,setRef:u}),[n,l,u])}const v2e=[{sensor:QR,options:{}},{sensor:yW,options:{}}],b2e={current:{}},zy={draggable:{measure:PL},droppable:{measure:PL,strategy:qp.WhileDragging,frequency:lM.Optimized},dragOverlay:{measure:vm}};class up 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 y2e={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new up,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Z0},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:zy,measureDroppableContainers:Z0,windowRect:null,measuringScheduled:false},S2e={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Z0,draggableNodes:new Map,over:null,measureDroppableContainers:Z0},pS=f.createContext(S2e),xW=f.createContext(y2e);function C2e(){return {draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new up}}}function x2e(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 up(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 up(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 up(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function w2e(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=f.useContext(pS),i=oM(r),s=oM(n?.id);return f.useEffect(()=>{if(!t&&!r&&i&&s!=null){if(!qR(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=m$e(m);if(p){p.focus();break}}});}},[r,t,o,s,i]),null}function E2e(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function $2e(e){return f.useMemo(()=>({draggable:{...zy.draggable,...e?.draggable},droppable:{...zy.droppable,...e?.droppable},dragOverlay:{...zy.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function M2e(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;la(()=>{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=dW(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=fW(d);g&&g.scrollBy({top:p.y,left:p.x});}},[t,s,l,r,n]);}const wW=f.createContext({...Ps,scaleX:1,scaleY:1});var Wl;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized";})(Wl||(Wl={}));const EW=f.memo(function(t){var n,r,o,i;let{id:s,accessibility:l,autoScroll:u=true,children:d,sensors:m=v2e,collisionDetection:p=N$e,measuring:g,modifiers:b,...y}=t;const S=f.useReducer(x2e,void 0,C2e),[x,w]=S,[E,M]=b$e(),[T,A]=f.useState(Wl.Uninitialized),I=T===Wl.Initialized,{draggable:{active:N,nodes:P,translate:O},droppable:{containers:D}}=x,_=N!=null?P.get(N):null,H=f.useRef({initial:null,translated:null}),U=f.useMemo(()=>{var dt;return N!=null?{id:N,data:(dt=_?.data)!=null?dt:b2e,rect:H}:null},[N,_]),W=f.useRef(null),[z,L]=f.useState(null),[G,j]=f.useState(null),K=Gp(y,Object.values(y)),X=qg("DndDescribedBy",s),k=f.useMemo(()=>D.getEnabled(),[D]),V=$2e(g),{droppableRects:Q,measureDroppableContainers:J,measuringScheduled:te}=i2e(k,{dragging:I,dependencies:[O.x,O.y],config:V.droppable}),ne=r2e(P,N),re=f.useMemo(()=>G?iM(G):null,[G]),ie=Ot(),ue=s2e(ne,V.draggable.measure);M2e({activeNode:N!=null?P.get(N):null,config:ie.layoutShiftCompensation,initialRect:ue,measure:V.draggable.measure});const ee=LL(ne,V.draggable.measure,ue),ae=LL(ne?ne.parentElement:null),ce=f.useRef({activatorEvent:null,active:null,activeNode:ne,collisionRect:null,collisions:null,droppableRects:Q,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=g2e({measure:V.dragOverlay.measure}),le=(r=$e.nodeRef.current)!=null?r:ne,pe=I?(o=$e.rect)!=null?o:ee:null,be=!!($e.nodeRef.current&&$e.rect),Ee=c2e(be?null:ee),Te=CW(le?si(le):null),Ye=u2e(I?se??ne:null),Re=h2e(Ye),fe=E2e(b,{transform:{x:O.x-Ee.x,y:O.y-Ee.y,scaleX:1,scaleY:1},activatorEvent:G,active:U,activeNodeRect:ee,containerNodeRect:ae,draggingNodeRect:pe,over:ce.current.over,overlayNodeRect:$e.rect,scrollableAncestors:Ye,scrollableAncestorRects:Re,windowRect:Te}),ge=re?Ef(re,O):null,Ne=d2e(Ye),He=BL(Ne),We=BL(Ne,[ee]),je=Ef(fe,He),et=pe?O$e(pe,fe):null,it=U&&et?p({active:U,collisionRect:et,droppableRects:Q,droppableContainers:k,pointerCoordinates:ge}):null,Ke=T$e(it,"id"),[Oe,qe]=f.useState(null),Je=be?fe:Ef(fe,We),ke=P$e(Je,(i=Oe?.rect)!=null?i:null,ee),Ie=f.useRef(null),lt=f.useCallback((dt,ut)=>{let{sensor:bt,options:Fe}=ut;if(W.current==null)return;const Ue=P.get(W.current);if(!Ue)return;const ye=dt.nativeEvent,Me=new bt({active:W.current,activeNode:Ue,event:ye,options:Fe,context:ce,onAbort(he){if(!P.get(he))return;const{onDragAbort:Ce}=K.current,Be={id:he};Ce?.(Be),E({type:"onDragAbort",event:Be});},onPending(he,De,Ce,Be){if(!P.get(he))return;const{onDragPending:st}=K.current,ft={id:he,constraint:De,initialCoordinates:Ce,offset:Be};st?.(ft),E({type:"onDragPending",event:ft});},onStart(he){const De=W.current;if(De==null)return;const Ce=P.get(De);if(!Ce)return;const{onDragStart:Be}=K.current,Xe={activatorEvent:ye,active:{id:De,data:Ce.data,rect:H}};Oo.unstable_batchedUpdates(()=>{Be?.(Xe),A(Wl.Initializing),w({type:_r.DragStart,initialCoordinates:he,active:De}),E({type:"onDragStart",event:Xe}),L(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:Ce,collisions:Be,over:Xe,scrollAdjustedTranslate:st}=ce.current;let ft=null;if(Ce&&st){const{cancelDrop:Et}=K.current;ft={activatorEvent:ye,active:Ce,collisions:Be,delta:st,over:Xe},he===_r.DragEnd&&typeof Et=="function"&&await Promise.resolve(Et(ft))&&(he=_r.DragCancel);}W.current=null,Oo.unstable_batchedUpdates(()=>{w({type:he}),A(Wl.Uninitialized),qe(null),L(null),j(null),Ie.current=null;const Et=he===_r.DragEnd?"onDragEnd":"onDragCancel";if(ft){const At=K.current[Et];At?.(ft),E({type:Et,event:ft});}});}}},[P]),Tt=f.useCallback((dt,ut)=>(bt,Fe)=>{const Ue=bt.nativeEvent,ye=P.get(Fe);if(W.current!==null||!ye||Ue.dndKit||Ue.defaultPrevented)return;const Me={active:ye};dt(bt,ut.options,Me)===true&&(Ue.dndKit={capturedBy:ut.sensor},W.current=Fe,lt(bt,ut));},[P,lt]),pt=o2e(m,Tt);f2e(m),la(()=>{ee&&T===Wl.Initializing&&A(Wl.Initialized);},[ee,T]),f.useEffect(()=>{const{onDragMove:dt}=K.current,{active:ut,activatorEvent:bt,collisions:Fe,over:Ue}=ce.current;if(!ut||!bt)return;const ye={active:ut,activatorEvent:bt,collisions:Fe,delta:{x:je.x,y:je.y},over:Ue};Oo.unstable_batchedUpdates(()=>{dt?.(ye),E({type:"onDragMove",event:ye});});},[je.x,je.y]),f.useEffect(()=>{const{active:dt,activatorEvent:ut,collisions:bt,droppableContainers:Fe,scrollAdjustedTranslate:Ue}=ce.current;if(!dt||W.current==null||!ut||!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:dt,activatorEvent:ut,collisions:bt,delta:{x:Ue.x,y:Ue.y},over:Se};Oo.unstable_batchedUpdates(()=>{qe(Se),ye?.(he),E({type:"onDragOver",event:he});});},[Ke]),la(()=>{ce.current={activatorEvent:G,active:U,activeNode:ne,collisionRect:et,collisions:it,droppableRects:Q,draggableNodes:P,draggingNode:le,draggingNodeRect:pe,droppableContainers:D,over:Oe,scrollableAncestors:Ye,scrollAdjustedTranslate:je},H.current={initial:pe,translated:et};},[U,ne,it,et,P,le,pe,Q,D,Oe,Ye,je]),e2e({...ie,delta:O,draggingRect:et,pointerCoordinates:ge,scrollableAncestors:Ye,scrollableAncestorRects:Re});const Dt=f.useMemo(()=>({active:U,activeNode:ne,activeNodeRect:ee,activatorEvent:G,collisions:it,containerNodeRect:ae,dragOverlay:$e,draggableNodes:P,droppableContainers:D,droppableRects:Q,over:Oe,measureDroppableContainers:J,scrollableAncestors:Ye,scrollableAncestorRects:Re,measuringConfiguration:V,measuringScheduled:te,windowRect:Te}),[U,ne,ee,G,it,ae,$e,P,D,Q,Oe,J,Ye,Re,V,te,Te]),xt=f.useMemo(()=>({activatorEvent:G,activators:pt,active:U,activeNodeRect:ee,ariaDescribedById:{draggable:X},dispatch:w,draggableNodes:P,over:Oe,measureDroppableContainers:J}),[G,pt,U,ee,w,X,P,Oe,J]);return q.createElement(cW.Provider,{value:M},q.createElement(pS.Provider,{value:xt},q.createElement(xW.Provider,{value:Dt},q.createElement(wW.Provider,{value:ke},d)),q.createElement(w2e,{disabled:l?.restoreFocus===false})),q.createElement(C$e,{...l,hiddenTextDescribedById:X}));function Ot(){const dt=z?.autoScrollEnabled===false,ut=typeof u=="object"?u.enabled===false:u===false,bt=I&&!dt&&!ut;return typeof u=="object"?{...u,enabled:bt}:{enabled:bt}}}),T2e=f.createContext(null),FL="button",A2e="Draggable";function $W(e){let{id:t,data:n,disabled:r=false,attributes:o}=e;const i=qg(A2e),{activators:s,activatorEvent:l,active:u,activeNodeRect:d,ariaDescribedById:m,draggableNodes:p,over:g}=f.useContext(pS),{role:b=FL,roleDescription:y="draggable",tabIndex:S=0}=o??{},x=u?.id===t,w=f.useContext(x?wW:T2e),[E,M]=X0(),[T,A]=X0(),I=m2e(s,t),N=Gp(n);la(()=>(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":x&&b===FL?true:void 0,"aria-roledescription":y,"aria-describedby":m.draggable}),[r,b,S,x,y,m.draggable]);return {active:u,activatorEvent:l,activeNodeRect:d,attributes:P,isDragging:x,listeners:r?void 0:I,node:E,over:g,setNodeRef:M,setActivatorNodeRef:A,transform:w}}function R2e(){return f.useContext(xW)}const N2e="Droppable",P2e={timeout:25};function I2e(e){let{data:t,disabled:n=false,id:r,resizeObserverConfig:o}=e;const i=qg(N2e),{active:s,dispatch:l,over:u,measureDroppableContainers:d}=f.useContext(pS),m=f.useRef({disabled:n}),p=f.useRef(false),g=f.useRef(null),b=f.useRef(null),{disabled:y,updateMeasurementsFor:S,timeout:x}={...P2e,...o},w=Gp(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;},x);},[x]),M=hS({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]=X0(T),N=Gp(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 O2e(e,t){Qi(e)||(typeof e=="function"?e(t):e.current=t);}function gS(...e){const t=f.useRef(null);return f.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,e.forEach(r=>r&&O2e(r,n));}}),[t,...e])}const $f=Ec(()=>({width:window.innerWidth,height:window.innerHeight}));document.addEventListener("resize",$f.updateThrottled);document.addEventListener("orientationchange",$f.updateThrottled);document.addEventListener("scroll",ca($f.update,1e3));function D2e({expanded:e,children:t,...n}){return C("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:C("div",{"data-classname":"inner",className:"overflow-hidden",children:t})})}function sn(e){return C(Cc,{...e,styles:{...e.styles,root:{width:"max-content",maxWidth:"50vw",...e.styles?.root}},children:e.children})}const _2e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,children:[C("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"}),C("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"})]})]}),L2e=f.forwardRef(_2e),k2e=L2e,MW="rgb(0 0 0 / 0.85)";function vr({children:e,tooltipProps:t,IconComponent:n,className:r,useBlackBg:o,...i}){n??=k2e;const s=C(n,{...i,className:or("ml-4px size-16px cursor-pointer",r)});return !!e&&C(sn,{color:o?MW:void 0,...t,title:e,children:s})}function B2e(e,t){const n=Ft(),r=!!tr(n,e,false),o=f.useCallback(l=>{Kf(ot,e,l),t?.(l);},[]),i=f.useCallback(l=>{o(l.target.checked);},[]),s=f.useCallback(()=>{o(!tr(ot,e,false));},[]);return {checked:r,onChange:o,checkboxOnChange:i,onToggle:s}}function TW({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}=B2e(e,n),g=y=>r?C(sn,{...o,title:r,children:y}):y;let b;if(typeof t=="function"?b=t(d):b=(t??e)||null,i==="checkbox"){let y=C("span",{style:{userSelect:"none"},children:b});return r&&(y=g(y)),C(Ni,{...s,ref:u,checked:d,onChange:p,styles:{label:{paddingInline:6}},children:y})}if(i==="switch"){let y=C(LH,{...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 C(TW,{ref:i,configPath:e,label:t,extraAction:n,tooltip:r,tooltipProps:o,as:"checkbox",checkboxProps:s})};function ju({configPath:e,extraAction:t,tooltip:n,tooltipProps:r,ref:o,...i}){return C(TW,{ref:o,configPath:e,extraAction:t,tooltip:n,tooltipProps:r,as:"switch",switchProps:i})}async function vS(e="即将刷新网页!"){Wt.info(e),await gn(500),location.reload();}function Ur(e,t){return B(_e,{children:[B("div",{className:"flex items-center",children:["✅: ",e]}),B("div",{className:"flex items-center",children:["❎: ",t]})]})}class z2e{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&&oc(()=>URL.revokeObjectURL(this.url)),this.url=void 0;}}let RE;async function F2e(e){const t=await Lg(),n=e?.length?Tc(t,e).pickedSettings:t,r=JSON.stringify(n,null,2),o=new Blob([r],{type:"application/json"});return RE?.revoke(),RE=new z2e(o),RE.url}async function AW(e,t){const n=await F2e(e),o=`${[Lo,vQ(t||"",["-"," "]),"settings"].filter(Boolean).join("-")} ${Xn().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 RW(){const e=await V2e();if(!e)return;const t=await e.text();if(!t)return tn("文件内容为空!");let n;try{n=JSON.parse(t);}catch{return tn("无法解析文件内容!")}return OR(n),n}async function H2e(){const e=await RW();if(!e)return;const{pickedPaths:t,pickedSettings:n}=Tc(e,al);if(!t.length)return tn("没有有效的设置!");{const r=Object.keys(n);if(r.length===1)return r[0]==="filter"?tn("过滤相关数据请使用「内容过滤」内独立的导入导出功能!",5e3):tn("异常数据",5e3)}return hU(true),ts(n),Wt.success("导入成功!"),vS()}function V2e(){return j2e({accept:".json",multiple:false})}function j2e(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 B("div",{className:On.settingsGroup,"data-role":"settings-group",...i,children:[B("div",{"data-role":"settings-group-title",className:or(On.settingsGroupTitle,s&&"justify-between",n),children:[s?C("div",{className:"flex items-center",children:t}):t,o&&C(ZR,{paths:o})]}),C("div",{"data-role":"settings-group-content",className:or("flex flex-col gap-y-1",r),children:e})]})}function U2e(e){const{pickedSettings:t}=Tc(_g,e);ts(t);}function ZR({paths:e,className:t}){return C(Bp,{title:"确定重置下面的设置项?",onConfirm:()=>U2e(e),children:B(ct,{className:Y("gap-x-4px",t),children:[C(YH,{className:"mt--1px size-12px"}),C("span",{children:"重置"})]})})}const W2e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[C("path",{d:"M3.06 13a9 9 0 1 0 .49-4.087"}),C("path",{d:"M3 4.001v5h5M11 12a1 1 0 1 0 2 0a1 1 0 1 0-2 0"})]})]}),HL=f.forwardRef(W2e),G2e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[C("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),C("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"})]})]}),NW=f.forwardRef(G2e),q2e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[C("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),C("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"})]})]}),PW=f.forwardRef(q2e),K2e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),Y2e=f.forwardRef(K2e),X2e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[C("path",{d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4S4 12.954 4 24s8.954 20 20 20Z"}),C("path",{strokeLinecap:"round",d:"m33 21l-9 9l-9-9"})]})]}),Q2e=f.forwardRef(X2e);function Z2e(){return Ixe(),vS()}async function J2e(){const e=await dU.getData();OR(e);const{pickedPaths:t,pickedSettings:n}=Tc(e,rc(al,$xe));return t.length?(hU(true),ts(n),vS()):Wt.error("备份不存在或没有有效的配置")}function e3e(){const[e,t]=f.useState(false);return B("div",{className:On.tabPane,children:[C(co,{title:"设置项",children:B(Tr,{size:20,children:[C(Bp,{title:"确定",description:"确定恢复默认设置? 此操作不可逆!",onConfirm:Z2e,children:B(ct,{danger:true,type:"primary",children:[C(HL,{}),"恢复默认设置"]})}),B(Tr,{size:5,children:[C(sn,{title:"导出所有设置项到文件中, 包含 access_key 等数据, 请妥善保存",children:B(ct,{onClick:()=>AW(),children:[C(NW,{}),"导出设置"]})}),C(sn,{title:"从文件中导入设置项, 将覆盖当前设置, 此操作不可逆!",children:B(ct,{onClick:()=>H2e(),children:[C(PW,{}),"导入设置"]})})]})]})}),C(co,{title:B(_e,{children:[C(Y2e,{className:"mr-4px size-28px"}),"备份"]}),children:B("div",{className:"flex items-center gap-x-40px",children:[B("span",{className:"flex items-center gap-x-8px",children:[C(It,{configPath:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${Lo}`}),B("a",{className:"inline-flex items-center",href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[C($o,{className:"mr-4px size-16px"}),"去草稿箱浏览"]})]}),C(Bp,{title:"确定",description:"将覆盖本地设置? 此操作不可逆!",onConfirm:J2e,children:B(ct,{danger:true,type:"primary",children:[C(HL,{}),"从专栏草稿箱中恢复"]})})]})}),C(co,{title:B(_e,{children:["其他",C(vr,{children:"这里是一些作者不愿意解释的设置项 😬"}),C(ct,{onClick:()=>t(n=>!n),className:"ml-10px inline-icon-only-round-button",css:e&&nd,children:C(Q2e,{className:Y("size-16px transition-300 transition-transform",e?"rotate-180":"rotate-0")})})]}),children:C(D2e,{expanded:e,children:B("div",{className:"w-full flex gap-x-20px b-1px b-gate-border rounded-6px b-solid p-10px",children:[C(ZR,{paths:W0,className:"flex-none"}),C("div",{className:"flex flex-1 flex-wrap items-start gap-x-20px gap-y-10px",children:W0.map(n=>C(It,{configPath:n,tooltip:B(_e,{children:[n,VL[n]&&B(_e,{children:[C("br",{}),VL[n]]})]}),label:hQ(n.startsWith("__internal")?n.slice(10):n.replaceAll("__internal.",""))},n))})]})})})]})}const VL={};function IW(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 t3e(e,t){return IW(e,{deltaL:t})}function cM({className:e,...t}){return C(dc,{variant:"solid",...t,className:or("my-7px",e),css:un("border-top-color:",IW(ns,{l:.9}),";","")})}const OW=e=>{const t=lU(e,pp.appkey,pp.appsec);return new URLSearchParams({...e,sign:t})};async function n3e(){const t=(await Qt.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/auth_code",OW({appkey:pp.appkey,local_id:"0",ts:"0"}))).data;if(!jn(t)){tn(t?.message||"获取 auth_code 失败");return}return t.data}async function r3e(e){const n=(await Qt.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/poll",OW({appkey:pp.appkey,auth_code:e,local_id:"0",ts:"0"}))).data,r={0:"成功","-3":"API校验密匙错误","-400":"请求错误","-404":"啥都木有",86038:"二维码已失效",86039:"二维码尚未确认",86090:"二维码已扫码未确认"};if(!jn(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 JR={show:false,qrcodeUrl:"",auth_code:"",message:"",expired:false},Gl=Dn({...JR});function pf(e){a3e(),Object.assign(Gl,e);}function o3e(e){pf({...JR,...e,show:true});}const bS=new uo;function DW(){pf({...JR}),bS.emit("hide");}function jL(){return bS.once("hide")}function i3e(){return bS.once("refresh")}function s3e(){const{qrcodeUrl:e,show:t,message:n,expired:r}=gt(Gl),o=DW,i=()=>{bS.emit("refresh");};return B(jg,{show:t,onHide:o,hideWhenMaskOnClick:false,hideWhenEsc:false,clsModalMask:"backdrop-blur-10px",clsModal:"aspect-ratio-10/16",width:260,children:[B("div",{className:ko.modalHeader,children:[C("div",{className:ko.modalTitle}),C(Ug,{onClick:o})]}),B("div",{className:Y(ko.modalBody,"flex flex-col items-center justify-center text-center"),children:[C("div",{className:"mb-2px min-h-25px flex-center text-size-14px",children:n||""}),e&&B("div",{className:"relative mx-auto mb-40px flex-shrink-0",children:[C(Vpe,{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&&B("div",{className:"absolute inset-0 flex flex-col cursor-pointer items-center justify-center bg-black/65 text-white",onClick:i,children:[C("div",{className:"mb-8px text-size-14px font-600",children:"二维码已过期"}),C("div",{className:"border border-white/40 rounded-6px px-12px py-6px text-size-13px",children:"点击刷新"})]})]}),B("div",{className:"footnote text-size-13px line-height-snug",children:["打开「哔哩哔哩」或「bilibili」App ",C("br",{}),"扫码获取 access_key"]})]})]})}const a3e=qf(function(){const t=document.createElement("div");t.classList.add("modal-tv-qrcode-auth",Is),document.body.appendChild(t),da(t).render(C(ma,{children:C(s3e,{})}));});async function UL(){const e=await n3e();if(e)return o3e({qrcodeUrl:e.url,auth_code:e.auth_code}),true}async function l3e(){let e,t;if(!await UL())return;e=Gl.auth_code;function r(){if(!Gl.show||!Gl.auth_code||e!==Gl.auth_code)return  true}function o(){return !r()}for(;o();){const i=gn(1500),s=jL();if(await Promise.race([i,s]),s.off(),r())return;t=await r3e(Gl.auth_code);const{success:l,accessKey:u,accessKeyExpireAt:d,message:m,action:p}=t;if(r())return;if(pf({message:m}),l)return await gn(1e3),DW(),{accessKey:u,accessKeyExpireAt:d};if(p==="refresh"){pf({message:"二维码已过期,请点击刷新",expired:true});const g=jL(),b=i3e();if(await Promise.race([g,b]),g.off(),b.off(),r()||!await UL())return;e=Gl.auth_code,pf({message:"已刷新二维码",expired:false});continue}if(p!=="wait"){pf({message:m}),tn(m);return}}}async function c3e(){const{accessKey:e,accessKeyExpireAt:t}=await l3e()||{};!e||!t||(ot.accessKey=e,ot.accessKeyExpireAt=t,tn("获取成功"));}function u3e(){ot.accessKey="",ot.accessKeyExpireAt=0,tn("已删除 access_key");}const WL=C(ct,{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 e6({style:e,className:t}){const{runAsync:n,loading:r}=$s(c3e,{manual:true}),{accessKey:o}=Ft();return C(Tr,{size:"small",style:e,className:t,children:o?B(_e,{children:[C(ct,{onClick:n,loading:r,children:"重新获取 access_key"}),C(Bp,{onConfirm:u3e,title:"确定删除 access_key?",children:C(ct,{children:"删除 access_key"})}),WL]}):B(_e,{children:[C(ct,{onClick:n,loading:r,children:"获取 access_key"}),WL]})})}const uM="inline-block cursor-pointer rounded bg-gate-primary-lv-3 px-6px text-white line-height-1.2em tracking-1 font-mono";function _W({className:e,...t}){return C("kbd",{...t,className:or(uM,e)})}function ea({k:e,...t}){const n=f.useMemo(()=>$U(e),[e]);return C(_W,{...t,children:n})}const dM=C(_W,{className:"mx-1 tracking-normal word-spacing-1",children:$U("Shift")}),d3e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"currentColor",d:"M2 22V2h2v20zm4-5v-3h10v3zm0-7V7h16v3z"})]}),LW=f.forwardRef(d3e),f3e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"currentColor",d:"M11 22v-5H6v-3h5v-4H3V7h8V2h2v5h8v3h-8v4h5v3h-5v5z"})]}),m3e=f.forwardRef(f3e),h3e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"currentColor",d:"M20 22V2h2v20zM8 17v-3h10v3zm-6-7V7h16v3z"})]}),kW=f.forwardRef(h3e),BW="w-720px",p3e=(e,t)=>{switch(e){case Iu.Left:return t==="flex"?"justify-left":"ml-0 mr-auto";case Iu.Right:return t==="flex"?"justify-right":"ml-auto mr-0";default:return t==="flex"?"justify-center":"mx-auto"}};function g3e({className:e}){const{grid:{gridDisplayMode:t,twoColumnModeAlign:n}}=Ft();return B(Rr.Group,{className:e,disabled:t!==Gr.TwoColumnGrid,buttonStyle:"solid",size:"small",value:n,onChange:r=>{ot.grid.twoColumnModeAlign=r.target.value;},children:[C(Rr.Button,{value:Iu.Left,className:"inline-flex-center",children:C(LW,{className:"size-16px"})}),C(Rr.Button,{value:Iu.Center,className:"inline-flex-center",children:C(m3e,{className:"size-16px"})}),C(Rr.Button,{value:Iu.Right,className:"inline-flex-center",children:C(kW,{className:"size-16px"})})]})}const v3e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),b3e=f.forwardRef(v3e),y3e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),S3e=f.forwardRef(y3e);function zW(e){return {usingListMode:e===Gr.List,usingTwoColumnMode:e===Gr.TwoColumnGrid,usingCenterEmptyMode:e===Gr.CenterEmptyGrid}}function FW(){const{gridDisplayMode:e}=gt(ot.grid);return zW(e)}function t6(e){return e===Gr.List}function C3e(){return gt(ot.grid).gridDisplayMode===Gr.List}const HW="[&_.ant-radio-wrapper]:mx-0 [&_.ant-radio-wrapper]:inline-flex [&_.ant-radio-wrapper]:items-center",VW="[&_.ant-radio-label]:inline-flex [&_.ant-radio-label]:items-center ![&_.ant-radio-label]:pl-4px";function x3e({className:e}){const{gridDisplayMode:t}=gt(ot.grid),n=or("flex items-center gap-x-15px",HW,VW,e);return C(Rr.Group,{size:"large",className:n,value:t,onChange:r=>{ot.grid.gridDisplayMode=r.target.value;},options:[{value:Gr.NormalGrid,label:C(sn,{title:"这个是默认的网格模式",children:B("span",{className:"inline-flex-center",children:[C(b3e,{className:"mx-4px size-16px cursor-pointer"}),"网格"]})})},{value:Gr.List,label:B(_e,{children:[C(S3e,{className:"mx-4px size-16px cursor-pointer"}),"列表"]})},{value:Gr.TwoColumnGrid,label:B(_e,{children:["双列模式",C(g3e,{className:"ml-5px"})]})},{value:Gr.CenterEmptyGrid,label:C(_e,{children:C(sn,{title:"网格中间不显示卡片",children:"中空模式"})})}]})}function w3e({className:e}){const{useCustomGrid:t,enableForceColumn:n,cardMinWidth:r,forceColumnCount:o}=gt(ot.grid),i=n?"force-column":"auto-fill",s=rt(d=>{const m=d.target.value;m==="force-column"?ot.grid.enableForceColumn=true:m==="auto-fill"&&(ot.grid.enableForceColumn=false);}),l=f.useMemo(()=>[{value:"auto-fill",label:B("div",{className:"flex items-center gap-x-1",children:[C(sn,{title:B(_e,{children:["自适应: 指按照「卡片最小宽度」自适应 ",C("br",{}),"如果期望显示更多的列, 可以调小「卡片最小宽度」; ",C("br",{}),"如果期望显示更少的列, 可以调大「卡片最小宽度」; ",C("br",{}),"Tip: 先点击输入框, 再移动鼠标到透视按钮, 然后使用键盘",C(ea,{k:"Alt+ArrowUp",className:"mx-1"}),C(ea,{k:"Alt+ArrowDown",className:"mx-1"})," 调整"]}),children:C("span",{className:"cursor-pointer",children:"自适应: 卡片最小宽度"})}),B(Tr.Compact,{children:[C($u,{disabled:!(t&&i==="auto-fill"),value:r,onChange:d=>{d&&(ot.grid.cardMinWidth=d);},min:150,max:450,step:10,size:"small",className:"w-75px"}),C(Tr.Addon,{children:"px"})]})]})},{value:"force-column",label:B("div",{className:"flex items-center gap-x-1",children:["手动设置列数",C($u,{disabled:!(t&&i==="force-column"),value:o,onChange:d=>{d&&(ot.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",HW,VW,e);return C(Rr.Group,{className:u,disabled:!t,options:l,value:i,onChange:s})}var Fy={exports:{}},E3e=Fy.exports,GL;function $3e(){return GL||(GL=1,(function(e,t){(function(n,r){e.exports=r();})(E3e,(()=>(()=>{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})()));})(Fy)),Fy.exports}var M3e=$3e();function ao(e,t,n){const r=rt(n);f.useEffect(()=>e.on(t,r),[e,t,r]);}const jW=PB&&["/video/","/list/watchlater","/bangumi/play/"].some(e=>location.pathname.startsWith(e)),T3e=[["/video/",()=>/^\/video\/(?<bvid>BV\w+)\/?/.exec(location.pathname)?.groups?.bvid],["/list/watchlater",()=>new URLSearchParams(location.search).get("bvid")||void 0],["/bangumi/play/",()=>{}]];function Hy(){return T3e.find(([t])=>location.pathname.startsWith(t))?.[1]()}function n6(e,t=21){return `https://space.bilibili.com/${ii()}/favlist?fid=${e}&ftype=create`}function UW(e,t=21){return `https://space.bilibili.com/${ii()}/favlist?fid=${e}&ftype=collect&ctype=${t}`}function A3e(e,t){return `https://space.bilibili.com/${e}/lists/${t}?type=season`}function R3e(e){return `https://www.bilibili.com/list/ml${e}`}function N3e(e){return `https://www.bilibili.com/video/${e}`}function r6(e){return e.toString(2).at(-2)==="0"}function Kg(e){return e.toString(2).at(-1)==="1"}async function WW({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:Mc()}),i=(await Qt.post("/x/v3/fav/resource/deal",r)).data,s=jn(i);return s||tn(i?.message||"fav deal api fail"),s}const Uu={getVideoFavState:O3e,addFav:D3e,removeFavs:P3e,moveFavs:I3e,modifyFav:L3e};async function P3e(e,t){const n=new URLSearchParams({resources:[t].flat().join(","),media_id:e.toString(),platform:"web",csrf:Mc()}),o=(await Qt.post("/x/v3/fav/resource/batch-del",n)).data,i=jn(o);return i||tn(o.message||KM),i}async function I3e(e,t,n){const r=new URLSearchParams({resources:[e].flat().join(","),src_media_id:t.toString(),tar_media_id:n.toString(),mid:ii(),platform:"web",csrf:Mc()}),i=(await Qt.post("/x/v3/fav/resource/move",r)).data,s=jn(i);return s||tn(i?.message||"fav deal api fail"),s}async function O3e(e){if(!iS())return;const r=(await Qt.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:ii(),type:2,rid:e}})).data.data.list.filter(l=>l.fav_state>0),o=r.map(l=>l.title),i=r.map(l=>n6(l.id)),s=r.map(l=>l.id);return {favFolders:r,favFolderNames:o,favFolderUrls:i,favFolderIds:s}}let NE,fM;async function D3e(e,t){if(!t&&(!NE||!fM)){await I6();const{folders:n}=pn,r=n.find(o=>r6(o.attr))??n[0];if(!r)return tn("没有找到默认收藏夹!");NE=r.id,fM=r.title;}return t||=NE,t?await WW({avid:e,add_media_ids:t.toString()}):tn("没有找到默认收藏夹!")}async function _3e(){return (await Qt.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:ii()}})).data.data.list}async function L3e(e,t,n){const r=(t??[]).filter(u=>u!==void 0),o=[n].filter(u=>u!==void 0),i=rc(r,o),s=rc(o,r);return await WW({avid:e,del_media_ids:i.length?i.join(","):void 0,add_media_ids:s.length?s.join(","):void 0})}async function k3e(e){const n=(await Qt.get("/x/v3/fav/folder/info",{params:{media_id:e,web_location:"0.0"}})).data;if(!jn(n))throw new oS(n);return n.data}async function B3e(e,t){const n=await k3e(e);if(!n)return;const r=new URLSearchParams({media_id:e.toString(),title:t,intro:n.intro,cover:n.cover,privacy:Kg(n.attr)?"1":"0",csrf:Mc()}),i=(await Qt.post("/x/v3/fav/folder/edit",r)).data,s=jn(i);if(!s){const l=i.message||"编辑收藏夹失败";tn(l);}return s}async function z3e(e){return (await Qt.get("/x/v3/fav/folder/collected/list",{params:{up_mid:ii(),platform:"web",ps:20,pn:e}})).data.data}async function F3e(){let e=1,t=true,n=[];for(;t;){const r=await z3e(e);n.push(...r.list),t=r.has_more,e++;}return n=n.filter(r=>!(r.title==="该合集已失效"&&r.upper.mid===0)),n=vc(n,r=>r.id),n}async function H3e(e,t){return (await Qt.get("/x/space/fav/season/list",{params:{season_id:e,ps:20,pn:t}})).data.data}var _t=(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))(_t||{});function mM(e,t){return t==="initial"?e:t==="shuffle"?$i(e):t==="pub-time-desc"||t==="pub-time-asc"?ka(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")?ka(e,[r=>r.fav_time],[t==="fav-time-desc"?"desc":"asc"]):t==="play-count-desc"?ka(e,[n=>n.cnt_info.play],["desc"]):t==="collect-count-desc"?ka(e,[n=>n.cnt_info.collect],["desc"]):e}const GW=23442827791579n,V3e=2251799813685247n,j3e=1n<<51n,hM=58n,qW="FcwAPNKTMug3GV5Lj7EJnHpWsx4tb8haYeviqBz6rkCy12mUSDQX9RdoZf";function yS(e){const t=["B","V","1","0","0","0","0","0","0","0","0","0"];let n=t.length-1,r=(j3e|BigInt(e))^GW;for(;r>0;)t[n]=qW[Number(r%BigInt(hM))],r=r/hM,n-=1;return [t[3],t[9]]=[t[9],t[3]],[t[4],t[7]]=[t[7],t[4]],t.join("")}function U3e(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*hM+BigInt(qW.indexOf(o)),0n);return Number(n&V3e^GW)}function Xa(e){return e.api===Ze.AppRecommend}function pc(e){return e.api===Ze.PcRecommend}function gf(e){return e.api===Ze.DynamicFeed}function KW(e){return e.api===Ze.Watchlater}function Wu(e){return e.api===Ze.Fav}function YW(e){return e.api===Ze.Rank}function Kp(e){return e.api===Ze.Live}function pM(e){return e.api===Ze.SpaceUpload}function bm(e){const t=$I.createInstance({driver:$I.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 od({fn:e,generateKey:t,tableName:n,ttl:r,concurrency:o,autoCleanUp:i=true}){const s=typeof n=="string"?bm(n):n,l=ca(()=>{s.db.iterate((g,b)=>{u(g)||s.db.removeItem(b);});},1e3);i&&lS().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?jge(e,o):e,p=AR(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){Qi(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 W3e(e){return (await Qt.get("/x/web-interface/view",{params:{bvid:e}})).data.data}const SS=od({fn:W3e,generateKey:e=>e,tableName:"video-detail",ttl:Qr("3M"),concurrency:3});async function G3e(e){return (await Qt.get("/x/player/pagelist",{params:{bvid:e}})).data?.data||[]}const XW=od({fn:G3e,generateKey:e=>e,tableName:"video-page-list",ttl:Qr("3M"),concurrency:3});async function QW(e,t){const n=ii(),r=Mc(),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:q3e()}),csrf:r}),s=(await Qt.post("/x/relation/modify",o)).data,l=jn(s);return l||tn(s.message||"未知错误"),l}function q3e(){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 K3e=po.extend("service:user:relations:blacklist"),Y3e=JW("follow"),X3e=JW("remove"),ZW={add:Y3e,remove:X3e},{set:dp,replaceAllWith:Q3e}=await( jH("blacklist-mids"));function Z3e(e){const t=gt(dp);return !!e&&t.has(e)}function JW(e){const t=e==="follow"?5:6;return async function(r){const o=await QW(r,t);if(o){const i=dp;e==="follow"?i.add(r):e==="remove"&&i.delete(r);}return o}}async function J3e(){const t=async s=>{const u=(await Qt.get("/x/relation/blacks",{params:{re_version:0,ps:20,pn:s}})).data;if(!jn(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(!el)return;await lS();const e=await J3e();K3e("user blocklist fetched: %o",e),e&&Q3e(e.map(t=>t.toString()));})();var Qo;(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={}));})(Qo||(Qo={}));function Ph(e){const t=e.modules.module_dynamic.major;if(t?.type==="MAJOR_TYPE_ARCHIVE")return t.archive}async function eMe({appKey:e,nscode:t,versionId:n}){const r={appKey:e,nscode:t,versionId:n};return (await Qt.get("/x/kv-frontend/namespace/data",{params:r})).data}function eG({appKey:e,nscode:t}){return new URLSearchParams([["appKey",e],["nscode",t.toString()]]).toString()}const qL=bm("kv-latest-version"),tMe=sl(async({appKey:e,nscode:t})=>{const n=eG({appKey:e,nscode:t}),r=await qL.get(n);let o="0";r&&r.versionId&&r.data&&Object.keys(r.data).length&&(o=r.versionId);const i=await eMe({appKey:e,nscode:t,versionId:o});return r?.data&&i.code===-304&&i.message==="Not Modified"?r.data:(await qL.set(n,i.data),i.data.data)}),nMe=od({fn:tMe,tableName:"get-kv-data",generateKey:({appKey:e,nscode:t})=>eG({appKey:e,nscode:t}),ttl:Qr("1h")});function rMe(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 KL=[{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"}],o6={name:"全站",tid:0,slug:"all"};async function oMe(){try{return await iMe()||KL}catch(e){return mZ("parseRankTabsConfig failed",e),KL}}async function iMe(){const e=await nMe({appKey:"333.1339",nscode:10}),t=rMe(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 vc(r,i=>i.slug)}var Vy=(e=>(e.Normal="normal",e.PgcSeason="pgc/season",e.PgcWeb="pgc/web",e))(Vy||{});function tG(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 i6(e){return e.from==="normal"}function sMe(e){return e.from==="pgc/season"}function aMe(e){return e.from==="pgc/web"}const lMe=Tg(e=>B("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e,children:[C("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"}),C("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"})]})),cMe=Tg(e=>B("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e,children:[C("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"}),C("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"}),C("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"}),C("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"}),C("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"})]})),uMe=Tg(function(e){return B("svg",{viewBox:"0 0 16 16",fill:"currentColor",...e,children:[C("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"}),C("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"}),C("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 Yp(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 cl(e){return e||=0,Xn.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 yu(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 fMe=Xn().format("YYYY");function jy(e,t=false){if(!e)return "";const n=Xn.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===fMe?n.format(`M-D${r}`):n.format(`YY-M-D${r}`)}function mMe(e){const t=Xn().subtract(1,"day").startOf("day").unix();return e>=t}function hMe(e,t){if(!e)return;const n=Xn.unix(e),r=n.format("YYYY-MM-DD")===Xn().format("YYYY-MM-DD"),o=r&&Date.now()-e*1e3<=Qr("12h"),i=n.format("YYYY-MM-DD")===Xn().subtract(1,"day").format("YYYY-MM-DD"),s=n.format("YYYY")===Xn().format("YYYY");if(o){const l=Xn().diff(n,"minutes"),u=Xn().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 pMe={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function gMe(e){if(e!==void 0&&!(e>=0))return pMe[e]}const vMe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),bMe=f.forwardRef(vMe),yMe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),SMe=f.forwardRef(yMe),CMe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[C("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m6 0h6m-6 3h6M9 8l3 4.5"}),C("path",{d:"m15 8l-3 4.5V17"})]})]}),xMe=f.forwardRef(CMe),wMe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[C("path",{d:"M24 36c11.046 0 20-12 20-12s-8.954-12-20-12S4 24 4 24s8.954 12 20 12Z"}),C("path",{d:"M24 29a5 5 0 1 0 0-10a5 5 0 0 0 0 10Z"})]})]}),EMe=f.forwardRef(wMe),$Me=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),MMe=f.forwardRef($Me),TMe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[C("path",{d:"m15 14l4-4l-4-4"}),C("path",{d:"M19 10H8a4 4 0 1 0 0 8h1"})]})]}),AMe=f.forwardRef(TMe);const YL="size-18px",nu="size-16px",RMe={play:C(lMe,{className:YL}),danmaku:C(cMe,{className:YL}),like:C(bMe,{className:nu}),"bangumi:follow":C(SMe,{className:nu}),favorite:C(Hf,{className:nu}),coin:C(xMe,{className:nu}),"live:viewed-by":C(EMe,{className:nu}),"dynamic-feed:comment":C(MMe,{className:nu}),"dynamic-feed:forward":C(AMe,{className:nu})},NMe=f.memo(function({field:e,value:t}){const n=f.useMemo(()=>typeof t=="number"||t&&/^\d+$/.test(t)?dMe(Number(t))??__:t??__,[t]),r=RMe[e];return B("span",{"data-field":e,className:"bili-video-card__stats--item gap-x-2px mr-0!",children:[r,C("span",{className:Y("bili-video-card__stats--text line-height-18px"),children:n})]})});var za=(e=>(e.AV="av",e.Ad="ad",e.Live="live",e))(za||{});const PMe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 15 15",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),nG=f.forwardRef(PMe),IMe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),OMe=f.forwardRef(IMe),DMe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"})]}),_Me=f.forwardRef(DMe),rG=nG,oG=OMe,iG=_Me;function sG(e){return `https://space.bilibili.com/${ii()}/fans/follow?tagid=${e}`}function Yg(e){return `https://space.bilibili.com/${e}`}const aG=sU("w_webid"),lG=sl(async()=>{const e=await aG.get();return e||LMe()});async function LMe(){const e=ii();if(!e)return;const t=Yg(e),r=(await Qt.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 cG({removeEmpty:e=true}={}){const t=await rS({web_location:"0.0",w_webid:await lG()||""}),o=(await Qt.get("/x/relation/tags",{params:t})).data.data||[];return e?o.filter(i=>!!i.count):o}async function gM(e){const n=async l=>(await Qt.get("/x/relation/tag",{params:{mid:ii(),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 ig(o.map(l=>l.mid))}async function kMe(){const n=(await Qt.get("/x/polymer/web-dynamic/v1/portal",{params:{up_list_more:0}})).data?.data?.up_list||[];return Array.isArray(n)?n:n.items}var Si=(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))(Si||{});const Qa=new URLSearchParams(location.search),gc=Qa.get("dyn-mid")?.trim(),vM=Qa.get("dyn-group-id")?.trim()?Number(Qa.get("dyn-group-id").trim()):void 0,BMe=Qa.get("dyn-offset")||void 0,uG=gc&&(Qa.get("dyn-filter-text")||Qa.get("dyn-filter"))||void 0,bM=gc?Qa.get("dyn-min-id"):void 0,XL=bM?Qa.get("dyn-min-ts"):void 0,CS=el&&(!!gc||vM!==void 0);let yM,dG,fG;CS&&(gc?(yM=gc,dG=Qa.get("dyn-name")??yM?.toString()??void 0):vM!==void 0&&(fG=vM));var Zs=(e=>(e.All="all",e.UploadOnly="upload-only",e.DynamicOnly="dynamic-only",e))(Zs||{}),Ss=(e=>(e.Upload="投稿视频",e.Dynamic="动态视频",e.ChargeOnly="充电专属",e))(Ss||{});const zMe={all:"全部","upload-only":"仅投稿视频","dynamic-only":"仅动态视频"};var Ou=(e=>(e.All="all",e._5m="5min",e._2m="2min",e._1m="1min",e._30s="30s",e._10s="10s",e))(Ou||{});const mG={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}},Xp="all",Gf="up:",Gu="group:",FMe=(await( jH("dynamic-feed:hide-charge-only-videos-for-keys"))).set,HMe=(await( LA("dynamic-feed:add-separators"))).map,en=hG();function hG(){return Dn({upMid:yM,upName:dG,upFace:void 0,upList:[],upListUpdatedAt:0,groups:[],groupsUpdatedAt:0,selectedGroupId:fG,get selectedGroup(){if(typeof this.selectedGroupId=="number")return this.groups.find(e=>e.tagid===this.selectedGroupId)},dynamicFeedVideoType:"all",filterText:uG??void 0,get viewingAll(){return this.selectedKey===Xp},get viewingSomeUp(){return !!this.upMid},get viewingSomeGroup(){return typeof this.selectedGroupId=="number"},get selectedKey(){return this.upMid?`${Gf}${this.upMid}`:this.selectedGroupId!==void 0?`${Gu}${this.selectedGroupId}`:Xp},hideChargeOnlyVideosForKeysSet:FMe,get hideChargeOnlyVideos(){return this.hideChargeOnlyVideosForKeysSet.has(this.selectedKey)},addSeparatorsMap:HMe,get addSeparators(){return this.addSeparatorsMap.get("global")??false},filterMinDuration:"all",get filterMinDurationValue(){return mG[this.filterMinDuration].duration},updateUpList:pG,updateGroups:gG})}Dn({followGroupInfo:{}});async function pG(e=false){if(!e&&en.upList.length&&en.upListUpdatedAt&&en.upListUpdatedAt-Date.now()<Qr("5min"))return;const n=await kMe();en.upList=n,en.upListUpdatedAt=Date.now();}async function gG(e=false){{const{followGroup:n,whenViewAll:r}=ot.dynamicFeed;if(!(n.enabled||!!r.hideIds.filter(i=>i.startsWith(Gu)).length))return}!e&&en.groups.length&&en.groupsUpdatedAt&&en.groupsUpdatedAt-Date.now()<Qr("1h")||(en.groups=await cG({removeEmpty:true}),en.groupsUpdatedAt=Date.now());}function vG(){if(ii())return Promise.all([pG(),gG()])}(async()=>el&&(await gn(5e3),(!en.upList.length||!en.groups.length)&&(await lS(),vG())))();gc&&VH(en,["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 VMe(e){const{major:t,additional:n}=e.modules.module_dynamic;if(n?.type===Qo.AdditionalType.Goods)return  true;if(t?.type===Qo.MajorType.Opus){const r=t.opus.title||"";if(["B站密令","大红包"].some(o=>r.includes(o)))return  true}return  false}function bG(e){if(VMe(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===Qo.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:Yp(s.duration_text)||0,durationStr:s.duration_text,recommendReason:s.badge.text===Ss.Upload?s.badge.text:void 0,topMarkIcon:s.badge.text===Ss.Upload?void 0:s.badge.icon_url??void 0,topMarkText:s.badge.text===Ss.Upload?void 0:s.badge.text,statItems:[{field:"play",value:s.stat.play},{field:"danmaku",value:s.stat.danmaku}],play:yu(s.stat.play),danmaku:yu(s.stat.danmaku)}}if(o===Qo.MajorType.Opus&&t.opus){const{opus:s}=t,l=r?.type===Qo.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===Qo.ItemType.Word)return "文字动态";if(e.type===Qo.ItemType.Draw)return d?"图片":"文字动态";if(e.type===Qo.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===Qo.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===Qo.MajorType.UgcSeason&&t.ugc_season){const{ugc_season:s}=t;return {...i,bvid:s.bvid,avid:s.aid.toString(),goto:"av",duration:Yp(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:yu(s.stat.play),danmaku:yu(s.stat.danmaku),recommendReason:n.pub_action,topMarkText:"合集",authorMid:void 0}}}var yG=function(e){return function(t,n,r){return e(t,n,r)*r}},SM=function(e,t){if(e)throw Error("Invalid sort config: "+t)},SG=function(e){var t=e||{},n=t.asc,r=t.desc,o=n?1:-1,i=n||r;SM(!i,"Expected `asc` or `desc` property"),SM(n&&r,"Ambiguous object with `asc` and `desc` config properties");var s=e.comparer&&yG(e.comparer);return {order:o,sortBy:i,comparer:s}},jMe=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=SG(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 CG(e,t,n){if(e===void 0||e===true)return function(i,s){return t(i,s,n)};if(typeof e=="string")return SM(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=jMe(t);return function(i,s){return r(e[0],e,1,n,t,i,s)}}var o=SG(e);return CG(o.sortBy,o.comparer||t,o.order)}var PE=function(e,t,n,r){var o;return Array.isArray(t)?(Array.isArray(n)&&n.length<2&&(o=n,n=o[0]),t.sort(CG(n,r,e))):t};function xG(e){var t=yG(e.comparer);return function(n){var r=Array.isArray(n)&&!e.inPlaceSorting?n.slice():n;return {asc:function(o){return PE(1,r,o,t)},desc:function(o){return PE(-1,r,o,t)},by:function(o){return PE(1,r,o,t)}}}}var wG=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},EG=xG({comparer:wG});xG({comparer:wG,inPlaceSorting:true});function CM(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 EG(e).by(r)}function e1(e,t){const n=t.map(({order:r,prop:o})=>r==="asc"?{asc:o}:r==="desc"?{desc:o}:{asc:o,comparer:r});return EG(e).by(n)}function s6(e){return e.replace(/([A-Z])/,"999999$1").replace(/([a-z])/,"999998$1")}function a6(e,t){return e.localeCompare(t,"zh-CN")}function QL(e,t){return e1(e,[{prop:n=>{const r=typeof t=="function"?t(n):n[t];return s6(r)},order:a6}])}function ym(e){throw new Error(`Unexpected object: ${e}`)}function UMe(e){return e=e.replace(new RegExp("^[\\s\\p{RGI_Emoji}]+","v"),""),e=s6(e),e}function $G(e,t){const n={prop:i=>r6(i.attr)?1:0,order:"desc"},r={prop:i=>UMe(i.title),order:a6},o={prop:"media_count",order:"desc"};if(t==="default")return e;if(t==="name")return e1(e,[n,r]);if(t==="count")return e1(e,[n,o,r]);ym(t);}function MG(e){return C(yA,{size:"middle",options:[{label:"默认",value:"default"},{label:"名称",value:"name"},{label:"数量",value:"count"}],...e})}class ul{qs;constructor(t){this.qs=new xS(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 xS{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 Rc(){const e=f.useRef(null),t=f.useCallback(()=>e.current?.closest(`.${NB}`)?.parentElement||document.body,[]);return {ref:e,getPopupContainer:t}}class WMe{constructor(t){this.anonymous=t;}hasMore=true;page=1;tabbarView=C(GMe,{});async loadMore(){if(!this.hasMore)return;const n=(await Qt.get("/x/web-interface/popular",{params:{ps:20,pn:this.page},withCredentials:!this.anonymous})).data;return jn(n)?(this.page++,this.hasMore=!n.data.no_more,(n.data.list||[]).map(o=>({...o,api:Ze.PopularGeneral,uniqId:`${Ze.PopularGeneral}:${o.bvid}`}))):(tn(n.message||ag),void 0)}}function GMe(){const e=go();return C(It,{configPath:"popularGeneralUseAnonymous",tooltip:C(_e,{children:"✅ 匿名访问: 使用游客身份访问"}),label:"匿名访问",extraAction:async()=>{await gn(100),e();}})}function qMe(){const t=localStorage.getItem("bpx_player_profile");if(t)try{return JSON.parse(t)}catch{return}}function TG(){return !!qMe()?.media.autoplay}const Qp={top:e=>Y("absolute top-8px",e==="left"?"left-8px":"right-8px",e==="left"?kCe:BCe),topContainer:e=>Y(Qp.top(e),"flex items-center gap-x-5px",e==="left"?"flex-row":"flex-row-reverse"),tooltip:e=>Y("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")},ta=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}=wS({inlinePosition:t,tooltip:r}),b=f.useMemo(()=>tW("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=gS(p,d),S={...m,className:b,ref:y,children:B(_e,{children:[n,g]})};return l?C(F1e,{children:o&&C(vR.div,{...S,...u},"action-button")}):C("div",{...S})});function wS({inlinePosition:e,tooltip:t,tooltipClassName:n}){const r=f.useRef(null),o=uS(r),i=or(Qp.tooltip(e),n,o?"block":"hidden");return {triggerRef:r,tooltipEl:t?C("span",{className:i,children:t}):void 0}}function KMe(e,t,n=true){let r=0,o=t;return (...i)=>{if(r++,r===o)return r=0,n&&o++,e(...i)}}function AG(e,t,n=true){const r=rt(e);return f.useMemo(()=>KMe(r,t,n),[r,t,n])}const YMe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 15 15",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),RG=f.forwardRef(YMe),XMe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 15 15",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),QMe=f.forwardRef(XMe),ZMe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 15 15",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),NG=f.forwardRef(ZMe),JMe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 15 15",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),eTe=f.forwardRef(JMe);function tTe(e,t){const n=t.document.head;DR({key:"pip-window",container:n}),Array.from(document.querySelectorAll("style")).filter(o=>[Kr,"ant","rc"].some(i=>o.textContent.includes(i))).forEach(o=>{const i=t.document.createElement("style");i.textContent=o.textContent,t.document.head.appendChild(i);});const r=document.createElement("div");r.classList.add(Is),r.style.lineHeight="0",t.document.body.appendChild(r),da(r).render(C(ma,{cssInsertContainer:n,cssInsertContainerEmotionKey:"pip-window",children:C(Fo,{getPopupContainer:()=>t.document.body,getTargetContainer:()=>t,children:B(Cg,{message:{getContainer:()=>t.document.body},children:[C(fS,{baseGlobalStyle:true}),C(rTe,{newHref:e,pipWindow:t})]})})}));}var nTe={name:"pb1257",styles:"*{box-sizing:border-box;}:root,body,iframe{margin:0;padding:0;overscroll-behavior:none;}"};function rTe({newHref:e,pipWindow:t}){const n=uS(t.document.documentElement),[r,o]=f.useState(()=>ot.pipWindow.defaultLocked);return B(_e,{children:[C(_R,{styles:[nTe,"",""]}),C("iframe",{src:e,className:"block h-100vh w-full border-none"}),C(oTe,{locked:r,setLocked:o,pipWindow:t}),B("div",{className:Y("fixed right-10px top-10px z-9999 flex-row-reverse items-center gap-x-6px",n?"flex":"hidden"),children:[C(iTe,{pipWindow:t,newHref:e}),C(sTe,{locked:r,setLocked:o})]})]})}const PG="size-30px [&_svg]:size-16px";function oTe({locked:e,setLocked:t,pipWindow:n}){const{message:r}=Cg.useApp(),o=AG(()=>{r.info("请先点击右上角「🔓解锁按钮」解锁");},3);return f.useMemo(()=>Ci([{key:"unlock",label:"解锁",icon:C(NG,{}),onClick(){t(false);}}]),[]),e&&C("div",{className:Y("locked-overlay","fixed inset-0 z-9999 select-none bg-transparent"),onClick:o})}function iTe({newHref:e,pipWindow:t}){return C(ta,{inlinePosition:"right",icon:C(RG,{}),tooltip:"新窗口打开",onClick:()=>{t.close();const r=new URL(e);r.searchParams.delete(hc.PlayerScreenMode),r.searchParams.delete(hc.ForceAutoPlay),yi(r.href);},className:PG})}function sTe({locked:e,setLocked:t}){const[n,r]=e?["锁定","解锁"]:["解锁","锁定"];return C(ta,{inlinePosition:"right",icon:e?C(eTe,{}):C(NG,{}),tooltip:`已${n}, 点击${r}`,className:PG,onClick:()=>t(o=>!o)})}const IG=po.extend("VideoCard:useOpenRelated");function aTe({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=rt(E=>{E.stopPropagation(),E.preventDefault(),p(void 0,E);}),p=rt((E,M)=>{E||=ot.videoLinkOpenMode;const T=d(P=>{if((E===cr.NormalWebFullscreen||E===cr.Popup&&ot.pipWindow.autoWebFullscreen)&&(P.searchParams.set(hc.PlayerScreenMode,ql.WebFullscreen),E===cr.Popup&&!TG()&&P.searchParams.set(hc.ForceAutoPlay,MR.ON)),l()){const O=i();O&&(s(),P.searchParams.set("t",O.toString()));}}),A=()=>{const O=!(E===cr.Background||!!(M?.metaKey||M?.ctrlKey));yi(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}=l6({item:t});return OG(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=>vi[E].enabled===void 0).map(E=>({key:L_[E],label:vi[E].label,icon:vi[E].icon,onClick:()=>p(E)})),[]),S=f.useMemo(()=>Object.values(cr).filter(E=>typeof vi[E].enabled=="boolean"&&vi[E].enabled).length?Object.values(cr).filter(E=>typeof vi[E].enabled=="boolean"&&vi[E].enabled).map(E=>({key:L_[E],label:vi[E].label,icon:vi[E].icon,onClick:()=>p(E)})):[],[]),x=f.useMemo(()=>{if(u!==cr.Popup&&t.api!==Ze.Live&&c6&&o)return C(ta,{visible:r,inlinePosition:"right",icon:vi.Popup.icon,tooltip:vi.Popup.label,onClick:E=>{E.preventDefault(),E.stopPropagation(),p(cr.Popup);}})},[u,r]),w=rt(()=>{p(cr.Popup);});return {onOpenWithMode:p,handleVideoLinkClick:m,consistentOpenMenus:y,conditionalOpenMenus:S,openInPopupActionButtonEl:x,onOpenInPopup:w}}function l6({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&&i6(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 c6=!!window.documentPictureInPicture?.requestWindow;async function OG(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([XW(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);}IG("openInPipOrPopup newHref=%s size=%sx%s",e,o,i);let l;if(c6)try{l=await window.documentPictureInPicture?.requestWindow({width:o,height:i,disallowReturnToOpener:!0});}catch{}l?tTe(e,l):lTe(e,o,i);}function lTe(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(",");IG("openInPopup: features -> %s",i),window.open(e,"_blank",i);}function DG(){const{videoLinkOpenMode:e}=Ft();return e!==cr.CurrentPage}function Sm(){return DG()?"_blank":"_self"}function Uy(){return ot.videoLinkOpenMode!==cr.CurrentPage?"_blank":"_self"}function cTe(e){const t=Sm();return C("a",{...e,target:t,children:e.children})}let Ub=[],IE="";function ZL(){const e=Xn();return [e.format("YYYYMMDD"),e.hour()<18?"lt-18":"gte-18"].join("_")}async function uTe(){return Ub.length&&IE&&IE===ZL()||(Ub=(await Qt.get("/x/web-interface/popular/series/list")).data.data.list,IE=ZL()),Ub}class t1{constructor(t){this.useShuffle=t;}static PAGE_SIZE=20;episodesLoaded=false;episodes=[];qs=new xS(t1.PAGE_SIZE);get hasMore(){return this.episodesLoaded?!!this.qs.bufferQueue.length||!!this.episodes.length:true}async loadMore(){if(this.episodesLoaded||(this.episodes=await uTe(),this.episodesLoaded=true,this.useShuffle&&(this.episodes=$i(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 JL(r);return this.qs.bufferQueue.push({api:Ze.Separator,uniqId:`${Ze.PopularWeekly}:separator:${r}`,content:C(cTe,{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<t1.PAGE_SIZE*t&&this.episodes.length;){this.episodes=$i(this.episodes);const n=this.episodes.slice(0,t);this.episodes=this.episodes.slice(t);const r=await sa(n.map(o=>o.number),o=>JL(o),2);this.qs.bufferQueue=$i([...this.qs.bufferQueue,...r.flat()]);}return this.qs.sliceFromQueue()}get tabbarView(){return C(dTe,{})}}const OE={};async function JL(e){if(!OE[e]?.length){const o=((await Qt.get("/x/web-interface/popular/series/one",{params:{number:e}})).data.data.list||[]).map(i=>({...i,api:Ze.PopularWeekly,uniqId:`${Ze.PopularWeekly}:${i.bvid}`}));OE[e]=o;}return OE[e]}function dTe(){const e=go();return C(_e,{children:C(ju,{configPath:"popularWeeklyUseShuffle",checkedChildren:"随机顺序: 开",unCheckedChildren:"随机顺序: 关",extraAction:async()=>{await gn(100),e();}})})}const _G="rank-store-slug",fTe=await( GM.getValue(_G))||o6.slug,Ai=Dn({slug:fTe,tabs:[],get currentTab(){return this.tabs.find(e=>e.slug===this.slug)||o6}}),mTe=sl(async()=>{if(Ai.tabs.length)return;const e=await oMe();Ai.tabs=e;});IA(Ai,"slug",()=>{GM.setValue(_G,Ai.slug);});class LG{constructor(t){this.slug=t;}loaded=false;qs=new xS(20);tabbarView=C(hTe,{});sidebarView=C(pTe,{});get hasMore(){return this.loaded?!!this.qs.bufferQueue.length:true}get rankTab(){return Br(Ai).tabs.find(t=>t.slug===this.slug)||o6}async loadMore(t){if(this.hasMore){if(!this.loaded){await mTe();const{url:n,apiType:r}=tG(this.rankTab),i=(await Qt.get(n,{signal:t})).data;if(this.loaded=true,!jn(i)){tn(i.message||ag);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 kG(){const{tabs:e}=gt(Ai),{normalList:t,pgcList:n}=f.useMemo(()=>{const r=e.map(s=>({...s,apiType:tG(s).apiType})),o=r.filter(s=>[Vy.PgcSeason,Vy.PgcWeb].includes(s.apiType));return {normalList:r.filter(s=>s.apiType===Vy.Normal),pgcList:o}},[e]);return {normalList:t,pgcList:n}}function hTe(){const{enableSidebar:e}=Ft(),{ref:t,getPopupContainer:n}=Rc(),r=go(),{slug:o,currentTab:i}=gt(Ai),{normalList:s,pgcList:l}=kG(),u=(y,S,x)=>y.length?B("div",{className:"mt-15px max-w-350px first:mt-0",children:[B("p",{className:"mb-5px flex-v-center rounded-5px bg-gate-primary py-5px pl-6px text-white",children:[S,!!x&&C(vr,{children:x})]}),C("div",{className:"grid grid-cols-4 gap-x-10px gap-y-8px px-2px",children:y.map(w=>{const E=w.slug===o;return C(ct,{className:Y({"b-gate-primary":E,"color-gate-primary":E}),onClick:M=>{g(false),Ai.slug=w.slug,r();},children:C("span",{children:w.name})},w.slug)})})]}):null,d=rt(y=>{const S=[...s,...l];if(!S.length)return;const x=S.findIndex(M=>M.slug===o);if(x===-1)return;const w=y.shiftKey?-1:1,E=(x+w+S.length)%S.length;Ai.slug=S[E].slug,r();}),m=B(_e,{children:[u(s,"视频"),u(l,"PGC内容","不能提供预览")]}),[p,g]=f.useState(false),b=C(Os,{arrow:false,open:p,onOpenChange:g,placement:"bottomLeft",getPopupContainer:n,content:m,styles:{container:{border:`1px solid ${rd()}`}},children:C(ct,{css:[p&&nd,"",""],onClick:d,className:"outline-none!",children:i.name})});if(!e)return C("div",{ref:t,children:b})}function pTe(){const{slug:e}=gt(Ai),{normalList:t,pgcList:n}=kG(),r=go(),o=rt(s=>{Ai.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 C(xc,{items:i,selectedKeys:[e],mode:"inline",inlineIndent:10})}const gTe={[pr.PopularGeneral]:()=>new WMe(ot.popularGeneralUseAnonymous),[pr.PopularWeekly]:()=>new t1(ot.popularWeeklyUseShuffle),[pr.Rank]:()=>new LG(Ai.slug)};function BG(e){const{subtab:t}=Zo;return e??=ot.popularWeeklyUseShuffle,t===pr.PopularWeekly&&e}const DE=e=>C("img",{src:e,alt:"",className:"size-18px"}),_E={[pr.PopularGeneral]:{icon:DE("https://s1.hdslb.com/bfs/static/jinkela/popular/assets/icon_popular.png"),label:"综合热门",desc:"各个领域中新奇好玩的优质内容都在这里~",swr:true,anonymousUsage:true},[pr.PopularWeekly]:{icon:DE("https://s1.hdslb.com/bfs/static/jinkela/popular/assets/icon_weekly.png"),label:"每周必看",desc:"每周五晚 18:00 更新",anonymousUsage:true},[pr.Rank]:{icon:DE("https://s1.hdslb.com/bfs/static/jinkela/popular/assets/icon_rank.png"),label:"排行榜",desc:"排行榜根据稿件内容质量,近期的数据综合展示,动态更新",anonymousUsage:true,swr:true}};class vTe extends ul{subtab;service;constructor(){super(20),this.subtab=Zo.subtab,this.service=gTe[Zo.subtab]();}get tabbarView(){return C(bTe,{children:this.service.tabbarView})}get sidebarView(){return this.service.sidebarView}get hasMoreExceptQueue(){return this.service.hasMore}fetchMore(t){return this.service.loadMore(t)}}const Zo=await( _A({subtab:pr.PopularGeneral},"hot-store"));Object.values(pr).includes(Zo.subtab)||(Zo.subtab=pr.PopularGeneral);function bTe({children:e}){const{subtab:t}=gt(Zo),{icon:n,label:r}=_E[t],o=go(),{ref:i,getPopupContainer:s}=Rc(),{__internalHotSubUseDropdown:l}=Ft(),u=f.useMemo(()=>[pr.PopularGeneral,pr.PopularWeekly,pr.Rank].map((p,g)=>{const b=_E[p],y=p===t;return [g>0&&{type:"divider"},{key:p,label:C("span",{className:Y({"color-gate-primary":y}),children:b.label}),icon:b.icon,onClick(){p!==Zo.subtab&&(Zo.subtab=p,o());}}].filter(Boolean)}).flat(),[t]),d=C(wc,{menu:{items:u},getPopupContainer:s,rootClassName:'![&_[role="separator"]]:mx-0 ![&_[role="separator"]]:my-2px',children:B(ct,{ref:i,className:"w-114px flex items-center justify-start gap-0 pl-16px",children:[n,C("span",{className:"ml-8px",children:r})]})}),m=f.useMemo(()=>C(Tr.Compact,{children:[pr.PopularGeneral,pr.PopularWeekly,pr.Rank].map((p,g)=>{const{icon:b,label:y,desc:S}=_E[p],x=p===t;return C(sn,{title:B(_e,{children:[y,": ",S]}),children:C(ct,{className:"[&_.ant-btn-icon]:line-height-0",icon:b,variant:x?"solid":"outlined",color:x?"primary":"default",onClick:()=>{p!==Zo.subtab&&(Zo.subtab=p,o());},children:y})},p)})}),[t]);return B(_e,{children:[l?d:m,e]})}const zG=C(dc,{className:"[&.ant-divider-horizontal.ant-divider-with-text]:my-5px [&.ant-divider-horizontal.ant-divider-with-text]:text-14px",children:"底线"});function ES(e){const{enableSidebar:t}=Ft(),{usingTwoColumnMode:n}=FW(),r=gt(Zo).subtab,{insideModal:o}=rs();return f.useMemo(()=>!t||o&&n?false:e===nt.DynamicFeed?!CS:e===nt.Hot?r===pr.Rank:e===nt.Fav?!tg:false,[e,t,r,o,n])}function FG(e,t){const n=f.useRef(null),r=rt(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=rt(()=>{if(o.current)return;r()&&(o.current=true);});return ho(()=>i()),Ya(()=>i(),[e]),{menuRef:n,revealSelected:r}}const zn=Dn({multiSelecting:false,selectedIdSet:Or(),shiftMultiSelectAnchorUniqId:void 0});function HG(e=true){zn.multiSelecting&&(zn.multiSelecting=false,zn.shiftMultiSelectAnchorUniqId=void 0,e&&ot.multiSelect.clearWhenExit&&zn.selectedIdSet.clear());}function VG(e=true){zn.multiSelecting?HG(e):zn.multiSelecting=true;}function yTe(){const{multiSelecting:e}=gt(zn);return e}function STe(e){const{multiSelecting:t,selectedIdSet:n}=gt(zn);return t&&!!e&&n.has(e)}const n1=[];function Za(){return n1.at(-1)?.items??[]}function CTe(e){const t=n1.at(-1);t&&(t.items=e);}function xTe(){ho(()=>(n1.push({items:[]}),()=>{n1.pop();}));}function $S(){const{multiSelecting:e,selectedIdSet:t}=zn;return e?Za().filter(n=>t.has(n.uniqId)):[]}function wTe(){return $S().map(Ja)}function u6(){const{multiSelecting:e}=zn;let t=e?$S():Za();return e&&!t.length&&(t=Za()),t.map(Ja).toReversed()}function d6(){const t=u6().map(n=>n.bvid).filter(Boolean).join(" ");Pu(t,1);}function f6(e){let{bvid:t,authorName:n,pubts:r,title:o}=e;const i=Xn.unix(r??0).format("YYYY-MM-DD");return o=o.replaceAll(/\n+/g," "),`${t} ;; [${n}] ${i} ${o}`}function m6(){const t=u6().filter(n=>n.bvid).map(f6).join(`
`);Pu(t,1);}function ETe(){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(`
`);Pu(t);}function $Te(e,t){const{multiSelecting:n,selectedIdSet:r}=zn;if(!n||!e||!t||e===t)return;const o=Za(),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]=CM(u,[g=>g],["asc"]),p=r.has(e);for(let g=d;g<=m;g++){const b=Za()[g].uniqId;p?r.add(b):r.delete(b);}}const MTe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 16 16",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),TTe=f.forwardRef(MTe),ATe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 16 16",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),RTe=f.forwardRef(ATe),NTe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"currentColor",d:"M6.99 11L3 15l3.99 4v-3H14v-2H6.99zM21 9l-3.99-4v3H10v2h7.01v3z"})]}),PTe=f.forwardRef(NTe),ITe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 512 512",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),OTe=f.forwardRef(ITe),DTe=B(_e,{children:["使用 ",C(ea,{k:"Shift+M"})," 切换多选状态"]}),_Te=B("span",{className:"break-all",children:["使用",dM,"键扩选: 切换选中状态后, 按住",dM,"键再选择区间终点,整个区间会与起点选中状态同步."]}),ek=e=>B("div",{className:"flex items-start gap-x-6px",children:[C(Kj,{className:"mt-1 size-14px"}),C("div",{className:"flex-1",children:e})]});function jG({iconOnly:e,addCopyActions:t=false}){const{multiSelecting:n}=gt(zn),r=rd(),o=B(ct,{type:n?"primary":"default",className:Y(e?"icon-only-round-button":"inline-flex-center"),onClick:()=>VG(),children:[C(TTe,{className:"size-12px"}),!e&&B(_e,{children:["多选",zn.multiSelecting?"中":""]})]}),i=s=>C(Os,{styles:{container:{border:`1px solid ${r}`}},content:B("div",{className:"max-w-288px",children:[ek(DTe),ek(_Te),C(dc,{variant:"solid",className:"my-7px"}),B("div",{className:"flex flex-wrap items-center gap-x-15px gap-y-2px",children:[B(ct,{className:"inline-flex items-center",onClick:()=>zn.selectedIdSet.clear(),children:[C(mm,{className:"size-18px"}),"清空"]}),B(ct,{className:"inline-flex items-center",onClick:()=>{const l=Za().map(u=>u.uniqId);zn.selectedIdSet=Or(l);},children:[C(RTe,{className:"size-18px"}),"全选"]}),B(ct,{className:"inline-flex items-center",onClick:()=>{const l=Za().filter(u=>!zn.selectedIdSet.has(u.uniqId)).map(u=>u.uniqId);zn.selectedIdSet=Or(l);},children:[C(PTe,{className:"size-18px"}),"反选"]}),C("div",{className:"flex-basis-100%"}),B(ct,{className:"inline-flex items-center",onClick:()=>HG(),children:[C(OTe,{className:"size-18px"}),"退出"]}),C(It,{configPath:"multiSelect.clearWhenExit",label:"退出时清空",tooltip:B(_e,{children:["退出多选时, 清空所有已选择项 ",C("br",{}),"仅点击「退出」按钮时生效 ",C("br",{}),"使用快捷键 ",C(ea,{k:"Shift+M"})," 时总是保持选择状态"]})})]}),t&&B(_e,{children:[C(dc,{variant:"solid",className:"my-7px"}),C("div",{className:"flex flex-wrap gap-x-10px gap-y-5px",children:C(QG,{showCopyBvidInfo:true})})]})]}),children:s});return n?i(o):e?C(sn,{title:"多选",arrow:false,children:o}):o}const LTe=Object.prototype.toString,kTe=e=>LTe.call(e)==="[object Error]",BTe=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 zTe(e){if(!(e&&kTe(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:BTe.has(n)}function FTe(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 Wb(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}.`)}}function LE(e,t){if(t!==void 0&&typeof t!="function")throw new TypeError(`Expected \`${e}\` to be a function.`)}class HTe 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 VTe(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 Gb(e,t){return Number.isFinite(t)?t-(performance.now()-e):t}async function jTe(e,t){e<=0||await new Promise((n,r)=>{const o=()=>{clearTimeout(i),t.signal?.removeEventListener("abort",o),r(t.signal.reason);},i=setTimeout(()=>{t.signal?.removeEventListener("abort",o),n();},e);t.unref&&i.unref?.(),t.signal?.addEventListener("abort",o,{once:true});});}async function UTe({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 HTe)throw i.originalError;const s=Number.isFinite(o.retries)?Math.max(0,o.retries-n):o.retries,l=o.maxRetryTime??Number.POSITIVE_INFINITY,u=VTe(n,o);if(Gb(r,l)<=0){const w=Object.freeze({error:i,attemptNumber:t,retriesLeft:s,retriesConsumed:n,retryDelay:0});throw await o.onFailedAttempt(w),i}const m=Object.freeze({error:i,attemptNumber:t,retriesLeft:s,retriesConsumed:n,retryDelay:s>0?u:0}),p=await o.shouldConsumeRetry(m),g=p&&s>0?u:0,b=Object.freeze({error:i,attemptNumber:t,retriesLeft:s,retriesConsumed:n,retryDelay:g});if(await o.onFailedAttempt(b),Gb(r,l)<=0||Gb(r,l)<=0||s<=0||i instanceof TypeError&&!zTe(i)||!await o.shouldRetry(b))throw i;const S=Gb(r,l);if(S<=0)throw i;if(!p)return o.signal?.throwIfAborted(),false;const x=Math.min(g,S);return o.signal?.throwIfAborted(),await jTe(x,o),o.signal?.throwIfAborted(),true}async function UG(e,t={}){if(t={...t},FTe(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,LE("onFailedAttempt",t.onFailedAttempt),LE("shouldRetry",t.shouldRetry),LE("shouldConsumeRetry",t.shouldConsumeRetry),Wb("factor",t.factor,{min:0,allowInfinity:false}),Wb("minTimeout",t.minTimeout,{min:0,allowInfinity:false}),Wb("maxTimeout",t.maxTimeout,{min:0,allowInfinity:true}),Wb("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 UTe({error:i,attemptNumber:n,retriesConsumed:r,startTime:o,options:t})&&r++;}}throw new Error("Retry attempts exhausted without throwing an error.")}var Fa=(e=>(e.Latest="pubdate",e.View="click",e.Fav="stow",e))(Fa||{});const WG="pubdate",GG={pubdate:{icon:C(gCe,{}),label:"最新发布"},click:{icon:C(Ig,{}),label:"最多播放"},stow:{icon:C(Hf,{}),label:"最多收藏"}},WTe=40;async function GTe({mid:e,order:t="pubdate",keyword:n="",pagenum:r=1}){const i=(await Qt.get("/x/space/wbi/arc/search",{params:{mid:e,order:t,keyword:n,ps:WTe,pn:r}})).data;if(!jn(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 qTe(...e){return await UG(()=>GTe(...e),{retries:5,factor:1.5,onFailedAttempt:t=>console.error(t)})}var Gi=(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.Order="space-order",e))(Gi||{}),MS=(e=>(e.All="all",e._5m="5min",e._2m="2min",e._1m="1min",e._30s="30s",e._10s="10s",e))(MS||{});const qG={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}},Cm=new URLSearchParams(location.search),KTe=Cm.get("space-mid")||void 0,tk=Cm.get("space-group-id")||void 0,YTe=Cm.get("space-search-text")||void 0,XTe=Cm.get("space-filter-text")||void 0,nk=Cm.get("space-initial-page")||void 0,QTe=(()=>{const e=Cm.get("space-order");if(e&&Object.values(Fa).includes(e))return e})(),KG=(KTe||"").split(/[,_-]/).map(e=>e.trim()).filter(Boolean).filter(e=>/^\d+$/.test(e)),YG=tk?Number(tk):void 0,xM=!!KG.length||YG!==void 0,kE="up:",ZTe="group:",rk={hideChargeOnlyVideos:true,filterMinDuration:"all"},JTe=(await( LA("space-upload:filters"))).map,xo=Dn({mids:KG,groupId:YG,order:QTe,searchText:YTe,filterText:XTe,filterStateMap:JTe,get isMultipleTraget(){return this.mids.length>1||this.groupId!==void 0},get allowedOrders(){return [Fa.Latest,Fa.View,!this.isMultipleTraget&&Fa.Fav].filter(Boolean)},get usingOrder(){return this.allowedOrders.includes(this.order)?this.order:this.allowedOrders[0]},get currentFilterKey(){if(this.groupId!==void 0)return `${ZTe}${this.groupId}`;if(this.mids.length===1)return `${kE}${this.mids[0]}`;if(this.mids.length>1){const e=[...this.mids].sort((t,n)=>Number(t)-Number(n));return `${kE}${e.join(",")}`}return `${kE}unknown`},get currentFilterState(){return this.filterStateMap.get(this.currentFilterKey)??rk},get hideChargeOnlyVideos(){return this.currentFilterState.hideChargeOnlyVideos},get filterMinDuration(){return this.currentFilterState.filterMinDuration},get filterMinDurationValue(){const e=this.currentFilterState.filterMinDuration;return qG[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,{...rk});}});function TS(){if(CS)return nt.DynamicFeed;if(tg)return nt.Fav;if(xM)return nt.SpaceUpload;if(wM.get("gate-tab"))return wM.get("gate-tab")}var XG=(e=>(e.MainSwitch="gate",e.Tab="gate-tab",e))(XG||{});const wM=new URL(location.href).searchParams;function eAe(){return wM.has("gate")}function tAe(){const e=new URL(location.href);return e.search="",e.searchParams.set("gate","1"),e.href}const nAe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[B("path",{strokeDasharray:20,d:"M12 4h2v6h2.5l-4.5 4.5M12 4h-2v6h-2.5l4.5 4.5",children:[C("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"}),C("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.5s",values:"20;0"})]}),C("path",{strokeDasharray:14,strokeDashoffset:14,d:"M6 19h12",children:C("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.5s",dur:"0.2s",to:0})})]})]}),rAe=f.forwardRef(nAe);function QG({showCopyBvidInfo:e}){const{__internalEnableCopyBvidInfo:t}=Ft();return B(_e,{children:[B(ct,{onClick:d6,className:"inline-flex-center",children:[C(Nu,{})," 复制 BVID"]}),(e??t)&&B(ct,{onClick:m6,className:"inline-flex-center",children:[C(Nu,{})," 复制 BVID 信息"]})]})}function Xg(){const{__internalAddTabbarCopyBvidButton:e}=Ft();return e?C("div",{className:"flex items-center gap-x-2",children:B(Fo,{theme:{components:{Button:{paddingInline:6}}},children:[C(oAe,{}),C(jG,{iconOnly:false}),C(QG,{})]})}):null}function oAe(){const e=f.useMemo(ZG,[]),{recSharedEmitter:t}=rs(),n=$s(()=>t.emit("load-to-end"),{manual:true});return e&&B(ct,{className:"flex items-center gap-x-1",loading:n.loading,onClick:()=>n.run(),children:[!n.loading&&C(rAe,{className:"size-18px"}),"加载全部"]})}function ZG(){const e=TS();return !!e&&[nt.DynamicFeed,nt.SpaceUpload].includes(e)}const JG={overscrollBehavior:"contain",maxHeight:"60vh",overflowY:"scroll",scrollbarWidth:"thin",paddingRight:"12px"},iAe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13"})]}),sAe=f.forwardRef(iAe),aAe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[C("rect",{width:8,height:5,x:14,y:17,rx:1}),C("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"}),C("path",{d:"M20 17v-2a2 2 0 1 0-4 0v2"})]})]}),lAe=f.forwardRef(aAe),cAe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),uAe=f.forwardRef(cAe),dAe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 512 512",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"}),C("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"})]}),fAe=f.forwardRef(dAe),eq=sAe,AS=lAe,RS=uAe,xm=fAe,ok=DA({sidebarFavFolderOrder:"default"},"fav-rec-service:view");function tq(e,t){const{folders:n,collections:r,selectedKey:o}=gt(pn),{sidebarFavFolderOrder:i}=gt(ok),s=go();return {menuItems:f.useMemo(()=>{let u;{let m=n,p;e==="sidebarView"&&(p=C(MG,{value:i,onChange:b=>ok.sidebarFavFolderOrder=b,className:"ml-4"}),m=$G(n,i));const g=m.map(b=>{r6(b.attr);const y=Kg(b.attr),S=`fav-folder:${b.id}`,x=y?C(AS,{}):C(RS,{}),w=`${b.title} (${b.media_count})`;return {key:S,icon:x,label:w,async onClick(){pn.selectedFavFolderId=b.id,pn.selectedFavCollectionId=void 0,t?.(),await gn(100),s();}}});u=!!m.length&&{type:"group",label:B("div",{className:"flex items-center justify-between line-height-snug",children:["收藏夹",p]}),children:g};}let d;{const m=Bk(r,b=>b.upper.name);let p=Object.entries(m).map(([b,y])=>({upName:b,collections:QL(y,"title")}));p=QL(p,"upName");const g=[];for(const{upName:b,collections:y}of p){const S=y[0]?.upper.mid,x=S?Yg(S):"#";g.push(...Ci([{type:"group",label:B("span",{className:"flex items-center gap-x-2px",children:[C($o,{className:"mt-2px size-15px flex-none"}),B("a",{target:"_blank",href:x,children:["@",b]})]}),children:y.map(w=>{const E=`fav-collection:${w.id}`,M=B("span",{className:"ml-8px flex items-center gap-x-2px",children:[C(xm,{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 Ci([{key:"all",icon:C(eq,{}),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 mAe({extraContent:e}){const{fav:t}=Ft(),n=ES(nt.Fav),{selectedFavFolder:r,selectedFavCollection:o,selectedLabel:i,selectedKey:s}=gt(pn),l=go(),{ref:u,getPopupContainer:d}=Rc();ho(()=>{P6();}),Ya(()=>{(async()=>(await gn(100),l()))();},[t.addSeparator]);const[m,p]=f.useState(false),{menuItems:g}=tq("tabbarView",()=>{p(false);}),b="relative top-[-0.5px] size-15px",y=r?Kg(r.attr)?C(AS,{className:b}):C(RS,{className:b}):o?C(xm,{className:b}):C(eq,{className:b}),S=i,x=C(wc,{open:m,onOpenChange:p,placement:"bottomLeft",getPopupContainer:d,menu:{items:g,style:{...JG,border:`1px solid ${rd()}`},selectedKeys:[s]},children:C(ct,{css:[m&&nd,"",""],children:B("span",{className:"h-full flex items-center gap-x-4px",children:[y,S]})})});return B("div",{ref:u,className:"flex items-center gap-x-10px",children:[!n&&x,e,C(Xg,{})]})}function hAe({allFavFolderServices:e,state:t}){const{fav:n}=Ft(),r=go(),{ref:o,getPopupContainer:i}=Rc(),{totalCountInFavFolders:s}=gt(t),[l,u]=f.useState(false),d=rt((g,b,y)=>{u(true),ot.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=rt(g=>{g?u(false):l&&r();});return C(Os,{getTooltipContainer:i,trigger:"click",placement:"bottom",onOpenChange:p,getPopupContainer:g=>g.parentElement||document.body,content:C(_e,{children:C(K1,{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:B(ws,{ref:o,color:"success",className:"mx-0 cursor-pointer text-size-12px",children:["收藏夹(",m,") 收藏(",s,")"]})})}function pAe(){const{menuItems:e,selectedKey:t}=tq("sidebarView"),{menuRef:n}=FG(e,t);return B(_e,{children:[C(xc,{ref:n,items:e,selectedKeys:[t],mode:"inline",inlineIndent:10}),zG]})}class h6 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 gAe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),vAe=f.forwardRef(gAe);function bAe(e){return e instanceof Error&&e.name==="AxiosError"}function Ih(e){return e&&C("p",{className:"mt-10px",children:e})}function nq(e){if(!(e&&e instanceof Error))return Ih(JSON.stringify(e));const t=!!e.message&&B(_e,{children:["Error Message: ",e.message]}),n=!!e.stack&&B(_e,{children:["Error Stack: ",C("br",{}),e.stack]});let r,o;if(e.cause&&(r=B(_e,{children:["Error Cause: ",nq(e.cause)]})),bAe(e)){const i=Tf(e);i.config?.params?.access_key&&(i.config.params.access_key="*".repeat(i.config.params.access_key.length)),o=B(_e,{children:["axios config: ",JSON.stringify(i.config,null,2)]});}return B(_e,{children:[Ih(t),Ih(n),Ih(r),Ih(o)]})}function yAe(e){return e&&e instanceof rq&&e.message||e&&e instanceof RR?e.message:"出错了, 请刷新重试!"}class rq extends Error{constructor(t){super(t),this.name="ShowMessageError";}}function SAe({err:e,tab:t}){const n=Sm(),r=f.useMemo(()=>yAe(e),[e]),o=f.useMemo(()=>nq(e),[e]);return B("div",{className:"flex flex-col items-center gap-y-0.5em p-20px text-center text-size-20px",children:[C(sn,{title:B("div",{className:"py-10px",children:[C("h3",{children:"错误详情"}),C("div",{className:"max-h-50vh overflow-hidden overflow-y-auto whitespace-pre-wrap break-normal",children:o})]}),children:B("p",{className:"flex cursor-pointer items-center justify-center",children:[C(vAe,{className:"mr-4px"}),r]})}),t===nt.Hot&&Zo.subtab===pr.PopularWeekly&&B("p",{className:"mt-8px flex items-center justify-center",children:["可能需手动输入验证码",C($o,{className:"ml-12px"}),C("a",{href:"https://www.bilibili.com/v/popular/weekly",target:n,className:"ml-2px",children:"每周必看"})]}),t===nt.Liked&&e instanceof RR&&C(e6,{className:"mt-0.5em"})]})}function oq(e){const t=e==="follow"?1:2;return async function(r){return await QW(r,t)}}const CAe=oq("follow"),xAe=oq("unfollow"),wAe={follow:CAe,unfollow:xAe};function EAe(e){return [1,2,6].includes(e.attribute)}async function $Ae(e){return (await Qt.get("/x/relation",{params:{fid:e}})).data.data}const MAe=AR($Ae,{cacheKey:([e])=>e.toString()});async function TAe(e){const n=(await Qt.get("/x/space/wbi/acc/info",{params:{mid:e,w_webid:await lG()||""}})).data;if(!jn(n)){Bo("space acc info error for %s: %o",e,n);return}return n.data}const p6=od({fn:TAe,generateKey:e=>e.toString(),tableName:"space-acc-info",ttl:Qr("10d"),concurrency:2});async function AAe(e){return (await p6(e))?.name}const Du=od({fn:AAe,generateKey:e=>e.toString(),tableName:"user-nickname",ttl:Qr("10d")});async function BE(e,t){await Du.cache.set(e.toString(),{val:t,ts:Date.now()});}const iq=B(_e,{children:["1. 可以使用多个过滤词, 用空格分隔, 逻辑关系为且 (AND) ",C("br",{}),'2. 可以使用引号包裹过滤词, 如 "word or sentence" ',C("br",{}),'3. 可以使用 -"word or sentence" 排除; 必须使用引号(单引号 或 双引号) ',C("br",{})]});function sq(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 RAe(e){return !!(e.elec_arc_type===1||!e.elec_arc_type&&e.is_charging_arc||e.elec_arc_type===2)}function aq({Component:e,defaultProps:t,containerClassName:n}){const r=Dn(t);function o(){const u=gt(r);return C(e,{...u})}const i=qf(()=>{const u=document.createElement("div");u.className=Y(Is,n),document.body.appendChild(u),da(u).render(C(ma,{children:C(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 NAe=[{platform:"pc",text:"内容不感兴趣",value:1,reason:1},{platform:"pc",text:"不想看此UP主",value:2,reason:4}];function g6(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};ym(e);}const PAe={show:false,reasons:[],onHide:OAe,okAction:void 0},{proxyProps:IAe,updateProps:lq}=aq({Component:_Ae,containerClassName:"show-dislike-container",defaultProps:PAe}),cq=new uo;function OAe(){cq.emit("modal-close"),lq({show:false,reasons:[],okAction:void 0});}async function DAe(e,t){lq({show:true,reasons:e,okAction:t}),await cq.once("modal-close");}const uq=function(){return gt(IAe).show};function _Ae({show:e,reasons:t,onHide:n,okAction:r}){const o=f.useRef(null),i=!!(e&&t?.length),s=$s(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):ym(b);},[t]);const m=zg(()=>new uo,[]);ao(m,"click",({data:b})=>{});const p=rt(b=>{const y=t.length;let S=u+b;S<0&&(S=S%y+y),S>y-1&&(S=S%y),d(S);});To("ArrowUp",()=>p(-1),{enabled:i}),To("ArrowDown",()=>p(1),{enabled:i});const g=dS(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 To("Enter",g,{enabled:i}),B(jg,{show:e,onHide:n,hideWhenMaskOnClick:true,hideWhenEsc:true,width:350,clsModal:"rounded-15px",children:[B("div",{className:ko.modalHeader,children:[B("div",{className:ko.modalTitle,children:[C(yR,{className:"size-25px"}),C("span",{className:"ml-5px",children:"我不想看"}),B(vr,{children:["选择后将减少相似内容推荐 ",C("br",{}),"操作说明: ",C("br",{}),B("div",{className:"ml-10px",children:["1. 使用删除键打开弹窗, Esc 关闭 ",C("br",{}),"2. 数字键 或 方向键选择 ",C("br",{}),"3. 回车键 或 确定按钮提交 ",C("br",{})]})]})]}),C(Ug,{onClick:n})]}),C("div",{className:ko.modalBody,ref:o,children:C(G1,{spinning:l,indicator:tU,children:C("div",{className:"reason-list mb-20px mt-20px flex flex-col gap-y-10px",children:t.map((b,y)=>{const S=y===u,{reasonId:x,text:w}=g6(b),E=y+1;return B("button",{className:Y("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:[B("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:[C(LAe,{num:E,enabled:i,onPress:()=>d(y)}),E]}),C("span",{className:"flex-1 px-4px text-14px",children:w}),C("span",{className:"size-20px flex-none",children:S&&C(Up,{className:"h-100% w-100% color-gate-primary",useAnimation:true})})]},x)})})})}),B("div",{className:"mt-2 flex items-center justify-end gap-x-10px",children:[C(ct,{onClick:n,children:"取消"}),C(ct,{type:"primary",onClick:g,loading:l,children:"确定"})]})]})}function LAe({num:e,onPress:t,enabled:n}){return Nr(e>=1&&e<=9,"num must be between 1 and 9"),To(`${e}`,t,{enabled:n}),null}const Ha=20;function kAe({folderId:e,currentFolderTitle:t,onClosePopover:n}){const r=$s(l=>B3e(e,l),{manual:true}),[o,i]=f.useState(t),s=rt(async()=>{const l=o.trim();if(!l)return tn("收藏夹名称不能为空!");if(l===t)return tn("无变更!");if(!await r.runAsync(l))return;n();const d=pn.folders.find(m=>m.id===e);d&&(d.title=o);});return B("div",{className:"flex flex-col gap-y-2",children:[C("div",{children:"重命名收藏夹"}),C(es,{placeholder:"收藏夹名称",value:o,onChange:l=>i(l.target.value),onPressEnter:s}),B("div",{className:"flex justify-end gap-x-2",children:[C(ct,{onClick:n,children:"取消"}),C(ct,{type:"primary",loading:r.loading,onClick:s,disabled:!o||o===t,children:"确定"})]})]})}function BAe({service:e}){const[t,n]=f.useState(false),{viewingSomeFolder:r}=gt(pn),o=Sm(),{id:i,attr:s,title:l}=e.entry,u=gt(pn.folders).find(m=>m.id===i)?.title??l,d="size-16px";return B("div",{className:"col-span-full mb-15px mt-5px flex flex-col gap-y-10px",children:[B("div",{className:"flex-v-center gap-x-1 text-1.6em",children:[Kg(s)?C(AS,{}):C(RS,{}),"收藏夹 · ",u]}),B("div",{className:"flex-v-center gap-x-10px",children:[B(ct,{href:R3e(i),target:o,children:[C(Ig,{className:d}),"播放全部"]}),B(ct,{href:n6(i,s),target:o,children:[C($o,{className:d}),"去「我的空间」查看"]}),r&&C(Os,{open:t,onOpenChange:n,trigger:"click",content:C(kAe,{folderId:i,currentFolderTitle:u,onClosePopover:()=>n(false)}),children:B(ct,{className:"gap-x-1",children:[C(CR,{className:d}),"重命名"]})})]})]})}const zAe=[_t.FavTimeDesc,_t.PlayCountDesc,_t.PubTimeDesc];function ik(e){return zAe.includes(e)}const dq=bm("fav-folder-all-items");async function Wy(e){await dq.delete(e);}class fq{constructor(t,n,r){if(this.folderId=t,this.addSeparator=n,this.itemsOrder=r,this.itemsOrder===_t.Initial)throw new Error("this should not happen!");ik(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:C(BAe,{service:this.innerService}),wrapWithDivider:false}}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 P6();const t=Br(pn.folders).find(n=>n.id===this.folderId);Nr(t,`favStore.favFolders should have this entry[fid=${this.folderId}]`),this.entry=t,ik(this.itemsOrder)?this.innerService=new Mf(t,this.itemsOrder):this.innerService=new Mf(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===_t.Shuffle&&(this.bufferQueue=$i(this.bufferQueue));const n=this.bufferQueue.slice(0,Ha);return this.bufferQueue=this.bufferQueue.slice(Ha),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=mM(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=od({fn:this._fetchAllItems,tableName:dq,generateKey:()=>`${this.folderId}`,ttl:Qr("5min")});fetchAllItems=t=>(this.assertInnerService(),this.entry.media_count>Mf.PAGE_SIZE*3?this._fetchAllItemsWithCache(t):this._fetchAllItems(t));runSideEffects(){this.assertInnerService(),typeof this.innerService.info?.media_count=="number"&&Wq(this.folderId,this.innerService.info.media_count);}get extraTabbarView(){return C(N6,{})}}class Mf{constructor(t,n=_t.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={[_t.FavTimeDesc]:"mtime",[_t.PlayCountDesc]:"view",[_t.PubTimeDesc]:"pubtime"}[this.itemsOrder],o=(await Qt.get("/x/v3/fav/resource/list",{params:{media_id:this.entry.id,pn:this.page+1,ps:Mf.PAGE_SIZE,keyword:"",order:n,type:"0",tid:"0",platform:"web"}})).data;if(!jn(o)){tn(o.message||ag);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 mq={modalWidth:60,favFolderOrder:"default"},jh=DA({...mq},"modal-fav-manager");function FAe(){const{modalWidth:e,favFolderOrder:t}=gt(jh),n="text-1.5em",r="text-1.2em";return B("div",{className:"flex flex-col gap-y-10px",children:[B("div",{className:"flex items-center justify-between",children:[C("div",{className:n,children:"窗口设置"}),C(ct,{className:"icon-only-round-button size-24px",onClick:()=>Object.assign(jh,mq),children:C(U0,{})})]}),B("div",{children:[B("div",{className:r,children:["窗口宽度 ",e,"%"]}),C(wA,{className:"mt-0",value:e,min:30,max:90,onChange:o=>{jh.modalWidth=o;}})]}),B("div",{children:[C("div",{className:r,children:"收藏夹排序"}),C(MG,{value:t,onChange:o=>jh.favFolderOrder=o})]})]})}function HAe({show:e,onHide:t,mode:n,pickOkAction:r,modifyInitialSelectedIds:o,modifyAllowEmpty:i,modifyOkAction:s}){const{modalWidth:l,favFolderOrder:u}=gt(jh),[d,m]=f.useState(void 0),[p,g]=f.useState(void 0),b=$s(I6,{manual:true}),y=$s(async D=>r?.(D),{manual:true}),S=$s(async D=>s?.(D),{manual:true}),{folders:x}=gt(pn),w=f.useMemo(()=>{const D=x.map((W,z)=>({...W,vol:z+1}));if(!p)return D;const _=D.filter(W=>W.title.includes(p)),H=D.filter(W=>W.title.toLowerCase().includes(p.toLowerCase())),U=D.filter(W=>jX.match(W.title,p));return vc([..._,...H,...U],W=>W.id)},[x,p]),M=f.useMemo(()=>$G(w,u),[w,u]),T=f.useMemo(()=>new Set([o].flat().filter(D=>typeof D=="number")),[o]),A=VAe(),I=n==="modify"&&i,N=f.useMemo(()=>!I&&!d||n==="modify"&&Mi(Array.from(T),[d]),[I,d,n,T]);To("R",()=>b.run(true),{enabled:e});const P=rt(async()=>{let D;if(d&&(D=x.find(_=>_.id===d)),!I&&!D)return Wt.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=rt(()=>{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]),Ya(()=>{if(e&&(!d||!T.has(d))){const D=Array.from(T)[0];m(D);}},[T]),B(jg,{show:e,onHide:t,hideWhenMaskOnClick:true,hideWhenEsc:true,width:`${l}vw`,clsModal:"rounded-15px",children:[B("div",{className:ko.modalHeader,children:[B("div",{className:"flex flex-wrap items-center gap-x-10px gap-y-1",children:[B("div",{className:ko.modalTitle,children:[n==="pick"?C(xCe,{className:"size-25px"}):C(CR,{className:"size-25px"}),C("span",{className:"ml-5px",children:n==="pick"?"选择目标收藏夹":"修改收藏"})]}),C(es,{className:"w-215px",allowClear:true,placeholder:"过滤: 支持拼音 / 拼音首字母",value:p,onChange:D=>g(D.target.value),spellCheck:false}),!!p&&B("span",{className:"ml-5px",children:[C("span",{className:Y({"text-red":x.length&&!M.length}),children:M.length})," ","/ ",C("span",{children:x.length})]}),B(vr,{className:"ml-5px size-1.3em",children:["1. 使用 ",C("kbd",{className:Y(uM,"mx-2px"),children:"r"})," 刷新收藏夹 ",C("br",{}),"2. 使用 ",C("kbd",{className:Y(uM,"mx-2px"),children:"esc"})," 取消操作, 关闭窗口 ",C("br",{}),"3. 使用 拼音 / 拼音首字母 过滤收藏夹标题 ",C("br",{})]}),C(Os,{trigger:"click",title:C(FAe,{}),children:C(SR,{className:"size-1.3em cursor-pointer"})})]}),C(Ug,{onClick:t})]}),C("div",{className:Y(ko.modalBody),children:C(G1,{spinning:b.loading||y.loading||S.loading,indicator:tU,children:C("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 _=n==="modify"&&T.has(D.id),H=D.id===d;return B("button",{"data-id":D.id,className:Y({active:H},"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",H&&"b-gate-primary color-white bg-gate-primary! hover:bg-gate-primary-lv1!"),onClick:()=>{if(H&&I)return m(void 0);m(D.id);},children:[_&&C(sn,{title:"源收藏夹",placement:"left",children:C("span",{className:Y("absolute left-2 top-50% size-2.5 flex-center translate-y--50% rounded-full",A)})}),B("span",{className:"flex-1 px-4px text-14px",children:[D.title," (",D.media_count,")"]}),C("span",{className:"mr-2px size-20px flex-none",children:H&&C(Up,{className:"size-full color-white",useAnimation:true})})]},D.id)}):C(Ki,{className:"grid-col-span-full",image:Ki.PRESENTED_IMAGE_SIMPLE,description:"未找到收藏夹",children:"无过滤结果, 请检查过滤词 !"})})})}),B("div",{className:"mt-2 flex items-center justify-between",children:[C("div",{className:"flex-v-center gap-x-10px",children:B("a",{href:`https://space.bilibili.com/${ii()}/favlist`,target:"_blank",className:"flex-v-center gap-x-1",children:[C($o,{className:"size-1.1em"}),"去个人空间新建收藏夹"]})}),B("div",{className:"flex-v-center gap-x-10px",children:[C(ct,{onClick:t,children:"取消"}),C(ct,{type:"primary",onClick:P,loading:y.loading||S.loading,disabled:N,children:"确定"})]})]})]})}function VAe(){const{theme:e}=Ft();return e===Y0.id?"bg-$brand_blue":"bg-$brand_pink"}const jAe={onHide:WAe,show:false,mode:"pick",pickOkAction:void 0,modifyInitialSelectedIds:void 0,modifyOkAction:void 0},{proxyProps:UAe,updateProps:v6}=aq({Component:HAe,containerClassName:"ModalFavManager",defaultProps:jAe}),b6=new uo;function WAe(){v6({show:false}),b6.emit("modal-close");}function hq(){return gt(UAe).show}async function GAe(e){v6({show:true,mode:"pick",pickOkAction:e}),await b6.once("modal-close");}async function r1(e,t,n=true){v6({show:true,mode:"modify",modifyInitialSelectedIds:e,modifyOkAction:t,modifyAllowEmpty:n}),await b6.once("modal-close");}async function y6(e,t,n){if(Mi(t,[n?.id]))return Wt.warning("请选择不同的收藏夹!"),false;if(!await Uu.modifyFav(e,t,n?.id))return  false;[...t??[],n?.id].filter(s=>s!==void 0).forEach(s=>Wy(s));let i;return n?i=`${t?.length?"已移动收藏到":"已加入收藏"}「${n.title}」`:i="已取消收藏",Wt.success(i),true}function pq(){const{modalFeedVisible:e,modalSettingsVisible:t}=H6();return [e,t,uq(),hq()].every(r=>r===false)}const S6=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=rt(S=>{const x=r.filter(T=>T!=="divider"),w=x.indexOf(e);if(w===-1)return;const E=(w+(S.shiftKey?-1:1)+x.length)%x.length,M=x[E];t(M);}),p=f.useMemo(()=>Ci(r.map(S=>{if(S==="divider")return {type:"divider"};const{icon:x,label:w}=o[S];return {key:S,icon:x,label:w,onClick:()=>t(S)}})),[r,o,t]),[g,b]=f.useState(false),y=Ywe();return B("span",{className:"inline-flex items-center",ref:l,children:[C(wc,{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:B(ct,{className:Y(nU,"px-3"),css:[g&&nd,"",""],disabled:n,onClick:m,children:[u,d]})}),B(vr,{children:[s,s&&C(cM,{}),"操作说明: ",C("br",{}),"1. 点击/下拉切换 ",C("br",{}),"2. 按住 ",dM," 键点击逆序切换 ",C("br",{})]})]})};function qAe({onRefresh:e,getPopupContainer:t}){const{hideChargeOnlyVideos:n,filterMinDuration:r}=gt(xo),o=C(KAe,{refresh:e}),[i,s]=f.useState(false),l=f.useMemo(()=>n||r!==MS.All,[n,r]);return {popoverTrigger:C(Os,{open:i,onOpenChange:s,arrow:false,placement:"bottomLeft",getPopupContainer:t,content:o,styles:{container:{border:`1px solid ${rd()}`}},children:C(wg,{dot:l,color:ns,offset:[-5,5],children:C(ct,{className:"icon-only-round-button",css:i&&nd,children:C(iG,{className:"ml-1px"})})})})}}const kl={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 KAe({refresh:e}){const{hideChargeOnlyVideos:t,filterMinDuration:n}=gt(xo);return B("div",{className:kl.wrapper,children:[B("div",{className:kl.section,children:[C("div",{className:kl.sectionTilte,children:"充电专属"}),C("div",{className:kl.sectionContent,children:C(Ni,{className:"ml-5px",checked:t,onChange:r=>{xo.setHideChargeOnlyVideos(r.target.checked),e?.();},children:C(sn,{title:"隐藏「充电专属」视频",children:C("span",{style:{userSelect:"none"},children:"隐藏「充电专属」"})})})})]}),B("div",{className:kl.section,children:[C("div",{className:kl.sectionTilte,children:"最短时长"}),C("div",{children:C(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(MS).map(r=>{const{label:o}=qG[r];return C(Rr.Button,{value:r,children:o},r)})})})]}),C("div",{className:kl.section,children:C("div",{className:kl.sectionContent,children:C(ct,{onClick:()=>{xo.resetCurrentFilterState(),e?.();},children:"重置筛选"})})})]})}function YAe(){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}=Rc(),{popoverTrigger:u}=qAe({onRefresh:i,getPopupContainer:l}),d=rt(()=>{m();const{searchText:b,filterText:y,order:S}=xo,x=location.href,w=new URL(x);b?w.searchParams.set(Gi.SearchText,b):w.searchParams.delete(Gi.SearchText),y?w.searchParams.set(Gi.FilterText,y):w.searchParams.delete(Gi.FilterText),!S||S===WG?w.searchParams.delete(Gi.Order):w.searchParams.set(Gi.Order,S),w.href!==x&&history.replaceState({},"",w.href);}),m=rt(()=>{ot.spaceUpload.useSyncFilterTextFromSearchText&&(xo.filterText=xo.searchText);});ho(d);const p=f.useRef(null),g=pq();return To({shift:true,key:"?"},b=>p.current?.focus(),{eventType:"keyup",enabled:g}),To("Escape",b=>p.current?.blur(),{target:p.current?.nativeElement,ignoreInputs:false,requireReset:false,enabled:g,conflictBehavior:"allow"}),B("div",{ref:s,className:"flex items-center gap-x-10px",children:[C(S6,{value:r,list:n,listDisplayConfig:GG,onChange:b=>{xo.order=b,d(),i();}}),u,C(es.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();}}),B(Tr.Compact,{children:[C(Tr.Addon,{children:C(sn,{title:C(_e,{children:"精准搜索: 自动将搜索词同步到过滤词"}),children:C(It,{className:"[&>.ant-checkbox-label]:hidden",configPath:"spaceUpload.useSyncFilterTextFromSearchText",extraAction:b=>{b&&(d(),i());}})})}),C(es.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();}})]}),C(It,{configPath:"spaceUpload.showVol",label:"显示序号",className:"flex-none"}),C(Xg,{})]})}const gq=new h6({maxSize:100}),o1=Or();async function XAe(e){if(o1.has(e))return;const t=await MAe(e);EAe(t)&&o1.add(e);}function vq(){const e=Br(xo);return {mids:e.mids,groupId:e.groupId,order:e.usingOrder,searchText:e.searchText,filterText:e.filterText,initialPage:nk?Number(nk):void 0,hideChargeOnlyVideos:e.hideChargeOnlyVideos,filterMinDuration:e.filterMinDuration,filterMinDurationValue:e.filterMinDurationValue}}class C6 extends ul{constructor(t){if(super(C6.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=C(YAe,{});get hasMoreExceptQueue(){return this.service?this.service.hasMore:true}async fetchAvatars(t){await Promise.all(t.map(async n=>{const r=await p6(n);r&&gq.set(n,r.face);}));}async fetchFollowState(t){await sa(t,XAe,3);}pageTitleSet=false;async setPageTitle(){if(this.pageTitleSet)return;const t=[];this.searchText&&t.push(`🔍【${this.searchText}】`),this.filterText&&t.push(`⏳【${this.filterText}】`);const n=this.order!==WG?`🔢【${GG[this.order].label}】`:"";let r,o=false;if(this.mids.length)r=(await sa(this.mids,Du,3)).map(l=>l?.trim()).filter(Boolean).map(l=>`【${l}】`).join("、"),r||(r="【未知UP】",o=true);else {const l=(await cG()).find(u=>u.tagid===this.groupId)?.name||"";r=l?`【${l}】`:"";}const i=[...t,n,`${r}的投稿`].map(s=>s.trim()).filter(Boolean).join(" - ");kR(i),o||(this.pageTitleSet=true);}singleUpService;mergeTimelineService;async setupServices(){if(!(this.singleUpService||this.mergeTimelineService)){if(this.mids.length===1){this.singleUpService=new bq(this.mids[0],this.order,this.searchText,this.initialPage);return}if(this.mids.length){this.mergeTimelineService=new sk(this.mids,this.order,this.searchText);return}if(this.groupId!==void 0){const t=await gM(this.groupId);if(t.forEach(n=>o1.add(n)),!t.length)throw new Error("Group is Empty!");this.mergeTimelineService=new sk(t.map(n=>n.toString()),this.order,this.searchText);return}}}get service(){return this.singleUpService||this.mergeTimelineService}warnNeedLoginOnce=qf(qq);async fetchMore(t){if(!uU())throw this.warnNeedLoginOnce(),new rq(Gq);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=>!RAe(i))),this.filterMinDuration!==MS.All&&(o=o.filter(i=>Yp(i.length)>=this.filterMinDurationValue)),this.filterText){let{includes:i,excludes:s}=sq(this.filterText);i=i.map(l=>l.toLowerCase()),s=s.map(l=>l.toLowerCase()),o=o.filter(l=>{const u=l.title.toLowerCase();return i.every(d=>u.includes(d))&&s.every(d=>!u.includes(d))});}{const i=ig(o.filter(s=>s.author.trim()!=="账号已注销")).map(s=>s.mid).filter(Boolean);await Promise.all([this.fetchAvatars(i),this.fetchFollowState(i)]);}if(!this.pageTitleSet){const i=Bk(o,s=>s.mid);for(const[s,l]of Object.entries(i)){const u=l.find(d=>d.author)?.author;u&&!await Du.queryCache(s)&&await Du.cache.set(s,{val:u,ts:Date.now()});}await this.setPageTitle();}return o}}class sk{constructor(t,n,r){this.mids=t,this.order=n,this.searchText=r,Nr(this.mids.length===1||this.mids.length>1&&this.order!==Fa.Fav,"SpaceUploadItem.Fav not supported when merging"),this.singleUpServices=t.map(o=>new bq(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 sa(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=ka(o.map(l=>{const u=l.bufferQueue[0],d={[Fa.Latest]:u.created,[Fa.View]:u.play,[Fa.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 bq{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 qTe({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 EM=e=>(e||"").replace(/^http:\/\//,"https://"),x6="·";function QAe(e,t){const n=e.api,r=t[n];return r(e)}function ZAe(){const t=new WeakMap;return t.clear??=Hk,t.size=0,t}const Ja=oQ(e=>{const t=QAe(e,{[Ze.AppRecommend]:JAe,[Ze.PcRecommend]:tRe,[Ze.DynamicFeed]:nRe,[Ze.Watchlater]:rRe,[Ze.Fav]:oRe,[Ze.PopularGeneral]:iRe,[Ze.PopularWeekly]:sRe,[Ze.Rank]:aRe,[Ze.Live]:lRe,[Ze.SpaceUpload]:cRe,[Ze.Liked]:uRe});return t.authorFace&&(t.authorFace=EM(t.authorFace)),t.cover&&(t.cover=EM(t.cover)),t.bvid||=void 0,t.avid||=void 0,t},{cache:ZAe(),getCacheKey:e=>e});function JAe(e){return eRe(e)}function eRe(e){const t=x=>{const{cover_left_text_1:w,cover_left_text_2:E,cover_left_text_3:M}=e,T=[w,E,M].filter(Boolean);if(x==="play"){const A=T.find(N=>/观看|播放$/.test(N));if(!A)return;const I=A.replace(/观看|播放$/,"");return yu(I)}if(x==="danmaku"){const A=T.find(N=>N.endsWith("弹幕"));if(!A)return;const I=A.replace(/弹幕$/,"");return yu(I)}if(x==="bangumi:follow"){const A=T.find(N=>/追[剧番]$/.test(N));if(!A)return;const I=A.replace(/追[剧番]$/,"");return yu(I)}},n=e.param,r=e.bvid||e.videoDetail?.bvid||yS(Number(e.param)),o=e.videoDetail?.cid||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 Bo("bangumi uri should not starts with 'bilibili://': %s",e.uri),e.uri;if(e.goto==="picture"){const x=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri)?.[1];return x?`/read/cv${x}`: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(x6);return {avid:n,bvid:r,cid:o,goto:e.goto,href:i,title:e.title,cover:e.cover,pubts:e.videoDetail?.pubdate||void 0,pubdateDisplay:S,duration:e.videoDetail?.duration||e.player_args?.duration||0,durationStr:cl(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 tRe(e){e.goto,za.AV;const t=e.goto===za.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:cl(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 nRe(e){const t=bG(e);return Nr(t,"unexpected `normalizeDynamicFeedItem` empty result"),t}function rRe(e){const t=gMe(e.state),n=e.progress>0,r=`${n?"【已观看】· ":""}${e.title}`,o=t?C(sn,{title:B(_e,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:B("del",{children:[n?"【已观看】· ":"",e.title,"`"]})}):void 0,{watchlaterUseNormalVideoUrl:i,watchlaterItemsOrder:s}=sS(),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===Mo.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:`${jy(e.pubdate,true)} 发布, ${jy(e.add_at,true)} 添加稍后再看`,duration:e.duration,durationStr:cl(e.duration),recommendReason:`${jy(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 oRe(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"?Kg(e.folder.attr)?C(AS,{className:Y("size-15px",r),style:n}):C(RS,{className:Y("size-15px",r),style:n}):C(xm,{className:Y("size-15px",r),style:n});return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${t}】· ${e.title}`,titleRender:B(_e,{children:["【",o,t,"】· ",e.title]}),cover:e.cover,pubts:e.pubtime,duration:e.duration,durationStr:cl(e.duration),recommendReason:e.from==="fav-folder"?`${jy(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 iRe(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:cl(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 sRe(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:cl(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 aRe(e){if(aMe(e)||sMe(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:cl(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 lRe(e){const t=`${e.area_name_v2}`,n=e.live_status===Qs.Streaming?"":`${x6}${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=Xn().format("YYYYMMDD"),l=Xn().subtract(1,"day").format("YYYYMMDD"),u=Xn.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 cRe(e){const t=Yp(e.length),n=cl(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:gq.get(e.mid),authorMid:e.mid.toString(),followed:o1.has(e.mid)}}function uRe(e){const{videoDetail:t}=e,n=e.param,r=yS(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:cl(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 ak=/^(?<mid>\d+)\((?<remark>[\S ]+)\)$/,dRe=/^\d+$/;function NS(e){if(ak.test(e)){const t=ak.exec(e)?.groups,n=t?.mid,r=t?.remark;return {mid:n,remark:r}}return dRe.test(e)?{mid:e,remark:void 0}:{}}function $M(e){const t=new Set,n=new Set;return e.forEach(r=>{const{mid:o}=NS(r);o?t.add(o):n.add(r);}),{blockUpMids:t,blockUpNames:n}}function lk(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 us=po.extend("modules:filter");function w6(e){return !!e&&["已关注","新关注"].includes(e)}function yq(e){return [Ze.AppRecommend,Ze.PcRecommend,Ze.Rank,Ze.PopularGeneral,Ze.PopularWeekly].includes(e)}function i1(e,t){if(!ot.filter.enabled&&!dp.size)return e;const n=sS().filter,{minDuration:r,minPlayCount:o,minDanmakuCount:i,byAuthor:s,byTitle:l,dfByTitle:u,dfHideOpusMids:d}=n,{blockUpMids:m,blockUpNames:p}=$M(s.keywords),{test:g}=lk(l.keywords),{test:b}=lk(u.keywords),{blockUpMids:y}=$M(d.keywords);return e.filter(S=>{if(S.api===Ze.Separator)return  true;const{play:x,duration:w,danmaku:E,recommendReason:M,goto:T,authorName:A,authorMid:I,title:N,bvid:P,href:O}=Ja(S),D=w6(M);if(t==="keep-follow-only"&&!D)return  false;function _(){if(I&&dp.size&&dp.has(I))return us("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 us("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&&i6(S)&&S.desc&&z.push(S.desc),z=z.filter(Boolean),n.enabled&&l.enabled&&l.keywords.length&&z.length&&z.some(g))return us("filter out by title-rule: %o",{possibleTitles:z,rules:l.keywords,bvid:P}),false}if(yq(S.api)&&_()===false)return  false;if((S.api===Ze.AppRecommend||S.api===Ze.PcRecommend)&&n.enabled){const z=T==="av",L=T==="picture",G=T==="bangumi";if(z)return H();if(L)return U();if(G)return W()}function H(){return D&&n.exemptForFollowed.video?true:M==="关注了你"?(us("filter out by recommendReason-rule: %s %o",M,{bvid:P,title:N}),false):r.enabled&&r.value&&w&&w<r.value?(us("filter out by min-duration-rule: %s < %s %o",w,r.value,{bvid:P,title:N}),false):o.enabled&&o.value&&typeof x=="number"&&x<o.value?(us("filter out by min-play-count-rule: %s < %s, %o",x,o.value,{bvid:P,title:N}),false):i.enabled&&i.value&&typeof E=="number"&&E<i.value?(us("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:(us("filter out by goto-type-picture-rule: %s %o",T,{bvid:P,title:N}),false):true}function W(){return n.hideGotoTypeBangumi?(us("filter out by goto-type-bangumi-rule: %s %o",T,{title:N,href:O}),false):true}if(gf(S)&&n.enabled){const{major:z}=S.modules.module_dynamic,L=z?.type===Qo.MajorType.Opus;if(ot.filter.dfByTitle.enabled&&ot.filter.dfByTitle.keywords.length){let G=[N];if(L&&G.push(z.opus.summary?.text||""),G=ig(G.filter(Boolean)),G.some(b))return us("filter out by df-title-rule: %o",{possibleTitles:G,rules:u.keywords,uniqId:S.uniqId,item:S}),false}if(L&&d.enabled&&d.keywords.length&&I&&y.has(I))return us("filter out by df-hide-opus-mids-rule: %o",{dfHideOpusMids:d,authorMid:I,title:N,uniqId:S.uniqId}),false}return  true})}async function fRe(e){return (await Qt.get("https://api.live.bilibili.com/xlive/web-ucenter/user/following",{params:{page:e,page_size:Qg.PAGE_SIZE,ignoreRecord:1,hit_ab:true}})).data}class Qg extends ul{constructor(t=false){super(Qg.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 fRe(this.page);jn(n)||(tn(n.message||ag),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=Xn().subtract(2,"weeks").unix();if(l){const m=l.live_status,p=l.record_live_time;m!==Qs.Streaming&&p&&p<u&&(this.hasMoreExceptQueue=false);}let d=s;if(!this.streamingOnly&&!this.separatorAdded&&s.some(m=>m.live_status!==Qs.Streaming)){this.separatorAdded=true;const m=s.findIndex(p=>p.live_status!==Qs.Streaming);d.splice(m,0,{api:Ze.Separator,uniqId:`${Ze.Live}:separator:recent`,content:"最近直播过"});}return this.streamingOnly&&s.some(m=>m.live_status!==Qs.Streaming)&&(this.hasMoreExceptQueue=false,d=s.filter(m=>m.live_status===Qs.Streaming)),d}}const mRe=po.extend("modules:rec-services:dynamic-feed:api");async function Zg({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 Qt.get(s,{signal:o,params:i})).data;if(!jn(u)){const m=u.message||ag;throw tn(m),new Error(m,{cause:u})}const d=u.data;return d?.items?.length&&(d.items=d.items.filter(m=>{const p=!!bG(m);return p||mRe("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 s1=bm("dynamic-feed-items"),Jg=bm("dynamic-feed-items-info");async function PS(e){return !!(await Jg.get(e))?.count}function hRe(e,t){const n=s=>`update-filter-cache:${s}`,o=ca((s,l)=>{ys.info({icon:C(FA,{className:"size-16px"}),key:n(e),title:"过滤缓存更新中...",description:`「${t}」更新中: Page(${s}) Total(${l})`,duration:false});},200);return {notifyOnProgress:o,notifyOnSuccess:()=>{o.flush(),ys.success({key:n(e),title:"缓存更新成功",description:`「${t}」的过滤缓存更新成功`,duration:false});}}}async function pRe(e,t){await PS(e)?await Sq(e):await vRe(e,void 0,t);}async function gRe(e,t=false){const n=await Jg.get(e);if(!(!t&&n&&n.count&&n.updatedAt&&Date.now()-n.updatedAt<60*1e3))return Sq(e)}async function Sq(e){if(!await PS(e))return;const t=await s1.get(e)||[],n=new Set(t.map(u=>u.id_str));let r=1,o="",i=true,s=[];for(;i;){const u=await Zg({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=vc([...s,...t],u=>u.id_str);await s1.set(e,l),await Jg.set(e,{count:l.length,updatedAt:Date.now()});}const zE=bm("dynamic-feed-items-in-progress");async function vRe(e,t=false,n){const r=t?void 0:await zE.get(e);let o=r?.page??1,i=r?.offset??"",s=r?.items??[],l=true;for(;l;){const d=await Zg({upMid:e,page:o,offset:i,videoOnly:true}),m=d.items;s=[...s,...m],i=d.offset,l=d.has_more,o++,await zE.set(e,{page:o,offset:i,items:s}),n?.(o,s.length);}const u=vc(s,d=>d.id_str);await s1.set(e,u),await Jg.set(e,{count:u.length,updatedAt:Date.now()}),await zE.delete(e);}const Cq=od({fn:Zg,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?Cq:Zg)({videoOnly:this.videoOnly,upMid:this.upMid,page:this.page,offset:this.offset});return this.offset=r.offset,this.hasMoreForApi=r.has_more,this.page++,Mi(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 Va{constructor(t,n){this.upMids=t,this.videoOnly=n;const r=t.length>Va.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 sa(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=ka(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 yRe(){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 SRe=!Og&&await( yRe());function E6(e){const t=SRe?".avif":".webp";return `${EM(e)}@96w_96h_1c_1s_!web-avatar${t}`}function ck(e){return new Promise(t=>{const n=new Image;n.src=e,n.onload=()=>t(true),n.onerror=()=>t(false);})}function CRe({externalFilterInput:e,onRefresh:t,getPopupContainer:n}){const{upMid:r,dynamicFeedVideoType:o,filterMinDuration:i,filterText:s,hideChargeOnlyVideos:l}=gt(en),u=C(es.Search,{style:{width:e?"250px":void 0},placeholder:"按标题关键字过滤",type:"search",autoCorrect:"off",autoCapitalize:"off",name:`filterText_${r}`,variant:"outlined",defaultValue:en.filterText,autoComplete:"off",allowClear:true,onChange:S=>{ERe({filterText:S.target.value,upMid:r,onRefresh:t});},onSearch:async S=>{en.filterText=S||void 0,await gn(100),t();}}),d=C(xRe,{externalFilterInput:e,filterInput:u,refresh:t}),[m,p]=f.useState(false),g=p,b=f.useMemo(()=>!!(o!==Zs.All||l||s||i!==Ou.All),[o,l,s,i]),y=C(Os,{open:m,onOpenChange:g,arrow:false,placement:"bottomLeft",getPopupContainer:n,content:d,styles:{container:{border:`1px solid ${rd()}`}},children:C(wg,{dot:b,color:ns,offset:[-5,5],children:C(ct,{className:"icon-only-round-button",css:m&&nd,children:C(iG,{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 xRe({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(en);let g;{const b=CS&&!!p,y=p===uG,{href:S}=f.useMemo(()=>{const x=new URL(location.href);return x.searchParams.has(Si.FilterTextFull)?x.searchParams.set(Si.FilterTextFull,p||""):x.searchParams.has(Si.FilterTextShort)?x.searchParams.set(Si.FilterTextShort,p||""):x.searchParams.set(Si.FilterTextFull,p||""),{href:x.href,path:`${x.pathname}?${x.search}`}},[p]);g=b&&C(sn,{title:S,children:B(ct,{disabled:y,href:S,children:["转到过滤词为「",p||"空","」的链接"]})});}return B("div",{className:ro.wrapper,children:[B("div",{className:ro.section,children:[B("div",{className:ro.sectionTilte,children:["视频类型",B(vr,{children:["「",Ss.ChargeOnly,"」在此程序中归类为「投稿视频」",C("br",{}),"「动态视频」时长通常较短"]})]}),C("div",{children:C(Rr.Group,{buttonStyle:"solid",value:l,onChange:async b=>{en.dynamicFeedVideoType=b.target.value,await gn(100),n?.();},children:Object.values(Zs).map(b=>C(Rr.Button,{value:b,children:zMe[b]},b))})})]}),l!==Zs.DynamicOnly&&B("div",{className:ro.section,children:[C("div",{className:ro.sectionTilte,children:"充电专属"}),C("div",{className:ro.sectionContent,children:C(Ni,{className:"ml-5px",checked:d,onChange:async b=>{const y=b.target.checked,S=en.hideChargeOnlyVideosForKeysSet;y?S.add(s):S.delete(s),await gn(100),n?.();},children:C(sn,{title:B(_e,{children:["隐藏「",Ss.ChargeOnly,"」视频 ",C("br",{}),"仅对当前 UP 或 分组生效"]}),children:B("span",{style:{userSelect:"none"},children:["隐藏「",Ss.ChargeOnly,"」"]})})})})]}),B("div",{className:ro.section,children:[C("div",{className:ro.sectionTilte,children:"最短时长"}),C("div",{children:C(Rr.Group,{className:"overflow-hidden [&_.ant-radio-button-wrapper]:px-10px",buttonStyle:"solid",value:u,onChange:async b=>{en.filterMinDuration=b.target.value,await gn(100),n?.();},children:Object.values(Ou).map(b=>{const{label:y}=mG[b];return C(Rr.Button,{value:b,children:y},b)})})})]}),(!e||g)&&B("div",{className:ro.section,children:[C("div",{className:ro.sectionTilte,children:"过滤"}),B("div",{className:ro.sectionContent,children:[!e&&t,g]})]}),C(wRe,{}),B("div",{className:ro.section,children:[B("div",{className:ro.sectionTilte,children:[i?"分组":r?"UP":"全部",B(vr,{children:["当前",i?"分组":r?"UP":"范围","的一些操作~"]}),i&&o&&B("span",{className:"ml-15px inline-flex items-center text-size-14px",children:["(",B("a",{href:sG(o?.tagid||""),target:"_blank",className:`mx-4px inline-flex items-center text-size-16px ${HU}`,children:[C($o,{className:"mr-2px size-18px"}),o?.name]}),")"]})]}),B("div",{className:ro.sectionContent,children:[C(Ni,{checked:m,onChange:async b=>{en.addSeparatorsMap.set("global",b.target.checked),await gn(100),n?.();},children:C(sn,{title:B(_e,{children:["添加今日/更早分割线 ",C("br",{}),"当前实现为全局共享此设置"]}),children:"添加分割线"})}),i&&!!o&&C($Re,{followGroup:o,refresh:n})]})]})]})}function wRe(){const{cacheAllItemsEntry:e,cacheAllItemsUpMids:t}=Ft().dynamicFeed.__internal,{viewingSomeUp:n,upMid:r,upName:o}=gt(en),i=$s(async(u,d)=>{const{notifyOnProgress:m,notifyOnSuccess:p}=hRe(u,d);await pRe(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 Ga("dynamicFeed.__internal.cacheAllItemsUpMids",m);},[]);return C(_e,{children:e&&n&&r&&o&&B("div",{className:ro.section,children:[B("div",{className:ro.sectionTilte,children:["过滤缓存",B(vr,{children:["开启过滤缓存后, 会加载并缓存 UP 所有的动态 ",C("br",{}),"当本地有缓存且总条数 <= 5000时, 过滤框成为及时过滤, 无需点击过滤按钮"]})]}),B("div",{className:ro.sectionContent,children:[B("div",{className:"flex flex-wrap items-center gap-x-10px gap-y-3px",children:[C(Ni,{className:"inline-flex items-center",checked:s,onChange:l,children:C(sn,{title:"只有开启此项, 过滤时才会使用缓存",children:B("span",{children:["为「",o,"」开启"]})})}),C(ct,{loading:i.loading,onClick:async()=>{await i.runAsync(r,o);},children:"更新缓存"})]}),C(It,{configPath:"dynamicFeed.advancedFilter",label:"使用高级过滤",tooltip:iq})]})]})})}const ERe=ca(async function({filterText:e,upMid:t,onRefresh:n}){if(!t||!(e||!e&&en.filterText)||!ot.dynamicFeed.__internal.cacheAllItemsEntry||!ot.dynamicFeed.__internal.cacheAllItemsUpMids.includes(t.toString())||!await PS(t))return;const r=await Jg.get(t);!r||!r.count||r.count>=5e3||(en.filterText=e,await gn(0),n());},100);function xq(){return B(_e,{children:[C("p",{children:"机制介绍:"}),B("ul",{className:"text-13px",children:[B("li",{className:"flex items-start gap-x-10px",children:[C("div",{children:"「从全部过滤」:"}),C("div",{children:'基于全部动态 + 分组UP过滤, 速度可能巨慢, 且过滤后的数量取决于B站记录的"全部"动态范围'})]}),B("li",{className:"flex items-start gap-x-10px",children:[C("div",{children:"「拼接时间线」:"}),B("div",{children:["可以理解为: 去看一遍分组所有 UP 的动态, 然后将它们拼接起来 ",C("br",{}),"启动慢, 但可以加载所有动态; 且分组 UP 越多, 启动越慢 ",C("br",{}),"默认分组 UP 数量不超过 ",Va.ENABLE_MERGE_TIMELINE_UPMID_COUNT_THRESHOLD," ","时会使用「拼接时间线」 ",C("br",{}),"详见",C("a",{className:"mx-5px",href:"https://magicdawn.fun/2024/12/01/bilibili-gate-dynamic-feed-merge-timeline/",target:"_blank",children:"介绍博客"})]})]})]})]})}function $Re({followGroup:e,refresh:t}){const{whenViewAll:n}=gt(ot.dynamicFeed),r=e.count;let o;const i=uk(e.tagid,"dynamicFeed.followGroup.forceUseMergeTimelineIds");{const{checked:u,onChange:d}=i,m=r<=Va.ENABLE_MERGE_TIMELINE_UPMID_COUNT_THRESHOLD;o=C(Ni,{checked:u,onChange:p=>{d(p),t?.();},disabled:m,children:C(sn,{title:B(_e,{children:[C(xq,{}),m&&B("p",{className:"text-yellow-400 italic",children:["当前分组 UP 数量: ",r,", 无需设置"]})]}),children:"分组动态: 强制使用「拼接时间线」"})});}let s;s=(r<=Va.ENABLE_MERGE_TIMELINE_UPMID_COUNT_THRESHOLD||i.checked)&&r>Va.ENABLE_HEAD_CACHE_UPMID_COUNT_THRESHOLD&&C(sn,{title:B(_e,{children:["当分组 UP 数量"," >  ",Va.ENABLE_HEAD_CACHE_UPMID_COUNT_THRESHOLD,"时, 「拼接时间线」功能会缓存每个 UP 的最新动态5分钟. ",C("br",{}),"这里可以手动清除缓存"]}),children:C(ct,{onClick:()=>{Cq.cache.db.clear(),Wt.success("已清除缓存");},children:"清除「拼接时间线」- 队头缓存"})});let l;{const{checked:u,onChange:d}=uk(`${Gu}${e.tagid}`,"dynamicFeed.whenViewAll.hideIds");l=n.enableHideSomeContents&&C(Ni,{checked:u,onChange:d,children:C(sn,{title:B(_e,{children:["在「全部」动态中隐藏来自此 ",e.name," 的动态"]}),children:"在「全部」动态中隐藏来自此分组的动态"})});}return B(_e,{children:[l,o,s]})}function uk(e,t){const n=gU(t),r=f.useMemo(()=>n.includes(e),[n]),o=rt(async s=>{await Ga(t,s?{add:[e]}:{remove:[e]});}),i=f.useCallback(s=>{o(s.target.checked);},[]);return {checked:r,setChecked:o,onChange:i}}function MRe(e){if(Object.assign(en,e),e.upMid){const t=en.upList.find(n=>n.mid.toString()===e.upMid);t&&(t.has_update=false);}}const FE={upMid:void 0,upName:void 0,upFace:void 0,filterText:void 0,selectedGroupId:void 0,dynamicFeedVideoType:Zs.All,filterMinDuration:Ou.All};function wq(e){const{upList:t,groups:n,selectedKey:r}=gt(en),o=go(),{followGroup:{enabled:i}}=Ft().dynamicFeed,{recSharedEmitter:s}=rs(),l=rt(async m=>{MRe(m),await gn(100),o();}),u=rt(()=>{l({...FE}),s.emit("dynamic-feed:clear");});return {menuItems:f.useMemo(()=>{const m={key:"all",icon:C(wu,{size:"small",children:"全"}),label:"全部",title:"全部",onClick:u};let p=[];i&&(p=n.map(y=>({key:`group:${y.tagid}`,icon:C(wu,{size:"small",children:y.name[0]||"组"}),label:`${y.name} (${y.count})`,title:`${y.name} (${y.count})`,onClick:()=>l({...FE,selectedGroupId:y.tagid})})));let g=t;e==="dropdown"&&(g=e1(t,[{prop:y=>y.has_update?1:0,order:"desc"},{prop:y=>s6(y.uname),order:a6}]));const b=g.map(y=>{let S=C(wu,{size:"small",src:E6(y.face)});return y.has_update&&(S=C(wg,{dot:true,children:S})),{key:`up:${y.mid}`,icon:S,label:C("span",{title:y.uname,className:"block max-w-130px overflow-hidden text-ellipsis whitespace-nowrap",children:y.uname}),title:y.uname,onClick(){l({...FE,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 TRe(){const{dynamicFeed:{__internal:{externalFilterInput:e}}}=Ft(),{viewingSomeUp:t,upName:n,upFace:r,selectedGroup:o}=gt(en),i=go(),{ref:s,getPopupContainer:l}=Rc(),u=ES(nt.DynamicFeed),{menuItems:d,selectedKey:m,onClear:p}=wq("dropdown");ho(()=>{vG();});const g=o?.count,b=C(rG,{className:"mt--2px size-14px"}),y=r?C(wu,{size:20,src:E6(r)}):void 0,S=t?y||b:o?C(oG,{className:"size-18px"}):void 0,x=t?n:o?o.name+(g?` (${g})`:""):"全部",[w,E]=f.useState(false),M=C(wc,{open:w,onOpenChange:E,placement:"bottomLeft",getPopupContainer:l,menu:{items:d,style:{...JG,border:`1px solid ${rd()}`},selectedKeys:[m]},children:C(ct,{icon:S,className:"gap-4px",css:[w&&nd,"",""],children:x})}),{popoverTrigger:T,filterInput:A}=CRe({externalFilterInput:e,onRefresh:i,getPopupContainer:l});return B("div",{ref:s,className:"inline-flex items-center gap-x-8px",children:[!u&&M,u?B(ct,{onClick:p,className:"gap-0",disabled:!(t||o),children:[C(U0,{className:"mr-5px size-14px"}),C("span",{children:"清除"})]}):(t||o)&&B(ct,{onClick:p,className:"gap-0",children:[C(U0,{className:"mr-5px size-14px"}),C("span",{children:"清除"})]}),T,e&&A,C(Xg,{})]})}function ARe(){const e=ES(nt.DynamicFeed),{menuItems:t,selectedKey:n}=wq("sidebar"),{menuRef:r,revealSelected:o}=FG(t,n),{recSharedEmitter:i}=rs();if(ao(i,"dynamic-feed:clear",()=>{o(Xp);}),!!e)return B(_e,{children:[C(xc,{ref:r,items:t,selectedKeys:[n],mode:"inline",inlineIndent:10}),zG]})}function $6(e=en){const t=Br(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:ot.dynamicFeed.showLive,videoOnly:ot.dynamicFeed.videoOnly,whenViewAllEnableHideSomeContents:ot.dynamicFeed.whenViewAll.enableHideSomeContents,whenViewAllHideIds:new Set(ot.dynamicFeed.whenViewAll.hideIds),advancedFilter:ot.dynamicFeed.advancedFilter,filterCacheEnabled:!!t.upMid&&ot.dynamicFeed.__internal.cacheAllItemsEntry&&ot.dynamicFeed.__internal.cacheAllItemsUpMids.includes(t.upMid.toString()),forceUseMergeTime:!!t.selectedGroup&&ot.dynamicFeed.followGroup.forceUseMergeTimelineIds.includes(t.selectedGroup.tagid),startingOffset:BMe,minId:dk(bM)?BigInt(bM):void 0,minTs:dk(XL)?Number(XL):void 0}}function dk(e){return !!e&&/^\d+$/.test(e)}const RRe=po.extend("modules:rec-services:dynamic-feed");class IS extends ul{constructor(t){super(IS.PAGE_SIZE),this.config=t,this.config.showLiveInDynamicFeed&&!this.upMid&&this.groupId===void 0&&!this.filterText&&this.dynamicFeedVideoType===Zs.All&&this.filterMinDuration===Ou.All&&(this.liveRecService=new Qg(true)),this.config.startingOffset&&(this.offset=this.config.startingOffset);}static PAGE_SIZE=15;tabbarView=C(TRe,{});sidebarView=C(ARe,{});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===Zs.DynamicOnly||this.filterMinDuration!==Ou.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<=Va.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 gM(this.groupId);this.groupMids=new Set(t),this.shouldEnableMergeTimeline(t.length)&&(this.groupMergeTimelineService=new Va(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(Gf)).map(i=>i.slice(Gf.length)),n=Array.from(this.config.whenViewAllHideIds).filter(i=>i.startsWith(Gu)).map(i=>i.slice(Gu.length)),r=this.viewingAllHideMids;t.forEach(i=>r.add(i)),(await sa(n,i=>gM(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(),RRe("viewingAll: hide-mids = %o",this.viewingAllHideMids));const r=!!(this.upMid&&this.filterText&&this.config.filterCacheEnabled&&await PS(this.upMid)),o=r&&this.config.advancedFilter,i=o?sq((this.filterText||"").toLowerCase()):void 0;if(r)this._queueForFilterCache||(await gRe(this.upMid),this._queueForFilterCache=new xS(20),this._queueForFilterCache.bufferQueue=(await s1.get(this.upMid)||[]).filter(m=>{const p=Ph(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 Zg({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===Zs.All)return  true;const p=Ph(m);if(!p)return  false;const g=p.badge.text;return this.dynamicFeedVideoType===Zs.DynamicOnly?g===Ss.Dynamic:this.dynamicFeedVideoType===Zs.UploadOnly?g===Ss.Upload||g===Ss.ChargeOnly:false}).filter(m=>{if(!this.hideChargeOnlyVideos)return  true;const p=Ph(m);return p?!(p.badge.text===Ss.ChargeOnly):true}).filter(m=>{if(this.filterMinDuration===Ou.All)return  true;const p=Ph(m);return p?Yp(p.duration_text)>=this.filterMinDurationValue:false}).filter(m=>{if(!this.filterText)return  true;const p=Ph(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!==Xp)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(x=>m.includes(x))&&(b?.excludes??[]).every(x=>!m.includes(x)):m.includes(p)}const{upMid:u,upName:d}=en;if(gc&&u&&d&&d===u.toString()&&s[0]){const m=s[0].modules.module_author.name,p=s[0].modules.module_author.face;en.upName=m,en.upFace=p;}if(this.viewingSomeGroup&&en.groups.length){const m=en.groups.find(p=>p.tagid===this.groupId);m&&(m.count=this.groupMids.size);}return s}separatorsConfig={today:{added:false,content:"今日",getInsertIndex:NRe},earlier:{added:false,content:"更早",getInsertIndex:Eq(-1/0,Xn().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 Eq(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 NRe(e){const t=e.findIndex(r=>r.api===Ze.Live&&r.live_status===Qs.Streaming);return t!==-1?t:Eq(Xn().startOf("day").unix(),Xn().endOf("day").unix())(e)}class $q{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:C(PRe,{service:this}),wrapWithDivider:false}}state=Dn({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 H3e(this.collectionId,1),o=r?.medias||[],i=r?.info;await f1(()=>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"}));[_t.PubTimeDesc,_t.PubTimeAsc,_t.Shuffle].includes(this.itemsOrder)&&(s=mM(s,_t.PubTimeDesc),s.forEach((u,d,m)=>{u.vol=m.length-d,u.volTooltip=B(_e,{children:["按投稿时间 Vol.",u.vol]});})),s=mM(s,this.itemsOrder),this.bufferQueue=s,this.loaded=true,this.state.firstBvid=s[0]?.bvid,this.state.info=Tf(i),pn.selectedFavCollectionDetailInfo=Tf(i);}this.itemsOrder===_t.Shuffle&&(this.bufferQueue=$i(this.bufferQueue));let n;return [n,this.bufferQueue]=[this.bufferQueue.slice(0,Ha),this.bufferQueue.slice(Ha)],n}async loadUserAvatarFromSpaceAccInfo(t,n){if(!t.length)return;const r=YX(t,s=>s.upper.mid),o=Object.entries(r).map(([s,l])=>({mid:s,count:l})),i=ka(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 p6(s))?.face;u&&t.filter(d=>d.upper.mid.toString()===s).forEach(d=>{d.upper.face||=u;});}));}get extraTabbarView(){return C(N6,{})}}function PRe({service:e}){const{firstBvid:t,info:n}=gt(e.state),r=Sm();return B("div",{className:"col-span-full mb-15px mt-5px flex flex-col gap-y-10px",children:[B("div",{className:"flex-v-center gap-x-1 text-1.6em",children:[C(xm,{}),"合集 · ",n?.title]}),n?.intro&&C("div",{className:"text-1em color-$text_1",children:n?.intro}),B("div",{className:"text-1em",children:["合集 ",n?.media_count," 个视频"]}),B("div",{className:"flex-v-center gap-x-10px",children:[t&&B(ct,{href:N3e(t),target:r,children:[C(Ig,{className:"size-16px"}),"播放"]}),B(ct,{href:UW(e.collectionId),target:r,children:[C($o,{className:"size-16px"}),"去「我的空间」查看"]}),n?.upper.mid&&B(ct,{href:A3e(n.upper.mid,e.collectionId),target:r,children:[C($o,{className:"size-16px"}),"去合集发布页"]})]})]})}class IRe{constructor(t,n,r){if(this.addSeparator=t,this.itemsOrder=n,this.excludedFolderIds=r,![_t.Initial,_t.Shuffle].includes(this.itemsOrder))throw new Error("invalid items order")}get useShuffle(){return this.itemsOrder===_t.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 B(_e,{children:[C(N6,{}),C(hAe,{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<Ha)for(;this.hasMoreInService&&this.shuffleBufferQueue.length<Ha*3;){const i=this.allServices.filter(u=>u.hasMore),s=$i(i).slice(0,6),l=(await sa(s,async u=>await u.loadMore(t)||[],2)).flat().filter(u=>u.api!==Ze.Separator);this.shuffleBufferQueue=$i([...this.shuffleBufferQueue,...$i(l)]);}const n=this.shuffleBufferQueue.slice(0,Ha);return this.shuffleBufferQueue=this.shuffleBufferQueue.slice(Ha),n}allFolderServices=[];state=Dn({totalCountInFavFolders:0});serviceCreated=false;allServices=[];async createServices(){await P6();const{folders:t,collections:n}=Tf(Br(pn));this.allFolderServices=t.map(r=>new Mf(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===_t.Initial&&(o=_t.FavTimeDesc),this.allServices.push(...r.map(i=>new fq(i.id,this.addSeparator,o)));}this.allServices.push(...n.map(r=>new $q(r.id,this.addSeparator,this.itemsOrder))),this.serviceCreated=true;}}function M6(){const e=Br(pn);return {selectedKey:e.selectedKey,viewingAll:e.viewingAll,viewingSomeFolder:e.viewingSomeFolder,viewingSomeCollection:e.viewingSomeCollection,itemsOrder:R6(e.selectedKey,e.savedOrderMap),selectedFavFolderId:e.selectedFavFolderId,selectedFavCollectionId:e.selectedFavCollectionId,addSeparator:ot.fav.addSeparator,excludedFolderIds:ot.fav.excludedFolderIds}}class OS extends ul{constructor(t){super(OS.PAGE_SIZE),this.config=t;const{viewingAll:n,viewingSomeFolder:r,viewingSomeCollection:o}=this.config;if(n)this.innerService=new IRe(this.config.addSeparator,this.config.itemsOrder,this.config.excludedFolderIds);else if(r)this.innerService=new fq(this.config.selectedFavFolderId,this.config.addSeparator,this.config.itemsOrder);else if(o)this.innerService=new $q(this.config.selectedFavCollectionId,this.config.addSeparator,this.config.itemsOrder);else throw new Error("unexpected case!")}static PAGE_SIZE=Ha;innerService;get tabbarView(){const{tabbarView:t,extraTabbarView:n}=this.innerService;return t||C(mAe,{extraContent:n})}sidebarView=C(pAe,{});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?Wq(this.config.selectedFavFolderId,t=>t-1):this.config.viewingSomeCollection&&this.config.selectedFavCollectionId;}}async function T6({asc:e=false,searchText:t="",abortSignal:n,extraParams:r}={}){const i=(await Qt.get("/x/v2/history/toview/web",{signal:n,params:await rS({asc:e,key:t,viewed:0,web_location:333.881,...r})})).data;return jn(i)?{total:i.data.count,items:ORe(i.data.list||[])}:(Bo("getAllWatchlaterItems error %s, fulljson %o",i.message,i),{err:i.message})}function ORe(e){return e.filter(t=>!(t.title==="以下为更早添加的视频"&&t.aid===0&&t.bvid===""&&t.add_at===0))}async function DRe(e){const t=new FormData;t.append("resources",e.join(",")),t.append("csrf",Mc());const n=await rS({}),o=(await Qt.post("/x/v2/history/toview/v2/dels",t,{params:n})).data;return jn(o)?true:(tn(o?.message||"出错了"),false)}const Mq=()=>Xn().subtract(2,"days").unix(),Tq="最近 48 小时内",MM={api:Ze.Separator,uniqId:`${Ze.Watchlater}:separator:recent`,content:B(_e,{children:["近期",C(vr,{children:Tq})]})},TM={api:Ze.Separator,uniqId:`${Ze.Watchlater}:separator:earlier`,content:"更早"},fp=Dn({searchText:void 0});function _Re({service:e}){const{watchlaterAddSeparator:t,watchlaterItemsOrder:n,watchlaterUseNormalVideoUrl:r}=Ft(),o=go(),{searchText:i}=gt(fp,{sync:true}),s=yTe(),{recSharedEmitter:l}=rs();Ya(()=>{(async()=>(await gn(100),o()))();},[t,n,r]);const{total:u}=gt(e.state),d=i?`共 ${u} 条搜索结果`:`共 ${u} 个视频`,m=typeof u=="number"&&C(ws,{color:"success",style:{marginRight:0,marginTop:1,cursor:"pointer"},title:d,onClick:()=>{tn(`稍后再看: ${d}`);},children:u});return B("div",{className:"flex items-center gap-x-12px",children:[C(kRe,{}),C(es.Search,{allowClear:true,placeholder:"搜索稍后再看",style:{width:180},value:i,onChange:p=>fp.searchText=p.target.value,onSearch:p=>{fp.searchText=p,o();}}),m,s&&C(sn,{arrow:false,title:"移除稍后再看 (多选)",children:C(ct,{className:"icon-only-round-button",onClick:()=>HRe(l),children:C(mm,{})})}),C(Xg,{})]})}const Aq={[Mo.AddTimeDesc]:{icon:C(U3,{}),label:"最近添加",helpInfo:"按添加时间倒序"},[Mo.AddTimeAsc]:{icon:C(j3,{}),label:"最早添加",helpInfo:"按添加时间增序"},[Mo.Shuffle]:{icon:C(Yj,{}),label:"随机顺序",helpInfo:`随机但不包括近期添加的稍后再看, 近期指: ${Tq}`}},Rq=Object.values(Mo),LRe=C("div",{className:"grid grid-cols-[repeat(2,max-content)] gap-x-1 gap-y-0 line-height-normal",children:Rq.map(e=>{const{icon:t,label:n,helpInfo:r}=Aq[e];return B(_e,{children:[B("div",{className:"flex-center gap-x-1",children:[t,n,": "]}),C("div",{children:r})]})})});function kRe(){const e=go(),{ref:t,getPopupContainer:n}=Rc(),{watchlaterItemsOrder:r}=Ft(),{searchText:o}=gt(fp),i=!!o;return C(S6,{disabled:i,value:i?Mo.AddTimeDesc:r,onChange:s=>{ot.watchlaterItemsOrder=s,e();},list:Rq,listDisplayConfig:Aq,$ref:t,dropdownProps:{getPopupContainer:n},extraHelpInfo:LRe})}const qu=Dn({updatedAt:0,bvidSet:Or()});function BRe(e){const t=gt(qu).bvidSet;return !!e&&t.has(e)}function Nq(e){qu.updatedAt=Date.now(),qu.bvidSet=Or(e);}function zRe(e,t){qu.updatedAt&&qu.bvidSet.add(t);}async function FRe(){if(!iS()||!ii())return;const{items:e=[]}=await T6();e.length&&Nq(e.map(t=>t.bvid));}el&&(async()=>(await lS(),await UG(FRe,{retries:3,onFailedAttempt(e){Bo(`Try updateWatchlaterState ${e.attemptNumber} failed. There are ${e.retriesLeft} retries left`);}})))();async function HRe(e){const t=$S().map(s=>({item:s,cardData:Ja(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 tn("没有选中的视频");await DRe(n)&&e.emit("remove-cards",[r,o]);}class Zp extends ul{constructor(t,n,r,o){super(Zp.PAGE_SIZE),this.searchText=o,this.innerService=t===Mo.Shuffle&&!this.searchText?new fk(n,r):new VRe(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 C(_Re,{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 fk?this.innerService.currentBvidIndexMap:void 0}}}function Pq(e){return {...e,api:Ze.Watchlater,uniqId:`${Ze.Watchlater}:${e.bvid}`}}function Iq(e){throw tn(`获取稍后再看失败: ${e}`),new Error(`获取稍后再看失败: ${e}`,{cause:e})}class fk{constructor(t,n){this.addSeparator=t,n?.size?(this.keepOrder=true,this.prevBvidIndexMap=n):this.keepOrder=false;}hasMore=true;state=Dn({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 T6({asc:false,searchText:void 0,abortSignal:t});r!==void 0&&Iq(r),Nq(n.map(u=>u.bvid).filter(Boolean));const o=n.map(Pq),i=Mq(),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=ka(d,[m=>this.prevBvidIndexMap?.get(m.bvid)??-1],["asc"]):d=$i(d),l=[!!u.length&&this.addSeparator&&MM,...u,!!d.length&&this.addSeparator&&TM,...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 VRe{constructor(t,n,r){this.order=t,this.addSeparator=n,this.searchText=r,this.searchText||Nr(t!==Mo.Shuffle,"shuffle not supported in NormalOrderService");}firstPageLoaded=false;state=Dn({total:void 0});hasMore=true;page=1;async loadMore(){if(!this.hasMore)return;const t=await T6({asc:this.order===Mo.AddTimeAsc,searchText:this.searchText,extraParams:{need_split:"true",ps:20,pn:this.page}});if(t.err!==void 0){this.hasMore=false,Iq(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&&zRe("add",s.bvid);});const i=n.map(Pq);return this.insertSeparator(i)}recentSeparatorInserted=false;earlierSeparatorInserted=false;insertSeparator(t){if(!this.addSeparator)return t;let n=[...t];const r=Mq(),o=t.some(s=>s.add_at<r),i=t.some(s=>s.add_at>=r);if(this.order===Mo.AddTimeAsc){if(!this.earlierSeparatorInserted&&o&&(n=[TM,...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),MM,...n.slice(s)],this.recentSeparatorInserted=true;}}else if(!this.recentSeparatorInserted&&i&&(n=[MM,...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),TM,...n.slice(s)],this.earlierSeparatorInserted=true;}return n}}function jRe(){return {addOtherTabContents:sS().appRecommend.addOtherTabContents}}const Oq=e=>C(It,{configPath:"appRecommend.addOtherTabContents",label:"显示来自其他 Tab 的内容",tooltip:B(_e,{children:["显示来自其他 Tab 的内容 ",C("br",{}),"如动态 / 收藏 / 稍后再看 ",C("br",{}),"但是: 刷新时间会更长"]}),extraAction:async()=>{await gn(100),e?.();}});function URe(){const e=go(),{hidingTabKeys:t}=Ft(),n=t.includes(nt.Liked);return B("div",{className:"flex items-center gap-x-10px",children:[Oq(e),n&&C(sn,{title:"查看「我」点赞的视频",children:C("a",{href:`/?${XG.Tab}=${nt.Liked}`,target:"_blank",children:C(qj,{className:"size-18px align-top"})})})]})}class vs extends ul{constructor(t){super(vs.PAGE_SIZE),this.config=t,this.innerService=new WRe,this.allServices=[this.innerService],this.initOtherTabServices();}static PAGE_SIZE=20;tabbarView=C(URe,{});sidebarView=void 0;innerService;allServices=[];otherTabServices=[];initOtherTabServices(){if(!iS()||!this.config.addOtherTabContents)return;let t,n,r;{const s=hG();s.upMid=void 0,s.selectedGroupId=void 0;const l=$6(s);Object.assign(l,{showLiveInDynamicFeed:true,whenViewAllEnableHideSomeContents:false,filterCacheEnabled:false}),t=new IS(l);}{const s=Object.assign(M6(),{selectedKey:"all",viewingAll:true,viewingSomeFolder:false,viewingSomeCollection:false,itemsOrder:_t.Shuffle,selectedFavFolderId:void 0,selectedFavCollectionId:void 0,addSeparator:false});n=new OS(s);}r=new Zp(Mo.AddTimeDesc,false),this.otherTabServices=[t,n,r];const o=[],i=7/3;o.push(...this.otherTabServices),TQ(Math.round(i*this.otherTabServices.length),()=>o.push(this.innerService)),this.allServices=$i(o);}async restore(){super.restore(),this.qs.bufferQueue.some(t=>vs.isNormalVideoFromFollowedUp(t)&&!t.videoDetail)&&(this.qs.bufferQueue=await sa(this.qs.bufferQueue,async t=>{if(vs.isNormalVideoFromFollowedUp(t)&&!t.videoDetail){const{bvid:n}=Ja(t);if(n)return {...t,videoDetail:await SS.queryCache(n)}}return t},100));}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<vs.PAGE_SIZE*3;){const r=this.allServices.filter(s=>s.hasMore);if(!r.length)break;const o=$i(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=$i(n);}return n}_fetchFromApi(t,n){return this.innerService.getRecommendTimes(t,n)}async preloadTimesFromApiIfNeeded(t,n){this.qs.bufferQueue.length<vs.PAGE_SIZE&&this.qs.bufferQueue.push(...await this._fetchFromApi(t,n));}static isNormalVideo(t){return t.goto==="av"}static isNormalVideoFromFollowedUp(t,n){return !!(Xa(t)&&vs.isNormalVideo(t)&&(n||=Ja(t))&&n&&n.bvid&&w6(n.recommendReason))}}class WRe{static PAGE_SIZE=16;hasMore=true;async getRecommend(){const t=await Dg.get(`${qM}/x/v2/feed/index`,{timeout:2e4,responseType:"json",params:{build:"1",mobi_app:"iphone",device:"pad",idx:Math.floor(Date.now()/1e3)+ZX(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(Vk(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=vc(r,i=>i.param),await sa(r,async i=>{let s;const l=vs.isNormalVideo(i)&&(s=i.bvid||yS(Number(i.param)))?await SS.queryCache(s):void 0;return {...i,api:Ze.AppRecommend,uniqId:`${Ze.AppRecommend}:${i.param}`,videoDetail:l}},10)}}async function GRe(e,t){return t.pubts?void 0:Xa(e)&&e.videoDetail?.pubdate?e.videoDetail.pubdate:!vs.isNormalVideoFromFollowedUp(e,t)||!t.bvid?void 0:(await SS(t.bvid))?.pubdate}async function qRe(e=20,t=1){const n=ii();return (await Dg.get(`https://app.bilibili.com/x/v2/space/likearc?mid=${n}`,{responseType:"json",params:{...Sxe,vmid:n,ps:e,pn:t}})).data}function KRe({service:e}){const{count:t}=e.useStore();return Number.isFinite(t)?B(_e,{children:[C(sn,{title:`共 ${t} 个视频`,children:C(ws,{color:"success",variant:"outlined",className:"cursor-pointer",children:t})}),C(Xg,{})]}):null}class a1 extends ul{static PAGE_SIZE=20;constructor(){super(a1.PAGE_SIZE);}tabbarView=C(KRe,{service:this});sidebarView;get hasMoreExceptQueue(){return this.errorJson?false:a1.PAGE_SIZE*this.pn<this.store.count}pn=0;errorJson=void 0;store=Dn({count:1/0});useStore=()=>gt(this.store);showErrorNotification(t){ys.error({key:"LikedRecService:error",title:"获取喜欢列表失败",...t});}async fetchMore(t){if(!ot.accessKey)throw new RR;ys.destroy("LikedRecService:error");const n=await qRe(this.qs.ps,this.pn+1);if(!jn(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 f1(()=>Promise.all(o.map(u=>u.state?SS(yS(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 Dq=po.extend("modules:rec-services:pc");class _u extends ul{constructor(t){super(_u.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<_u.PAGE_SIZE&&this.qs.bufferQueue.push(...await this.getRecommendTimes(t,n));}async preloadPcInitialRecItems(t){const n=await YRe(t);this.qs.bufferQueue.push(...n);}getRecommendTimes=async(t,n)=>{const r=(await Promise.all(Vk(n).map(()=>this.getRecommend(t)))).flat();return _q(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:_u.PAGE_SIZE,web_location:1430650,feed_version:"V8",homepage_ver:1},s=(await Qt.get(r,{signal:t,params:o})).data;return !jn(s)&&s.code===-62011&&s.message==="暂时没有更多内容了"?(this.hasMoreExceptQueue=false,[]):(s.data?.item||tn(s.message||"API 请求没有返回结果"),s.data?.item||[])}}function _q(e){const t=new Set([za.AV,za.Live,za.Ad]);e.forEach(o=>{t.has(o.goto)||Dq("uknown goto from API: %s %o",o.goto,o);});const n=new Set([za.AV]);return e=e.filter(o=>n.has(o.goto)),e=vc(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 YRe(e){const n=(await td(()=>{const[i,s]=oc(()=>unsafeWindow.__pinia);return s},{interval:100,timeout:1e3,abortSignal:e}))?.feed?.data?.recommend?.item||[];Dq("initial rec rawList: %o",n);const[r,o]=oc(()=>{const i=_q(n);return i.forEach(s=>Ja(s)),i});return o||[]}const XRe=[nt.KeepFollowOnly,nt.PcRecommend,nt.AppRecommend];function Jp(e){return XRe.includes(e)}const QRe={[nt.AppRecommend]:()=>new vs(jRe()),[nt.PcRecommend]:()=>new _u(false),[nt.KeepFollowOnly]:()=>new _u(true),[nt.DynamicFeed]:()=>new IS($6()),[nt.Watchlater]:({existingService:e})=>{const{watchlaterAddSeparator:t,watchlaterItemsOrder:n}=ot,r=e&&e instanceof Zp?e.getServiceSnapshot().bvidIndexMap:void 0;return new Zp(n,t,r,Br(fp).searchText)},[nt.Fav]:()=>new OS(M6()),[nt.Hot]:()=>new vTe,[nt.Live]:()=>new Qg,[nt.SpaceUpload]:()=>new C6(vq()),[nt.Liked]:()=>new a1};function Lq(e,t){const n=e[t];return Nr(n,`serviceRegistry[tab=${t}] should not be nil`),n}const kq=new uo;class Bq{constructor(t){this.insideModal=t;}recSharedEmitter=new uo;serviceRegistry={};serviceQueueMap={};store=Dn({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]=xB(o));}Object.assign(this.store,t);};useTabServiceQueueState=t=>gt(this.store.serviceQueueStateMap)[t];getTabServiceQueueState=t=>Br(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 A6=f.createContext(new Bq);function zq(...e){return zg(()=>new Bq(...e),[])}function rs(){return f.useContext(A6)}function go(){const{recSharedEmitter:e}=rs();return dS(t=>e.emit("refresh",t))}const Bl="size-16px",ZRe={[_t.Initial]:{icon:C(pCe,{className:Bl}),label:"初始顺序"},[_t.Shuffle]:{icon:C(Yj,{className:Bl}),label:"随机顺序"},[_t.PubTimeDesc]:{icon:C(U3,{className:Bl}),label:"最新投稿"},[_t.PubTimeAsc]:{icon:C(j3,{className:Bl}),label:"最早投稿"},[_t.PlayCountDesc]:{icon:C(Ig,{className:Bl}),label:"最多播放"},[_t.CollectCountDesc]:{icon:C(Hf,{className:Y(Bl)}),label:"最多收藏"},[_t.FavTimeDesc]:{icon:C(U3,{className:Y(Bl)}),label:"最近收藏"},[_t.FavTimeAsc]:{icon:C(j3,{className:Y(Bl)}),label:"最早收藏"}},JRe={all:[_t.Initial,_t.Shuffle],"fav-folder":[_t.FavTimeDesc,_t.PubTimeDesc,_t.PlayCountDesc,_t.CollectCountDesc,"divider",_t.FavTimeAsc,_t.PubTimeAsc,"divider",_t.Shuffle],"fav-collection":[_t.Initial,_t.PubTimeDesc,_t.PlayCountDesc,_t.CollectCountDesc,"divider",_t.PubTimeAsc,"divider",_t.Shuffle]};function Fq(e){return e.split(":")[0]}function Hq(e){const t=Fq(e);return JRe[t]||Object.values(_t)}function mk(e){const t=Fq(e);return t==="fav-folder"?_t.FavTimeDesc:t==="fav-collection"?_t.PubTimeDesc:_t.Initial}function R6(e,t){const n=Hq(e).filter(o=>o!=="divider"),r=t.get(e)||mk(e);return n.includes(r)?r:mk(e)}function e6e(e,t){return f.useMemo(()=>R6(e,t),[t,e])}function N6(){const e=go(),{ref:t,getPopupContainer:n}=Rc(),{selectedKey:r,savedOrderMap:o}=gt(pn),i=e6e(r,o),s=f.useMemo(()=>Hq(r),[r]);return C(S6,{value:i,onChange:async l=>{pn.savedOrderMap.set(r,l),await gn(100),e();},list:s,listDisplayConfig:ZRe,$ref:t,dropdownProps:{getPopupContainer:n}})}const t6e=po.extend("modules:rec-services:fav:store");var eg=(e=>(e.CollectionIdFull="fav-collection-id",e.CollectionId="fav-cid",e.FolderIdFull="fav-folder-id",e.FolderId="fav-fid",e))(eg||{});const Vq=e=>{if(!e)return;const t=Number(e);if(!Number.isNaN(t))return t},l1=new URLSearchParams(location.search),jq=Vq(l1.get("fav-collection-id")??l1.get("fav-cid")),Uq=Vq(l1.get("fav-folder-id")??l1.get("fav-fid")),tg=el&&(typeof Uq=="number"||typeof jq=="number"),pn=Dn({folders:[],foldersUpdateAt:0,selectedFavFolderId:Uq,get selectedFavFolder(){if(typeof this.selectedFavFolderId=="number")return this.folders.find(e=>e.id===this.selectedFavFolderId)},collections:[],collectionsUpdateAt:0,selectedFavCollectionId:jq,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( LA("fav-saved-order"))).map,get usingShuffle(){return R6(this.selectedKey,this.savedOrderMap)===_t.Shuffle},get viewingAll(){return this.selectedKey==="all"},get viewingSomeFolder(){return typeof this.selectedFavFolderId=="number"},get viewingSomeCollection(){return typeof this.selectedFavCollectionId=="number"}});function Wq(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,t6e("update folder(id=%s title=%s) media_count to %s",n.id,n.title,r));}function P6(e=false){return Promise.all([I6(e),o6e(e)])}const n6e=sl(async()=>{const e=await _3e();pn.folders=e,pn.foldersUpdateAt=Date.now();});async function I6(e=false){if(!e){const{folders:t,foldersUpdateAt:n}=pn;if(t.length&&n&&Date.now()-n<Qr("5min"))return}return n6e()}const r6e=sl(async()=>{const e=await F3e();pn.collections=e,pn.collectionsUpdateAt=Date.now();});async function o6e(e=false){if(!e){const{collections:t,collectionsUpdateAt:n}=pn;if(t.length&&n&&Date.now()-n<Qr("5min"))return}return r6e()}tg&&IA(pn,"selectedLabel",()=>{pn.selectedLabel&&kR(pn.selectedLabel);});i6e();async function i6e(){if(!(el||jW)||tg)return;const e="fav-store",t=["selectedFavFolderId","selectedFavCollectionId","folders"],n=await GM.getValue(e);if(n)for(const o of t)Qi(n[o])||(pn[o]=n[o]);const r=PA(1);VH(pn,t,o=>{if(tg)return;const i=ku(o,t);r(async()=>{await GM.setValue(e,i);});});}const wm={[nt.AppRecommend]:{icon:C(vCe,{className:"size-18px"}),label:"推荐",desc:"使用 Bilibili App 端推荐 API",anonymousUsage:true},[nt.PcRecommend]:{icon:C(bCe,{className:"size-18px"}),label:"推荐",desc:"使用新版首页顶部推荐 API",anonymousUsage:true},[nt.KeepFollowOnly]:{icon:C(yCe,{className:"size-18px"}),label:"已关注",desc:"从PC端推荐中筛选出「已关注」,可能比较慢; 关注的UP更新在动态~"},[nt.DynamicFeed]:{icon:C(V0,{className:"size-18px"}),label:"动态",desc:"视频投稿动态",swr:true},[nt.Watchlater]:{icon:C(wR,{className:"size-17px [&_.circle]:stroke-current"}),label:"稍后再看",desc:"「我」的稍后再看",swr:true},[nt.Fav]:{icon:C(Hf,{className:"mt--1px size-16px"}),label:"收藏",desc:"「我」的收藏",get swr(){return !pn.usingShuffle}},[nt.Hot]:{icon:C(CCe,{className:"size-16px"}),label:"热门",desc:"各个领域中新奇好玩的优质内容都在这里~",anonymousUsage:true,get swr(){return !BG()}},[nt.Live]:{icon:C(xR,{className:"size-16px"}),label:"直播",desc:"直播~",swr:true},[nt.SpaceUpload]:{icon:C(j0,{className:"size-16px"}),label:"投稿",desc:"UP 视频投稿",anonymousUsage:true,extraHelpInfo:B("div",{className:"ml-20px",children:["搜索词: 搜索相关作品 ",C("br",{}),"本地过滤词: 本地过滤搜索结果; 本地过滤词支持高级规则:",C("div",{className:"ml-20px",children:iq})]})},[nt.Liked]:{icon:C(qj,{className:"size-16px"}),label:"赞",desc:"「我」的点赞. 使用 App 端个人空间 API, 需要 access_key"}};function Ei({tabKey:e,active:t,className:n}){const{icon:r}=wm[e],o=r.props,i={...o,className:or(o.className,n),active:e===nt.Live?t:void 0};return f.cloneElement(r,i)}const Gq="你需要登录B站后使用该功能! 如已完成登录, 请刷新网页重试~";function qq(){return tn(Gq)}function s6e({enabled:e,minIndex:t=0,maxIndex:n,gridRef:r,getScrollerRect:o,changeScrollY:i,videoCardEmitters:s,activeLargePreviewItemIndex:l}){const u=(A,I,N)=>To(A,I,{enabled:e,...N}),[d,m]=f.useState(void 0),p=rt(()=>{if(typeof d!="number"||!r.current)return  false;const A=o(),I=r.current.querySelector(`.${Jl}.${AB}`)?.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=H=>Math.abs(N-H)<1;{const H=Kq(r.current),U=A==="down"?H:-H,W=M(d+U);if(W){const z=W.getBoundingClientRect().left;if(P(z))return U}}let O=0,D=I;const _=()=>A==="down"?D.nextElementSibling:D.previousElementSibling;for(;_();){if(D=_(),!D.classList.contains(Jl))continue;A==="down"?O++:O--;const H=D.getBoundingClientRect().left;if(P(H))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=x();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,{conflictBehavior:"allow"}),To("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 x(){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=`.${Jl}`;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 a6e=new Map,l6e=new Map;function Kq(e,t=true){const{gridDisplayMode:n,useCustomGrid:r,enableForceColumn:o,forceColumnCount:i,cardMinWidth:s}=ot.grid;if(n===Gr.List)return 1;if(t&&n===Gr.TwoColumnGrid)return 2;if(r&&o&&i)return i;if(e||=document.querySelector(`.${_M}`),!e)return Bo("getColumnCount(): gridEl not found"),0;const l=r?a6e:l6e,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 Bo('getColumnCount(): gridEl.style.display !== "grid"'),0;const m=d.gridTemplateColumns.split(" ").length;return l.set(u,m),m}const qb=po.extend("service"),c6e=e=>{if(e.api===Ze.Separator)return e.uniqId;const{bvid:t}=Ja(e);return t||e.uniqId};function AM(e,t){return vc([...e,...t],c6e)}const hk=e=>e===nt.PcRecommend||e===nt.KeepFollowOnly;async function u6e(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=i1(b,r),l=AM(l,b),u=o.hasMore;return}let p;if(r===nt.KeepFollowOnly)p=8,qb("getMinCount: addMore(restCount = %s) times=%s",m,p);else {const b=hk(r)?_u.PAGE_SIZE:vs.PAGE_SIZE,S=(()=>{const{enabled:x,byAuthor:w,byTitle:E,minDuration:M,minPlayCount:T,minDanmakuCount:A}=ot.filter;return x||w.enabled||E.enabled||M.enabled||T.enabled||A.enabled})()?n:1.2;p=Math.ceil(m*S/b),qb("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",m,S,b,p);}if(hk(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=i1(g,r),l=AM(l,g),u=o.hasMore;};for(await d(e);;){if(i?.aborted){qb("getMinCount: break for abortSignal");break}if(!u){qb("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 O6=()=>Kq()*4;async function d6e(e){let t=O6();return e.tab===nt.DynamicFeed&&await e.service.shouldReduceMinCount()&&(t=1),u6e(t,e,5)}function f6e(e,t){let n;switch(e){case nt.DynamicFeed:return n=t[nt.DynamicFeed],!Mi(n?.config,$6());case nt.Fav:return n=t[nt.Fav],!Mi(n?.config,M6());case nt.Hot:return n=t[nt.Hot],n?.subtab!==Zo.subtab||n.subtab===pr.Rank&&n.service instanceof LG&&n.service.rankTab.slug!==Ai.slug;case nt.SpaceUpload:return n=t[nt.SpaceUpload],!Mi(n?.config,vq());default:return  false}}const Yq=5;function m6e({tab:e,debug:t,fetcher:n,preAction:r,postAction:o,updateViewFromService:i,self:s}){const l=rs(),{serviceRegistry:u}=l;ho(()=>{d("reuse");}),hm(()=>{s.abortController.abort();});const d=rt(async(p="refresh")=>{if(l.refreshing&&l.refreshingTab===e)if(f6e(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:[],refreshKey:Date.now()});const y=new AbortController,{signal:S}=y;s.abortController=y,await r?.();function x(){l.setStore({refreshing:false,refreshingTab:void 0}),s.setStore({showSkeleton:false});}function w(N){x(),s.setStore({refreshError:N}),console.error(N);}function E(){x(),s.setStore({hasMore:Lq(u,e).hasMore});}async function M(N,P){const[O,D]=await f1(()=>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:_}=O,U=_+(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:ym(p);break}if(T){await T.restore();const N=i1(T.qs.bufferQueue,e).slice(0,O6());s.setStore({items:N});const P=!!await M(T);A??=P&&!!wm[e].swr;}else s.setStore({showSkeleton:true}),A=true;if(A){const[N,P]=oc(()=>QRe[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 M3e.RingBuffer(Yq);const _=l.serviceQueueMap[e];_.add(P);const H=_.getBufferLength();l.setTabServiceQueueState(e,{len:H,cursor:H-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}=rs();return ao(m,"refresh",({data:p})=>d(p)),{refresh:d}}const h6e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",children:[C("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"}),C("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M24 28.625v-4a6 6 0 1 0-6-6"}),C("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"})]})]}),p6e=f.forwardRef(h6e),g6e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[C("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0-4 0"}),C("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"})]})]}),v6e=f.forwardRef(g6e);function b6e(){const{grid:{useCustomGrid:e,enableForceColumn:t,forceColumnCount:n,cardMinWidth:r},style:o,enableSidebar:i,sidebarAlign:s}=Ft();ho(()=>IA(ot,"pureRecommend",async m=>{await gn(0),vS();}));const l=rt(()=>{const m="v0.34.15";GM.setClipboard(m),Wt.success(`已复制当前版本: ${m}`);}),u=f.useRef(null),d=uS(u);return B("div",{className:On.tabPane,children:[C(co,{title:B(_e,{children:[C(Ei,{tabKey:nt.AppRecommend,className:"mr-5px mt-2px size-30px"}),"access_key",B(vr,{className:"ml-5px mt-6px size-18px",IconComponent:p6e,tooltipProps:{classNames:{root:"text-14px"}},children:["App 端登录凭证, 使用情况: ",C("br",{}),C(cM,{}),B("div",{className:"group flex items-start",children:[B("div",{className:"w-55px flex flex-none items-center",children:[C(Ei,{tabKey:nt.AppRecommend,className:"mr-1"})," 推荐"]}),B("ul",{className:"flex-1 list-disc pl-20px",children:[C("li",{className:"w-max",children:"获取推荐"}),C("li",{className:"w-max",children:"提交不喜欢"})]})]}),C(cM,{}),B("div",{className:"group flex items-start",children:[B("div",{className:"w-55px flex flex-none items-center",children:[C(Ei,{tabKey:nt.Liked,className:"mr-1"}),"赞"]}),C("ul",{className:"w-max flex-1 list-disc pl-20px",children:C("li",{className:"w-max",children:"获取点赞列表"})})]})]})]}),children:C(e6,{})}),C(co,{title:"开关",resetSettingPaths:["pureRecommend","multiSelect.showIcon","showBackForwardButtons"],children:B("div",{className:On.settingsLine,children:[C(It,{configPath:"pureRecommend",label:"覆盖默认推荐",tooltip:B(_e,{children:[Ur("覆盖默认推荐内容",`保留默认首页; 你可以从屏幕边缘找到入口面板, 使用 ${Lo} 的功能.`),"P.S 需要刷新网页"]})}),C(It,{configPath:"multiSelect.showIcon",label:"「多选」按钮",tooltip:"是否显示「多选」按钮"}),C(It,{configPath:"showBackForwardButtons",label:"「后退 / 前进」按钮",tooltip:B(_e,{children:["是否显示「后退 / 前进」按钮 ",C("br",{}),"仅推荐 Tab 支持, 最多保留 ",Yq," 次刷新历史"]})})]})}),B(co,{title:B(_e,{children:["布局",C(sn,{title:"透视",children:C(v6e,{ref:u,title:"透视",className:Y("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:[C("div",{className:On.settingsLine,children:C(It,{configPath:"grid.useCustomGrid",label:"使用自定义网格配置",tooltip:B(_e,{children:["网格配置指: 网格宽度, 间距, 列数等. ",C("br",{}),Ur(B(_e,{children:["使用 ",Lo," 自定义网格配置: 宽度为90%; 可跟随 Bilibili-Evolved 自定义顶栏配置"]}),C(_e,{children:"使用 bili-feed4 版本B站首页默认的网格配置"}))]})})}),B("div",{className:On.settingsLine,children:["网格列数:",C(w3e,{})]}),B("div",{className:"flex items-center gap-x-4px",children:[C(It,{configPath:"enableSidebar",label:"使用侧边栏",tooltip:Ur("使用侧边栏(如动态 分组/UP 选择)","使用下拉面板")}),B(Rr.Group,{disabled:!i,buttonStyle:"solid",size:"small",value:s,onChange:m=>{ot.sidebarAlign=m.target.value;},children:[C(Rr.Button,{value:Vf.Left,className:"inline-flex-center",children:C(LW,{className:"size-16px"})}),C(Rr.Button,{value:Vf.Right,className:"inline-flex-center",children:C(kW,{className:"size-16px"})})]})]}),B("div",{className:"flex items-center",children:["网格显示模式",C(x3e,{className:"ml-xl"})]})]}),B(co,{title:"样式",resetSettingPaths:["style.general.popoverBorderColorUseColorPrimary","style.pureRecommend.useStickyTabbar","style.pureRecommend.stickyTabbarShadow","grid.useCustomGrid","style.pureRecommend.useWhiteBackground","style.pureRecommend.hideTopChannel"],children:[C("div",{className:On.settingsLine,children:C(It,{configPath:"style.general.popoverBorderColorUseColorPrimary",label:"下拉面板使用主题色边框"})}),B("div",{children:[C("div",{className:"flex items-center text-1.2em",children:"全屏推荐"}),B("div",{className:On.settingsLine,children:[C(It,{configPath:"style.pureRecommend.useStickyTabbar",label:"固定 Tab 栏",tooltip:Ur("Tab 栏会吸附在顶栏下方","Tab 栏会随页面一起滚动")}),C(It,{disabled:!o.pureRecommend.useStickyTabbar,configPath:"style.pureRecommend.stickyTabbarShadow",label:"固定 Tab 栏时添加边框 & 阴影",tooltip:Ur("Tab 栏在吸附状态下: 加宽, 添加边框 & 阴影","不改变")}),C(It,{configPath:"style.pureRecommend.useWhiteBackground",label:"使用纯白背景",tooltip:B(_e,{children:[Ur("纯白背景","浅灰色背景"),"仅影响白色/浅色模式"]})}),C(It,{configPath:"style.pureRecommend.hideTopChannel",label:"隐藏顶部分区和Banner"})]})]})]}),C(co,{title:B(_e,{children:["帮助",B("span",{className:"relative top-4px ml-8px mr-4px inline-flex items-center text-size-14px",children:["当前版本",B(ws,{color:"green",className:"mx-4px cursor-pointer",onClick:l,children:[Lo," v","0.34.15"]}),C(Nu,{className:"size-16px cursor-pointer",onClick:l})]})]}),children:B("div",{className:On.settingsLine,children:[C(sn,{title:"来个 Star 支持一下",children:C(ct,{href:"https://github.com/magicdawn/Bilibili-Gate",target:"_blank",children:"GitHub 主页"})}),C(ct,{href:"https://afdian.com/a/magicdawn",target:"_blank",children:"「爱发电」支持"}),C(ct,{href:"https://greasyfork.org/zh-CN/scripts/443530-bilibili-gate",target:"_blank",children:"GreasyFork 主页"}),C(ct,{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:"查看可用的快捷键"}),C(ct,{href:"https://github.com/magicdawn/Bilibili-Gate/releases",target:"_blank",children:"更新日志"})]})})]})}const c1=["filter.byAuthor.keywords","filter.byTitle.keywords","filter.dfByTitle.keywords","filter.dfHideOpusMids.keywords"],D6=al.filter(e=>e.startsWith("filter.")),pk=rc(D6,c1);async function y6e(){const e=await Lg();c1.reduce((n,r)=>n+(tr(e,r)?.length??0),0)||Wt.warning("列表数据为空!"),await AW(D6,"filter");}async function S6e(){const e=await RW();if(!e)return;const{pickedPaths:t,pickedSettings:n}=Tc(e,D6);if(!t.length)return tn("没有有效的设置!");const r=await Lg();if(!!!(pk.some(l=>{const u=tr(n,l),d=tr(r,l);if(!(Qi(u)||Mi(u,d)))return  true})||c1.some(l=>{const u=tr(n,l),d=tr(r,l)??[];if(!(!u?.length||!rc(u,d).length))return  true})))return tn("没有可导入内容, 导入内容与现有设置相同!",5e3);let i=0,s=0;pk.forEach(l=>{const u=tr(n,l),d=tr(r,l);Qi(u)||Mi(u,d)||(ts({[l]:u}),i+=1);}),c1.forEach(l=>{const u=tr(n,l),d=tr(r,l)??[];if(!u?.length)return;const m=rc(u,d);m.length&&(ts({[l]:ig([...d,...m])}),s+=m.length);}),Wt.success(`已导入 ${i} 条常规数据, ${s} 条列表数据!`);}const C6e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"m14 14l20 20m-20 0l20-20"})]}),x6e=f.forwardRef(C6e),{Search:w6e}=es;var E6e={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 u1({configPath:e,searchProps:t,disabled:n,className:r,inputClassName:o,listClassName:i,renderHeader:s=Fk}){const l=gU(e),u=f.useMemo(()=>ig(l).toReversed(),[l]),d=["filter.byAuthor.keywords","filter.dfHideOpusMids.keywords"].includes(e),m=C(w6e,{className:Y("my-5px",o),enterButton:"添加",allowClear:true,disabled:n,size:"middle",...t,onSearch:async(S,x)=>{if(!S)return;if(new Set(await vU(e)).has(S)){Wt.warning(`${S} 已存在`);return}await Ga(e,{add:[S]}),x?.target&&x.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=B("div",{className:b,css:n&&E6e,children:[g&&C(Ki,{image:Ki.PRESENTED_IMAGE_SIMPLE,description:"空空如也",className:"[&.ant-empty-normal]:my-1 [&.ant-empty-normal]:py-5px"}),p&&u.map(S=>C(Xq,{tag:S.toString(),TagComponent:d?$6e:void 0,onDelete:x=>Ga(e,{remove:[x]})},S))]});return B(_e,{children:[s(m),y]})}const Xq=f.memo(function({tag:e,renderTag:t,TagComponent:n,onDelete:r,className:o,...i}){const s=f.useMemo(()=>n?C(n,{tag:e}):(t??=Fk,t(e)),[n,t,e]);return B("div",{...i,className:Y("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,C(x6e,{className:"ml-2px size-16px cursor-pointer text-size-12px",onClick:()=>r?.(e)})]})}),$6e=f.memo(function({tag:e}){const{mid:t,remark:n}=f.useMemo(()=>NS(e),[e]),[r,o]=f.useState(void 0);f.useEffect(()=>{(async()=>{if(!t)return;const l=await Du(t);l&&o(l);})();},[t]);const i=t?r||n||t:e;return C(_e,{children:C(sn,{title:B(_e,{children:[!!t&&B(_e,{children:["mid: ",t," ",C("br",{})]}),!!n&&B(_e,{children:["备注: ",n," ",C("br",{}),n===r&&B(_e,{children:['P.S "备注" 与 "用户昵称" 相同, 是之前的数据, 现在你只需要填写 mid, 会自动获取昵称 ',C("br",{})]})]}),!t&&B(_e,{children:["使用用户名过滤: 用户可能改名, 建议使用 mid 过滤 ",C("br",{})]})]}),children:B("span",{className:Y("inline-flex items-center justify-center",t?"cursor-pointer":"cursor-[edit]"),children:[t&&C(nG,{className:"mr-2px size-12px"}),t?C("a",{href:Yg(t),target:"_blank",style:{color:"inherit"},children:i}):i]})})})}),d1={blockContainer:"b-1px b-gate-border rounded-lg b-solid p-x-2 p-y-1 light:hover:b-gate-primary"};function M6e(){const{filter:{byAuthor:e,byTitle:t,dfByTitle:n,dfHideOpusMids:r}}=Ft();return C("div",{className:Y(On.tabPane,"pr-15px"),children:C(co,{title:B(_e,{children:[C("span",{children:"内容过滤"}),C(ju,{configPath:"filter.enabled",className:"ml-10px"}),C("div",{className:"flex-1"}),B(Tr,{size:5,children:[B(ct,{onClick:y6e,disabled:!(e.keywords.length||t.keywords.length||n.keywords.length||r.keywords.length),children:[C(NW,{}),"导出"]}),B(ct,{onClick:S6e,children:[C(PW,{}),"导入"]})]})]}),children:C(bA,{items:[{key:"recommend",label:B("span",{className:"inline-flex-center gap-x-1",children:[C(Ei,{tabKey:nt.AppRecommend}),"推荐 / 热门",B(vr,{className:"ml-1",children:["生效范围: ",C("br",{}),"视频/图文/影视: 推荐类 Tab ",C("br",{}),"UP/标题: 推荐类、热门 Tab ",C("br",{})]})]}),children:C(T6e,{})},{key:"dynamic-feed",label:B("span",{className:"inline-flex-center gap-x-1",children:[C(Ei,{tabKey:nt.DynamicFeed}),"动态",B(vr,{className:"ml-1",children:["使用场景: 关注的 UP 发布的部分内容 ",C("br",{}),B("ol",{children:[C("li",{children:"如果有规律可以按标题关键字过滤"}),C("li",{children:"没有规律可以屏蔽 UP 发布的全部图文动态"})]})]})]}),children:C(A6e,{})}]})})})}function T6e(){const{enabled:e,minDuration:t,minPlayCount:n,minDanmakuCount:r,hideGotoTypeBangumi:o,hideGotoTypePicture:i,byAuthor:s,byTitle:l}=Ft().filter,u=d=>({label:"「已关注」豁免",tooltipProps:{color:MW},tooltip:B(_e,{children:["「已关注」内容不考虑过滤条件, 总是展示",C("br",{}),'"豁免" 一词来源'," ",C("a",{target:"_blank",href:"https://github.com/magicdawn/Bilibili-Gate/issues/1#issuecomment-2197868587",children:"pilipala"})]})});return C(_e,{children:B("div",{className:"grid grid-cols-2 gap-15px",children:[B("div",{children:[C("div",{className:On.settingsGroupSubTitle,children:"视频"}),B("div",{className:"flex flex-col gap-y-1",children:[B("div",{className:"flex items-center",children:[C(It,{configPath:"filter.minDuration.enabled",label:"按视频时长过滤",tooltip:C(_e,{children:"不显示短视频"}),disabled:!e,className:"min-w-130px"}),B(Tr.Compact,{children:[C($u,{className:"w-130px",size:"small",min:1,step:10,value:t.value,onChange:d=>!Qi(d)&&(ot.filter.minDuration.value=d),disabled:!e||!t.enabled}),C(Tr.Addon,{children:"秒"})]})]}),B("div",{className:"flex items-center",children:[C(It,{disabled:!e,configPath:"filter.minPlayCount.enabled",label:"按播放次数过滤",tooltip:C(_e,{children:"不显示播放次数很少的视频"}),className:"min-w-130px"}),B(Tr.Compact,{children:[C($u,{className:"w-130px",size:"small",min:1,step:1e3,value:n.value,onChange:d=>!Qi(d)&&(ot.filter.minPlayCount.value=d),disabled:!e||!n.enabled}),C(Tr.Addon,{children:"次"})]})]}),B("div",{className:"flex items-center",children:[C(It,{disabled:!e,configPath:"filter.minDanmakuCount.enabled",label:"按弹幕条数过滤",tooltip:C(_e,{children:"不显示弹幕条数很少的视频"}),className:"min-w-130px"}),B(Tr.Compact,{children:[C($u,{className:"w-130px",size:"small",min:1,step:100,value:r.value,onChange:d=>!Qi(d)&&(ot.filter.minDanmakuCount.value=d),disabled:!e||!r.enabled}),C(Tr.Addon,{children:"条"})]})]}),C(It,{configPath:"filter.exemptForFollowed.video",disabled:!e,...u()})]})]}),B("div",{children:[C("div",{className:On.settingsGroupSubTitle,children:"图文"}),C(It,{configPath:"filter.hideGotoTypePicture",label:"过滤图文类型推荐",disabled:!e,className:"flex",tooltip:B(_e,{children:["过滤 ",C("kbd",{children:"goto = picture"})," 的内容: 包括 (动态 & 专栏) 等"]})}),C(It,{className:"flex",disabled:!e||!i,configPath:"filter.exemptForFollowed.picture",...u()}),C("div",{className:Y(On.settingsGroupSubTitle,"mt-2"),children:"影视"}),C(It,{configPath:"filter.hideGotoTypeBangumi",label:"过滤影视类型推荐",tooltip:B(_e,{children:["过滤 ",C("kbd",{children:"goto = bangumi"})," 的内容: 包括 (番剧 / 电影 / 国创 / 纪录片) 等"]}),disabled:!e})]}),B("div",{className:Y(d1.blockContainer,"col-span-full"),children:[B("div",{className:On.settingsGroupSubTitle,children:["UP",B(vr,{children:["根据 UP 过滤视频 ",C("br",{}),"使用 mid 屏蔽时支持备注, 格式: ",C(ws,{color:"success",children:"mid(备注)"})," 如"," ",C(ws,{color:"success",children:"8047632(B站官方)"}),C("br",{}),B("div",{className:"mt-4px flex items-start",children:[C(Kj,{className:"mt-3px"}),B("div",{className:"ml-8px flex-1",children:["B站官方支持黑名单, 对于不喜欢的 UP 可以直接拉黑 ",C("br",{}),"此脚本会拉取官方黑名单, 并无视此页开关, 总是会过滤掉 ",C("br",{}),"这里是客户端过滤, 与黑名单功能重复, 优先使用黑名单功能 ",C("br",{})]})]})]}),C(ju,{configPath:"filter.byAuthor.enabled",disabled:!e,className:"ml-10px"}),C("div",{className:"flex-1"}),B(ct,{onClick:R6e,children:[C(mm,{}),"清理无效备注数据"]})]}),C(u1,{configPath:"filter.byAuthor.keywords",searchProps:{placeholder:"添加UP: 全名 / mid / mid(备注)"},disabled:!e||!s.enabled,className:"mt-2",listClassName:"max-h-130px"})]}),B("div",{className:Y(d1.blockContainer,"col-span-full"),children:[B("div",{className:Y(On.settingsGroupSubTitle),children:[C("span",{children:"标题"}),B(vr,{children:["根据标题关键词过滤视频 ",C("br",{}),"支持普通关键字和正则(i), 语法:",C(ws,{color:"success",variant:"solid",children:"/abc|\\d+/"})]}),C(ju,{configPath:"filter.byTitle.enabled",disabled:!e,className:"ml-10px"})]}),C(u1,{configPath:"filter.byTitle.keywords",searchProps:{placeholder:"添加过滤关键词"},disabled:!e||!l.enabled,listClassName:"max-h-130px"})]})]})})}function A6e(){const{filter:{enabled:e,dfByTitle:t,dfHideOpusMids:n}}=Ft();return B("div",{className:"flex flex-col gap-y-15px",children:[B("div",{className:d1.blockContainer,children:[B("div",{className:On.settingsGroupSubTitle,children:[C("span",{children:"标题"}),B(vr,{children:["支持普通关键字和正则(i), 语法:",C(ws,{color:"success",variant:"solid",children:"/abc|\\d+/"}),C("br",{}),"作用范围: 支持的动态类型: 视频 / 图文"]}),C(ju,{configPath:"filter.dfByTitle.enabled",disabled:!e,className:"ml-10px"})]}),C(u1,{configPath:"filter.dfByTitle.keywords",searchProps:{placeholder:"添加过滤关键词"},disabled:!e||!t.enabled})]}),B("div",{className:d1.blockContainer,children:[B("div",{className:On.settingsGroupSubTitle,children:[C("span",{children:"屏蔽 UP 的图文动态"}),B(vr,{children:["支持 mid 或 mid(备注) ",C("br",{}),"右键图文动态可快速添加"]}),C(ju,{configPath:"filter.dfHideOpusMids.enabled",disabled:!e,className:"ml-10px"})]}),C(u1,{configPath:"filter.dfHideOpusMids.keywords",searchProps:{placeholder:"添加 UP: mid / mid(备注)"},disabled:!e||!n.enabled,listClassName:"max-h-130px"})]})]})}async function R6e(){const e=ot.filter.byAuthor.keywords,t=await sa(e,async n=>{const{mid:r,remark:o}=NS(n);return !r||!o||await Du(r)!==o?n:r},1/0);return Mi(t,e)?Wt.warning("没有「无效备注」数据!"):(ot.filter.byAuthor.keywords=t,Wt.success("已清理「无效备注」数据!"))}function N6e(){return B("div",{className:On.tabPane,children:[C("div",{className:"mb-10px flex justify-start",children:C(ZR,{paths:["fav.useCustomFavPicker.onPlayPage","videoPlayPage.addQuickLinks","videoCard.videoPreview.addTo.searchPage"]})}),B(co,{title:"视频播放页",children:[C(It,{configPath:"fav.useCustomFavPicker.onPlayPage",label:"使用自定义收藏弹窗",tooltip:B(_e,{children:["使用「",Lo,"」提供的选择收藏夹弹窗 ",C("br",{}),B("ul",{className:"ml-20px list-circle",children:[C("li",{children:"支持拼音搜索, 帮你快速找到收藏夹"}),C("li",{children:B("span",{className:"flex-v-center",children:["支持从收藏夹图标 或 快捷键",C(ea,{k:"E",className:"mx-1 h-14px py-0 line-height-13px"}),"触发"]})}),C("li",{children:B("span",{className:"flex-v-center",children:[C(ea,{k:"Shift+E",className:"mx-1 h-14px flex py-0 line-height-13px"}),"无视此开关, 总是生效"]})})]})]})}),C(It,{configPath:"videoPlayPage.addQuickLinks",label:"添加快速链接",tooltip:C(_e,{children:"添加合集快速链接"})})]}),C(co,{title:"搜索页",children:C(It,{configPath:"videoCard.videoPreview.addTo.searchPage",label:"浮动预览: 添加到「搜索页」",tooltip:C(_e,{children:"在搜索页的视频也添加「浮动预览」"})})})]})}function P6e(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 I6e=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return !n||!t?r:P6e(r,n,t)},O6e=e=>{let{transform:t}=e;return {...t,x:0}};function ng(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function D6e(e,t){return e.reduce((n,r,o)=>{const i=t.get(r);return i&&(n[o]=i),n},Array(e.length))}function Kb(e){return e!==null&&e>=0}function _6e(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 L6e(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Qq=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=ng(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}},Yb={scaleX:1,scaleY:1},k6e=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,...Yb}:null}const u=B6e(i,o,n);return o>n&&o<=s?{x:0,y:-l.height-u,...Yb}:o<n&&o>=s?{x:0,y:l.height+u,...Yb}:{x:0,y:0,...Yb}};function B6e(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 Zq="Sortable",Jq=q.createContext({activeIndex:-1,containerId:Zq,disableTransforms:false,items:[],overIndex:-1,useDragOverlay:false,sortedRects:[],strategy:Qq,disabled:{draggable:false,droppable:false}});function z6e(e){let{children:t,id:n,items:r,strategy:o=Qq,disabled:i=false}=e;const{active:s,dragOverlay:l,droppableRects:u,over:d,measureDroppableContainers:m}=R2e(),p=qg(Zq,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,x=d?b.indexOf(d.id):-1,w=f.useRef(b),E=!_6e(b,w.current),M=x!==-1&&S===-1||E,T=L6e(i);la(()=>{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:x,useDragOverlay:g,sortedRects:D6e(b,u),strategy:o}),[S,p,T.draggable,T.droppable,M,b,x,u,g,o]);return q.createElement(Jq.Provider,{value:A},t)}const F6e=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return ng(n,r,o).indexOf(t)},H6e=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},V6e={duration:200,easing:"ease"},eK="transform",j6e=Wf.Transition.toString({property:eK,duration:0,easing:"linear"}),U6e={roleDescription:"sortable"};function W6e(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,s]=f.useState(null),l=f.useRef(n);return la(()=>{if(!t&&n!==l.current&&r.current){const u=o.current;if(u){const d=vm(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 G6e(e){let{animateLayoutChanges:t=H6e,attributes:n,disabled:r,data:o,getNewIndex:i=F6e,id:s,strategy:l,resizeObserverConfig:u,transition:d=V6e}=e;const{items:m,containerId:p,activeIndex:g,disabled:b,disableTransforms:y,sortedRects:S,overIndex:x,useDragOverlay:w,strategy:E}=f.useContext(Jq),M=q6e(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}=I2e({id:s,data:A,disabled:M.droppable,resizeObserverConfig:{updateMeasurementsFor:I,...u}}),{active:_,activatorEvent:H,activeNodeRect:U,attributes:W,setNodeRef:z,listeners:L,isDragging:G,over:j,setActivatorNodeRef:K,transform:X}=$W({id:s,data:A,attributes:{...U6e,...n},disabled:M.draggable}),k=c$e(D,z),V=!!_,Q=V&&!y&&Kb(g)&&Kb(x),J=!w&&G,te=J&&Q?X:null,re=Q?te??(l??E)({rects:S,activeNodeRect:U,activeIndex:g,overIndex:x,index:T}):null,ie=Kb(g)&&Kb(x)?i({id:s,items:m,activeIndex:g,overIndex:x}):T,ue=_?.id,ee=f.useRef({activeId:ue,items:m,newIndex:ie,containerId:p}),ae=m!==ee.current.items,ce=t({active:_,containerId:p,isDragging:G,isSorting:V,id:s,index:T,items:m,newIndex:ee.current.newIndex,previousItems:ee.current.items,previousContainerId:ee.current.containerId,transition:d,wasDragging:ee.current.activeId!=null}),se=W6e({disabled:!ce,index:T,node:P,rect:N});return f.useEffect(()=>{V&&ee.current.newIndex!==ie&&(ee.current.newIndex=ie),p!==ee.current.containerId&&(ee.current.containerId=p),m!==ee.current.items&&(ee.current.items=m);},[V,ie,p,m]),f.useEffect(()=>{if(ue===ee.current.activeId)return;if(ue!=null&&ee.current.activeId==null){ee.current.activeId=ue;return}const le=setTimeout(()=>{ee.current.activeId=ue;},50);return ()=>clearTimeout(le)},[ue]),{active:_,activeIndex:g,attributes:W,data:A,rect:N,index:T,newIndex:ie,items:m,isOver:O,isSorting:V,isDragging:G,listeners:L,node:P,overIndex:x,over:j,setNodeRef:k,setActivatorNodeRef:K,setDroppableNodeRef:D,setDraggableNodeRef:z,transform:se??re,transition:$e()};function $e(){if(se||ae&&ee.current.newIndex===T)return j6e;if(!(J&&!qR(H)||!d)&&(V||ce))return Wf.Transition.toString({...d,property:eK})}}function q6e(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 RM=Object.values(nt),K6e=[nt.SpaceUpload],_6=rc(RM,K6e),L6=await( _A({value:nt.AppRecommend},"video-source-tab"));{const e=TS();e&&(L6.value=e);}function tK(e){return _6.slice().sort((t,n)=>{let r=e.indexOf(t),o=e.indexOf(n);return r===-1&&(r=RM.indexOf(t)),o===-1&&(o=RM.indexOf(n)),r-o})}function k6(e){const{customTabKeysOrder:t}=Ft(e);return f.useMemo(()=>tK(t),[t])}function nK(){const{hidingTabKeys:e,customTabKeysOrder:t}=Ft(),n=PR(),r=f.useMemo(TS,[]),o=f.useMemo(()=>tK(t).filter(s=>s===nt.AppRecommend&&!n?true:!e.includes(s)),[e,t,n]);return r?[r]:o}function Y6e(){const e=nK();return f.useMemo(()=>e.map(t=>({key:t,...wm[t]})),[e])}function rK(){const e=gt(L6).value,t=nK(),n=PR(),r=nt.AppRecommend;return !t.includes(e)||!n&&!wm[e].anonymousUsage?r:e}function oK(){const e=f.useDeferredValue(rK()),t=VR(e),n=k6(),r=f.useMemo(()=>t?n.indexOf(e)>n.indexOf(t)?"right":"left":void 0,[n,e]);return {tab:e,prevTab:t,direction:r}}const X6e={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 iK({className:e}){const t=PR(),n=rK(),r=Y6e(),{__internalRecTabRenderAsSegments:o}=Ft(),i=rt(u=>{if(!t&&!wm[u].anonymousUsage&&!uU())return qq();L6.value=u;}),s=C(Rr.Group,{optionType:"button",buttonStyle:"solid",size:"middle",value:n,className:Y("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})=>C(Rr.Button,{css:X6e,className:"video-source-tab",tabIndex:-1,value:u,children:B("span",{className:"h-full flex items-center line-height-unset",children:[C(Ei,{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:B("div",{className:"flex items-center gap-x-6px",children:[C(Ei,{tabKey:d,active:d===n}),m]})})),[r,n]);l=C(yA,{size:"middle",options:u,value:n,onChange:i});}return B("div",{className:"flex-v-center",children:[o?l:s,C(vr,{className:"ml-6px size-16px",children:C(_e,{children:r.map(({key:u,label:d,desc:m,extraHelpInfo:p})=>B(f.Fragment,{children:[B("div",{className:"h-22px flex items-center",children:[C(Ei,{tabKey:u,className:"mr-4px",active:true}),d,": ",m]}),!!p&&p]},u))})})]})}const Q6e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),sK=f.forwardRef(Q6e);function Z6e(){const{dynamicFeed:e}=Ft(),t=k6(),n=r=>({order:t.indexOf(r)+1});return C("div",{className:On.tabPane,children:B("div",{className:"grid grid-cols-[250px_1fr] gap-x-50px",children:[C(co,{title:B(_e,{children:["Tab 设置",C(vr,{className:"ml-5px",children:"勾选显示, 拖动排序"})]}),resetSettingPaths:["hidingTabKeys","customTabKeysOrder"],children:C(eNe,{})}),B(co,{title:"更多设置",contentClassName:"gap-y-15px",resetSettingPaths:["watchlaterAddSeparator","watchlaterUseNormalVideoUrl","fav.addSeparator","dynamicFeed.followGroup.enabled","dynamicFeed.showLive","dynamicFeed.videoOnly","dynamicFeed.whenViewAll.enableHideSomeContents","appRecommend.addOtherTabContents"],children:[B("div",{style:n(nt.Watchlater),children:[B("div",{className:"flex items-center text-size-1.3em",children:[C(Ei,{tabKey:nt.Watchlater,className:"mr-5px mt--1px"}),"稍后再看"]}),B("div",{className:On.settingsLine,children:[C(It,{configPath:"watchlaterAddSeparator",label:"添加分割线",tooltip:"添加「近期」「更早」分割线"}),C(It,{configPath:"watchlaterUseNormalVideoUrl",label:"使用普通视频链接",tooltip:Ur("使用普通视频链接","使用「稍后再看」自动列表链接")})]})]}),B("div",{style:n(nt.Fav),children:[B("div",{className:"flex items-center text-size-1.3em",children:[C(Ei,{tabKey:nt.Fav,className:"mr-5px mt--2px"}),"收藏"]}),C("div",{className:On.settingsLine,children:C(It,{configPath:"fav.addSeparator",label:"添加分割线",tooltip:"顺序显示时, 按收藏夹添加分割线"})})]}),B("div",{style:n(nt.DynamicFeed),children:[B("div",{className:"flex items-center text-size-1.3em",children:[C(Ei,{tabKey:nt.DynamicFeed,className:"mr-5px mt--2px"}),"动态"]}),B("div",{className:On.settingsLine,children:[C(It,{configPath:"dynamicFeed.followGroup.enabled",label:"启用分组筛选",tooltip:B(_e,{children:["动态 Tab 启用分组筛选 ",C("br",{}),C(xq,{})]})}),C(It,{configPath:"dynamicFeed.showLive",label:"在动态中显示直播",tooltip:B(_e,{children:["动态里显示正在直播的 UP",C("br",{}),"P.S 仅在选择「全部」时展示"]})}),C(It,{configPath:"dynamicFeed.videoOnly",label:"只显示视频",tooltip:Ur("只获取视频动态: 投稿视频 / 动态视频","获取全部动态: 包含视频 / 图片 / 文章等")}),C(It,{configPath:"dynamicFeed.whenViewAll.enableHideSomeContents",label:"「全部」动态过滤",tooltip:B(_e,{children:["查看「全部」动态时 ",C("br",{}),Ur("将添加右键菜单, 点击可添加到「全部」动态的过滤列表","关闭此功能")]})}),e.whenViewAll.enableHideSomeContents&&C(Vz,{size:"small",className:"w-full",items:[{key:"1",label:"在「全部」动态中隐藏 UP/分组 的动态",children:C(nNe,{})}]})]})]}),B("div",{style:n(nt.AppRecommend),children:[B("div",{className:"flex items-center text-size-1.3em",children:[C(Ei,{tabKey:nt.AppRecommend,className:"mr-5px"}),"App 推荐"]}),C("div",{className:On.settingsLine,children:C("div",{className:"flex items-center",children:Oq()})})]})]})]})})}function J6e(){const{hidingTabKeys:e}=Ft();return f.useMemo(()=>_6.filter(t=>!e.includes(t)),[e])}function eNe({className:e,style:t}){const n=J6e(),r=k6({sync:true}),o=w$e(x$e(QR)),i=rt(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=ng(r,d,m);ot.customTabKeysOrder=p;});return C("div",{className:e,style:t,children:C(Ni.Group,{className:"block line-height-[unset]",value:n,onChange:s=>{if(!s.length)return Wt.error("至少选择一项!");ts({hidingTabKeys:_6.filter(l=>!s.includes(l))});},children:C(EW,{sensors:o,collisionDetection:A$e,onDragEnd:i,modifiers:[O6e,I6e],children:C(z6e,{items:r,strategy:k6e,children:r.map(s=>C(tNe,{id:s},s))})})})})}function tNe({id:e}){const{label:t,desc:n}=wm[e],{attributes:r,listeners:o,setNodeRef:i,transform:s,transition:l,setActivatorNodeRef:u}=G6e({id:e}),d={transform:Wf.Transform.toString(s),transition:l};return B("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:[B(Ni,{value:e,className:"inline-flex items-center [&_.ant-checkbox-label]:inline-flex [&_.ant-checkbox-label]:select-none [&_.ant-checkbox-label]:items-center",children:[C(Ei,{tabKey:e,className:"mr-5px"}),C(sn,{align:{offset:[0,-6]},title:n,children:t})]}),C("div",{...o,...r,ref:u,className:"cursor-grab rounded-5px px-5px py-3px text-size-0 hover:bg-gate-bg-lv-3",children:C(sK,{className:"size-18px"})})]},e)}function nNe(){const{hideIds:e}=gt(ot.dynamicFeed.whenViewAll),t=rt(async o=>{await Ga("dynamicFeed.whenViewAll.hideIds",{remove:[o]});}),{groups:n}=gt(en);return ho(()=>{en.updateGroups();}),e.length?C("div",{className:"max-h-250px flex flex-wrap gap-10px overflow-y-auto",children:e.map(o=>C(Xq,{tag:o,onDelete:t,renderTag:i=>C(rNe,{tag:i,followGroups:n})},o))}):C("div",{className:"flex items-center justify-center",children:C(Ki,{})})}function rNe({tag:e,followGroups:t}){let n,r;e.startsWith(Gf)?n=e.slice(Gf.length):e.startsWith(Gu)&&(r=e.slice(Gu.length));const[o,i]=f.useState(void 0);ho(async()=>{if(!n)return;const g=await Du(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?C(rG,{className:"mr-2px size-12px"}):r?C(oG,{className:"mr-2px size-16px"}):void 0,[n,r]),p=f.useMemo(()=>n?Yg(n):r?sG(r):void 0,[n,r]);return C(_e,{children:C(sn,{title:d,children:B("span",{className:Y("inline-flex items-center",n?"cursor-pointer":"cursor-text"),children:[m,p?C("a",{href:p,target:"_blank",children:u}):u]})})})}const HE=[{useBorder:false},{useBorder:true,useBorderOnlyOnHover:true},{useBorder:true,useBorderOnlyOnHover:false}],aK=["「卡片边框」: 禁用","「卡片边框」: 仅在悬浮时显示","「卡片边框」: 总是显示"];function oNe(){return To("Shift+B",e=>{const t=ku(ot.style.videoCard,["useBorder","useBorderOnlyOnHover"]),n=HE.findIndex(s=>Mi(s,ku(t,Object.keys(s))));if(n===-1)throw new Error("unexpected curIndex = -1");const r=(n+1)%HE.length,o=HE[r];Object.assign(ot.style.videoCard,o);const i=aK[r];Wt.success({key:"hotkey-border",content:i});})}function iNe(){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=>vi[l].enabled??true).map(l=>{const u=vi[l];return {config:u,value:l,label:B("span",{className:"flex-v-center gap-x-8px",children:[u.icon,C("span",{children:u.label})]})}}),[]);return B("div",{className:On.tabPane,children:[C(co,{title:"视频链接",resetSettingPaths:["videoLinkOpenMode"],children:B("div",{className:"flex-v-center",children:["打开方式",B(vr,{useBlackBg:true,children:["选择点击视频(封面图片 或 标题)时打开的模式 ",C("br",{}),s.map(({value:l,config:u})=>!!u.desc&&B("div",{className:"mt-10px flex items-start first:mt-0",children:[B("span",{className:"inline-flex items-center",children:[u.icon,C("span",{className:"ml-4px mr-10px min-w-95px",children:u.label})]}),C("span",{className:"desc",children:u.desc})]},l))]}),C(Sc,{className:"ml-8px w-160px",options:s,value:r,onChange:l=>{ts({videoLinkOpenMode:l});}})]})}),C(co,{title:"边框样式",resetSettingPaths:["style.videoCard.useBorder","style.videoCard.useBorderOnlyOnHover","style.videoCard.useBoxShadow"],children:B("div",{className:On.settingsLine,children:[C(It,{configPath:"style.videoCard.useBorder",label:"使用卡片边框",tooltip:B(_e,{children:["勾选后, 视频卡片会有边框包裹, 更像是一个卡片~ ",C("br",{}),"整个卡片区域可点击 / 可触发预览 / 可使用右键菜单 ",C("br",{}),"否则只是封面区域可以 ",C("br",{}),"使用快捷键 ",C(ea,{k:"Shift+B"})," 切换状态 ",C("br",{}),aK.map(l=>C(ws,{color:"success",className:"mx-1",children:l},l))]})}),C(It,{configPath:"style.videoCard.useBorderOnlyOnHover",label:"仅在悬浮时显示",disabled:!o.videoCard.useBorder,tooltip:Ur("仅在悬浮时显示","常驻显示")}),C(It,{configPath:"style.videoCard.useBoxShadow",disabled:!o.videoCard.useBorder,label:"悬浮卡片时使用发光效果",tooltip:C(_e,{children:"悬浮卡片时使用发光效果, 看起来比较花哨~"})})]})}),B(co,{title:B(_e,{children:["快照预览",C(ju,{configPath:"videoCard.imgPreview.enabled",tooltip:"关闭此功能",className:"ml-3"})]}),resetSettingPaths:["videoCard.imgPreview.enabled","videoCard.imgPreview.autoPreviewWhenKeyboardSelect","videoCard.imgPreview.autoPreviewWhenHover","videoCard.imgPreview.disableWhenMultiSelecting","useDelayForHover","autoPreviewUpdateInterval"],children:[B("div",{className:On.settingsLine,children:[C(It,{disabled:!n,configPath:"videoCard.imgPreview.disableWhenMultiSelecting",label:"多选时禁用",tooltip:Ur("多选开启时, 禁用快照预览","不禁用")}),C(It,{disabled:!n,configPath:"useDelayForHover",label:"延迟悬浮预览",tooltip:"延迟悬浮预览"}),C(It,{disabled:!n,configPath:"videoCard.imgPreview.autoPreviewWhenHover",label:"自动预览: 鼠标悬浮",tooltip:B(_e,{children:[Ur("鼠标悬浮后自动开始预览, 不跟随鼠标位置","预览进度跟随鼠标位置(百分比)"),"切换设置快捷键: ",C(ea,{k:"Shift+P"})]})}),C(It,{disabled:!n,configPath:"videoCard.imgPreview.autoPreviewWhenKeyboardSelect",label:"自动预览: 键盘选中",tooltip:B(_e,{children:["手动预览快捷键: ",C(ea,{k:"."})," or ",C(ea,{k:"P"})]})})]}),B("div",{className:On.settingsLine,children:["自动预览更新间隔",C(wA,{disabled:!n,className:"w-500px",min:0,max:1e3,keyboard:true,onChange:l=>ot.autoPreviewUpdateInterval=l,value:i}),B("span",{style:{width:"65px"},children:["(",i,"ms)"]})]})]}),C(co,{title:B(_e,{children:["操作按钮",B(vr,{children:["视频卡片右上角「稍后再看」按钮旁 ",C("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:B("div",{className:"grid grid-cols-[repeat(2,max-content)_1fr] items-start gap-x-20px",children:[C(It,{configPath:"videoCard.actions.showLargePreview",label:"浮动预览",tooltip:B(_e,{children:["创意来源「浮图秀」, 但使用视频预览 ",C("br",{}),"操作说明: ",C("br",{}),"1. 鼠标悬浮打开 「浮动预览」, 离开关闭 ",C("br",{}),"2. 点击固定「浮动预览」, 固定指: 不再随鼠标移出关闭预览 ",C("br",{}),"3. 可使用以下方式关闭固定的「浮动预览」",B("ul",{className:"ml-30px list-circle",children:[C("li",{children:"再次点击视频卡片按钮"}),C("li",{children:"点击预览视频右上方的「关闭」按钮"}),C("li",{children:"触发其他卡片的「浮动预览」"}),C("li",{children:"Esc键"}),C("li",{children:"点击页面空白处"})]})]})}),C(It,{configPath:"videoCard.actions.openInPipWindow",label:"小窗打开",tooltip:C(_e,{children:"仅当「文档画中画」API 可用时, 勾选生效"})}),C(dc,{className:"grid-col-span-full my-2px py-0"}),B("div",{className:"flex flex-col",children:[C(It,{configPath:"videoCard.videoPreview.useMp4",disabled:!e,label:"浮动预览: 使用 mp4",tooltip:Ur("使用 mp4, 最高 720p, 有声音","使用 dash, 最高 1080p, 无声音, 理论上更快")}),C(It,{configPath:"videoCard.videoPreview.usePreferredCdn",disabled:!e,label:"浮动预览: 使用优选 CDN",tooltip:Ur("使用优选 CDN (降低 MCDN & PCDN 优先级)","使用默认 CDN")}),C(It,{configPath:"videoCard.videoPreview.useScale",disabled:!e,label:"浮动预览: 使用放大效果",tooltip:Ur("浮动预览面板: 放大展开 (类似浮图秀)","浮动预览面板: 滑动展开")}),C(It,{configPath:"videoCard.videoPreview.useVideoCardAsTrigger",label:"浮动预览: 使用视频卡片作为触发器",tooltip:B(_e,{children:[Ur("使用「视频卡片」作为触发器","使用「视频卡片右上角按钮」作为触发器, 悬浮视频卡片 1 秒后展开"),C(dc,{className:"my-1"}),C("ul",{className:"ml-25px list-circle",children:C("li",{children:"与上面「浮动预览」开关独立"})})]})})]}),B("div",{className:"flex flex-col",children:[C(It,{configPath:"pipWindow.defaultLocked",disabled:!t,label:"小窗: 默认锁定",tooltip:Ur("小窗打开时: 默认锁定","小窗打开时: 不锁定")}),C(It,{configPath:"pipWindow.autoWebFullscreen",disabled:!t,label:"小窗: 自动网页全屏",tooltip:Ur("自动网页全屏","不启用")})]})]})})]})}function sNe(){const e=iW().id,t=VR(e),{colorPickerThemeSelectedColor:n}=Ft(),[r,o]=f.useState(n||Yf.Pink),i=f.useMemo(()=>typeof r=="string"?r:r.toHexString(),[r]);return ho(()=>{Mg.updateThrottled();}),C("div",{children:oW.map(({name:s,themes:l,tooltip:u})=>B(f.Fragment,{children:[B("div",{className:"mt-2 flex items-center text-size-1.5em",children:[s,C(vr,{className:"size-16px",useBlackBg:true,children:u})]}),C("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=C("div",{"data-role":"preview-wrapper",style:{width:y},className:Y("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:C("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&&C(Up,{size:18,useAnimation:g})})});d.isCustom&&(S=C(EA,{value:r,onChange:w=>o(w),onOpenChange:w=>{w||ts({colorPickerThemeSelectedColor:i});},children:S}));let x=B("div",{className:"min-w-60px cursor-pointer text-center",onClick:w=>{ts({theme:d.id});},children:[S,d.name]});return (d.tooltip||AL[d.id])&&(x=C(sn,{title:B(_e,{children:[d.tooltip,AL[d.id]]}),color:d.colorPrimary,children:x})),x=C(f.Fragment,{children:x},d.id),x})})]},s))})}function aNe(e,t,n){return To(e,r=>{const i=!!!tr(ot,t);Kf(ot,t,i),Wt.success({content:`已${i?"启用":"禁用"}「${n}」`,key:`hotkey-${e}`});})}const lNe="basic",gk=Dn({tab:lNe});function cNe(){return aNe("Shift+P","videoCard.imgPreview.autoPreviewWhenHover","自动预览: 鼠标悬浮"),oNe(),null}const uNe={name:"4k370z",styles:"&.ant-tabs{.ant-tabs-tab{justify-content:end;padding-inline:5px 15px;}.ant-tabs-nav-operations{display:none;}}"};function dNe({show:e,onHide:t}){const{tab:n}=gt(gk);return B(jg,{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:[B("div",{className:ko.modalHeader,children:[B("div",{className:ko.modalTitle,children:[C(SR,{className:"mr-4px mt--2px size-26px"}),"设置"]}),C(Ug,{onClick:t})]}),C("main",{className:ko.modalBody,style:{overflow:"hidden"},children:C(bA,{tabPlacement:"start",size:"middle",css:uNe,activeKey:n,onChange:r=>gk.tab=r,items:[{label:"常规设置",key:"basic",children:C(b6e,{})},{label:"视频卡片",key:"video-card",children:C(iNe,{})},{label:"内容过滤",key:"filter",children:C(M6e,{})},{label:"主题选择",key:"theme-select",children:C("div",{className:On.tabPane,children:C(sNe,{})})},{label:"Tab 设置",key:"video-source-tab-config",children:C(Z6e,{})},{label:"其他页面",key:"other-pages",children:C(N6e,{})},{label:"高级设置",key:"advance",children:C(e3e,{})}]})})]})}const fNe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"m19 12l12 12l-12 12"})]}),lK=f.forwardRef(fNe);function mNe({children:e,initialOpen:t=false,ref:n}){const[r,o]=XU(t);f.useImperativeHandle(n,()=>o,[o]);const i=C(ct,{onClick:o.toggle,className:"icon-only-round-button",children:C(lK,{className:Y("size-13px",r?"rotate-z-0":"rotate-z-180deg")})});return B(_e,{children:[i,r&&e]})}var NM=new Map,Xb=new WeakMap,vk=0,hNe;function pNe(e){return e?(Xb.has(e)||(vk+=1,Xb.set(e,vk.toString())),Xb.get(e)):"0"}function gNe(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?pNe(e.root):e[t]}`).toString()}function vNe(e){const t=gNe(e);let n=NM.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},NM.set(t,n);}return n}function bNe(e,t,n={},r=hNe){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}=vNe(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(),NM.delete(o));}}function yNe({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,x]=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=bNe(p,(A,I)=>{const N=y.current;y.current=A,!(N===void 0&&!A)&&(x({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,x({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 bk(e){return !f.Children.toArray(e.props?.children).length}function SNe(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 Zl(e){const[t,n,r]=SNe(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 PM(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 cK({src:e,avif:t,webp:n,imgProps:r,className:o,...i}){return t??=!Og,n??=true,B("picture",{className:or("h-full w-full object-cover",o),...i,children:[t&&C("source",{srcSet:`${e}.avif`,type:"image/avif"}),n&&C("source",{srcSet:`${e}.webp`,type:"image/webp"}),C("img",{src:e,loading:"lazy",className:"block h-full w-full",...r})]})}const DS=HH();function CNe(e){const t=gt(DS);return e?t.get(e):void 0}function xNe(e){DS.delete(e);}function B6(e){if(Xa(e))return e.param;if(pc(e))return e.id.toString()}const wNe=typeof unsafeWindow<"u"?unsafeWindow:globalThis,z6=(e,t)=>{oc(()=>wNe[e]=t);},ENe=`${WM}_gridItems`;function $Ne(e){const t=e.filter(n=>n.api!==Ze.Separator);CTe(t),z6(ENe,t);}const MNe={getGenericCardDatas:u6,copyBvidsSingleLine:d6,copyBvidInfos:m6};setTimeout(()=>{Object.entries(MNe).forEach(([e,t])=>{z6(`${WM}_${e}`,t);});});function TNe(e){const{enabled:t,keywords:n}=gt(ot.filter.byAuthor),{blockUpMids:r}=f.useMemo(()=>$M(n),[n]);return e?t&&r.has(e):false}var Qb={},Io={},VE={exports:{}},yk;function ANe(){return yk||(yk=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;})(VE)),VE.exports}var Sk;function RNe(){if(Sk)return Io;Sk=1;var e=Bg();Object.defineProperty(Io,"__esModule",{value:true}),Io.isUndef=Io.isString=Io.isObject=Io.isNumber=Io.isFunction=Io.isBoolean=void 0;var t=e(ANe());return Io.isObject=function(r){return r!==null&&(0, t.default)(r)==="object"},Io.isFunction=function(r){return typeof r=="function"},Io.isString=function(r){return typeof r=="string"},Io.isBoolean=function(r){return typeof r=="boolean"},Io.isNumber=function(r){return typeof r=="number"},Io.isUndef=function(r){return typeof r>"u"},Io}var jE={},Ck;function NNe(){return Ck||(Ck=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;})(jE)),jE}var xk;function PNe(){if(xk)return Qb;xk=1;var e=Bg();Object.defineProperty(Qb,"__esModule",{value:true}),Qb.getTargetElement=r;var t=RNe(),n=e(NNe());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 Qb}var uK=PNe();async function INe(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 Qt.get("/x/player/wbi/playurl",{params:o})).data;function u(p){return CM(p,[g=>ONe(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 CM(l.data?.dash?.video||[],["id","codecid"],["desc","desc"]).map(p=>u([p.baseUrl,...p.backupUrl||[]])[0]).filter(Boolean)}function ONe(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 F6(e){return !!(e?.image?.length&&e?.index?.length)}function wk(e){return jn(e)?F6(e.data):true}async function DNe(e){const n=(await Qt.get("/x/player/videoshot",{params:{bvid:e,index:"1"}})).data;return jn(n)||Bo("videoshot error for %s: %o",e,n),F6(n.data)||Bo("videoshot data invalid bvid=%s: %o",e,n.data),n}const UE=new h6({maxSize:1e4}),_Ne=sl(async e=>{if(UE.has(e)){const s=UE.get(e);if(s)return s}const t=5,n=200;let r=0,o;do{if(r++,o=await DNe(e),wk(o))break;await gn(n);}while(r<t);wk(o)&&UE.set(e,o);const i=o.data;if(ot.videoCard.imgPreview.autoPreviewWhenHover){const s=i?.image||[];await ck(s[0]),(async()=>{for(const l of s.slice(1))await ck(l);})();}return o}),LNe=po.extend("VideoCard:services");function dK(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:Mc()}),i=(await Qt.post(`/x/v2/history/toview/${e}`,r)).data,s=jn(i);return s||tn(i?.message||"出错了"),s}}const IM=dK("add"),kNe=dK("del");async function BNe(e){return {videoshotJson:await _Ne(e)}}function zNe(e){return F6(e?.videoshotJson?.data)}const FNe=e=>!!e?.playUrls?.length,Ek=new h6({maxSize:1e4,maxAge:Qr("1h")}),HNe=sl(async({bvid:e,cid:t,useMp4:n,usePreferredCdn:r,aspectRatioFromItem:o})=>{const i=JSON.stringify([e,n,r]),s=Ek.get(i);if(s)return s;let l;if(t===void 0||o===void 0){const m=await XW(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 f1(()=>INe(e,t,n,r));if(LNe("playUrl: bvid=%s cid=%s %s",e,t,d),u)throw ys.error({title:"获取视频播放地址失败",description:u.message||u}),u;return d?.length&&Ek.set(i,{playUrls:d,dimension:l}),{playUrls:d??void 0,dimension:l}}),WE=po.extend("large-preview:LargePreview"),fK={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 VNe(e){return e?.closest(J3(Jl,"bili-video-card"))?.querySelector(J3(RB,"bili-video-card__image"))?.getBoundingClientRect()}const jNe=f.memo(function({children:t,aspectRatio:n=1.7777777777777777,cardDescendantTarget:r,ref:o,...i}){const s=gS(o),[l,u]=f.useState(false),[d,m]=f.useState(void 0);WE("render state: %o",{visible:l,position:d});const p=rt(()=>{u(false),m(void 0);}),g=rt(()=>{const E=VNe(uK.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 te=n,ne=1,re=J.width/te,ie=J.height/ne;return {scale:Math.min(re,ie),scaleLimit:re>ie?"height":"width"}},P=ka(Object.entries(I).map(([J,te])=>({direction:J,bbox:te,...N(te)})),["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];WE("picked direction",P);const{direction:O,bbox:D,scale:_,scaleLimit:H}=P;let U,W;if(H==="width")U=Math.floor(D.width-(So.card+So.border)),W=U/n;else if(H==="height")W=Math.floor(D.height-(So.card+So.border)),U=W*n;else throw new Error("unexpected scaleLimit");let z=0,L=0,G=0,j=0;const K=()=>{G=E.y+E.height/2-L;},X=()=>{j=E.x+E.width/2-z;},k=()=>{if(z<So.border){z=So.border;return}if(z+U>M-So.border){z=M-So.border-U;return}},V=()=>{if(L<So.border){L=So.border;return}if(L+W>T-So.border){L=T-So.border-W;return}};switch(O){case "top":z=E.x+E.width/2-U/2,L=E.top-So.card-W,k(),X();break;case "bottom":z=E.x+E.width/2-U/2,L=E.bottom+So.card,k(),X();break;case "right":z=E.right+So.card,L=E.y+E.height/2-W/2,V(),K();break;case "left":z=E.left-So.card-U,L=E.y+E.height/2-W/2,V(),K();break}z=Math.floor(z),L=Math.floor(L);const Q={direction:O,elWidth:U,elHeight:W,elPosX:z,elPosY:L,arrowTop:G,arrowLeft:j};WE("updating state to: visible: ✅, position: %o ",Q),u(true),m(Q);}),b=f.useMemo(()=>ca(g,100),[g]);ho(g),Ms("resize",b,{target:window}),Ms("scroll",b,{target:window});const{useScale:y}=Ft().videoCard.videoPreview,S=y?.2:.3,x=f.useMemo(()=>{const E=d?.direction;if(!E)return;const{axis:M,multiplier:T,reverse:A}=fK[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 C("div",{...i,ref:s,className:Y("fixed",jCe,l?"block":"hidden"),css:d&&un("width:",d.elWidth,"px;height:",d.elHeight,"px;top:",d.elPosY,"px;left:",d.elPosX,"px;",""),children:l&&B(vR.div,{className:"relative h-100%",initial:{opacity:0,...x},animate:{opacity:1,x:0,y:0,scale:1},transition:{bounce:0,duration:S},children:[d?.direction&&C(UNe,{size:7,direction:d.direction,arrowTop:d.arrowTop,arrowLeft:d.arrowLeft}),C("div",{className:"h-full overflow-hidden rounded-20px bg-white/50% backdrop-blur-10px",css:un("box-shadow:0px 0px 1px 1px ",ns,";",""),children:t})]})})});function UNe({size:e,direction:t,arrowTop:n,arrowLeft:r}){const{axis:o,multiplier:i,reverse:s}=fK[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 C("div",{className:"absolute box-content h-0 w-0",css:[un("border:",e,"px solid transparent;",""),l,un`
          border-${t}-color: ${ns};
        `,"",""]})}const ef=await( _A({volume:void 0,muted:void 0},"large-preview-store")),WNe=function({currentTimeRef:e,ref:t,...n}){const r=gS(t),o=f.useRef(false);ho(()=>{r.current&&(typeof e.current=="number"&&(r.current.currentTime=e.current),typeof ef.volume=="number"&&(r.current.volume=ef.volume),typeof ef.muted=="boolean"&&(r.current.muted=ef.muted)),o.current=true;});const i=rt(()=>{o.current&&(e.current=r.current?.currentTime);}),s=rt(()=>{o.current&&r.current&&(ef.volume=r.current.volume,ef.muted=r.current.muted);});return C("video",{ref:r,...n,onTimeUpdate:i,onVolumeChange:s})},GNe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),qNe=f.forwardRef(GNe),KNe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,children:[C("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"}),C("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"})]})]}),YNe=f.forwardRef(KNe);function $k(e){e.current!==void 0&&(clearTimeout(e.current),e.current=void 0);}const Zb=aZ.extend("large-preview:trigger");function mK({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(ot.videoCard.videoPreview),x=Zl(void 0),w=dS(async()=>{if(!e||FNe(x.val))return;const ee=await HNe({bvid:i,cid:s,useMp4:b,usePreferredCdn:S,aspectRatioFromItem:m});x.set(ee);});Ya(()=>{x.set(void 0);},[b,S]);const E=$s(w,{manual:true,loadingDelay:100}),[M,T]=f.useState(false),A=Zl(void 0),I=Zl(void 0),N=Zl(void 0),P=PM({}),O=rt(()=>N.val?Date.now()-N.val<1200:false),D=f.useRef(void 0),_=f.useRef(void 0),H=rt(()=>{$k(D),$k(_);}),U=rt((ee,ae)=>{Zb("%s: showBy %s %s",i,ee,ae),T(true),A.set(ee),I.set(ae),u.emit("show-large-preview",l),N.set(void 0);}),W=rt((ee=true)=>{ee&&Zb("%s: hide",i),T(false),A.set(void 0),I.set(void 0),N.set(Date.now());});ao(u,"show-large-preview",({data:ee})=>{ee!==l&&(H(),W(false));});const z=rt(ee=>{if(Zb("%s: onMouseEnter %s",i,ee),P.set({...P.val,[ee]:true}),A.val==="click")return;E.run(),H();let ae=0;ee==="video-card-action-button"&&(ae=200),ee==="video-card"&&(ae=1e3),ae?D.current=setTimeout(()=>U("hover",ee),ae):U("hover",ee);}),L=rt(ee=>{if(Zb("%s: onMouseLeave %s",i,ee),P.set({...P.val,[ee]:false}),A.val==="click")return;const ae=()=>{P.val.popover||P.val["video-card-action-button"]||W();};H(),ee==="video-card-action-button"||ee==="video-card"||ee==="popover"?_.current=setTimeout(ae,250):ae();}),G=rt(ee=>{H(),A.val==="click"?W():U("click",ee);}),j=rt(()=>{if(Q.current)return Math.floor(Q.current)}),K=rt(()=>!!(M||O())),X=rt(()=>{if(!i)return;const ee=new URL(`https://${Ka.Main}/video/${i}`),ae=j();ae&&ee.searchParams.set("t",ae.toString()),yi(ee.href),V.current?.pause(),W();}),k=f.useMemo(()=>l6({dimensionFromApi:x.state?.dimension})?.aspectRatio??m,[x.state?.dimension]),V=f.useRef(null),Q=f.useRef(void 0),J=f.useRef(null),te=M&&!!x.state?.playUrls?.length;let ne;{const ee=f.useCallback(()=>z("popover"),[z]),ae=f.useCallback(()=>L("popover"),[L]);ne=te&&B(jNe,{ref:J,aspectRatio:k,onMouseEnter:ee,onMouseLeave:ae,cardDescendantTarget:d,children:[C(WNe,{ref:V,currentTimeRef:Q,autoPlay:true,controls:true,loop:true,poster:p,className:"size-full object-contain",children:x.state?.playUrls?.map((ce,se)=>C("source",{src:ce},se))}),B("div",{className:"absolute right-10px top-10px flex flex-row-reverse items-center justify-start gap-x-5px",children:[A.state==="click"?C(ta,{inlinePosition:"right",icon:C(QMe,{className:"size-14px"}),tooltip:"关闭",onClick:ce=>{ce.preventDefault(),ce.stopPropagation(),W();}}):C(ta,{inlinePosition:"right",icon:C(qNe,{className:"size-14px"}),tooltip:"固定",onClick:ce=>{ce.preventDefault(),ce.stopPropagation(),G("popover-action-button");}}),C(ta,{inlinePosition:"right",icon:C(RG,{className:"size-14px"}),tooltip:"新窗口打开",onClick:ce=>{ce.preventDefault(),ce.stopPropagation(),X();}})]})]});}let re;{const ee=f.useCallback(()=>z("video-card-action-button"),[z]),ae=f.useCallback(()=>L("video-card-action-button"),[L]),ce=f.useCallback(se=>{se.preventDefault(),se.stopPropagation(),G("video-card-action-button");},[G]);re=t&&e&&C(ta,{css:o,...r,visible:n,active:te,inlinePosition:"right",icon:E.loading?C(Xj,{className:"size-16px"}):C(YNe,{className:"size-15px"}),tooltip:A.state==="click"&&M?"关闭浮动预览":"浮动预览",onMouseEnter:ee,onMouseLeave:ae,onClick:ce});}To("Escape",W,{conflictBehavior:"allow"}),zEe(()=>W(),[J,()=>uK.getTargetElement(d)?.closest(J3(Jl,"bili-video-card"))]),Ms("fullscreenchange",()=>{document.fullscreenElement&&(!M||A.val==="click"||document.fullscreenElement===V.current&&U("click","popover-video-fullscreen-button"));},{target:document});const ie=f.useRef(null),ue=g||ie;return Ms("mouseenter",()=>{!y||!g||z("video-card");},{target:ue}),Ms("mouseleave",()=>{!y||!g||L("video-card");},{target:ue}),{largePreviewActionButtonEl:re,largePreviewEl:ne,getLargePreviewCurrentTime:j,shouldUseLargePreviewCurrentTime:K,largePreviewVisible:M,hideLargePreview:W}}const XNe=t3e(ns,.1),qi={normalBorder:un("border-color:",FU,";",""),activeBorder:un("border-color:",ns,";box-shadow:0px 0px 9px 4px ",XNe,";",""),rounded:un("border-radius:",zR,";",""),bgLv1:un("background-color:",K0,";",""),coverZoomEffect:{name:"dj03ws",styles:".bili-video-card__cover{transform-origin:center center;transition:transform 0.2s ease-out;transform:scale(1.05);}"}},QNe=un(qi.activeBorder," &:hover{",qi.activeBorder,";}","");function ZNe(e){const t=`--${Kr}--separator-color`;return f.useMemo(()=>{if(e)return un`
      ${qi.rounded}
      ${qi.normalBorder}

      background-color: ${eM};
      ${t}:  ${K0};
      &:hover {
        background-color: ${K0};
        ${t}: ${qwe};
      }

      /* disable padding */
      margin-inline: 0;
      .bili-video-card__wrap {
        padding: 0;
      }
    `},[e])}var JNe={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 ePe(){const{useDelayForHover:e,style:{videoCard:{useBorder:t,useBorderOnlyOnHover:n,useBoxShadow:r}}}=Ft(),{multiSelecting:o}=gt(zn),i=C3e();return f.useMemo(()=>[JNe,(o||t&&!i)&&[un("cursor:pointer;",qi.rounded," &:hover{",qi.bgLv1," ",qi.normalBorder," ",r&&qi.activeBorder," ",e&&qi.coverZoomEffect,";}",""),(o||!n)&&qi.normalBorder]],[t,n,r,e,i,o])}function tPe(e){return e&&[qi.rounded,qi.activeBorder]}function hK(e){const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const o=await Dg.safeGet(qM+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 Eo(o.error);const s=o.value.data;let l=s?.message;return jn(s)?bs(l):(l||=KM,l+=`(code: ${s?.code})`,l+=`
请重新获取 access_key 后重试`,Eo(new oS(s,l)))}}const nPe=hK("dislike"),rPe=hK("cancel");function pK(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 q3(Qt.post,Y3)(t,o);if(i.isErr())return Eo(i.error);const s=i.value.data;return jn(s)?bs(s?.message):Eo(new oS(s))}}const oPe=pK("dislike"),iPe=pK("cancel");function gK(e){return async function(t,n){const{reasonId:r}=g6(n);let o;if(n.platform==="app"?(Nr(Xa(t),"expect app recommend"),o=await(e==="dislike"?nPe:rPe)(t,r)):n.platform==="pc"?(Nr(pc(t),"expect pc recommend"),o=await(e==="dislike"?oPe:iPe)(t,r)):ym(n),o.isErr()){const s=o.error;console.error(s?.stack||s);const l=s?.message;return Wt.error(l,8),false}const i=B6(t);return Nr(i,"dislikeKey should not be empty"),e==="dislike"&&(Wt.success("已标记不想看"),DS.set(i,{...n})),e==="cancel"&&(Wt.success("已撤销"),xNe(i)),true}}const sPe=gK("dislike"),aPe=gK("cancel"),lPe="_skeleton-active_wlycr_12";function cPe(e,t){const[n,r]=f.useState(void 0),[o,i]=f.useState(void 0),[s,l]=f.useState(void 0),u=rt(async()=>{if(!t)return;const{enable:d}=vK(e.api);if(!(d||Wu(e)&&e.from==="fav-folder"))return;const m=await Uu.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 vK(e){const t=![Ze.Separator,Ze.Live,Ze.Fav].includes(e),n=e===Ze.Watchlater||e===Ze.Liked;return {enable:t,enableDetailMenu:n}}function uPe(e,t,n){if(!n)return;const{enable:r,enableDetailMenu:o}=vK(t.api);if(!r)return;const i=e.folderNames??[],s=e.folderUrls??[],l=e.folderIds??[],u=Ci([{key:"quick-fav:faved:modify-fav",icon:C(SCe,{className:Y(An,"color-gate-primary")}),label:`已收藏在 ${(i||[]).map(p=>`「${p}」`).join("")}`,async onClick(){Nr(l.length,"folderIds.length should not be empty"),await r1(l,p=>y6(n,l,p));}},{test:o,key:"quick-fav:faved:browse-fav-folder-in-self-space",icon:C($o,{className:An}),label:"去个人空间查看收藏夹",onClick(){s.forEach(p=>{window.open(p,Uy());});}}]),d=Ci([{key:"quick-fav:unfaved:add-fav",icon:C(Hf,{className:An}),label:"收藏到",async onClick(){await GAe(async p=>{const g=await Uu.addFav(n,p.id);return g&&Wt.success(`已加入收藏夹「${p.title}」`),g});}},{test:o,key:"quick-fav:unfaved:add-fav-to-default-folder",icon:C(Hf,{className:An}),label:"收藏到「默认收藏夹」",async onClick(){await Uu.addFav(n)&&Wt.success(`已加入收藏夹「${fM}」`);}}]);return !!i.length?u:d}function dPe({ctx:e,item:t,cardData:n,tab:r,multiSelecting:o,multiSelectingAppendix:i,onRemoveCurrent:s,recSharedEmitter:l}){if(!Wu(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:C(XH,{className:An}),async onClick(){if(!zn.multiSelecting)return;const p=$S().filter(w=>Wu(w)&&w.from==="fav-folder").toReversed(),g=new Set(p.map(w=>w.folder.id));if(!g.size)return tn("至少选择一项视频");if(g.size>1)return tn("多选移动: 只能批量移动同一源收藏夹下的视频");const b=p[0].folder.id,y=p.map(w=>`${w.id}:${w.type}`),S=p.map(w=>w.uniqId),x=p.map(w=>w.title);await r1([t.folder.id],async w=>{Nr(w,"targetFolder should not be empty");const E=await Uu.moveFavs(y,b,w.id);if(E)return Wy(t.folder.id),Wy(w.id),l.emit("remove-cards",[S,x,true]),Wt.success(`已移动 ${S.length} 个视频到「${w.title}」收藏夹`),E},false);}}]:[];return Ci([{key:"fav:browse-fav-folder-in-self-space",label:"去个人空间查看收藏夹",icon:C($o,{className:An}),onClick(){const{id:p}=t.folder,g=n6(p);window.open(g,Uy());}},{key:"fav:view-fav-in-new-window",label:"在新窗口中查看收藏夹",icon:C($o,{className:An}),onClick(){const{id:p}=t.folder,g=`/?${eg.FolderIdFull}=${p}`;window.open(g,Uy());}},{test:!!u,key:"modify-fav",icon:C(CR,{className:An}),label:"编辑收藏",async onClick(){await r1(d,async p=>{const g=await y6(u,d,p);return g&&p?.id!==t.folder.id&&s?.(t,n,true),g},false);}},{key:"remove-fav",label:"移除收藏",icon:C(mm,{className:An}),async onClick(){if(!await zA.confirm({centered:true,title:"移除收藏",content:B(_e,{children:["确定将视频「",t.title,"」",C("br",{}),"从收藏夹「",t.folder.title,"」中移除?"]})}))return;const g=`${t.id}:${t.type}`;await Uu.removeFavs(t.folder.id,g)&&(Wy(t.folder.id),s?.(t,n));}},...m])}return t.from==="fav-collection"?Ci([{key:"open-fav-collection",label:"浏览合集",icon:C($o,{className:An}),onClick(){const{id:m}=t.collection,p=r!==nt.Fav||pn.selectedKey==="all"&&pn.usingShuffle?`/?${eg.CollectionIdFull}=${m}`:UW(m);window.open(p,Uy());}}]):[]}const fPe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:4,children:[C("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"}),C("path",{strokeLinejoin:"round",d:"M31 30h12m-28-8l7 7l19-18m-4 13v12"})]})]}),mPe=f.forwardRef(fPe),hPe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",children:[C("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M19 20a7 7 0 1 0 0-14a7 7 0 0 0 0 14Z"}),C("path",{d:"M30 35h12z",clipRule:"evenodd"}),C("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"})]})]}),pPe=f.forwardRef(hPe),gPe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",children:[C("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"}),C("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"}),C("path",{stroke:"currentColor",strokeWidth:2,d:"m5 2l16 16"})]})]}),Mk=f.forwardRef(gPe),An="size-16px";function vPe(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:x,authorName:w,authorMid:E}=n,{watchlaterItemsOrder:M,filter:{dfHideOpusMids:{enabled:T}},dynamicFeed:{whenViewAll:{enableHideSomeContents:A}}}=Ft(),I=M===Mo.AddTimeAsc?"end":"start",N=M===Mo.AddTimeAsc?"移到最后":"移到最前",{recSharedEmitter:P}=rs(),O=rt(()=>{let se=S;S.startsWith("/")&&(se=new URL(S,location.href).href),Pu(se);}),D=!!E&&yq(t.api)&&r!==nt.KeepFollowOnly,_=rt(async()=>{if(!E)return Wt.error("UP mid 为空!");await ZW.add(E)&&Wt.success(`已加入黑名单: ${w}`);}),H=rt(async()=>{if(!E)return Wt.error("UP mid 为空!");const se=`${E}`;if(ot.filter.byAuthor.keywords.includes(se))return tn(`已在过滤名单中: ${se}`);await Ga("filter.byAuthor.keywords",{add:[se]}),w&&BE(E,w),Wt.success(`已加入过滤名单: ${w||E}`);}),U=Qi(n.followed)?r===nt.DynamicFeed&&Kp(t)||r===nt.Live&&Kp(t)?true:Xa(t)||pc(t)?w6(x):false:n.followed,W=U,z=rt(async()=>{if(!E||!await zA.confirm({centered:true,title:"取消关注",content:B(_e,{children:["确定取消关注「",w,"」?"]})}))return;await wAe.unfollow(E)&&Wt.success("已取消关注");}),L=!!E&&!!w,G=rt(()=>{E&&yi(`/?${Si.Mid}=${E}`);}),j=rt(()=>{E&&yi(`/?${Gi.Mid}=${E}`);}),K=A&&gf(t)&&en.selectedKey===Xp&&!!E,X=rt(async()=>{K&&(await Ga("dynamicFeed.whenViewAll.hideIds",{add:[Gf+E]}),BE(E,w||""),Wt.success(`在「全部」动态中隐藏【${w}】的动态`));}),k=T&&gf(t)&&t.modules.module_dynamic.major?.type===Qo.MajorType.Opus&&!!E,V=rt(async()=>{if(!E)return Wt.error("UP mid 为空!");const se=`${E}`;if(ot.filter.dfHideOpusMids.keywords.includes(se))return tn(`已在过滤名单中: ${se}`);await Ga("filter.dfHideOpusMids.keywords",{add:[se]}),w&&BE(E,w),Wt.success(`已屏蔽【${w||E}】的图文动态`);}),Q=!!(gf(t)&&gc&&en.viewingSomeUp&&E),J=f.useMemo(()=>Q&&{label:"动态: 从此项开始查看",key:"动态: 从此项开始查看",icon:C(D_,{className:An}),onClick(){const se=new URL("/",location.href);se.searchParams.set(Si.Mid,E);const $e=Za().findIndex(pe=>pe.api===Ze.DynamicFeed&&pe.id_str===t.id_str),le=Za()[$e-1]?.id_str||t.id_str;se.searchParams.set(Si.Offset,le),yi(se.href);}},[Q,t,E]),te=f.useMemo(()=>Q&&{icon:C(hCe,{className:An}),label:"动态: 从此项开始截止",key:"动态: 从此项开始截止",onClick(){const se=new URL("/",location.href);se.searchParams.set(Si.Mid,E),se.searchParams.set(Si.MinId,t.id_str),yi(se.href);}},[Q,t,E]),ne=f.useMemo(()=>xM&&pM(t)&&!!t.page&&{key:"space-upload-view-start-from-here",label:`投稿: 从此页开始查看 (当前第${t.page}页)`,icon:C(D_,{className:An}),onClick(){const se=new URL(location.href);se.searchParams.set(Gi.InitialPage,t.page.toString()),yi(se.href);}},[xM,t]),re=gf(t)||pM(t)?t.groupId:void 0,ie=re!==void 0,ue=gt(en.groups),ee=re!==void 0?ue.find(se=>se.tagid===re):void 0,ae=ee?.name,ce=ee?.count;return f.useMemo(()=>{const{watchlaterAdded:se,hasWatchlaterEntry:$e,onToggleWatchlater:le}=i,pe={type:"divider"},be=p?" (多选)":"",Ee=Ci([{key:"copy-link",label:`复制视频链接${be}`,icon:C(Nu,{className:An}),onClick(){zn.multiSelecting?ETe():O();}},{test:!!b,key:"copy-bvid",label:`复制 BVID${be}`,icon:C(Nu,{className:An}),onClick(){zn.multiSelecting?d6():Pu(b);}},{test:!!b&&ot.__internalEnableCopyBvidInfo,key:"copy-bvid-info",label:`复制 BVID 信息${be}`,icon:C(Nu,{className:An}),onClick(){zn.multiSelecting?m6():Pu(f6(n));}},{test:!!y,key:"view-cover",label:"查看封面",icon:C($o,{className:An}),onClick(){if(!y)return;yi(y);}}]),Te=Ci([{test:L&&U,key:"查看「投稿」与「动态」的区别",label:"查看「投稿」与「动态」的区别",icon:C($o,{className:An}),onClick:()=>yi("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:L,key:"查看 UP 的投稿",label:"查看 UP 的投稿",icon:C(j0,{className:An}),onClick:j},ne,{test:L&&U,key:"查看 UP 的动态",label:"查看 UP 的动态",icon:C(V0,{className:An}),onClick:G},te,J,...L&&ie?Ci([{type:"divider"},{test:L&&ie&&(ce===void 0||ce<=30),key:"查看分组的投稿",label:"查看分组的投稿",icon:C(j0,{className:An}),onClick:()=>yi(`/?${Gi.GroupId}=${re}`)},{test:L&&ie,key:"查看分组的动态",label:"查看分组的动态",icon:C(V0,{className:An}),onClick:()=>yi(`/?${Si.GroupId}=${re}`)},{type:"divider"}]):[],{test:$e,key:"watchlater",label:se?"移除稍后再看":"稍后再看",icon:se?C(mm,{className:An}):C(wR,{className:An}),onClick(){le();}},{test:$e&&se,key:"watchlater-readd",label:`重新添加稍候再看${r===nt.Watchlater?` (${N})`:""}`,icon:C(mPe,{className:An}),async onClick(){const{success:ge}=await le(void 0,IM);ge&&(Wt.success("已重新添加"),r===nt.Watchlater&&P.emit("move-card-to",[t.uniqId,I]));}},...uPe(o,t,g)??[]]),Ye=Ci([{test:s,key:"dislike",label:"我不想看",icon:C(yR,{width:15,height:15}),onClick(){l();}},{test:W,key:"unfollow-up",label:"取消关注",icon:C(pPe,{className:An}),onClick:z},{test:K,key:"hasEntry_addMidTo_dynamicFeedWhenViewAllHideIds",label:"在「全部」动态中隐藏 UP 的动态",icon:C(Mk,{className:An}),onClick:X},{test:k,key:"hide-up-opus-dynamic",label:"屏蔽此 UP 的图文动态",icon:C(Mk,{className:An}),onClick:V},{test:D,key:"blacklist-up",label:"将 UP 加入黑名单",icon:C(W3,{className:An}),onClick:_},{test:D,key:"add-up-to-filterlist",label:"将 UP 加入过滤列表",icon:C(W3,{className:An}),onClick:H}]),Re=dPe({ctx:o,item:t,cardData:n,tab:r,multiSelecting:p,multiSelectingAppendix:be,onRemoveCurrent:u,recSharedEmitter:P});return Ci([...d,!!Ee.length&&pe,...Ee,!!Te.length&&pe,...Te,!!Ye.length&&pe,...Ye,!!Re.length&&pe,...Re,!!m.length&&pe,...m])},[t,n,r,i,o,s,W,D,L,K,k,d,m,p,re,ie,ae,ce,P,u])}function Uh(e){if(e.altKey)return e.stopPropagation(),true}const rg=Ec(()=>Date.now()),bPe=(Xn().add(1,"minute").startOf("minute").valueOf()-rg.get())%3e4;setTimeout(()=>{rg.update(),setInterval(rg.update,3e4);},bPe);document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&rg.update();});const yPe=f.memo(function({ts:t}){return t?mMe(t)?C(SPe,{ts:t}):C(bK,{ts:t}):null});function bK({ts:e}){return f.useMemo(()=>hMe(e),[e])}function SPe({ts:e}){const t=rg.use();return C(bK,{ts:e},t)}const CPe=Y(cZ,"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"),xPe=Y("line-clamp-2 mt-10px h-auto whitespace-normal"),wPe=un("background-color:oklch(from ",ns," calc(l * 0.1 + 0.88) calc(c * 0.25) h);",LU," &{background-color:oklch(from ",ns," calc(l * 0.3 + 0.175) calc(c * 0.25) h);}",""),EPe=un("color:",ns,";border-radius:2px;border:1px ",ns," solid;line-height:20px;padding:0 10px;transform:scale(0.8);transform-origin:center left;",""),Jb={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 $Pe={name:"15xw6zv",styles:"display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis;max-width:100%"},MPe={name:"feo88y",styles:".bili-video-card .bili-video-card__info--tit>a&{font-family:inherit;font-weight:initial;}"},TPe={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 yK=f.memo(function({item:e,cardData:t,handleVideoLinkClick:n,className:r,gridDisplayMode:o}){const{useBorder:i}=gt(ot.style.videoCard),s=Sm(),l=t6(o),{goto:u,href:d,title:m,titleRender:p,pubts:g,pubdateDisplay:b,pubdateDisplayForTitleAttr:y,recommendReason:S,authorName:x,authorFace:w,authorMid:E,appBadge:M,appBadgeDesc:T,rankingDesc:A,liveExtraDesc:I}=t,N=u==="av",P=E?Yg(E):d,O=e.api===Ze.Live&&e.live_status===Qs.Streaming,{data:D}=$s(()=>GRe(e,t),{refreshDeps:[e,t]}),_=f.useMemo(()=>{if(N&&(x||g||D||b||y)){let W;return g||D?W=Xn.unix(g||D).format("YYYY年M月D日 HH:mm"):W=b,[x,y||W].filter(Boolean).join(" · ")}},[N,x,g,D,b,y]),H=or(CPe,l&&xPe);return B("div",{className:Y(l?"pt-5px":"pt-15px","flex gap-x-5px overflow-hidden px-5px",i?"mb-10px":"mb-5px",r),children:[!!E&&B("a",{href:P,target:s,className:Y("relative flex-center self-start rounded-full p-1px ring-1px",O?"ring-gate-primary":"ring-gate-border"),children:[w?C(wu,{src:E6(w)}):C(wu,{children:x?.[0]||T?.[0]||""}),O&&C(xR,{active:true,className:"absolute bottom-0 right-0 size-12px rounded-full bg-gate-primary"})]}),B("div",{className:"ml-5px flex flex-1 flex-col gap-y-4px overflow-hidden",children:[C("h3",{className:"bili-video-card__info--tit",title:m,css:TPe,children:C("a",{onClick:n,onContextMenu:Uh,href:d,target:s,rel:"noopener",css:MPe,children:p??m})}),U()]})]});function U(){const W=!!S&&C("div",{title:S,css:wPe,className:H,children:S}),z=()=>{let L;return g||D?L=C(yPe,{ts:g||D}):b&&(L=b),B(_e,{children:[B("a",{className:"bili-video-card__info--owner",href:P,target:s,title:_,css:Jb,onContextMenu:Uh,children:[C("span",{className:"bili-video-card__info--author",children:x}),!!L&&B("span",{className:"bili-video-card__info--date",children:[x6,L]})]}),W]})};return N?z():M||T?B("a",{className:"bili-video-card__info--owner",css:Jb,href:d,target:s,onContextMenu:Uh,children:[!!M&&C("span",{css:EPe,children:M}),!!T&&C("span",{children:T})]}):YW(e)&&A?C("div",{css:Jb,children:A}):Kp(e)||pc(e)&&e.goto===za.Live?B(_e,{children:[B("a",{css:[Jb,$Pe,"",""],href:P,target:s,title:(x||"")+(I||""),onContextMenu:Uh,children:[x,I&&C("span",{className:"ml-4px",children:I})]}),W]}):z()}}),APe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[C("path",{d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4S4 12.954 4 24s8.954 20 20 20Z"}),C("path",{strokeLinecap:"round",d:"M24 29c5 0 7 4 7 4H17s2-4 7-4m8-12l-3 3l3 3m-16-6l3 3l-3 3"})]})]}),RPe=f.forwardRef(APe),NPe=f.memo(function({loading:t}){return B("div",{className:Y("bili-video-card__skeleton",{hide:!t,[lPe]:t}),children:[C("div",{className:"bili-video-card__skeleton--cover",style:{borderRadius:zR}}),B("div",{className:"bili-video-card__skeleton--info px-5px",children:[C("div",{className:"bili-video-card__skeleton--avatar size-32px rounded-full"}),B("div",{className:"bili-video-card__skeleton--right ml-10px flex-1",children:[C("p",{className:"bili-video-card__skeleton--text"}),C("p",{className:"bili-video-card__skeleton--text short"}),C("p",{className:"bili-video-card__skeleton--light"}),C("p",{className:"bili-video-card__skeleton--text tiny"})]})]})]})}),xi={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"},PPe=f.memo(function({item:t,cardData:n,dislikedReason:r,emitter:o=Zj}){const i=rt(async()=>{await aPe(t,r);});ao(o,"cancel-dislike",i);const{text:s,helpText:l}=f.useMemo(()=>g6(r),[r]);return B("div",{className:xi.wrapper,children:[C("div",{className:xi.cover,children:B("div",{className:xi.coverInner,children:[C(RPe,{className:"size-2.5em"}),C("div",{className:xi.dislikeReason,children:s}),C("div",{className:xi.dislikeDesc,children:l||"将减少此类内容推荐"})]})}),C(SK,{item:t,cardData:n,onClick:i})]})});function SK({item:e,cardData:t,onClick:n}){return B("div",{className:xi.action,children:[C(yK,{item:e,cardData:t,className:"invisible"}),C("div",{className:xi.actionInner,children:B("button",{className:xi.actionButton,onClick:n,children:[C(U0,{className:"mr-4px mt--2px"}),"撤销"]})})]})}const Tk=f.memo(function({item:t,cardData:n,blockType:r}){const{authorMid:o,authorName:i}=n,s=r==="blacklist"?"已拉黑":"已加入过滤列表",l=rt(()=>r==="blacklist"?u():d()),u=rt(async()=>{if(!o)return;await ZW.remove(o)&&Wt.success(`已移出黑名单: ${i}`);}),d=rt(()=>{if(!o)return;const m=ot.filter.byAuthor.keywords.filter(p=>NS(p).mid===o);Ga("filter.byAuthor.keywords",{remove:m}),Wt.success(`已移出过滤列表: ${i}`);});return B("div",{className:xi.wrapper,children:[C("div",{className:xi.cover,children:B("div",{className:xi.coverInner,children:[C(W3,{className:"size-32px"}),C("div",{className:xi.dislikeReason,children:s}),B("div",{className:xi.dislikeDesc,children:["UP: ",i]})]})}),C(SK,{item:t,cardData:n,onClick:l})]})}),IPe=Y("pointer-events-none absolute inset-0 overflow-hidden",_Ce,"rounded-b-none rounded-t-gate-video-card"),OPe=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 kf(S()??0,0,1)},[r]),g=f.useMemo(()=>o??Math.floor((t||0)*p),[o,t,p]),b=rt(()=>g);f.useImperativeHandle(s,()=>({getT:b}),[b]);const y={progress:p,t:g,pvideo:n,elWidth:d.width,elHeight:d.height};return C("div",{...l,ref:u,className:Y(IPe,i),children:!!(n&&d.width&&d.height&&p)&&C(DPe,{...y})})}),DPe=f.memo(function({t,progress:n,pvideo:r,elWidth:o,elHeight:i}){let s=f.useMemo(()=>_Pe(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,x=b-(S-1)*l,w=o*l,E=i*u,M=(S-1)*i,T=(x-1)*o;return C("div",{className:"size-full",style:{backgroundColor:"black",backgroundImage:`url(${y})`,backgroundPosition:`-${T}px -${M}px`,backgroundSize:`${w}px ${E}px`},children:C(CK,{progress:n})})});function CK({progress:e,className:t,...n}){return C("div",{...n,"data-role":"track",className:Y("absolute inset-x-0 bottom-0 h-2px bg-gate-bg-lv1",t),children:C("div",{"data-role":"bar",className:"h-full bg-gate-primary",style:{width:`${e*100}%`}})})}function _Pe(e,t){let n=LPe(e,t);if(n!==-1)return n;if(t>e.at(-1))return n=e.length-1,n}function LPe(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 kPe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 256 256",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("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"})]}),BPe=f.forwardRef(kPe),zPe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("circle",{cx:12,cy:24,r:3,fill:"currentColor"}),C("circle",{cx:24,cy:24,r:3,fill:"currentColor"}),C("circle",{cx:36,cy:24,r:3,fill:"currentColor"})]}),FPe=f.forwardRef(zPe),xK="pointer-events-none h-19px flex-center whitespace-nowrap rounded-2px bg-gate-primary px-4px text-center text-12px color-white";function wK({children:e,className:t}){return C("span",{className:or(xK,t),children:e})}function EK(e){const{topMarkIcon:t,topMarkText:n}=e;return !!(t||n)}function HPe({cardData:e}){if(!EK(e))return;const{topMarkIcon:t,topMarkText:n}=e,r=!!t;return B(wK,{className:Y("min-w-32px",r?"pl-4px pr-6px":"px-4px"),children:[r&&C(cK,{src:`${t}@!web-dynamic`,className:"h-16px w-16px"}),n]})}function VPe(e){return ["#FFD700","#C0C0C0","#B36700"][e-1]??ns}function jPe({item:e}){const t=e.rankingNo<=3,n=C(BPe,{});let r=false,o=[];i6(e)&&e.others?.length&&(r=true,o=e.others);const i=`「${e.rankTab.name}」排行第 ${e.rankingNo} 名`,{triggerRef:s,tooltipEl:l}=wS({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:VPe(e.rankingNo)}),[e.rankingNo]),m=DG();return B(_e,{children:[B("div",{ref:s,className:u,style:d,children:[t?n:C("span",{style:{marginLeft:-1},children:e.rankingNo}),l]}),r&&C(wc,{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?yi(g):location.href=g;}}))}]},children:C("div",{className:u,style:d,children:C(FPe,{})})})]})}function UPe(){return B(wK,{children:[C(xR,{active:true,className:"size-14px"}),"直播中"]})}function WPe({item:e}){const t=f.useMemo(()=>gf(e)?"动态":KW(e)?"稍后再看":Wu(e)?e.from==="fav-folder"?"收藏夹":"合集":e.api,[e]),n=f.useMemo(()=>{if(Wu(e)&&e.from==="fav-collection")return e.volTooltip},[e]),{triggerRef:r,tooltipEl:o}=wS({inlinePosition:"left",tooltip:n});return B("span",{ref:r,className:or(xK,"pointer-events-auto"),children:[t,o]})}function GPe({vol:e,volTooltip:t}){const{triggerRef:n,tooltipEl:r}=wS({inlinePosition:"left",tooltip:t,tooltipClassName:"left--2px"});return B("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 qPe=C(yR,{className:"size-16px"});function KPe({item:e,authed:t,actionButtonVisible:n}){const r=Xa(e)&&!!e.three_point?.dislike_reasons?.length||pc(e),o=rt(async s=>{if(s?.preventDefault(),s?.stopPropagation(),!r)return Wt.error("当前视频不支持提交「我不想看」");const l=B6(e);if(l&&DS.has(l))return;let u;if(Xa(e)){if(!t)return tn("请先获取 access_key !");u=(e.three_point?.dislike_reasons||[]).map(d=>({platform:"app",...d}));}else pc(e)?u=NAe:ym(e);await DAe(u,d=>sPe(e,d));});return {dislikeButtonEl:r&&C(ta,{visible:n,inlinePosition:"left",icon:qPe,tooltip:"我不想看",onClick:o}),hasDislikeEntry:r,onTriggerDislike:o}}const YPe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("circle",{cx:12,cy:12,r:10,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})]}),XPe=f.forwardRef(YPe),QPe=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[C("circle",{cx:12,cy:12,r:10}),C("path",{d:"m9 12l2 2l4-4"})]})]}),ZPe=f.forwardRef(QPe),JPe=XPe,e4e=ZPe;function t4e({multiSelecting:e,multiSelected:t,uniqId:n}){const r=rt(l=>{const{selectedIdSet:u,multiSelecting:d}=zn;if(!d)return;l?.preventDefault(),l?.stopPropagation();const m=!!l?.shiftKey;zn.shiftMultiSelectAnchorUniqId??=n,m||(zn.shiftMultiSelectAnchorUniqId=n),m?$Te(zn.shiftMultiSelectAnchorUniqId,n):t?u.delete(n):u.add(n);}),o=e&&C("div",{onClick:r,className:Y("absolute inset-0 flex items-center justify-center bg-black/10",LCe)}),s=e&&C(t?e4e:JPe,{onClick:r,className:Y("size-30px cursor-pointer text-white [&_g]:fill-inherit",t?"fill-gate-primary":"fill-none")});return {toggleMultiSelect:r,multiSelectBgEl:o,multiSelectEl:s}}function n4e(...e){}function r4e({uniqId:e,recSharedEmitter:t,title:n,active:r,videoDuration:o,tryFetchImagePreviewData:i,imagePreviewDataBox:s,autoPreviewWhenHover:l,videoPreviewWrapperRef:u}){const d=rt(()=>{const V=s.val?.videoshotJson?.data;return !!(V?.index?.length&&V?.image?.length)}),[m,p]=f.useState(false),[g,b]=$L(),[y,S]=$L(),x=rt(()=>g||0),[w,E]=f.useState(false),M=Zl(false),T=Zl(false),A=PM(false),[I,N]=f.useState(void 0),P=V=>{const Q=u.current?.getBoundingClientRect();if(!Q)return;const{x:J,width:te}=Q,ne=V.pageX-window.scrollX-J;N(ne/te);};Ms("mouseenter",async V=>{t.emit("mouseenter",e),M.set(true),P(V);const Q=i(),J=800;let te;ot.useDelayForHover&&(te=gn(J)),await Promise.all([Q,te].filter(Boolean)),M.val&&(T.set(true),l&&!D.val&&d()&&W(true));},{target:u});const O=rt(()=>{M.set(false),T.set(false);});Ms("mouseleave",O,{target:u}),ao(t,"mouseenter",({data:V})=>{V!==e&&O();}),Ms("mousemove",V=>{E(true),M.val&&(!T.val||!l)&&P(V),l||H.stop();},{target:u});const D=PM(void 0),_=f.useRef(void 0),H=o4e({startByHoverBox:A,isHoveringBox:M,active:r,mouseMoved:w,idBox:D,autoPreviewWhenHover:l,setAutoPreviewing:p,setPreviewT:S,setPreviewProgress:b,onResume(){_.current?.();}}),U=rt(async()=>{if(!D.val){await i(),d()&&W(false);return}H.togglePaused();}),W=rt(V=>{A.set(V),E(false),H.reset(),H.stop(true),p(true),b(re=>re===void 0?0:re),S(void 0);const Q=8e3;let J=performance.now(),te=0;_.current=()=>{J=performance.now()-x()*Q;};function ne(re){if(H.shouldStop())return H.stop();if(!H.paused){const ie=performance.now(),ue=ie-J,ee=kf(ue%Q/Q,0,1);if(b(ee),(!te||ie-te>=ot.autoPreviewUpdateInterval)&&(b(ee),te=ie,o)){const ae=kf(Math.round(ee*o),0,o);S(ae);}}D.val=requestAnimationFrame(ne);}D.val=requestAnimationFrame(ne);}),z=M.state,L=T.state,G=s.state?.videoshotJson?.data,j=!!G?.image?.length&&!!o&&(L||r)&&(l?m:true),K=f.useRef(null);let X,k;if(j){const V={videoDuration:o,pvideo:G};l?X={...V,progress:g,t:y}:X={...V,progress:I},k=C(OPe,{ref:K,...X});}return {onHotkeyPreviewAnimation:U,onStartPreviewAnimation:W,autoPreviewing:m,mouseProgress:I,previewProgress:g,previewT:y,isHovering:z,isHoveringAfterDelay:L,shouldShowPreview:j,previewImageRef:K,previewImgProps:X,previewImageEl:k}}function o4e({startByHoverBox:e,isHoveringBox:t,idBox:n,active:r,mouseMoved:o,autoPreviewWhenHover:i,setAutoPreviewing:s,setPreviewT:l,setPreviewProgress:u,onResume:d}){const m=ZU(),p=rt(()=>{if(m.current)return  true;if(e.val){if(!t.val)return  true}else if(!r||o)return  true;return  false}),g=rt((S=false)=>{S||n4e("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 i4e({item:e,cardData:t,onRemoveCurrent:n,actionButtonVisible:r,watchlaterAdded:o}){const{avid:i,bvid:s}=t,l=f.useMemo(()=>Xa(e)||pc(e)?e.goto==="av":e.api===Ze.Rank?t.goto==="av":e.api===Ze.Live?false:!!s,[e,t]),u=$s((x,w)=>x(w),{manual:true}),d=VR(o),m=rt(async(x,w)=>{if(x?.preventDefault(),x?.stopPropagation(),u.loading)return {success:false};if(!i||!s)return {success:false};w??=o?kNe:IM;const E=await u.runAsync(w,i),M=w===IM;return E&&(M?qu.bvidSet.add(s):qu.bvidSet.delete(s),e.api===Ze.Watchlater?M||(await gn(250),n?.(e,t)):Wt.success(`已${M?"添加":"移除"}稍后再看`)),{success:E,targetState:M}}),p=18,g=u.loading?C(Xj,{className:"size-16px"}):e.api===Ze.Watchlater?o?C(mm,{className:"size-16px"}):C(Up,{size:p,useAnimation:d===true}):o?C(Up,{size:p,useAnimation:d===false}):C(wR,{className:"size-20px"}),b=e.api===Ze.Watchlater?o?"已添加稍后再看, 点击移除":"已移除稍后再看":o?"已添加稍后再看, 点击移除":"稍后再看",y=l&&C(ta,{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 Ak=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&&Ja(r),[r]),S=f.useMemo(()=>r?B6(r):void 0,[r]),x=CNe(S),w=Z3e(y?.authorMid),E=TNe(y?.authorMid),M=BRe(y?.bvid),T=STe(r?.uniqId),A=!!x,I=w,N=E,O=ZNe(A||I||N),D=Y("bili-video-card",Jl,{[AB]:i},"relative",n),_=[m,O,t6(p)&&G3.card,g&&T&&QNe];return C("div",{"data-bvid":y?.bvid,style:t,className:D,css:_,...b,children:o?C(NPe,{loading:o}):r&&y&&(A?C(PPe,{item:r,cardData:y,emitter:l,dislikedReason:x}):I?C(Tk,{item:r,cardData:y,blockType:"blacklist"}):N?C(Tk,{item:r,cardData:y,blockType:"filter"}):C(a4e,{item:r,cardData:y,active:i,emitter:l,recSharedEmitter:u,tab:d,onRemoveCurrent:s,watchlaterAdded:M,gridDisplayMode:p,multiSelecting:g,multiSelected:T}))})});var s4e={name:"vpmszz",styles:"background-color:unset;position:static;height:100%"};const a4e=f.memo(function({item:t,cardData:n,tab:r,active:o=false,onRemoveCurrent:i,emitter:s=Zj,recSharedEmitter:l=kq,watchlaterAdded:u,gridDisplayMode:d,multiSelecting:m=false,multiSelected:p}){const{accessKey:g,style:{videoCard:{useBorder:b,useBorderOnlyOnHover:y}},videoCard:{actions:S,imgPreview:{enabled:x,autoPreviewWhenHover:w,disableWhenMultiSelecting:E}},spaceUpload:{showVol:M},__internalEnableCopyBvidInfo:T}=Ft(),{avid:A,bvid:I,cid:N,goto:P,href:O,title:D,cover:_,duration:H,durationStr:U,recommendReason:W,statItems:z,authorName:L,authorMid:G}=n,j=!!g,K=P==="av",X=["av","bangumi","picture","live","opus"];X.includes(P)||Bo(`none (${X.join(",")}) goto type %s`,P,t);const k=t6(d),V=f.useMemo(()=>l6({item:t})?.aspectRatio,[t]),Q=f.useMemo(()=>!(!I||!I.startsWith("BV")||P!=="av"),[I,P]),J=!(!x||E&&m),te=Zl(void 0),ne=dS(async()=>{if(!Q||!J||zNe(te.val))return;const tt=await BNe(I);te.set(tt),jn(tt.videoshotJson)||re(tt.videoshotJson);}),re=AG(tt=>{ys.warning({title:`${tt.message} (code: ${tt.code})`,description:`${D} (${I})`,duration:2});},3,false),ie=f.useRef(null),ue=f.useRef(null),ee=b&&!k?ie:ue,{onStartPreviewAnimation:ae,onHotkeyPreviewAnimation:ce,isHovering:se,previewImageEl:$e}=r4e({uniqId:t.uniqId,recSharedEmitter:l,title:D,active:o,videoDuration:H,tryFetchImagePreviewData:ne,imagePreviewDataBox:te,autoPreviewWhenHover:w,videoPreviewWrapperRef:ee});Ya(()=>{o&&(z6(`${WM}_activeItem`,t),ot.videoCard.imgPreview.autoPreviewWhenKeyboardSelect&&ne().then(()=>{ae(false);}));},[o]);const le=o||se,{watchlaterButtonEl:pe,context:be}=i4e({item:t,cardData:n,onRemoveCurrent:i,actionButtonVisible:le,watchlaterAdded:u}),{dislikeButtonEl:Ee,hasDislikeEntry:Te,onTriggerDislike:Ye}=KPe({item:t,authed:j,actionButtonVisible:le}),{largePreviewActionButtonEl:Re,largePreviewEl:fe,shouldUseLargePreviewCurrentTime:ge,getLargePreviewCurrentTime:Ne,largePreviewVisible:He,hideLargePreview:We}=mK({shouldFetchPreviewData:Q,actionButtonVisible:le,hasLargePreviewActionButton:S.showLargePreview,bvid:I,cid:N,uniqId:t.uniqId,recSharedEmitter:l,cardTarget:ie,aspectRatioFromItem:V,cover:_,videoCardAsTriggerRef:ee}),je=cPe(t,A),{onOpenWithMode:et,handleVideoLinkClick:it,consistentOpenMenus:Ke,conditionalOpenMenus:Oe,openInPopupActionButtonEl:qe,onOpenInPopup:Je}=aTe({href:O,item:t,cardData:n,actionButtonVisible:le,hasOpenInPopupActionButton:S.openInPipWindow,getLargePreviewCurrentTime:Ne,hideLargePreview:We,shouldUseLargePreviewCurrentTime:ge}),{multiSelectBgEl:ke,multiSelectEl:Ie,toggleMultiSelect:lt}=t4e({multiSelecting:m,multiSelected:p,uniqId:t.uniqId}),Tt=rt(tt=>{b&&(tt.target.closest(".ant-dropdown-menu")||tt.target.closest("a")||et());});ao(s,"open",()=>et()),ao(s,"open-in-popup",Je),ao(s,"open-with-large-preview-visible",()=>{He&&(We(),et());}),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=vPe({item:t,cardData:n,tab:r,watchlaterContext:be,favContext:je,hasDislikeEntry:Te,onTriggerDislike:Ye,onRemoveCurrent:i,consistentOpenMenus:Ke,conditionalOpenMenus:Oe,multiSelecting:m}),Dt=rt(tt=>{tt&&je.updateFavFolderNames();}),xt=EK(n),Ot=YW(t),dt=Kp(t)&&t.live_status===Qs.Streaming||pc(t)&&t.goto===za.Live,ut=r===nt.AppRecommend&&!Xa(t)&&!Kp(t),bt=pM(t)&&M||Wu(t)&&!!t.vol&&!ut,Fe=T&&I&&C(ta,{visible:le,inlinePosition:"right",icon:C(Nu,{className:"size-14px"}),tooltip:"复制 BVID 信息",onClick:tt=>{tt.stopPropagation(),tt.preventDefault(),Pu(f6(n));}}),Ue=B(_e,{children:[m&&Ie,Ee,xt&&C(HPe,{cardData:n}),Ot&&C(jPe,{item:t}),dt&&C(UPe,{}),ut&&C(WPe,{item:t}),bt&&!!t.vol&&C(GPe,{vol:t.vol,volTooltip:Wu(t)?t.volTooltip:void 0})]}),ye=B(_e,{children:[pe,Fe,qe,Re]}),Me=!bk(Ue),Se=!bk(ye),he=or("left-top-marks",Qp.topContainer("left"),m&&"gap-x-10px"),De=KW(t)&&t.progress>0?C(CK,{progress:t.progress/t.duration,className:Y("h-3px",DCe)}):void 0,Ce=`.${Is} .${Jl}`,Be=f.useMemo(()=>[un(Ce," &{overflow:hidden;border-radius:",zR,";transition:border-radius 0.2s ease;}",""),!k&&[(o||m||b&&!y)&&un(Ce," &{border-bottom-left-radius:0;border-bottom-right-radius:0;}",""),b&&un(Ce,":hover &{border-bottom-left-radius:0;border-bottom-right-radius:0;}","")]],[k,o,m,b,y]),Xe=f.useMemo(()=>b&&!y||m?false:!b||b&&y&&!se,[b,y,se,m]),st=Sm(),ft=B("a",{ref:ue,href:O,target:st,className:Y(RB,"relative isolate block overflow-hidden",Xe&&"ring-1px ring-gate-border"),css:[Be,k&&G3.cover,"",""],onClick:it,onContextMenu:tt=>{Uh(tt)||tt.preventDefault();},children:[C("div",{className:"bili-video-card__image",style:{aspectRatio:"16 / 9"},children:_?C("div",{className:"bili-video-card__image--wrap",children:C(cK,{src:`${_}@672w_378h_1c_!web-home-common-cover`,className:Y("bili-video-card__cover v-img"),style:{borderRadius:0},imgProps:{alt:D}})}):C("div",{className:"size-full flex-center px-4 py-2",children:C("div",{className:"line-clamp-3 text-center text-1.2em color-gate-text line-height-snug hover:color-gate-primary",children:D})})}),B("div",{className:"bili-video-card__stats",css:un(Ce," &{pointer-events:none;border-radius:0;}",""),children:[C("div",{className:"bili-video-card__stats--left gap-x-4px xl:gap-x-8px",children:z.map(({field:tt,value:Qe})=>C(NMe,{field:tt,value:Qe},tt))}),C("span",{className:"bili-video-card__stats__duration relative top-0.5px",children:K&&U})]}),De,J&&$e,ke,Me&&C("div",{className:he,children:Ue}),Se&&C("div",{className:Y("right-actions",Qp.topContainer("right")),children:ye})]}),Et=C(yK,{item:t,cardData:n,gridDisplayMode:d,handleVideoLinkClick:m?lt:it}),At=C(_e,{children:fe});function Rt(tt){return C(wc,{trigger:["contextMenu"],onOpenChange:Dt,getPopupContainer:()=>ie.current?.closest(`.${Jl}`)??document.body,rootClassName:Y(UCe,qX),menu:{items:pt,className:"w-max"},children:tt})}function yn(tt){return C("div",{className:"bili-video-card__wrap",ref:ie,css:[s4e,k&&G3.cardWrap,"",""],onClick:m?lt:Tt,onContextMenu:Qe=>{b&&Qe.preventDefault();},children:tt})}const Wn=b&&!k?Rt(yn(B(_e,{children:[ft,Et]}))):yn(B(_e,{children:[Rt(ft),Et]}));return B(_e,{children:[Wn,At]})}),l4e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,B("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,children:[C("path",{d:"M4 24c0 11.046 8.954 20 20 20v0c11.046 0 20-8.954 20-20S35.046 4 24 4"}),C("path",{d:"M36 24c0-6.627-5.373-12-12-12s-12 5.373-12 12s5.373 12 12 12v0"})]})]}),c4e=f.forwardRef(l4e),tf=po.extend("components:RecGrid"),$K="grid-col-span-full";class u4e{store=Dn({refreshKey:-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]=xB(t[r]));Object.assign(this.store,t);};loadedPage=0;abortController=new AbortController;loadMoreLocker=new Map;isLocked=t=>!!this.loadMoreLocker.get(t);lock=t=>{this.loadMoreLocker=new Map([[t,true]]);};unlock=t=>{this.loadMoreLocker.set(t,false);};get loadMoreRunning(){return this.isLocked(this.store.refreshKey)}}const MK=f.memo(function({className:t,containerClassName:n,shortcutEnabled:r,tab:o,infiniteScrollUseWindow:i,onScrollToTop:s,scrollerRef:l,ref:u}){const d=rs(),{serviceRegistry:m,recSharedEmitter:p}=d,{refreshing:g}=d.useStore(),b=zg(()=>new u4e,[]),{useCustomGrid:y,gridDisplayMode:S,enableForceColumn:x,forceColumnCount:w,cardMinWidth:E}=gt(ot.grid),{multiSelecting:M}=gt(zn),T=ZU();xTe();const A=rt(()=>{T.current||d.setStore({tabbarView:m[o]?.tabbarView,sidebarView:m[o]?.sidebarView});});ho(A);const I=rt(()=>{ue(),A(),s?.();}),N=rt(()=>{ue(),A(),b.loadedPage=1,z();}),{refresh:P}=m6e({tab:o,debug:tf,fetcher:d6e,preAction:I,postAction:N,updateViewFromService:A,self:b});f.useImperativeHandle(u,()=>({refresh:P}),[P]);const{items:O,hasMore:D,refreshError:_,refreshKey:H,showSkeleton:U}=b.useStore();f.useEffect(()=>$Ne(O),[O]);const W=f.useRef(void 0);Ms("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=rt(async()=>{if(await gn(Og?100:0),tf("checkShouldLoadMore(): footerInViewRef = %s",le.current),le.current)return G()}),L=rt(()=>!(T.current||d.refreshing||b.abortController.signal.aborted||b.loadMoreRunning||b.store.refreshKey<0||b.store.refreshError||!b.store.hasMore)),G=rt(async()=>{if(!L())return;const fe=()=>b.store.refreshKey,ge=fe();b.lock(ge);let Ne=b.store.items,He=true,We;try{const je=Lq(m,o);let et=await je.loadMore(b.abortController.signal)||[];et=i1(et,o),Ne=AM(Ne,et),He=je.hasMore;}catch(je){We=je;}if(T.current){tf("loadMore: skip update for RecGrid unmounted: tab=%s startingRefreshKey=%s",o,ge),b.unlock(ge);return}if(ge!==fe()){tf("loadMore: skip update for refreshKey mismatch, expect %o but found %o",ge,fe()),b.unlock(ge);return}if(We)throw b.unlock(ge),ys.error({title:"加载失败",description:We.message||We.stack}),We;b.loadedPage++,tf("loadMore: loadedPage(%s) len(%s -> %s)",b.loadedPage,b.store.items.length,Ne.length),b.setStore({hasMore:He,items:Ne}),b.unlock(ge),z();}),j=rt(async()=>{const ge={key:"RecGrid:loadToEnd"+":error",title:"加载全部",duration:15},Ne={title:"加载全部"},He=We=>{throw ys.error({...ge,description:We}),new Error("loadToEnd error",{cause:We})};if(!ZG())return He("当前 Tab 不支持加载全部");if(b.store.refreshError)return He("预检查失败: 先前错误");if(!b.store.hasMore)return ys.success({...Ne,description:"没有更多了"});for(;!L();)await gn(500);for(;L();)await G();ys.success({...Ne,description:"已完成"});});ao(p,"load-to-end",j);const K=O,X=f.useMemo(()=>K.filter(fe=>fe.api!==Ze.Separator),[K]),k=f.useRef(null),V=rt(()=>{if(i){const fe=Hu.get()+50;return new DOMRect(0,fe,window.innerWidth,window.innerHeight-fe)}else return l?.current?.getBoundingClientRect()}),Q=f.useMemo(()=>new Map,[H]),J=f.useMemo(()=>X.map(({uniqId:fe})=>{const ge=fe;return Q.get(ge)||(()=>{const Ne=new uo;return Q.set(ge,Ne),Ne})()}),[X]),[te,ne]=f.useState(void 0);ao(p,"show-large-preview",({data:fe})=>ne(fe));const re=f.useMemo(()=>{if(te)return X.findIndex(fe=>fe.uniqId===te)},[K,te]),{activeIndex:ie,clearActiveIndex:ue}=s6e({enabled:r,maxIndex:X.length-1,gridRef:k,getScrollerRect:V,videoCardEmitters:J,activeLargePreviewItemIndex:re,changeScrollY:i?function({offset:fe,absolute:ge}){const Ne=document.documentElement;if(typeof fe=="number"){Ne.scrollTop+=fe;return}if(typeof ge=="number"){Ne.scrollTop=ge;return}}:void 0}),ee=rt(fe=>{const ge=b.store.items;b.setStore({items:fe(ge)??ge});}),ae=rt((fe,ge,Ne)=>{ee(He=>{const We=He.slice(),je=[];for(const[et,it]of fe.entries()){const Ke=We.findIndex(qe=>qe.uniqId===it);if(Ke===-1)continue;We.splice(Ke,1);const Oe=ge?.[et];Oe&&je.push(Oe),o===nt.Watchlater&&m[o]?.decreaseTotal(),o===nt.Fav&&m[o]?.decreaseTotal();}return !Ne&&je.length&&(je.length<=3?je.forEach(et=>Wt.success(`已移除: ${je.join(", ")}`)):Wt.success(`已移除: ${je.length}个视频`)),We});}),ce=rt((fe,ge)=>{ee(Ne=>{const He=Ne.findIndex(We=>We.uniqId===fe);if(He!==-1){if(ge==="start"){const We=Ne.findIndex(je=>je.api!==Ze.Separator);return ng(Ne,He,We)}else if(ge==="end")return ng(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}=yNe({root:i?null:l?.current||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(fe){fe&&(tf("footerInView change to visible"),oc(()=>le.current=!0),z());}}),le=Fg($e),pe=C("div",{ref:se,className:Y($K,"flex items-center justify-center py-30px text-size-120%"),children:!g&&C(_e,{children:D?B(_e,{children:[C(c4e,{className:"mr-10px size-40px animate-spin color-gate-primary"}),"加载中~"]}):C(_e,{children:"没有更多了~"})})}),be=Y("min-h-100vh @container-inline-size",n),Ee=f.useMemo(()=>{const{videoGrid:fe,videoGridBiliFeed4:ge,videoGridCustom:Ne,videoGridAddonCenterEmpty:He,gridTemplateColumnsUsingVarCol:We,gridTemplateColumnsUsingCardMinWidth:je,narrowMode:et}=MI,it=y&&!(x&&w)&&S!==Gr.TwoColumnGrid?je:We,Ke=[lZ,fe,it,y?Ne:ge],Oe=(...qe)=>Y(Ke,...qe,t);return S===Gr.TwoColumnGrid?{className:Oe(et)}:(S===Gr.CenterEmptyGrid&&Ke.push(He),y?x&&w?{className:Oe(),style:{"--col":w.toString()}}:{className:Oe(),style:{"--card-min-width":`${E}px`}}:{className:Oe()})},[MI,y,S,x,w,E,t]),Te=ePe(),Ye=({gridChildren:fe,gridSiblings:ge}={})=>B("div",{"data-tab":o,className:be,children:[C("div",{"data-tab":o,ref:k,...Ee,children:fe}),ge]});if(_)return console.error("RecGrid.refresh error:",_.stack||_),Ye({gridSiblings:C(SAe,{tab:o,err:_})});if(g&&U){const fe=O6();return Ye({gridChildren:Array.from({length:fe}).fill(0).map((ge,Ne)=>C(Ak,{loading:true,tab:o},Ne))})}const Re=fe=>{if(fe.api===Ze.Separator){const ge=fe.wrapWithDivider??true;return C(f.Fragment,{children:ge?d4e(fe.content):fe.content},fe.uniqId)}else {const ge=X.findIndex(He=>He.uniqId===fe.uniqId),Ne=ge===ie;return C(Ak,{baseCss:[Te,tPe(Ne)],tab:o,item:fe,active:Ne,onRemoveCurrent:(He,We,je)=>ae([He.uniqId],[We.title],je),emitter:J[ge],recSharedEmitter:p,gridDisplayMode:S,multiSelecting:M},fe.uniqId)}};return Ye({gridChildren:B(_e,{children:[K.map(Re),pe]})})});function d4e(e){return C(dc,{className:Y($K,GX),orientation:"horizontal",titlePlacement:"left",children:e})}function TK({className:e="",style:t,tab:n,refreshHotkeyEnabled:r,ref:o}){r??=true;const{refreshing:i}=rs().useStore(),s=go(),l=f.useRef(null),u=rt(()=>{l.current&&(l.current.disabled||l.current.click());});f.useImperativeHandle(o,()=>({click:u}),[]),To("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===Mo.Shuffle||n===nt.Fav&&p||n===nt.Hot&&BG(m)?"换一换":"刷新",[b,y]=mCe(),S=rt(x=>{y(b.current,{rotate:[0,360]},{duration:.5,type:"tween"}),s();});return B(ct,{ref:l,style:t,className:Y(nU,"[&:disabled]:cursor-wait",e),disabled:i,onClick:S,children:[C(uMe,{ref:b,className:"size-14px"}),g]})}const f4e={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 m4e(e){const t=gt(Zo).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 AK({className:e,style:t,sidebarView:n,tab:r}){const o=ES(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",m4e(r),e);return o&&n&&C("div",{className:i,css:f4e,style:t,children:C(Fo,{theme:{components:{Menu:{itemHeight:30}}},children:n})})}const h4e=f.memo(function({show:t,onHide:n}){const{grid:{gridDisplayMode:r},modalFeedFullScreen:o,sidebarAlign:i}=Ft(),{usingTwoColumnMode:s}=zW(r),l=!s&&o,u=f.useRef(null),d=f.useMemo(()=>Y(l?"b-5px":"b-1px","b-gate-primary b-solid"),[l]),m=rt(()=>{u.current&&(u.current.scrollTop=0);}),{modalSettingsVisible:p}=H6(),g=[t,!p,!uq(),!hq()].every(Boolean),b=zq(true),{tabbarView:y,sidebarView:S}=b.useStore(),{tab:x,direction:w}=oK(),E=()=>B("div",{className:Y(ko.modalHeader,"gap-x-15px pr-15px"),children:[B("div",{className:"left flex flex-shrink-1 flex-wrap items-center gap-x-15px gap-y-4px",children:[C(iK,{}),y]}),B("div",{className:"right flex flex-shrink-0 items-center gap-x-8px",children:[r===Gr.TwoColumnGrid?null:C(mNe,{initialOpen:true,children:C(p4e,{})}),C(TK,{refreshHotkeyEnabled:g,tab:x}),C(Ug,{onClick:n,className:"ml-5px"})]})]}),M=Y(s&&"bg-black/90%"),I=Y("h-[calc(100vh-30px)] max-h-unset w-[calc(100vw-30px)] pr-0",l&&"h-full w-full",s&&BW,d);return C(A6.Provider,{value:b,children:B(jg,{show:t,onHide:n,clsModalMask:M,clsModal:I,children:[E(),B("div",{"data-role":"modal-body",className:Y("flex flex-1 gap-x-25px overflow-hidden",i===Vf.Right&&"flex-row-reverse"),children:[C(AK,{tab:x,sidebarView:S,className:"max-h-full"}),C("div",{className:"h-full flex-1 overflow-y-auto pr-15px",ref:u,children:C(MK,{tab:x,direction:w,shortcutEnabled:g,onScrollToTop:m,infiniteScrollUseWindow:false,scrollerRef:u},x)})]})]})})});function p4e(){return C(_e,{children:C(It,{configPath:"modalFeedFullScreen",label:"全屏",tooltip:"世界清净了~"})})}const id=Dn({modalFeedVisible:false,modalSettingsVisible:false});function H6(){return gt(id)}function g4e(){id.modalFeedVisible?RK():v4e();}function v4e(){IK(),id.modalFeedVisible=true;}function RK(){id.modalFeedVisible=false;}function b4e(){id.modalSettingsVisible?NK():V6();}function V6(){IK(),id.modalSettingsVisible=true;}function NK(){id.modalSettingsVisible=false;}function PK(){GM.registerMenuCommand?.("⚙️ 设置",V6);}const IK=qf(function(){const t=document.createElement("div");t.classList.add("modals-container",Is),document.body.appendChild(t),da(t).render(C(ma,{children:C(y4e,{})}));});function y4e(){const{modalFeedVisible:e,modalSettingsVisible:t}=H6();return B(_e,{children:[C(h4e,{show:e,onHide:RK}),C(dNe,{show:t,onHide:NK})]})}const ru=DA({align:"right",top:100},"float-entry"),GE={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 S4e(){return C(EW,{children:C(C4e,{})})}function C4e(){const{align:e,top:t}=gt(ru,{sync:true}),n=f.useMemo(()=>({arrow:false,placement:e==="right"?"left":"right",align:{offset:[10*(e==="right"?-1:1),0]}}),[e]),r=f.useMemo(tAe,[]),{attributes:o,listeners:i,setNodeRef:s,setActivatorNodeRef:l,transform:u}=$W({id:"GateFloatEntry"});uW({onDragEnd(b){if(b.active.id==="GateFloatEntry"){$f.update();const y=d.current?.getBoundingClientRect();if(!y)return;const S=kf(Math.round(y.top),0,window.innerHeight-y.height);let x=ru.align;(ru.align==="right"&&y.left<window.innerWidth/4||ru.align==="left"&&y.right>window.innerWidth/4*3)&&(x=ru.align==="right"?"left":"right"),fZ("new pos",{align:x,top:S}),ru.align=x,ru.top=S,d.current?.animate([{transform:x==="right"?`translateX(-${window.innerWidth-y.right}px)`:`translateX(${y.left}px)`},{transform:"translateX(0)"}],{duration:200,easing:"ease-in-out"});}}});const d=gS(s),m=or("fixed transition-200 transition-ease-in-out transition-property-right,left",HCe,e==="right"&&"right--30px pr-6px hover:right-0",e==="left"&&"left--30px pl-6px hover:left-0");ho($f.updateThrottled);const{height:p}=$f.use(),g=f.useMemo(()=>kf(t,0,p-150),[t,p]);return C("div",{ref:d,className:m,style:{top:`${g}px`,transform:Wf.Transform.toString(u)},children:B("div",{className:GE.wrapperInner,children:[C(sn,{title:B(_e,{children:[Lo,": 在新窗口打开"]}),...n,children:C(ct,{className:"icon-only-round-button",href:r,target:"_blank",children:C($o,{className:GE.buttonIcon})})}),C(sn,{title:B(_e,{children:[Lo,": 弹窗打开"]}),...n,children:C(ct,{className:"icon-only-round-button",onClick:g4e,children:C(lK,{className:GE.buttonIcon})})}),C(ct,{className:"icon-only-round-button cursor-move",...i,...o,ref:l,children:C(sK,{className:"size-14px"})})]})})}function x4e(e,t,n){const r=rt(t),o=Zl(n);return f.useEffect(()=>{const i=new ResizeObserver(s=>{for(const l of s)if(l.target===e&&l.contentRect){const u=r(l);Mi(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=ca(()=>{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 E4e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M42 24H6m24-12l12 12l-12 12"})]}),$4e=f.forwardRef(E4e),M4e=({title:e,titleId:t,...n},r)=>B("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?C("title",{id:t,children:e}):null,C("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M5.799 24h36m-24 12l-12-12l12-12"})]}),T4e=f.forwardRef(M4e),A4e=po.extend("RecHeader");function R4e({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=rs(),{refreshing:y}=b.useStore(),[S,x]=b.useTabBackForwardStatus(e),w=b.useTabServiceQueueState(e),E=w?B(_e,{children:[" ","(当前 ",w.cursor+1,"/",w.len,")"]}):void 0;To({shift:true,key:"<"},b4e,{eventType:"keyup"}),To("Shift+M",()=>{VG(false),Wt.success({key:"multi-select-state-changed",content:`已${zn.multiSelecting?"进入":"退出"}「多选」`});},{enabled:l});const[M,T]=w4e(),A=rt(()=>{if(!i)return;const W=M.current?.parentElement;if(!W)return;const z=W.getBoundingClientRect(),L=Hu.get();if(z.top<L){const G=jwe(W).top;A4e("[refresh:scroll] rect.top = %s, headerHeight = %s",z.top,L),document.documentElement.scrollTop=G-L+2;}});f.useImperativeHandle(o,()=>({scrollToTop:A}));const I=Hu.use(),N=P4e(e),P=kA.use(),O=cS(),D=N4e(),_=(()=>{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,";","")})(),H=or(i&&u&&["sticky  mb-10px b-b-1px b-b-transparent b-b-solid",FCe,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(_,D),z},[i,u,d,T,I,_,D]);return C("div",{ref:M,"data-role":"tab-bar-wrapper",className:H,css:U,children:B("div",{"data-role":"tab-bar",className:Y(NB,"relative mb-0 h-auto flex flex-row items-center justify-between gap-x-15px px-0 py-8px"),children:[B("div",{"data-class-name":"left",className:"h-full flex flex-wrap items-center gap-x-15px gap-y-8px",children:[C(iK,{className:"flex-none"}),t]}),B("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:[C(TK,{tab:e,refreshHotkeyEnabled:r}),s&&g&&B(_e,{children:[C(sn,{arrow:false,title:B(_e,{children:["前进",E]}),children:C(ct,{className:"icon-only-round-button",disabled:y||!x,onClick:()=>p("forward"),children:C($4e,{})})}),C(sn,{arrow:false,title:B(_e,{children:["后退",E]}),children:C(ct,{className:"icon-only-round-button",disabled:y||!S,onClick:()=>p("back"),children:C(T4e,{})})})]}),C(sn,{title:"设置",arrow:false,children:B(ct,{onClick:V6,className:"icon-only-round-button",children:[C(cNe,{}),C(SR,{className:"size-14px"})]})}),l&&C(jG,{iconOnly:true,addCopyActions:true}),N&&C(e6,{style:{marginLeft:5}}),n]})]})})}function N4e(){const{xScrolling:e,bodyWidth:t}=x4e(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=ER||Og?"0px":"20px";return un("margin-inline:calc((100% - 100vw + ",n,") / 2);padding-inline:calc((100vw - ",n," - 100%) / 2);","")}},[e,t])}function P4e(e){const{accessKey:t}=Ft();return !t&&[nt.AppRecommend,nt.Liked].includes(e)}function I4e(){const{grid:{twoColumnModeAlign:e},sidebarAlign:t}=Ft(),{usingTwoColumnMode:n}=FW(),r=pq(),o=zq(),{tabbarView:i,sidebarView:s}=o.useStore(),{tab:l,direction:u}=oK(),d=f.useRef(null),m=rt(()=>d.current?.scrollToTop()),p=Hu.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=Y("flex gap-x-25px",t===Vf.Right&&"flex-row-reverse"),y="flex-1",S=Y(n&&[BW,p3e(e,"margin")]),B(A6.Provider,{value:o,children:[C(R4e,{ref:d,tab:l,leftSlot:i,shortcutEnabled:r}),B("div",{className:b,children:[C(AK,{css:g,tab:l,sidebarView:s}),C(MK,{tab:l,direction:u,containerClassName:y,className:S,shortcutEnabled:r,infiniteScrollUseWindow:true,onScrollToTop:m},l)]})]})}const OK="html.bewly-design:not(:has(#i_cecream,#app))";function O4e(){return !!document.querySelector(OK)}function D4e(){return aS(OK,()=>{Bo("unmount for using bewly-design"),og?.unmount();},{pollTimeout:5e3,warnOnTimeout:false})}let og;async function _4e(){if(ap(".adblock-tips"),ap(".vip-login-tip"),aS("html.gray",t=>t.classList.remove("gray")),PK(),O4e())return Bo("quit for using bewly-design");ot.pureRecommend||eAe()||TS()?(await k4e(),D4e()):L4e();}function L4e(){const e=document.createElement("section");e.classList.add(Is),document.body.append(e),og=da(e),og.render(B(ma,{children:[C(fS,{antd:true,baseGlobalStyle:true}),C(S4e,{})]}));}async function k4e(){Og&&await gn(500),ap("#i_cecream .bili-feed4-layout, body > #app .bili-feed4-layout"),ap(".bili-feed4 .header-channel"),ap(".palette-button-wrap");const e=document.createElement("div");e.classList.add("bili-feed4-layout","pure-recommend",Is),await td(()=>document.querySelector(".bili-feed4 .bili-header"),{interval:20,timeout:2e3}),document.body.append(e);const t=document.createElement("div");e.append(t),og=da(t),og.render(B(ma,{children:[C(fS,{antd:true,baseGlobalStyle:true,homePageGlobalStyle:true}),C(I4e,{}),C(ed.BackTop,{style:{insetInlineEnd:"var(--back-top-right, 24px)"}})]}));}function j6(){z4e(),PK();}const B4e=qf(()=>{const e=document.createElement("div");document.body.appendChild(e),da(e).render(C(ma,{children:C(fS,{antd:true,baseGlobalStyle:true})}));});function z4e(){B4e();}function F4e(){try{return globalThis.self!==window.top}catch{return  true}}const _S=new uo,H4e=qf(()=>{window.navigation?.addEventListener?.("navigatesuccess",()=>{_S.emit("navigate-success");});});queueMicrotask(H4e);function V4e(){F4e()||(j6(),ot.videoCard.videoPreview.addTo.searchPage&&j4e());}function j4e(){const e=ca(()=>{const r=Array.from(document.querySelectorAll(".video-list-item:has(> .bili-video-card),div:has(> .bili-video-card)"));for(const o of r)U4e(o);},1e3);e(),new MutationObserver(()=>e()).observe(document.body,{childList:true,subtree:true});}const Rk=new WeakSet,Nk=`${Kr}-add-large-preview-processed`;function U4e(e){if(Rk.has(e)||e.getAttribute(Nk))return;const t=e.querySelector(".bili-watch-later--wrap");if(!t)return;const n=document.createElement("div");t.after(n),Rk.add(e),e.setAttribute(Nk,"true"),da(n).render(C(ma,{children:C(G4e,{el:e})}));}const W4e={useMotion:true,motionProps:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:0}},transition:{duration:.2,ease:"linear",delay:.2}}};function G4e({el:e}){const{bvid:t="",cover:n}=f.useMemo(()=>q4e(e),[e]),r=f.useMemo(()=>e.querySelector(".bili-video-card")??e,[e]),o=f.useMemo(()=>r.querySelector(".bili-video-card__wrap > a"),[e]),i=uS(o),s=f.useRef(o),{largePreviewActionButtonEl:l,largePreviewEl:u}=mK({shouldFetchPreviewData:!!t,hasLargePreviewActionButton:true,actionButtonVisible:i,actionButtonProps:W4e,bvid:t,cid:void 0,uniqId:t,recSharedEmitter:kq,cardTarget:r,cover:n,videoCardAsTriggerRef:s});return B(_e,{children:[C("div",{className:or(Qp.top("right"),"right-[calc(8px+28px+5px)]"),children:l}),Oo.createPortal(u,r)]})}function q4e(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 K4e=`${Kr}-${crypto.randomUUID()}`;async function Y4e(){if(!Lu.mid)return;const e=".h-action",t=".upinfo .operations";await aS([e,t].join(","),n=>{Lu.href=location.href,Lu.usingNewSpacePage=n.matches(t),DK();const r=document.createElement("span");r.id=K4e,r.classList.add("mr-24px"),n.prepend(r),da(r).render(C(ma,{children:C(X4e,{})}));},{pollTimeout:1e4,pollInterval:1e3});}const Lu=Dn({href:location.href,usingNewSpacePage:false,followed:false,get mid(){return Q4e(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()}}),DK=sl(async()=>{const e=await td(()=>{if(Array.from(document.querySelectorAll(".space-follow-btn")).filter(n=>n.textContent?.trim()==="已关注").length>0)return  true},{interval:100,timeout:5e3});Lu.followed=!!e;});_S.on("navigate-success",()=>{Lu.href=location.href,DK();});function X4e(){const{mid:e,collectionId:t,followed:n,isSearching:r,searchKeyword:o}=gt(Lu);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/?${Gi.Mid}=${e}`;r&&o&&(m+=`&${Gi.SearchText}=${o}`),l=C(qE,{className:i,href:m,tooltip:`在「${Lo}」中查看 UP 的投稿`,children:C(j0,{className:s})},"btnSpaceUpload");}let u;if(n){const m=`https://www.bilibili.com/?${Si.Mid}=${e}`;u=C(qE,{className:i,href:m,tooltip:`在「${Lo}」中查看 UP 的动态`,children:C(V0,{className:s})},"btnDynamicFeed");}let d;return typeof t=="number"&&(d=C(qE,{className:i,href:`https://www.bilibili.com/?${eg.CollectionIdFull}=${t}`,target:"_blank",tooltip:`在「${Lo}」中查看合集`,children:C(xm,{className:s})},"btnViewCollection")),B("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(Lu),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?C("a",{...i,href:e,className:l,style:r,children:t}):C("a",{href:e,className:Y("h-f-btn",n),style:{width:"auto",paddingInline:"15px",...r},...i,children:t});return o?C(sn,{title:o,children:u}):u}function Q4e(e=location.href){const n=new URL(e).pathname.split("/").map(r=>r.trim()).find(Boolean);if(!(!n||!/^\d+$/.test(n)))return n}function Z4e(){_S.on("navigate-success",J4e);}function J4e(){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 eIe(){j6(),Z4e(),Y4e();}async function tIe(){if(GM.registerMenuCommand?.("⭐️ 加入收藏",()=>KE()),!Hy())return;const e=()=>ot.fav.useCustomFavPicker.onPlayPage;document.addEventListener("keydown",t=>{if(G0(t,"Shift+E")||e()&&G0(t,"E")){if(!Hy()||Vwe()||t.target.closest("bili-comments"))return;t.stopImmediatePropagation(),t.preventDefault(),KE();}},{capture:true}),e()&&(await td(()=>document.querySelector(".video-fav.video-toolbar-left-item"),{interval:100,timeout:5e3}))?.addEventListener("click",n=>{!e()||!Hy()||(n.stopImmediatePropagation(),n.preventDefault(),KE());},{capture:true});}async function KE(e){const t=Hy();if(!t)return Wt.error("无法解析视频 BVID !");const n=U3e(t);if(e===void 0){const r=await Uu.getVideoFavState(n);r&&(e=r.favFolderIds);}await r1(e,async r=>{if(!await y6(n,e,r))return;const i=!!r;return document.querySelector(".video-fav.video-toolbar-left-item")?.classList.toggle("on",i),true});}var nIe=DR({key:"css"}),rIe=nIe.css;function oIe(){ot.videoPlayPage.addQuickLinks&&iIe();}async function iIe(){await gn(2e3);const e=".rcmd-tab .video-pod .header-bottom .subscribe-btn",t=await td(()=>document.querySelector(e),{interval:250,timeout:1e4});if(!t)return Bo("failed to find .subscribe-btn");const n=document.createElement("div");t.insertAdjacentElement("afterend",n),t.parentElement?.classList.add(rIe({name:"wzlxvn",styles:"display:flex;flex-direction:row-reverse;align-items:center;.subscribe-btn{flex:none;}"})),da(n).render(C(ma,{children:C(sIe,{})}));}const du=Dn({href:location.href,collectionUrl:void 0,queryCollectionUrl:ca(function(){du.collectionUrl=document.querySelector(".video-pod .header-top a.title")?.href;},100),get gateCollectionUrl(){const{collectionUrl:e}=this;if(!e)return;const t=new URL(e,this.href).searchParams.get("sid");if(t)return `https://${Ka.Main}/?${eg.CollectionId}=${t}`}});_S.on("navigate-success",async()=>{const e=Br(du);if(du.href=location.href,du.queryCollectionUrl(),du.href!==e.href)for(const t of [100,200,400,1e3,2e3,4e3])await gn(t),du.queryCollectionUrl();});function sIe(){const{gateCollectionUrl:e}=gt(du);return !!e&&C(sn,{title:B(_e,{children:["在「",Lo,"」中查看合集 "]}),children:C(ct,{className:"mr-5px icon-only-round-button size-24px",href:e,target:"_blank",children:C(xm,{className:"size-16px"})})})}function OM(){if(!(typeof unsafeWindow>"u"))return unsafeWindow.player}const Gy=po.extend("main:video-play-page");async function aIe(){lIe(),cIe(),await Promise.all([uIe(),dIe()]);}function lIe(){c6&&GM.registerMenuCommand?.("🎦 小窗打开",()=>{_K(),fIe();});}function cIe(){ER&&GM.registerMenuCommand?.("▶️ IINA 打开",()=>{_K(),mIe();});}async function uIe(){const e=new URL(location.href).searchParams.get(hc.PlayerScreenMode);if(Gy("targetMode=%s",e),!(e===ql.WebFullscreen||e===ql.Fullscreen))return;let n;e===ql.WebFullscreen&&(n=()=>document.querySelector('[role="button"][aria-label="网页全屏"]')?.click()),e===ql.Fullscreen&&(n=()=>document.querySelector('[role="button"][aria-label="全屏"]')?.click());const r=()=>document.querySelector("#bilibili-player .bpx-player-container")?.dataset.screen||ql.Normal,o=Date.now()+Qr("30s");for(;r()!==e&&Date.now()<=o;)Gy("current mode: %s",r()),n?.(),await gn(100);Gy("handleFullscreen to %s complete",e);}async function dIe(){if(TG()||!(new URL(location.href).searchParams.get(hc.ForceAutoPlay)===MR.ON))return;const t=()=>{const r=OM();return !!r&&!r.isPaused()},n=Date.now()+Qr("30s");for(;Date.now()<=n&&!t();)OM()?.play(),await gn(1e3);Gy("syncForceAutoPlayState complete, playing = %s",t());}function _K(){const e=OM();e&&!e.isPaused()&&e.pause();}function fIe(){const e=new URL(location.href);e.searchParams.set(hc.PlayerScreenMode,ql.WebFullscreen);const t=e.href;OG(t,"");}function mIe(){const e=`iina://open?url=${encodeURIComponent(location.href)}`;window.open(e,"_self");}function hIe(){return j6(),Promise.all([tIe(),aIe(),oIe()])}Xn.extend(kxe);(function(){if(el)return _4e();if(jW)return hIe();if(uZ)return eIe();if(dZ)return V4e()})();

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