Bilibili-Gate

Bilibili 自定义首页

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

作者のサイトでサポートを受ける。または、このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Bilibili-Gate
// @namespace    https://magicdawn.fun
// @version      0.34.17
// @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.15.2/files/dist/axios.min.js
// @require      https://registry.npmmirror.com/ua-parser-js/1.0.41/files/dist/ua-parser.min.js
// @require      https://registry.npmmirror.com/localforage/1.10.0/files/dist/localforage.min.js
// @require      https://registry.npmmirror.com/pinyin-match/1.2.10/files/dist/main.js
// @require      https://registry.npmmirror.com/spark-md5/3.0.2/files/spark-md5.min.js
// @tag          bilibili
// @connect      app.bilibili.com
// @grant        GM.deleteValue
// @grant        GM.getValue
// @grant        GM.listValues
// @grant        GM.openInTab
// @grant        GM.registerMenuCommand
// @grant        GM.setClipboard
// @grant        GM.setValue
// @grant        GM.xmlHttpRequest
// @grant        GM_addStyle
// @grant        GM_addValueChangeListener
// @grant        GM_download
// @grant        GM_info
// @grant        unsafeWindow
// @run-at       document-body
// ==/UserScript==

(async function (lQ, UM, sparkMd5, D4, uQ) {
  'use strict';

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

  aQ(' ._cls--gate-video-grid--divider_h4766_1 .ant-divider-inner-text{display:inline-flex;align-items:center;min-height:30px}._cls--gate-video-grid--divider_h4766_1 .ant-divider-inner-text a{color:var(--ant-color-link)}._cls--gate-video-grid--divider_h4766_1 .ant-divider-inner-text a:hover{color:var(--ant-color-primary)}._cls--gate-video-card--context-menu--root_h4766_13 .ant-dropdown-menu{--ant-dropdown-padding-block: 3px}._cls--gate-video-card--context-menu--root_h4766_13 .ant-dropdown-menu:has(:nth-child(12)){--ant-dropdown-padding-block: 2px}._video-grid_ucv12_1{display:grid;position:relative;width:100%;grid-gap:20px 12px;--bilibili-gate--video-card--border-radius: 15px}._grid-template-columns-using-var-col_ucv12_9{--col: 4;grid-template-columns:repeat(var(--col),minmax(0,1fr))}._grid-template-columns-using-card-min-width_ucv12_14{--card-min-width: 330px;grid-template-columns:repeat(auto-fill,minmax(var(--card-min-width),1fr))}._video-grid-addon-center-empty_ucv12_19:before{content:"";grid-column:3/-3;grid-row:1/span 9999;grid-auto-flow:dense}._video-grid-bili-feed4_ucv12_26{grid-gap:20px 20px}@media(max-width:1399px){._video-grid-bili-feed4_ucv12_26{--col: 4}}@media(min-width:1400px){._video-grid-bili-feed4_ucv12_26{--col: 5}}._video-grid-bili-feed4_ucv12_26 .ant-divider-horizontal.ant-divider-with-text{margin-bottom:-15px;margin-top:-15px}._video-grid-bili-feed4_ucv12_26 .ant-divider-horizontal.ant-divider-with-text:first-of-type{margin-top:0}._video-grid-custom_ucv12_47{--row-gap: clamp(20px, 1.4vw, 40px);column-gap:clamp(15px,1.1cqw,20px);row-gap:0}._video-grid-custom_ucv12_47 .bili-video-card{margin-bottom:var(--row-gap)}._video-grid-custom_ucv12_47 .ant-divider-horizontal.ant-divider-with-text{margin-top:calc(10px - var(--row-gap));margin-bottom:5px}._video-grid-custom_ucv12_47 .ant-divider-horizontal.ant-divider-with-text:first-of-type{margin-top:0}._narrow-mode_ucv12_63{--col: 2 !important}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.icon-only-round-button{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;padding:0}.inline-icon-only-round-button{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;padding:0}.flex-center{display:flex;align-items:center;justify-content:center}.flex-v-center{display:flex;align-items:center}.inline-flex-center{display:inline-flex;align-items:center;justify-content:center}.\\[refresh\\:scroll\\]{refresh:scroll}.pointer-events-auto{pointer-events:auto}.\\[\\&_svg\\]\\:pointer-events-none svg,.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.absolute{position:absolute}.fixed{position:fixed}.position-relative,.relative{position:relative}.sticky{position:sticky}.static{position:static}.inset-0{inset:0}.inset-x-0{left:0;right:0}.bottom--6px{bottom:-6px}.bottom-0{bottom:0}.left--2px{left:-2px}.left--34px{left:-34px}.left-0{left:0}.left-2,.left-8px{left:8px}.left-50\\%{left:50%}.right--34px{right:-34px}.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--5px:hover{left:-5px}.hover\\:right--5px:hover{right:-5px}.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-1{z-index:1}.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-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-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-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-1,.p-4px{padding:4px}.p-10px{padding:10px}.p-15px{padding:15px}.p-1px{padding:1px}.p-20px{padding:20px}.p-2px{padding:2px}.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-2,.px-8px{padding-left:8px;padding-right:8px}.p-y-1,.py-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}.text-left{text-align:left}.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}.font-size-12px,.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}.leading-\\[0\\.9\\]{line-height:.9}.line-height-\\[1\\.2\\]{line-height:1.2}.line-height-\\[1\\]{line-height:1}.line-height-\\[unset\\],.line-height-unset{line-height:unset}.line-height-1\\.5{line-height:6px}.line-height-13px{line-height:13px}.line-height-17px{line-height:17px}.line-height-18px{line-height:18px}.line-height-normal{line-height:1.5}.line-height-snug{line-height:1.375}.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-250{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:.25s}.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 dQ(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 fQ='@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}';aQ(fQ);const mQ="_cls--gate-video-grid--divider_h4766_1",hQ="_cls--gate-video-card--context-menu--root_h4766_13",WM="_video-grid_ucv12_1",j_="_grid-template-columns-using-var-col_ucv12_9",U_="_grid-template-columns-using-card-min-width_ucv12_14",W_="_video-grid-addon-center-empty_ucv12_19",G_="_video-grid-bili-feed4_ucv12_26",q_="_video-grid-custom_ucv12_47",K_="_narrow-mode_ucv12_63",pQ={videoGrid:WM,gridTemplateColumnsUsingVarCol:j_,gridTemplateColumnsUsingCardMinWidth:U_,videoGridAddonCenterEmpty:W_,videoGridBiliFeed4:G_,videoGridCustom:q_,narrowMode:K_},L4=Object.freeze(Object.defineProperty({__proto__:null,default:pQ,gridTemplateColumnsUsingCardMinWidth:U_,gridTemplateColumnsUsingVarCol:j_,narrowMode:K_,videoGrid:WM,videoGridAddonCenterEmpty:W_,videoGridBiliFeed4:G_,videoGridCustom:q_},Symbol.toStringTag,{value:"Module"}));function gQ(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 oc(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function Y_(e,t){const n={};for(let r=0;r<e.length;r++){const o=e[r],i=t(o,r,e);Object.hasOwn(n,i)||(n[i]=[]),n[i].push(o);}return n}function vQ(e,t,n){return e<t?n==="asc"?-1:1:e>t?n==="asc"?1:-1:0}function Ba(e,t,n){return e.slice().sort((r,o)=>{const i=n.length;for(let s=0;s<t.length;s++){const l=i>s?n[s]:n[i-1],u=t[s],d=typeof u=="function",m=d?u(r):r[u],p=d?u(o):o[u],g=vQ(m,p,l);if(g!==0)return g}return 0})}function bQ(e,t){if(t==null&&(t=e,e=0),e>=t)throw new Error("Invalid input: The maximum value must be greater than the minimum value.");return Math.random()*(t-e)+e}function yQ(e,t){return Math.floor(bQ(e,t))}function Ri(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 X_(e){return typeof e=="symbol"||e instanceof Symbol}function SQ(e){return X_(e)?NaN:Number(e)}function CQ(e){return e?(e=SQ(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function xQ(e){const t=CQ(e),n=t%1;return n?t-n:t}function ug(e){return [...new Set(e)]}function yc(e,t){const n=new Map;for(let r=0;r<e.length;r++){const o=e[r],i=t(o,r,e);n.has(i)||n.set(i,o);}return Array.from(n.values())}let wQ=class extends DOMException{constructor(t="The operation was aborted"){super(t);}};function $Q(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 $=m==null;p(),s&&$&&u();};return S.schedule=p,S.cancel=b,S.flush=y,n?.addEventListener("abort",b,{once:true}),S}function Q_(e){return e}function EQ(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 Z_(){}function Yf(e){let t=false,n;return function(...r){return t||(t=true,n=e(...r)),n}}function fn(e,{signal:t}={}){return new Promise((n,r)=>{const o=()=>{r(new wQ);},i=()=>{clearTimeout(s),o();};if(t?.aborted)return o();const s=setTimeout(()=>{t?.removeEventListener("abort",i),n();},e);t?.addEventListener("abort",i,{once:true});})}function ua(e,t,{signal:n,edges:r=["leading","trailing"]}={}){let o=null;const i=$Q(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 J_(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 e9(e){return e==null||typeof e!="object"&&typeof e!="function"}function t9(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Yx(e){if(e9(e))return e;if(Array.isArray(e)||t9(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 oE(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function iE(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const n9="[object RegExp]",r9="[object String]",o9="[object Number]",i9="[object Boolean]",sE="[object Arguments]",s9="[object Symbol]",a9="[object Date]",l9="[object Map]",c9="[object Set]",u9="[object Array]",MQ="[object Function]",d9="[object ArrayBuffer]",ly="[object Object]",TQ="[object Error]",f9="[object DataView]",m9="[object Uint8Array]",h9="[object Uint8ClampedArray]",p9="[object Uint16Array]",g9="[object Uint32Array]",AQ="[object BigUint64Array]",v9="[object Int8Array]",b9="[object Int16Array]",y9="[object Int32Array]",RQ="[object BigInt64Array]",S9="[object Float32Array]",C9="[object Float64Array]",k4=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})()||Function("return this")();function aE(e){return typeof k4.Buffer<"u"&&k4.Buffer.isBuffer(e)}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(e9(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(aE(e))return e.subarray();if(t9(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),kl(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),kl(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),kl(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,kl(s,e,n,r,o),s}if(e instanceof Boolean){const s=new Boolean(e.valueOf());return r.set(e,s),kl(s,e,n,r,o),s}if(e instanceof Number){const s=new Number(e.valueOf());return r.set(e,s),kl(s,e,n,r,o),s}if(e instanceof String){const s=new String(e.valueOf());return r.set(e,s),kl(s,e,n,r,o),s}if(typeof e=="object"&&NQ(e)){const s=Object.create(Object.getPrototypeOf(e));return r.set(e,s),kl(s,e,n,r,o),s}return e}function kl(e,t,n=e,r,o){const i=[...Object.keys(t),...oE(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 NQ(e){switch(iE(e)){case sE:case u9:case d9:case f9:case i9:case a9:case S9:case C9:case v9:case b9:case y9:case l9:case o9:case ly:case n9:case c9:case r9:case s9:case m9:case h9:case p9:case g9:return  true;default:return  false}}function Rf(e){return of(e,void 0,e,new Map,void 0)}function Nf(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 vp(e){return e==="__proto__"}function _a(e,t,n){const r=Object.keys(t);for(let o=0;o<r.length;o++){const i=r[o];if(vp(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]=_a(l,s,n):e[i]=_a([],s,n):Nf(s)?Nf(l)?e[i]=_a(l,s,n):e[i]=_a({},s,n):(l===void 0||s!==void 0)&&(e[i]=s);}return e}function x9(e,t){const n={...e};for(let r=0;r<t.length;r++){const o=t[r];delete n[o];}return n}function zu(e,t){const n={};for(let r=0;r<t.length;r++){const o=t[r];Object.hasOwn(e,o)&&(n[o]=e[o]);}return n}const PQ=new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+","gu");function IQ(e){return Array.from(e.match(PQ)??[])}function OQ(e,t){return _a(Yx(e),t,function n(r,o){if(Array.isArray(o))return Array.isArray(r)?_a(Yx(r),o,n):_a([],o,n);if(Nf(o))return Nf(r)?_a(Yx(r),o,n):_a({},o,n)})}function w9(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function DQ(e,t,n){return Bh(e,t,void 0,void 0,void 0,void 0,n)}function Bh(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 Yh(e,t,i,s)}return Yh(e,t,i,s)}function Yh(e,t,n,r){if(Object.is(e,t))return  true;let o=iE(e),i=iE(t);if(o===sE&&(o=ly),i===sE&&(i=ly),o!==i)return  false;switch(o){case r9:return e.toString()===t.toString();case o9:{const u=e.valueOf(),d=t.valueOf();return w9(u,d)}case i9:case a9:case s9:return Object.is(e.valueOf(),t.valueOf());case n9:return e.source===t.source&&e.flags===t.flags;case MQ:return e===t}n=n??new Map;const s=n.get(e),l=n.get(t);if(s!=null&&l!=null)return s===t;n.set(e,t),n.set(t,e);try{switch(o){case l9:{if(e.size!==t.size)return !1;for(const[u,d]of e.entries())if(!t.has(u)||!Bh(d,t.get(u),u,e,t,n,r))return !1;return !0}case c9:{if(e.size!==t.size)return !1;const u=Array.from(e.values()),d=Array.from(t.values());for(let m=0;m<u.length;m++){const p=u[m],g=d.findIndex(b=>Bh(p,b,void 0,e,t,n,r));if(g===-1)return !1;d.splice(g,1);}return !0}case u9:case m9:case h9:case p9:case g9:case AQ:case v9:case b9:case y9:case RQ:case S9:case C9:{if(aE(e)!==aE(t)||e.length!==t.length)return !1;for(let u=0;u<e.length;u++)if(!Bh(e[u],t[u],u,e,t,n,r))return !1;return !0}case d9:return e.byteLength!==t.byteLength?!1:Yh(new Uint8Array(e),new Uint8Array(t),n,r);case f9:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:Yh(new Uint8Array(e),new Uint8Array(t),n,r);case TQ:return e.name===t.name&&e.message===t.message;case ly:{if(!(Yh(e.constructor,t.constructor,n,r)||Nf(e)&&Nf(t)))return !1;const d=[...Object.keys(e),...oE(e)],m=[...Object.keys(t),...oE(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(!Bh(b,y,g,e,t,n,r))return !1}return !0}default:return !1}}finally{n.delete(e),n.delete(t);}}function ti(e,t){return DQ(e,t,Z_)}function ts(e){return e==null}function LQ(e){const t=IQ(e.trim());let n="";for(let r=0;r<t.length;r++){const o=t[r];n&&(n+=" "),n+=o[0].toUpperCase()+o.slice(1).toLowerCase();}return n}function kQ(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 _Q(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 BQ(e,t){return t===void 0?e.trim():_Q(kQ(e,t),t)}function ic(e){try{return [null,e()]}catch(t){return [t,null]}}async function dg(e){try{return [null,await e()]}catch(t){return [t,null]}}function Nr(e,t){if(!e)throw typeof t=="string"?new Error(t):t}function zQ(e){switch(typeof e){case "number":case "symbol":return  false;case "string":return e.includes(".")||e.includes("[")||e.includes("]")}}function qM(e){return typeof e=="string"||typeof e=="symbol"?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}function $9(e){if(e==null)return "";if(typeof e=="string")return e;if(Array.isArray(e))return e.map($9).join(",");const t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function E9(e){if(Array.isArray(e))return e.map(qM);if(typeof e=="symbol")return [e];e=$9(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(vp(t))return n;const r=e[t];return r===void 0?zQ(t)?tr(e,E9(t),n):n:r}case "number":case "symbol":{typeof t=="number"&&(t=qM(t));const r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return FQ(e,t,n);if(Object.is(t?.valueOf(),-0)?t="-0":t=String(t),vp(t))return n;const r=e[t];return r===void 0?n:r}}}function FQ(e,t,n){if(t.length===0)return n;let r=e;for(let o=0;o<t.length;o++){if(r==null||vp(t[o]))return n;r=r[t[o]];}return r===void 0?n:r}function _4(e){return e!==null&&(typeof e=="object"||typeof e=="function")}const HQ=/^(?:0|[1-9]\d*)$/;function VQ(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case "number":return Number.isInteger(e)&&e>=0&&e<t;case "symbol":return  false;case "string":return HQ.test(e)}}const jQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,UQ=/^\w*$/;function WQ(e,t){return Array.isArray(e)?false:typeof e=="number"||typeof e=="boolean"||e==null||X_(e)?true:typeof e=="string"&&(UQ.test(e)||!jQ.test(e))||t!=null&&Object.hasOwn(t,e)}const GQ=(e,t,n)=>{const r=e[t];(!(Object.hasOwn(e,t)&&w9(r,n))||n===void 0&&!(t in e))&&(e[t]=n);};function qQ(e,t,n,r){if(e==null&&!_4(e))return e;let o;WQ(t,e)?o=[t]:Array.isArray(t)?o=t:o=E9(t);const i=n(tr(e,o));let s=e;for(let l=0;l<o.length&&s!=null;l++){const u=qM(o[l]);if(vp(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:_4(m)?m:VQ(o[l+1])?[]:{};}GQ(s,u,d),s=s[u];}return e}function Xf(e,t,n){return qQ(e,t,()=>n,()=>{})}function KQ(e,t){if(e=xQ(e),e<1||!Number.isSafeInteger(e))return [];const n=new Array(e);for(let r=0;r<e;r++)n[r]=typeof t=="function"?t(r):r;return n}const YQ=Symbol(),KM=Symbol(),zh="a",M9="f",B4="p",T9="c",A9="t",YM="h",Xh="w",XM="o",QM="k";let XQ=(e,t)=>new Proxy(e,t);const lE=Object.getPrototypeOf,cE=new WeakMap,R9=e=>e&&(cE.has(e)?cE.get(e):lE(e)===Object.prototype||lE(e)===Array.prototype),e0=e=>typeof e=="object"&&e!==null,QQ=e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(t=>!t.configurable&&!t.writable),ZQ=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=true;}),Object.create(lE(e),t)},JQ=(e,t)=>{const n={[M9]:t};let r=false;const o=(l,u)=>{if(!r){let d=n[zh].get(e);if(d||(d={},n[zh].set(e,d)),l===Xh)d[Xh]=true;else {let m=d[l];m||(m=new Set,d[l]=m),m.add(u);}}},i=()=>{r=true,n[zh].delete(e);},s={get(l,u){return u===KM?e:(o(QM,u),N9(Reflect.get(l,u),n[zh],n[T9],n[A9]))},has(l,u){return u===YQ?(i(),true):(o(YM,u),Reflect.has(l,u))},getOwnPropertyDescriptor(l,u){return o(XM,u),Reflect.getOwnPropertyDescriptor(l,u)},ownKeys(l){return o(Xh),Reflect.ownKeys(l)}};return t&&(s.set=s.deleteProperty=()=>false),[s,n]},ZM=e=>e[KM]||e,N9=(e,t,n,r)=>{if(!R9(e))return e;let o=r&&r.get(e);if(!o){const u=ZM(e);QQ(u)?o=[u,ZQ(u)]:o=[u],r?.set(e,o);}const[i,s]=o;let l=n&&n.get(i);return (!l||l[1][M9]!==!!s)&&(l=JQ(i,!!s),l[1][B4]=XQ(s||i,l[0]),n&&n.set(i,l)),l[1][zh]=t,l[1][T9]=n,l[1][A9]=r,l[1][B4]},eZ=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some((o,i)=>o!==r[i])},P9=(e,t,n,r,o=Object.is)=>{if(o(e,t))return  false;if(!e0(e)||!e0(t))return  true;const i=n.get(ZM(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[YM]||[])if(s=Reflect.has(e,l)!==Reflect.has(t,l),s)return s;if(i[Xh]===true){if(s=eZ(e,t),s)return s}else for(const l of i[XM]||[]){const u=!!Reflect.getOwnPropertyDescriptor(e,l),d=!!Reflect.getOwnPropertyDescriptor(t,l);if(s=u!==d,s)return s}for(const l of i[QM]||[])if(s=P9(e[l],t[l],n,r,o),s)return s;if(s===null)throw new Error("invalid used");return s},tZ=e=>R9(e)&&e[KM]||null,z4=(e,t=true)=>{cE.set(e,t);},nZ=(e,t,n)=>{const r=[],o=new WeakSet,i=(s,l)=>{var u,d,m;if(o.has(s))return;e0(s)&&o.add(s);const p=e0(s)&&t.get(ZM(s));if(p){if((u=p[YM])===null||u===void 0||u.forEach(g=>{const b=`:has(${String(g)})`;r.push(l?[...l,b]:[b]);}),p[Xh]===true){const g=":ownKeys";r.push(l?[...l,g]:[g]);}else (d=p[XM])===null||d===void 0||d.forEach(g=>{const b=`:hasOwn(${String(g)})`;r.push(l?[...l,b]:[b]);});(m=p[QM])===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},t0={},JM=e=>typeof e=="object"&&e!==null,rZ=e=>JM(e)&&!fg.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),I9=(e,t)=>{const n=uE.get(e);if(n?.[0]===t)return n[1];const r=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return z4(r,true),uE.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(fg.has(i))z4(i,false);else if(Ka.has(i)){const[u,d]=Ka.get(i);l.value=I9(u,d());}Object.defineProperty(r,o,l);}),Object.preventExtensions(r)},oZ=(e,t,n,r)=>({deleteProperty(o,i){Reflect.get(o,i),n(i);const s=Reflect.deleteProperty(o,i);return s&&r(void 0),s},set(o,i,s,l){const u=!e()&&Reflect.has(o,i),d=Reflect.get(o,i,l);if(u&&(n0(d,s)||bp.has(s)&&n0(d,bp.get(s))))return  true;n(i),JM(s)&&(s=tZ(s)||s);const m=!Ka.has(s)&&fE(s)?_n(s):s;return t(i,m),Reflect.set(o,i,m,l),r(void 0),true}}),Ka=new WeakMap,fg=new WeakSet,uE=new WeakMap,cy=[1],bp=new WeakMap;let n0=Object.is,dE=(e,t)=>new Proxy(e,t),fE=rZ,mE=I9,hE=oZ;function _n(e={}){if(!JM(e))throw new Error("object required");const t=bp.get(e);if(t)return t;let n=cy[0];const r=new Set,o=(x,$=++cy[0])=>{n!==$&&(i=n=$,r.forEach(w=>w(x,$)));};let i=n;const s=(x=cy[0])=>(i!==x&&(i=x,u.forEach(([$])=>{const w=$[1](x);w>n&&(n=w);})),n),l=x=>($,w)=>{let M;$&&(M=[...$],M[1]=[x,...M[1]]),o(M,w);},u=new Map,d=(x,$)=>{const w=!fg.has($)&&Ka.get($);if(w){if((t0?"production":void 0)!=="production"&&u.has(x))throw new Error("prop listener already exists");if(r.size){const M=w[2](l(x));u.set(x,[w,M]);}else u.set(x,[w]);}},m=x=>{var $;const w=u.get(x);w&&(u.delete(x),($=w[1])==null||$.call(w));},p=x=>(r.add(x),r.size===1&&u.forEach(([w,M],T)=>{if((t0?"production":void 0)!=="production"&&M)throw new Error("remove already exists");const A=w[2](l(T));u.set(T,[w,A]);}),()=>{r.delete(x),r.size===0&&u.forEach(([w,M],T)=>{M&&(M(),u.set(T,[w]));});});let g=true;const b=hE(()=>g,d,m,o),y=dE(e,b);bp.set(e,y);const S=[e,s,p];return Ka.set(y,S),Reflect.ownKeys(e).forEach(x=>{const $=Object.getOwnPropertyDescriptor(e,x);"value"in $&&$.writable&&(y[x]=e[x]);}),g=false,y}function F4(e){const t=Ka.get(e);return t?.[1]()}function da(e,t,n){const r=Ka.get(e);(t0?"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=Ka.get(e);(t0?"production":void 0)!=="production"&&!t&&console.warn("Please use proxy object");const[n,r]=t;return mE(n,r())}function O9(e){return fg.add(e),e}function eT(){return {proxyStateMap:Ka,refSet:fg,snapCache:uE,versionHolder:cy,proxyCache:bp}}function iZ(e,t){switch(e){case "objectIs":n0=t(n0);break;case "newProxy":dE=t(dE);break;case "canProxy":fE=t(fE);break;case "createSnapshot":mE=t(mE);break;case "createHandler":hE=t(hE);break;default:throw new Error("unknown function")}}var bb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xx={exports:{}},Wt={};var H4;function sZ(){if(H4)return Wt;H4=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(B){return B===null||typeof B!="object"?null:(B=g&&B[g]||B["@@iterator"],typeof B=="function"?B:null)}var y={isMounted:function(){return  false},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,x={};function $(B,H,Q){this.props=B,this.context=H,this.refs=x,this.updater=Q||y;}$.prototype.isReactComponent={},$.prototype.setState=function(B,H){if(typeof B!="object"&&typeof B!="function"&&B!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,H,"setState");},$.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate");};function w(){}w.prototype=$.prototype;function M(B,H,Q){this.props=B,this.context=H,this.refs=x,this.updater=Q||y;}var T=M.prototype=new w;T.constructor=M,S(T,$.prototype),T.isPureReactComponent=true;var A=Array.isArray;function P(){}var N={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function O(B,H,Q){var J=Q.ref;return {$$typeof:e,type:B,key:H,ref:J!==void 0?J:null,props:Q}}function D(B,H){return O(B.type,H,B.props)}function L(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function V(B){var H={"=":"=0",":":"=2"};return "$"+B.replace(/[=:]/g,function(Q){return H[Q]})}var U=/\/+/g;function W(B,H){return typeof B=="object"&&B!==null&&B.key!=null?V(""+B.key):H.toString(36)}function z(B){switch(B.status){case "fulfilled":return B.value;case "rejected":throw B.reason;default:switch(typeof B.status=="string"?B.then(P,P):(B.status="pending",B.then(function(H){B.status==="pending"&&(B.status="fulfilled",B.value=H);},function(H){B.status==="pending"&&(B.status="rejected",B.reason=H);})),B.status){case "fulfilled":return B.value;case "rejected":throw B.reason}}throw B}function k(B,H,Q,J,te){var ne=typeof B;(ne==="undefined"||ne==="boolean")&&(B=null);var re=false;if(B===null)re=true;else switch(ne){case "bigint":case "string":case "number":re=true;break;case "object":switch(B.$$typeof){case e:case t:re=true;break;case m:return re=B._init,k(re(B._payload),H,Q,J,te)}}if(re)return te=te(B),re=J===""?"."+W(B,0):J,A(te)?(Q="",re!=null&&(Q=re.replace(U,"$&/")+"/"),k(te,H,Q,"",function(ee){return ee})):te!=null&&(L(te)&&(te=D(te,Q+(te.key==null||B&&B.key===te.key?"":(""+te.key).replace(U,"$&/")+"/")+re)),H.push(te)),1;re=0;var oe=J===""?".":J+":";if(A(B))for(var de=0;de<B.length;de++)J=B[de],ne=oe+W(J,de),re+=k(J,H,Q,ne,te);else if(de=b(B),typeof de=="function")for(B=de.call(B),de=0;!(J=B.next()).done;)J=J.value,ne=oe+W(J,de++),re+=k(J,H,Q,ne,te);else if(ne==="object"){if(typeof B.then=="function")return k(z(B),H,Q,J,te);throw H=String(B),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return re}function G(B,H,Q){if(B==null)return B;var J=[],te=0;return k(B,J,"","",function(ne){return H.call(Q,ne,te++)}),J}function j(B){if(B._status===-1){var H=B._result;H=H(),H.then(function(Q){(B._status===0||B._status===-1)&&(B._status=1,B._result=Q);},function(Q){(B._status===0||B._status===-1)&&(B._status=2,B._result=Q);}),B._status===-1&&(B._status=0,B._result=H);}if(B._status===1)return B._result.default;throw B._result}var K=typeof reportError=="function"?reportError:function(B){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:true,cancelable:true,message:typeof B=="object"&&B!==null&&typeof B.message=="string"?String(B.message):String(B),error:B});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",B);return}console.error(B);},X={map:G,forEach:function(B,H,Q){G(B,function(){H.apply(this,arguments);},Q);},count:function(B){var H=0;return G(B,function(){H++;}),H},toArray:function(B){return G(B,function(H){return H})||[]},only:function(B){if(!L(B))throw Error("React.Children.only expected to receive a single React element child.");return B}};return Wt.Activity=p,Wt.Children=X,Wt.Component=$,Wt.Fragment=n,Wt.Profiler=o,Wt.PureComponent=M,Wt.StrictMode=r,Wt.Suspense=u,Wt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Wt.__COMPILER_RUNTIME={__proto__:null,c:function(B){return N.H.useMemoCache(B)}},Wt.cache=function(B){return function(){return B.apply(null,arguments)}},Wt.cacheSignal=function(){return null},Wt.cloneElement=function(B,H,Q){if(B==null)throw Error("The argument must be a React element, but you passed "+B+".");var J=S({},B.props),te=B.key;if(H!=null)for(ne in H.key!==void 0&&(te=""+H.key),H)!I.call(H,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&H.ref===void 0||(J[ne]=H[ne]);var ne=arguments.length-2;if(ne===1)J.children=Q;else if(1<ne){for(var re=Array(ne),oe=0;oe<ne;oe++)re[oe]=arguments[oe+2];J.children=re;}return O(B.type,te,J)},Wt.createContext=function(B){return B={$$typeof:s,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null},B.Provider=B,B.Consumer={$$typeof:i,_context:B},B},Wt.createElement=function(B,H,Q){var J,te={},ne=null;if(H!=null)for(J in H.key!==void 0&&(ne=""+H.key),H)I.call(H,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(te[J]=H[J]);var re=arguments.length-2;if(re===1)te.children=Q;else if(1<re){for(var oe=Array(re),de=0;de<re;de++)oe[de]=arguments[de+2];te.children=oe;}if(B&&B.defaultProps)for(J in re=B.defaultProps,re)te[J]===void 0&&(te[J]=re[J]);return O(B,ne,te)},Wt.createRef=function(){return {current:null}},Wt.forwardRef=function(B){return {$$typeof:l,render:B}},Wt.isValidElement=L,Wt.lazy=function(B){return {$$typeof:m,_payload:{_status:-1,_result:B},_init:j}},Wt.memo=function(B,H){return {$$typeof:d,type:B,compare:H===void 0?null:H}},Wt.startTransition=function(B){var H=N.T,Q={};N.T=Q;try{var J=B(),te=N.S;te!==null&&te(Q,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(P,K);}catch(ne){K(ne);}finally{H!==null&&Q.types!==null&&(H.types=Q.types),N.T=H;}},Wt.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Wt.use=function(B){return N.H.use(B)},Wt.useActionState=function(B,H,Q){return N.H.useActionState(B,H,Q)},Wt.useCallback=function(B,H){return N.H.useCallback(B,H)},Wt.useContext=function(B){return N.H.useContext(B)},Wt.useDebugValue=function(){},Wt.useDeferredValue=function(B,H){return N.H.useDeferredValue(B,H)},Wt.useEffect=function(B,H){return N.H.useEffect(B,H)},Wt.useEffectEvent=function(B){return N.H.useEffectEvent(B)},Wt.useId=function(){return N.H.useId()},Wt.useImperativeHandle=function(B,H,Q){return N.H.useImperativeHandle(B,H,Q)},Wt.useInsertionEffect=function(B,H){return N.H.useInsertionEffect(B,H)},Wt.useLayoutEffect=function(B,H){return N.H.useLayoutEffect(B,H)},Wt.useMemo=function(B,H){return N.H.useMemo(B,H)},Wt.useOptimistic=function(B,H){return N.H.useOptimistic(B,H)},Wt.useReducer=function(B,H,Q){return N.H.useReducer(B,H,Q)},Wt.useRef=function(B){return N.H.useRef(B)},Wt.useState=function(B){return N.H.useState(B)},Wt.useSyncExternalStore=function(B,H,Q){return N.H.useSyncExternalStore(B,H,Q)},Wt.useTransition=function(){return N.H.useTransition()},Wt.version="19.2.5",Wt}var V4;function tT(){return V4||(V4=1,Xx.exports=sZ()),Xx.exports}var f=tT();const q=Sc(f),pE=dQ({__proto__:null,default:q},[f]),aZ={},lZ=(e,t)=>{const n=f.useRef(void 0);f.useEffect(()=>{n.current=nZ(e,t);}),f.useDebugValue(n.current);},cZ=lZ,uZ=new WeakMap;function pt(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=da(e,u,n);return u(),d},[e,n]),()=>{const u=Br(e);try{if(!i&&o.current&&!P9(o.current,u,r,new WeakMap))return o.current}catch{}return u},()=>Br(e));i=false,f.useLayoutEffect(()=>{o.current=s;}),(aZ?"production":void 0)!=="production"&&cZ(s,r);const l=f.useMemo(()=>new WeakMap,[]);return N9(s,r,l,uZ)}function dZ(e){return e instanceof Error?e.stack||e.message:e}function fZ(e,t){let n=0;for(let r=0;r<t.length;r++)n=(n<<5)-n+t.charCodeAt(r),n|=0;return e[Math.abs(n)%e.length]}function j4(e,t){let n=0,r=0,o=-1,i=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]==="*"))t[r]==="*"?(o=r,i=n,r++):(n++,r++);else if(o!==-1)r=o+1,i++,n=i;else return  false;for(;r<t.length&&t[r]==="*";)r++;return r===t.length}function mZ(e){return e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`}let r0="";function D9(e,t){let n,r,o,i;const s=(...l)=>{if(!s.enabled)return;const u=Date.now(),d=u-(n||u);n=u,l[0]=dZ(l[0]),typeof l[0]!="string"&&l.unshift("%O");let m=0;l[0]=l[0].replace(/%([a-z%])/gi,(p,g)=>{if(p==="%%")return "%";m++;const b=t.formatters[g];if(typeof b=="function"){const y=l[m];p=b.call(s,y),l.splice(m,1),m--;}return p}),t.formatArgs.call(s,d,l),s.log(...l);};return s.extend=function(l,u=":"){return D9(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!==r0&&(o=r0,i=pZ(e)),i),set:l=>{r=l;}}),s}let gE=[],vE=[];function hZ(e){r0=e,gE=[],vE=[];const t=r0.trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const n of t)n[0]==="-"?vE.push(n.slice(1)):gE.push(n);}function pZ(e){for(const t of vE)if(j4(e,t))return  false;for(const t of gE)if(j4(e,t))return  true;return  false}var gZ={};const vZ=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function bZ(e,t){const{useColors:n}=this;if(t[0]=`${(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")}+${this.humanize(e)}`,!n)return;const r=`color: ${this.color}`;t.splice(1,0,r,"color: inherit");let o=0,i=0;t[0].replace(/%[a-z%]/gi,s=>{s!=="%%"&&(o++,s==="%c"&&(i=o));}),t.splice(i,0,r);}const yZ=console.debug||console.log||(()=>{}),U4=CZ(),SZ={useColors:true,formatArgs:bZ,formatters:{j(e){try{return JSON.stringify(e)}catch(t){return `[UnexpectedJSONParseError]: ${t.message}`}}},inspectOpts:{},humanize:mZ,log:yZ};function L9(e,t){var n;const r=(n=t)!==null&&n!==void 0?n:fZ(vZ,e);return D9(e,Object.assign(SZ,{color:r},t))}function CZ(){try{return localStorage}catch{}}function xZ(){let e;try{e=U4.getItem("debug")||U4.getItem("DEBUG");}catch{}return !e&&typeof process<"u"&&"env"in process&&(e=gZ.DEBUG),e||""}hZ(xZ());var Qx={exports:{}},vh={},Zx={exports:{}},Jx={};var W4;function wZ(){return W4||(W4=1,(function(e){function t(k,G){var j=k.length;k.push(G);e:for(;0<j;){var K=j-1>>>1,X=k[K];if(0<o(X,G))k[K]=G,k[j]=X,j=K;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var G=k[0],j=k.pop();if(j!==G){k[0]=j;e:for(var K=0,X=k.length,B=X>>>1;K<B;){var H=2*(K+1)-1,Q=k[H],J=H+1,te=k[J];if(0>o(Q,j))J<X&&0>o(te,Q)?(k[K]=te,k[J]=j,K=J):(k[K]=Q,k[H]=j,K=H);else if(J<X&&0>o(te,j))k[K]=te,k[J]=j,K=J;else break e}}return G}function o(k,G){var j=k.sortIndex-G.sortIndex;return j!==0?j:k.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()};}else {var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l};}var u=[],d=[],m=1,p=null,g=3,b=false,y=false,S=false,x=false,$=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function T(k){for(var G=n(d);G!==null;){if(G.callback===null)r(d);else if(G.startTime<=k)r(d),G.sortIndex=G.expirationTime,t(u,G);else break;G=n(d);}}function A(k){if(S=false,T(k),!y)if(n(u)!==null)y=true,P||(P=true,V());else {var G=n(d);G!==null&&z(A,G.startTime-k);}}var P=false,N=-1,I=5,O=-1;function D(){return x?true:!(e.unstable_now()-O<I)}function L(){if(x=false,P){var k=e.unstable_now();O=k;var G=true;try{e:{y=!1,S&&(S=!1,w(N),N=-1),b=!0;var j=g;try{t:{for(T(k),p=n(u);p!==null&&!(p.expirationTime>k&&D());){var K=p.callback;if(typeof K=="function"){p.callback=null,g=p.priorityLevel;var X=K(p.expirationTime<=k);if(k=e.unstable_now(),typeof X=="function"){p.callback=X,T(k),G=!0;break t}p===n(u)&&r(u),T(k);}else r(u);p=n(u);}if(p!==null)G=!0;else {var B=n(d);B!==null&&z(A,B.startTime-k),G=!1;}}break e}finally{p=null,g=j,b=!1;}G=void 0;}}finally{G?V():P=false;}}}var V;if(typeof M=="function")V=function(){M(L);};else if(typeof MessageChannel<"u"){var U=new MessageChannel,W=U.port2;U.port1.onmessage=L,V=function(){W.postMessage(null);};}else V=function(){$(L,0);};function z(k,G){N=$(function(){k(e.unstable_now());},G);}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null;},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<k?Math.floor(1e3/k):5;},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(k){switch(g){case 1:case 2:case 3:var G=3;break;default:G=g;}var j=g;g=G;try{return k()}finally{g=j;}},e.unstable_requestPaint=function(){x=true;},e.unstable_runWithPriority=function(k,G){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3;}var j=g;g=k;try{return G()}finally{g=j;}},e.unstable_scheduleCallback=function(k,G,j){var K=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?K+j:K):j=K,k){case 1:var 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,k={id:m++,callback:G,priorityLevel:k,startTime:j,expirationTime:X,sortIndex:-1},j>K?(k.sortIndex=j,t(d,k),n(u)===null&&k===n(d)&&(S?(w(N),N=-1):S=true,z(A,j-K))):(k.sortIndex=X,t(u,k),y||b||(y=true,P||(P=true,V()))),k},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(k){var G=g;return function(){var j=g;g=G;try{return k.apply(this,arguments)}finally{g=j;}}};})(Jx)),Jx}var G4;function $Z(){return G4||(G4=1,Zx.exports=wZ()),Zx.exports}var ew={exports:{}},So={};var q4;function EZ(){if(q4)return So;q4=1;var e=tT();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 So.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,So.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)},So.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();}},So.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));},So.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u);},So.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});}},So.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);},So.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});}},So.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);},So.requestFormReset=function(u){r.d.r(u);},So.unstable_batchedUpdates=function(u,d){return u(d)},So.useFormState=function(u,d,m){return s.H.useFormState(u,d,m)},So.useFormStatus=function(){return s.H.useHostTransitionStatus()},So.version="19.2.5",So}var K4;function k9(){if(K4)return ew.exports;K4=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(),ew.exports=EZ(),ew.exports}var Y4;function MZ(){if(Y4)return vh;Y4=1;var e=$Z(),t=tT(),n=k9();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 E=h.return;if(E===null)break;var R=E.alternate;if(R===null){if(v=E.return,v!==null){h=v;continue}break}if(E.child===R.child){for(R=E.child;R;){if(R===h)return u(E),a;if(R===v)return u(E),c;R=R.sibling;}throw Error(r(188))}if(h.return!==v.return)h=E,v=R;else {for(var F=false,Z=E.child;Z;){if(Z===h){F=true,h=E,v=R;break}if(Z===v){F=true,v=E,h=R;break}Z=Z.sibling;}if(!F){for(Z=R.child;Z;){if(Z===h){F=true,h=R,v=E;break}if(Z===v){F=true,v=R,h=E;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"),$=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),M=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),D=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function V(a){return a===null||typeof a!="object"?null:(a=L&&a[L]||a["@@iterator"],typeof a=="function"?a:null)}var U=Symbol.for("react.client.reference");function W(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===U?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case S:return "Fragment";case $:return "Profiler";case x:return "StrictMode";case A:return "Suspense";case P:return "SuspenseList";case O:return "Activity"}if(typeof a=="object")switch(a.$$typeof){case y:return "Portal";case M:return a.displayName||"Context";case w: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 I:c=a._payload,a=a._init;try{return W(a(c))}catch{}}return null}var z=Array.isArray,k=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j={pending:false,data:null,method:null,action:null},K=[],X=-1;function B(a){return {current:a}}function H(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=B(null),te=B(null),ne=B(null),re=B(null);function oe(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)?r4(a):0;break;default:if(a=c.tagName,c=c.namespaceURI)c=r4(c),a=o4(c,a);else switch(a){case "svg":a=1;break;case "math":a=2;break;default:a=0;}}H(J),Q(J,a);}function de(){H(J),H(te),H(ne);}function ee(a){a.memoizedState!==null&&Q(re,a);var c=J.current,h=o4(c,a.type);c!==h&&(Q(te,a),Q(J,h));}function se(a){te.current===a&&(H(J),H(te)),re.current===a&&(H(re),mh._currentValue=j);}var le,ae;function Ee(a){if(le===void 0)try{throw Error()}catch(h){var c=h.stack.trim().match(/\n( *(at )?)/);le=c&&c[1]||"",ae=-1<h.stack.indexOf(`
    at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":"";}return `
`+le+a+ae}var ce=false;function he(a,c){if(!a||ce)return "";ce=true;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(c){var We=function(){throw Error()};if(Object.defineProperty(We.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(We,[]);}catch(Pe){var Ae=Pe;}Reflect.construct(a,[],We);}else {try{We.call();}catch(Pe){Ae=Pe;}a.call(We.prototype);}}else {try{throw Error()}catch(Pe){Ae=Pe;}(We=a())&&typeof We.catch=="function"&&We.catch(function(){});}}catch(Pe){if(Pe&&Ae&&typeof Pe.stack=="string")return [Pe.stack,Ae.stack]}return [null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var R=v.DetermineComponentFrameRoot(),F=R[0],Z=R[1];if(F&&Z){var ue=F.split(`
`),$e=Z.split(`
`);for(E=v=0;v<ue.length&&!ue[v].includes("DetermineComponentFrameRoot");)v++;for(;E<$e.length&&!$e[E].includes("DetermineComponentFrameRoot");)E++;if(v===ue.length||E===$e.length)for(v=ue.length-1,E=$e.length-1;1<=v&&0<=E&&ue[v]!==$e[E];)E--;for(;1<=v&&0<=E;v--,E--)if(ue[v]!==$e[E]){if(v!==1||E!==1)do if(v--,E--,0>E||ue[v]!==$e[E]){var _e=`
`+ue[v].replace(" at new "," at ");return a.displayName&&_e.includes("<anonymous>")&&(_e=_e.replace("<anonymous>",a.displayName)),_e}while(1<=v&&0<=E);break}}}finally{ce=false,Error.prepareStackTrace=h;}return (h=a?a.displayName||a.name:"")?Ee(h):""}function ge(a,c){switch(a.tag){case 26:case 27:case 5:return Ee(a.type);case 16:return Ee("Lazy");case 13:return a.child!==c&&c!==null?Ee("Suspense Fallback"):Ee("Suspense");case 19:return Ee("SuspenseList");case 0:case 15:return he(a.type,false);case 11:return he(a.type.render,false);case 1:return he(a.type,true);case 31:return Ee("Activity");default:return ""}}function Ce(a){try{var c="",h=null;do c+=ge(a,h),h=a,a=a.return;while(a);return c}catch(v){return `
Error generating stack: `+v.message+`
`+v.stack}}var Re=Object.prototype.hasOwnProperty,et=e.unstable_scheduleCallback,Ne=e.unstable_cancelCallback,ve=e.unstable_shouldYield,Te=e.unstable_requestPaint,Se=e.unstable_now,Ie=e.unstable_getCurrentPriorityLevel,Ue=e.unstable_ImmediatePriority,je=e.unstable_UserBlockingPriority,qe=e.unstable_NormalPriority,Ze=e.unstable_LowPriority,Ye=e.unstable_IdlePriority,Be=e.log,Ke=e.unstable_setDisableYieldValue,Qe=null,ke=null;function Oe(a){if(typeof Be=="function"&&Ke(a),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(Qe,a);}catch{}}var ct=Math.clz32?Math.clz32:kt,Ot=Math.log,mt=Math.LN2;function kt(a){return a>>>=0,a===0?32:31-(Ot(a)/mt|0)|0}var yt=256,Dt=262144,ft=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 vt(a,c,h){var v=a.pendingLanes;if(v===0)return 0;var E=0,R=a.suspendedLanes,F=a.pingedLanes;a=a.warmLanes;var Z=v&134217727;return Z!==0?(v=Z&~R,v!==0?E=ut(v):(F&=Z,F!==0?E=ut(F):h||(h=Z&~a,h!==0&&(E=ut(h))))):(Z=v&~R,Z!==0?E=ut(Z):F!==0?E=ut(F):h||(h=v&~a,h!==0&&(E=ut(h)))),E===0?0:c!==0&&c!==E&&(c&R)===0&&(R=E&-E,h=c&-c,R>=h||R===32&&(h&4194048)!==0)?c:E}function He(a,c){return (a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&c)===0}function Ge(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 be(){var a=ft;return ft<<=1,(ft&62914560)===0&&(ft=4194304),a}function Me(a){for(var c=[],h=0;31>h;h++)c.push(a);return c}function ye(a,c){a.pendingLanes|=c,c!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0);}function me(a,c,h,v,E,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,ue=a.expirationTimes,$e=a.hiddenUpdates;for(h=F&~h;0<h;){var _e=31-ct(h),We=1<<_e;Z[_e]=0,ue[_e]=-1;var Ae=$e[_e];if(Ae!==null)for($e[_e]=null,_e=0;_e<Ae.length;_e++){var Pe=Ae[_e];Pe!==null&&(Pe.lane&=-536870913);}h&=~We;}v!==0&&Le(a,v,0),R!==0&&E===0&&a.tag!==0&&(a.suspendedLanes|=R&~(F&~c));}function Le(a,c,h){a.pendingLanes|=c,a.suspendedLanes&=~c;var v=31-ct(c);a.entangledLanes|=c,a.entanglements[v]=a.entanglements[v]|1073741824|h&261930;}function xe(a,c){var h=a.entangledLanes|=c;for(a=a.entanglements;h;){var v=31-ct(h),E=1<<v;E&c|a[v]&c&&(a[v]|=c),h&=~E;}}function ze(a,c){var h=c&-c;return h=(h&42)!==0?1:tt(h),(h&(a.suspendedLanes|c))!==0?0:h}function tt(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0;}return a}function it(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function dt(){var a=G.p;return a!==0?a:(a=window.event,a===void 0?32:T4(a.type))}function Et(a,c){var h=G.p;try{return G.p=a,c()}finally{G.p=h;}}var _t=Math.random().toString(36).slice(2),Nt="__reactFiber$"+_t,pn="__reactProps$"+_t,Wn="__reactContainer$"+_t,at="__reactEvents$"+_t,Ve="__reactListeners$"+_t,Xe="__reactHandles$"+_t,Mt="__reactResources$"+_t,wt="__reactMarker$"+_t;function Bt(a){delete a[Nt],delete a[pn],delete a[at],delete a[Ve],delete a[Xe];}function tn(a){var c=a[Nt];if(c)return c;for(var h=a.parentNode;h;){if(c=h[Wn]||h[Nt]){if(h=c.alternate,c.child!==null||h!==null&&h.child!==null)for(a=d4(a);a!==null;){if(h=a[Nt])return h;a=d4(a);}return c}a=h,h=a.parentNode;}return null}function nn(a){if(a=a[Nt]||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 xn(a){var c=a.tag;if(c===5||c===26||c===27||c===6)return a.stateNode;throw Error(r(33))}function fr(a){var c=a[Mt];return c||(c=a[Mt]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function bn(a){a[wt]=true;}var Jr=new Set,pa={};function eo(a,c){Jn(a,c),Jn(a+"Capture",c);}function Jn(a,c){for(pa[a]=c,a=0;a<c.length;a++)Jr.add(c[a]);}var Rm=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]*$"),Ht={},Vr={};function jr(a){return Re.call(Vr,a)?true:Re.call(Ht,a)?false:Rm.test(a)?Vr[a]=true:(Ht[a]=true,false)}function Bs(a,c,h){if(jr(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 Di(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 jo(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 to(a){switch(typeof a){case "bigint":case "boolean":case "number":case "string":case "undefined":return a;case "object":return a;default:return ""}}function Ic(a){var c=a.type;return (a=a.nodeName)&&a.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function sv(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 E=v.get,R=v.set;return Object.defineProperty(a,c,{configurable:true,get:function(){return E.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 Oc(a){if(!a._valueTracker){var c=Ic(a)?"checked":"value";a._valueTracker=sv(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=Ic(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 Ut(a){return a.replace(ht,function(c){return "\\"+c.charCodeAt(0).toString(16)+" "})}function fl(a,c,h,v,E,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=""+to(c)):a.value!==""+to(c)&&(a.value=""+to(c)):F!=="submit"&&F!=="reset"||a.removeAttribute("value"),c!=null?ld(a,F,to(c)):h!=null?ld(a,F,to(h)):v!=null&&a.removeAttribute("value"),E==null&&R!=null&&(a.defaultChecked=!!R),E!=null&&(a.checked=E&&typeof E!="function"&&typeof E!="symbol"),Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"?a.name=""+to(Z):a.removeAttribute("name");}function av(a,c,h,v,E,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)){Oc(a);return}h=h!=null?""+to(h):"",c=c!=null?""+to(c):h,Z||c===a.value||(a.value=c),a.defaultValue=c;}v=v??E,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),Oc(a);}function ld(a,c,h){c==="number"&&ad(a.ownerDocument)===a||a.defaultValue===""+h||(a.defaultValue=""+h);}function ga(a,c,h,v){if(a=a.options,c){c={};for(var E=0;E<h.length;E++)c["$"+h[E]]=true;for(h=0;h<a.length;h++)E=c.hasOwnProperty("$"+a[h].value),a[h].selected!==E&&(a[h].selected=E),E&&v&&(a[h].defaultSelected=true);}else {for(h=""+to(h),c=null,E=0;E<a.length;E++){if(a[E].value===h){a[E].selected=true,v&&(a[E].defaultSelected=true);return}c!==null||a[E].disabled||(c=a[E]);}c!==null&&(c.selected=true);}}function lv(a,c,h){if(c!=null&&(c=""+to(c),c!==a.value&&(a.value=c),h==null)){a.defaultValue!==c&&(a.defaultValue=c);return}a.defaultValue=h!=null?""+to(h):"";}function J6(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=to(c),a.defaultValue=h,v=a.textContent,v===h&&v!==""&&v!==null&&(a.value=v),Oc(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 nY=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function eN(a,c,h){var v=c.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?v?a.setProperty(c,""):c==="float"?a.cssFloat="":a[c]="":v?a.setProperty(c,h):typeof h!="number"||h===0||nY.has(c)?c==="float"?a.cssFloat=h:a[c]=(""+h).trim():a[c]=h+"px";}function tN(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 E in c)v=c[E],c.hasOwnProperty(E)&&h[E]!==v&&eN(a,E,v);}else for(var R in c)c.hasOwnProperty(R)&&eN(a,R,c[R]);}function WS(a){if(a.indexOf("-")===-1)return  false;switch(a){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":return  false;default:return  true}}var rY=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),oY=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function cv(a){return oY.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function va(){}var GS=null;function qS(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 nN(a){var c=nn(a);if(c&&(a=c.stateNode)){var h=a[pn]||null;e:switch(a=c.stateNode,c.type){case "input":if(fl(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="'+Ut(""+c)+'"][type="radio"]'),c=0;c<h.length;c++){var v=h[c];if(v!==a&&v.form===a.form){var E=v[pn]||null;if(!E)throw Error(r(90));fl(v,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name);}}for(c=0;c<h.length;c++)v=h[c],v.form===a.form&&sd(v);}break e;case "textarea":lv(a,h.value,h.defaultValue);break e;case "select":c=h.value,c!=null&&ga(a,!!h.multiple,c,false);}}}var KS=false;function rN(a,c,h){if(KS)return a(c,h);KS=true;try{var v=a(c);return v}finally{if(KS=false,(ud!==null||dd!==null)&&(Xv(),ud&&(c=ud,a=dd,dd=ud=null,nN(c),a)))for(c=0;c<a.length;c++)nN(a[c]);}}function Nm(a,c){var h=a.stateNode;if(h===null)return null;var v=h[pn]||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 ba=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),YS=false;if(ba)try{var Pm={};Object.defineProperty(Pm,"passive",{get:function(){YS=!0;}}),window.addEventListener("test",Pm,Pm),window.removeEventListener("test",Pm,Pm);}catch{YS=false;}var ml=null,XS=null,uv=null;function oN(){if(uv)return uv;var a,c=XS,h=c.length,v,E="value"in ml?ml.value:ml.textContent,R=E.length;for(a=0;a<h&&c[a]===E[a];a++);var F=h-a;for(v=1;v<=F&&c[h-v]===E[R-v];v++);return uv=E.slice(a,1<v?1-v:void 0)}function dv(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 fv(){return  true}function iN(){return  false}function Uo(a){function c(h,v,E,R,F){this._reactName=h,this._targetInst=E,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)?fv:iN,this.isPropagationStopped=iN,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=fv);},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=true),this.isPropagationStopped=fv);},persist:function(){},isPersistent:fv}),c}var Dc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mv=Uo(Dc),Im=p({},Dc,{view:0,detail:0}),iY=Uo(Im),QS,ZS,Om,hv=p({},Im,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:eC,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!==Om&&(Om&&a.type==="mousemove"?(QS=a.screenX-Om.screenX,ZS=a.screenY-Om.screenY):ZS=QS=0,Om=a),QS)},movementY:function(a){return "movementY"in a?a.movementY:ZS}}),sN=Uo(hv),sY=p({},hv,{dataTransfer:0}),aY=Uo(sY),lY=p({},Im,{relatedTarget:0}),JS=Uo(lY),cY=p({},Dc,{animationName:0,elapsedTime:0,pseudoElement:0}),uY=Uo(cY),dY=p({},Dc,{clipboardData:function(a){return "clipboardData"in a?a.clipboardData:window.clipboardData}}),fY=Uo(dY),mY=p({},Dc,{data:0}),aN=Uo(mY),hY={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pY={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},gY={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vY(a){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(a):(a=gY[a])?!!c[a]:false}function eC(){return vY}var bY=p({},Im,{key:function(a){if(a.key){var c=hY[a.key]||a.key;if(c!=="Unidentified")return c}return a.type==="keypress"?(a=dv(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?pY[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:eC,charCode:function(a){return a.type==="keypress"?dv(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?dv(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),yY=Uo(bY),SY=p({},hv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lN=Uo(SY),CY=p({},Im,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:eC}),xY=Uo(CY),wY=p({},Dc,{propertyName:0,elapsedTime:0,pseudoElement:0}),$Y=Uo(wY),EY=p({},hv,{deltaX:function(a){return "deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return "deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),MY=Uo(EY),TY=p({},Dc,{newState:0,oldState:0}),AY=Uo(TY),RY=[9,13,27,32],tC=ba&&"CompositionEvent"in window,Dm=null;ba&&"documentMode"in document&&(Dm=document.documentMode);var NY=ba&&"TextEvent"in window&&!Dm,cN=ba&&(!tC||Dm&&8<Dm&&11>=Dm),uN=" ",dN=false;function fN(a,c){switch(a){case "keyup":return RY.indexOf(c.keyCode)!==-1;case "keydown":return c.keyCode!==229;case "keypress":case "mousedown":case "focusout":return  true;default:return  false}}function mN(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var fd=false;function PY(a,c){switch(a){case "compositionend":return mN(c);case "keypress":return c.which!==32?null:(dN=true,uN);case "textInput":return a=c.data,a===uN&&dN?null:a;default:return null}}function IY(a,c){if(fd)return a==="compositionend"||!tC&&fN(a,c)?(a=oN(),uv=XS=ml=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 cN&&c.locale!=="ko"?null:c.data;default:return null}}var OY={color:true,date:true,datetime:true,"datetime-local":true,email:true,month:true,number:true,password:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true};function hN(a){var c=a&&a.nodeName&&a.nodeName.toLowerCase();return c==="input"?!!OY[a.type]:c==="textarea"}function pN(a,c,h,v){ud?dd?dd.push(v):dd=[v]:ud=v,c=rb(c,"onChange"),0<c.length&&(h=new mv("onChange","change",null,h,v),a.push({event:h,listeners:c}));}var Lm=null,km=null;function DY(a){Q5(a,0);}function pv(a){var c=xn(a);if(sd(c))return a}function gN(a,c){if(a==="change")return c}var vN=false;if(ba){var nC;if(ba){var rC="oninput"in document;if(!rC){var bN=document.createElement("div");bN.setAttribute("oninput","return;"),rC=typeof bN.oninput=="function";}nC=rC;}else nC=false;vN=nC&&(!document.documentMode||9<document.documentMode);}function yN(){Lm&&(Lm.detachEvent("onpropertychange",SN),km=Lm=null);}function SN(a){if(a.propertyName==="value"&&pv(km)){var c=[];pN(c,km,a,qS(a)),rN(DY,c);}}function LY(a,c,h){a==="focusin"?(yN(),Lm=c,km=h,Lm.attachEvent("onpropertychange",SN)):a==="focusout"&&yN();}function kY(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return pv(km)}function _Y(a,c){if(a==="click")return pv(c)}function BY(a,c){if(a==="input"||a==="change")return pv(c)}function zY(a,c){return a===c&&(a!==0||1/a===1/c)||a!==a&&c!==c}var di=typeof Object.is=="function"?Object.is:zY;function _m(a,c){if(di(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 E=h[v];if(!Re.call(c,E)||!di(a[E],c[E]))return  false}return  true}function CN(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function xN(a,c){var h=CN(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=CN(h);}}function wN(a,c){return a&&c?a===c?true:a&&a.nodeType===3?false:c&&c.nodeType===3?wN(a,c.parentNode):"contains"in a?a.contains(c):a.compareDocumentPosition?!!(a.compareDocumentPosition(c)&16):false:false}function $N(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 oC(a){var c=a&&a.nodeName&&a.nodeName.toLowerCase();return c&&(c==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||c==="textarea"||a.contentEditable==="true")}var FY=ba&&"documentMode"in document&&11>=document.documentMode,md=null,iC=null,Bm=null,sC=false;function EN(a,c,h){var v=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;sC||md==null||md!==ad(v)||(v=md,"selectionStart"in v&&oC(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}),Bm&&_m(Bm,v)||(Bm=v,v=rb(iC,"onSelect"),0<v.length&&(c=new mv("onSelect","select",null,c,h),a.push({event:c,listeners:v}),c.target=md)));}function Lc(a,c){var h={};return h[a.toLowerCase()]=c.toLowerCase(),h["Webkit"+a]="webkit"+c,h["Moz"+a]="moz"+c,h}var hd={animationend:Lc("Animation","AnimationEnd"),animationiteration:Lc("Animation","AnimationIteration"),animationstart:Lc("Animation","AnimationStart"),transitionrun:Lc("Transition","TransitionRun"),transitionstart:Lc("Transition","TransitionStart"),transitioncancel:Lc("Transition","TransitionCancel"),transitionend:Lc("Transition","TransitionEnd")},aC={},MN={};ba&&(MN=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 kc(a){if(aC[a])return aC[a];if(!hd[a])return a;var c=hd[a],h;for(h in c)if(c.hasOwnProperty(h)&&h in MN)return aC[a]=c[h];return a}var TN=kc("animationend"),AN=kc("animationiteration"),RN=kc("animationstart"),HY=kc("transitionrun"),VY=kc("transitionstart"),jY=kc("transitioncancel"),NN=kc("transitionend"),PN=new Map,lC="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(" ");lC.push("scrollEnd");function ds(a,c){PN.set(a,c),eo(c,[a]);}var gv=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);},Li=[],pd=0,cC=0;function vv(){for(var a=pd,c=cC=pd=0;c<a;){var h=Li[c];Li[c++]=null;var v=Li[c];Li[c++]=null;var E=Li[c];Li[c++]=null;var R=Li[c];if(Li[c++]=null,v!==null&&E!==null){var F=v.pending;F===null?E.next=E:(E.next=F.next,F.next=E),v.pending=E;}R!==0&&IN(h,E,R);}}function bv(a,c,h,v){Li[pd++]=a,Li[pd++]=c,Li[pd++]=h,Li[pd++]=v,cC|=v,a.lanes|=v,a=a.alternate,a!==null&&(a.lanes|=v);}function uC(a,c,h,v){return bv(a,c,h,v),yv(a)}function _c(a,c){return bv(a,null,null,c),yv(a)}function IN(a,c,h){a.lanes|=h;var v=a.alternate;v!==null&&(v.lanes|=h);for(var E=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||(E=true)),a=R,R=R.return;return a.tag===3?(R=a.stateNode,E&&c!==null&&(E=31-ct(h),a=R.hiddenUpdates,v=a[E],v===null?a[E]=[c]:v.push(c),c.lane=h|536870912),R):null}function yv(a){if(50<sh)throw sh=0,yx=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 UY(a,c,h,v){this.tag=a,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null;}function fi(a,c,h,v){return new UY(a,c,h,v)}function dC(a){return a=a.prototype,!(!a||!a.isReactComponent)}function ya(a,c){var h=a.alternate;return h===null?(h=fi(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 ON(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 Sv(a,c,h,v,E,R){var F=0;if(v=a,typeof a=="function")dC(a)&&(F=1);else if(typeof a=="string")F=YX(a,h,J.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case O:return a=fi(31,h,c,E),a.elementType=O,a.lanes=R,a;case S:return Bc(h.children,E,R,c);case x:F=8,E|=24;break;case $:return a=fi(12,h,c,E|2),a.elementType=$,a.lanes=R,a;case A:return a=fi(13,h,c,E),a.elementType=A,a.lanes=R,a;case P:return a=fi(19,h,c,E),a.elementType=P,a.lanes=R,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case M:F=10;break e;case w:F=9;break e;case T:F=11;break e;case N:F=14;break e;case I:F=16,v=null;break e}F=29,h=Error(r(130,a===null?"null":typeof a,"")),v=null;}return c=fi(F,h,c,E),c.elementType=a,c.type=v,c.lanes=R,c}function Bc(a,c,h,v){return a=fi(7,a,v,c),a.lanes=h,a}function fC(a,c,h){return a=fi(6,a,null,c),a.lanes=h,a}function DN(a){var c=fi(18,null,null,0);return c.stateNode=a,c}function mC(a,c,h){return c=fi(4,a.children!==null?a.children:[],a.key,c),c.lanes=h,c.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},c}var LN=new WeakMap;function ki(a,c){if(typeof a=="object"&&a!==null){var h=LN.get(a);return h!==void 0?h:(c={value:a,source:c,stack:Ce(c)},LN.set(a,c),c)}return {value:a,source:c,stack:Ce(c)}}var vd=[],bd=0,Cv=null,zm=0,_i=[],Bi=0,hl=null,zs=1,Fs="";function Sa(a,c){vd[bd++]=zm,vd[bd++]=Cv,Cv=a,zm=c;}function kN(a,c,h){_i[Bi++]=zs,_i[Bi++]=Fs,_i[Bi++]=hl,hl=a;var v=zs;a=Fs;var E=32-ct(v)-1;v&=~(1<<E),h+=1;var R=32-ct(c)+E;if(30<R){var F=E-E%5;R=(v&(1<<F)-1).toString(32),v>>=F,E-=F,zs=1<<32-ct(c)+E|h<<E|v,Fs=R+a;}else zs=1<<R|h<<E|v,Fs=a;}function hC(a){a.return!==null&&(Sa(a,1),kN(a,1,0));}function pC(a){for(;a===Cv;)Cv=vd[--bd],vd[bd]=null,zm=vd[--bd],vd[bd]=null;for(;a===hl;)hl=_i[--Bi],_i[Bi]=null,Fs=_i[--Bi],_i[Bi]=null,zs=_i[--Bi],_i[Bi]=null;}function _N(a,c){_i[Bi++]=zs,_i[Bi++]=Fs,_i[Bi++]=hl,zs=c.id,Fs=c.overflow,hl=a;}var no=null,qn=null,gn=false,pl=null,zi=false,gC=Error(r(519));function gl(a){var c=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fm(ki(c,a)),gC}function BN(a){var c=a.stateNode,h=a.type,v=a.memoizedProps;switch(c[Nt]=a,c[pn]=v,h){case "dialog":sn("cancel",c),sn("close",c);break;case "iframe":case "object":case "embed":sn("load",c);break;case "video":case "audio":for(h=0;h<lh.length;h++)sn(lh[h],c);break;case "source":sn("error",c);break;case "img":case "image":case "link":sn("error",c),sn("load",c);break;case "details":sn("toggle",c);break;case "input":sn("invalid",c),av(c,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,true);break;case "select":sn("invalid",c);break;case "textarea":sn("invalid",c),J6(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||t4(c.textContent,h)?(v.popover!=null&&(sn("beforetoggle",c),sn("toggle",c)),v.onScroll!=null&&sn("scroll",c),v.onScrollEnd!=null&&sn("scrollend",c),v.onClick!=null&&(c.onclick=va),c=true):c=false,c||gl(a,true);}function zN(a){for(no=a.return;no;)switch(no.tag){case 5:case 31:case 13:zi=false;return;case 27:case 3:zi=true;return;default:no=no.return;}}function yd(a){if(a!==no)return  false;if(!gn)return zN(a),gn=true,false;var c=a.tag,h;if((h=c!==3&&c!==27)&&((h=c===5)&&(h=a.type,h=!(h!=="form"&&h!=="button")||Dx(a.type,a.memoizedProps)),h=!h),h&&qn&&gl(a),zN(a),c===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));qn=u4(a);}else if(c===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));qn=u4(a);}else c===27?(c=qn,Nl(a.type)?(a=zx,zx=null,qn=a):qn=c):qn=no?Hi(a.stateNode.nextSibling):null;return  true}function zc(){qn=no=null,gn=false;}function vC(){var a=pl;return a!==null&&(Ko===null?Ko=a:Ko.push.apply(Ko,a),pl=null),a}function Fm(a){pl===null?pl=[a]:pl.push(a);}var bC=B(null),Fc=null,Ca=null;function vl(a,c,h){Q(bC,c._currentValue),c._currentValue=h;}function xa(a){a._currentValue=bC.current,H(bC);}function yC(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 SC(a,c,h,v){var E=a.child;for(E!==null&&(E.return=a);E!==null;){var R=E.dependencies;if(R!==null){var F=E.child;R=R.firstContext;e:for(;R!==null;){var Z=R;R=E;for(var ue=0;ue<c.length;ue++)if(Z.context===c[ue]){R.lanes|=h,Z=R.alternate,Z!==null&&(Z.lanes|=h),yC(R.return,h,a),v||(F=null);break e}R=Z.next;}}else if(E.tag===18){if(F=E.return,F===null)throw Error(r(341));F.lanes|=h,R=F.alternate,R!==null&&(R.lanes|=h),yC(F,h,a),F=null;}else F=E.child;if(F!==null)F.return=E;else for(F=E;F!==null;){if(F===a){F=null;break}if(E=F.sibling,E!==null){E.return=F.return,F=E;break}F=F.return;}E=F;}}function Sd(a,c,h,v){a=null;for(var E=c,R=false;E!==null;){if(!R){if((E.flags&524288)!==0)R=true;else if((E.flags&262144)!==0)break}if(E.tag===10){var F=E.alternate;if(F===null)throw Error(r(387));if(F=F.memoizedProps,F!==null){var Z=E.type;di(E.pendingProps.value,F.value)||(a!==null?a.push(Z):a=[Z]);}}else if(E===re.current){if(F=E.alternate,F===null)throw Error(r(387));F.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(a!==null?a.push(mh):a=[mh]);}E=E.return;}a!==null&&SC(c,a,h,v),c.flags|=262144;}function xv(a){for(a=a.firstContext;a!==null;){if(!di(a.context._currentValue,a.memoizedValue))return  true;a=a.next;}return  false}function Hc(a){Fc=a,Ca=null,a=a.dependencies,a!==null&&(a.firstContext=null);}function ro(a){return FN(Fc,a)}function wv(a,c){return Fc===null&&Hc(a),FN(a,c)}function FN(a,c){var h=c._currentValue;if(c={context:c,memoizedValue:h,next:null},Ca===null){if(a===null)throw Error(r(308));Ca=c,a.dependencies={lanes:0,firstContext:c},a.flags|=524288;}else Ca=Ca.next=c;return h}var WY=typeof AbortController<"u"?AbortController:function(){var a=[],c=this.signal={aborted:false,addEventListener:function(h,v){a.push(v);}};this.abort=function(){c.aborted=true,a.forEach(function(h){return h()});};},GY=e.unstable_scheduleCallback,qY=e.unstable_NormalPriority,Sr={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function CC(){return {controller:new WY,data:new Map,refCount:0}}function Hm(a){a.refCount--,a.refCount===0&&GY(qY,function(){a.controller.abort();});}var Vm=null,xC=0,Cd=0,xd=null;function KY(a,c){if(Vm===null){var h=Vm=[];xC=0,Cd=Ex(),xd={status:"pending",value:void 0,then:function(v){h.push(v);}};}return xC++,c.then(HN,HN),c}function HN(){if(--xC===0&&Vm!==null){xd!==null&&(xd.status="fulfilled");var a=Vm;Vm=null,Cd=0,xd=null;for(var c=0;c<a.length;c++)(0, a[c])();}}function YY(a,c){var h=[],v={status:"pending",value:null,reason:null,then:function(E){h.push(E);}};return a.then(function(){v.status="fulfilled",v.value=c;for(var E=0;E<h.length;E++)(0, h[E])(c);},function(E){for(v.status="rejected",v.reason=E,E=0;E<h.length;E++)(0, h[E])(void 0);}),v}var VN=k.S;k.S=function(a,c){E5=Se(),typeof c=="object"&&c!==null&&typeof c.then=="function"&&KY(a,c),VN!==null&&VN(a,c);};var Vc=B(null);function wC(){var a=Vc.current;return a!==null?a:jn.pooledCache}function $v(a,c){c===null?Q(Vc,Vc.current):Q(Vc,c.pool);}function jN(){var a=wC();return a===null?null:{parent:Sr._currentValue,pool:a}}var wd=Error(r(460)),$C=Error(r(474)),Ev=Error(r(542)),Mv={then:function(){}};function UN(a){return a=a.status,a==="fulfilled"||a==="rejected"}function WN(a,c,h){switch(h=a[h],h===void 0?a.push(c):h!==c&&(c.then(va,va),c=h),c.status){case "fulfilled":return c.value;case "rejected":throw a=c.reason,qN(a),a;default:if(typeof c.status=="string")c.then(va,va);else {if(a=jn,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=c,a.status="pending",a.then(function(v){if(c.status==="pending"){var E=c;E.status="fulfilled",E.value=v;}},function(v){if(c.status==="pending"){var E=c;E.status="rejected",E.reason=v;}});}switch(c.status){case "fulfilled":return c.value;case "rejected":throw a=c.reason,qN(a),a}throw Uc=c,wd}}function jc(a){try{var c=a._init;return c(a._payload)}catch(h){throw h!==null&&typeof h=="object"&&typeof h.then=="function"?(Uc=h,wd):h}}var Uc=null;function GN(){if(Uc===null)throw Error(r(459));var a=Uc;return Uc=null,a}function qN(a){if(a===wd||a===Ev)throw Error(r(483))}var $d=null,jm=0;function Tv(a){var c=jm;return jm+=1,$d===null&&($d=[]),WN($d,a,c)}function Um(a,c){c=c.props.ref,a.ref=c!==void 0?c:null;}function Av(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 KN(a){function c(pe,fe){if(a){var we=pe.deletions;we===null?(pe.deletions=[fe],pe.flags|=16):we.push(fe);}}function h(pe,fe){if(!a)return null;for(;fe!==null;)c(pe,fe),fe=fe.sibling;return null}function v(pe){for(var fe=new Map;pe!==null;)pe.key!==null?fe.set(pe.key,pe):fe.set(pe.index,pe),pe=pe.sibling;return fe}function E(pe,fe){return pe=ya(pe,fe),pe.index=0,pe.sibling=null,pe}function R(pe,fe,we){return pe.index=we,a?(we=pe.alternate,we!==null?(we=we.index,we<fe?(pe.flags|=67108866,fe):we):(pe.flags|=67108866,fe)):(pe.flags|=1048576,fe)}function F(pe){return a&&pe.alternate===null&&(pe.flags|=67108866),pe}function Z(pe,fe,we,Fe){return fe===null||fe.tag!==6?(fe=fC(we,pe.mode,Fe),fe.return=pe,fe):(fe=E(fe,we),fe.return=pe,fe)}function ue(pe,fe,we,Fe){var Tt=we.type;return Tt===S?_e(pe,fe,we.props.children,Fe,we.key):fe!==null&&(fe.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===I&&jc(Tt)===fe.type)?(fe=E(fe,we.props),Um(fe,we),fe.return=pe,fe):(fe=Sv(we.type,we.key,we.props,null,pe.mode,Fe),Um(fe,we),fe.return=pe,fe)}function $e(pe,fe,we,Fe){return fe===null||fe.tag!==4||fe.stateNode.containerInfo!==we.containerInfo||fe.stateNode.implementation!==we.implementation?(fe=mC(we,pe.mode,Fe),fe.return=pe,fe):(fe=E(fe,we.children||[]),fe.return=pe,fe)}function _e(pe,fe,we,Fe,Tt){return fe===null||fe.tag!==7?(fe=Bc(we,pe.mode,Fe,Tt),fe.return=pe,fe):(fe=E(fe,we),fe.return=pe,fe)}function We(pe,fe,we){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return fe=fC(""+fe,pe.mode,we),fe.return=pe,fe;if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case b:return we=Sv(fe.type,fe.key,fe.props,null,pe.mode,we),Um(we,fe),we.return=pe,we;case y:return fe=mC(fe,pe.mode,we),fe.return=pe,fe;case I:return fe=jc(fe),We(pe,fe,we)}if(z(fe)||V(fe))return fe=Bc(fe,pe.mode,we,null),fe.return=pe,fe;if(typeof fe.then=="function")return We(pe,Tv(fe),we);if(fe.$$typeof===M)return We(pe,wv(pe,fe),we);Av(pe,fe);}return null}function Ae(pe,fe,we,Fe){var Tt=fe!==null?fe.key:null;if(typeof we=="string"&&we!==""||typeof we=="number"||typeof we=="bigint")return Tt!==null?null:Z(pe,fe,""+we,Fe);if(typeof we=="object"&&we!==null){switch(we.$$typeof){case b:return we.key===Tt?ue(pe,fe,we,Fe):null;case y:return we.key===Tt?$e(pe,fe,we,Fe):null;case I:return we=jc(we),Ae(pe,fe,we,Fe)}if(z(we)||V(we))return Tt!==null?null:_e(pe,fe,we,Fe,null);if(typeof we.then=="function")return Ae(pe,fe,Tv(we),Fe);if(we.$$typeof===M)return Ae(pe,fe,wv(pe,we),Fe);Av(pe,we);}return null}function Pe(pe,fe,we,Fe,Tt){if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number"||typeof Fe=="bigint")return pe=pe.get(we)||null,Z(fe,pe,""+Fe,Tt);if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case b:return pe=pe.get(Fe.key===null?we:Fe.key)||null,ue(fe,pe,Fe,Tt);case y:return pe=pe.get(Fe.key===null?we:Fe.key)||null,$e(fe,pe,Fe,Tt);case I:return Fe=jc(Fe),Pe(pe,fe,we,Fe,Tt)}if(z(Fe)||V(Fe))return pe=pe.get(we)||null,_e(fe,pe,Fe,Tt,null);if(typeof Fe.then=="function")return Pe(pe,fe,we,Tv(Fe),Tt);if(Fe.$$typeof===M)return Pe(pe,fe,we,wv(fe,Fe),Tt);Av(fe,Fe);}return null}function gt(pe,fe,we,Fe){for(var Tt=null,yn=null,St=fe,Xt=fe=0,ln=null;St!==null&&Xt<we.length;Xt++){St.index>Xt?(ln=St,St=null):ln=St.sibling;var Sn=Ae(pe,St,we[Xt],Fe);if(Sn===null){St===null&&(St=ln);break}a&&St&&Sn.alternate===null&&c(pe,St),fe=R(Sn,fe,Xt),yn===null?Tt=Sn:yn.sibling=Sn,yn=Sn,St=ln;}if(Xt===we.length)return h(pe,St),gn&&Sa(pe,Xt),Tt;if(St===null){for(;Xt<we.length;Xt++)St=We(pe,we[Xt],Fe),St!==null&&(fe=R(St,fe,Xt),yn===null?Tt=St:yn.sibling=St,yn=St);return gn&&Sa(pe,Xt),Tt}for(St=v(St);Xt<we.length;Xt++)ln=Pe(St,pe,Xt,we[Xt],Fe),ln!==null&&(a&&ln.alternate!==null&&St.delete(ln.key===null?Xt:ln.key),fe=R(ln,fe,Xt),yn===null?Tt=ln:yn.sibling=ln,yn=ln);return a&&St.forEach(function(Ll){return c(pe,Ll)}),gn&&Sa(pe,Xt),Tt}function Pt(pe,fe,we,Fe){if(we==null)throw Error(r(151));for(var Tt=null,yn=null,St=fe,Xt=fe=0,ln=null,Sn=we.next();St!==null&&!Sn.done;Xt++,Sn=we.next()){St.index>Xt?(ln=St,St=null):ln=St.sibling;var Ll=Ae(pe,St,Sn.value,Fe);if(Ll===null){St===null&&(St=ln);break}a&&St&&Ll.alternate===null&&c(pe,St),fe=R(Ll,fe,Xt),yn===null?Tt=Ll:yn.sibling=Ll,yn=Ll,St=ln;}if(Sn.done)return h(pe,St),gn&&Sa(pe,Xt),Tt;if(St===null){for(;!Sn.done;Xt++,Sn=we.next())Sn=We(pe,Sn.value,Fe),Sn!==null&&(fe=R(Sn,fe,Xt),yn===null?Tt=Sn:yn.sibling=Sn,yn=Sn);return gn&&Sa(pe,Xt),Tt}for(St=v(St);!Sn.done;Xt++,Sn=we.next())Sn=Pe(St,pe,Xt,Sn.value,Fe),Sn!==null&&(a&&Sn.alternate!==null&&St.delete(Sn.key===null?Xt:Sn.key),fe=R(Sn,fe,Xt),yn===null?Tt=Sn:yn.sibling=Sn,yn=Sn);return a&&St.forEach(function(sQ){return c(pe,sQ)}),gn&&Sa(pe,Xt),Tt}function Fn(pe,fe,we,Fe){if(typeof we=="object"&&we!==null&&we.type===S&&we.key===null&&(we=we.props.children),typeof we=="object"&&we!==null){switch(we.$$typeof){case b:e:{for(var Tt=we.key;fe!==null;){if(fe.key===Tt){if(Tt=we.type,Tt===S){if(fe.tag===7){h(pe,fe.sibling),Fe=E(fe,we.props.children),Fe.return=pe,pe=Fe;break e}}else if(fe.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===I&&jc(Tt)===fe.type){h(pe,fe.sibling),Fe=E(fe,we.props),Um(Fe,we),Fe.return=pe,pe=Fe;break e}h(pe,fe);break}else c(pe,fe);fe=fe.sibling;}we.type===S?(Fe=Bc(we.props.children,pe.mode,Fe,we.key),Fe.return=pe,pe=Fe):(Fe=Sv(we.type,we.key,we.props,null,pe.mode,Fe),Um(Fe,we),Fe.return=pe,pe=Fe);}return F(pe);case y:e:{for(Tt=we.key;fe!==null;){if(fe.key===Tt)if(fe.tag===4&&fe.stateNode.containerInfo===we.containerInfo&&fe.stateNode.implementation===we.implementation){h(pe,fe.sibling),Fe=E(fe,we.children||[]),Fe.return=pe,pe=Fe;break e}else {h(pe,fe);break}else c(pe,fe);fe=fe.sibling;}Fe=mC(we,pe.mode,Fe),Fe.return=pe,pe=Fe;}return F(pe);case I:return we=jc(we),Fn(pe,fe,we,Fe)}if(z(we))return gt(pe,fe,we,Fe);if(V(we)){if(Tt=V(we),typeof Tt!="function")throw Error(r(150));return we=Tt.call(we),Pt(pe,fe,we,Fe)}if(typeof we.then=="function")return Fn(pe,fe,Tv(we),Fe);if(we.$$typeof===M)return Fn(pe,fe,wv(pe,we),Fe);Av(pe,we);}return typeof we=="string"&&we!==""||typeof we=="number"||typeof we=="bigint"?(we=""+we,fe!==null&&fe.tag===6?(h(pe,fe.sibling),Fe=E(fe,we),Fe.return=pe,pe=Fe):(h(pe,fe),Fe=fC(we,pe.mode,Fe),Fe.return=pe,pe=Fe),F(pe)):h(pe,fe)}return function(pe,fe,we,Fe){try{jm=0;var Tt=Fn(pe,fe,we,Fe);return $d=null,Tt}catch(St){if(St===wd||St===Ev)throw St;var yn=fi(29,St,null,pe.mode);return yn.lanes=Fe,yn.return=pe,yn}}}var Wc=KN(true),YN=KN(false),bl=false;function EC(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null};}function MC(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 yl(a){return {lane:a,tag:0,payload:null,callback:null,next:null}}function Sl(a,c,h){var v=a.updateQueue;if(v===null)return null;if(v=v.shared,(wn&2)!==0){var E=v.pending;return E===null?c.next=c:(c.next=E.next,E.next=c),v.pending=c,c=yv(a),IN(a,null,h),c}return bv(a,v,c,h),yv(a)}function Wm(a,c,h){if(c=c.updateQueue,c!==null&&(c=c.shared,(h&4194048)!==0)){var v=c.lanes;v&=a.pendingLanes,h|=v,c.lanes=h,xe(a,h);}}function TC(a,c){var h=a.updateQueue,v=a.alternate;if(v!==null&&(v=v.updateQueue,h===v)){var E=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?E=R=F:R=R.next=F,h=h.next;}while(h!==null);R===null?E=R=c:R=R.next=c;}else E=R=c;h={baseState:v.baseState,firstBaseUpdate:E,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 AC=false;function Gm(){if(AC){var a=xd;if(a!==null)throw a}}function qm(a,c,h,v){AC=false;var E=a.updateQueue;bl=false;var R=E.firstBaseUpdate,F=E.lastBaseUpdate,Z=E.shared.pending;if(Z!==null){E.shared.pending=null;var ue=Z,$e=ue.next;ue.next=null,F===null?R=$e:F.next=$e,F=ue;var _e=a.alternate;_e!==null&&(_e=_e.updateQueue,Z=_e.lastBaseUpdate,Z!==F&&(Z===null?_e.firstBaseUpdate=$e:Z.next=$e,_e.lastBaseUpdate=ue));}if(R!==null){var We=E.baseState;F=0,_e=$e=ue=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&&(AC=true),_e!==null&&(_e=_e.next={lane:0,tag:Z.tag,payload:Z.payload,callback:null,next:null});e:{var gt=a,Pt=Z;Ae=c;var Fn=h;switch(Pt.tag){case 1:if(gt=Pt.payload,typeof gt=="function"){We=gt.call(Fn,We,Ae);break e}We=gt;break e;case 3:gt.flags=gt.flags&-65537|128;case 0:if(gt=Pt.payload,Ae=typeof gt=="function"?gt.call(Fn,We,Ae):gt,Ae==null)break e;We=p({},We,Ae);break e;case 2:bl=true;}}Ae=Z.callback,Ae!==null&&(a.flags|=64,Pe&&(a.flags|=8192),Pe=E.callbacks,Pe===null?E.callbacks=[Ae]:Pe.push(Ae));}else Pe={lane:Ae,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},_e===null?($e=_e=Pe,ue=We):_e=_e.next=Pe,F|=Ae;if(Z=Z.next,Z===null){if(Z=E.shared.pending,Z===null)break;Pe=Z,Z=Pe.next,Pe.next=null,E.lastBaseUpdate=Pe,E.shared.pending=null;}}while(true);_e===null&&(ue=We),E.baseState=ue,E.firstBaseUpdate=$e,E.lastBaseUpdate=_e,R===null&&(E.shared.lanes=0),El|=F,a.lanes=F,a.memoizedState=We;}}function XN(a,c){if(typeof a!="function")throw Error(r(191,a));a.call(c);}function QN(a,c){var h=a.callbacks;if(h!==null)for(a.callbacks=null,a=0;a<h.length;a++)XN(h[a],c);}var Ed=B(null),Rv=B(0);function ZN(a,c){a=Pa,Q(Rv,a),Q(Ed,c),Pa=a|c.baseLanes;}function RC(){Q(Rv,Pa),Q(Ed,Ed.current);}function NC(){Pa=Rv.current,H(Ed),H(Rv);}var mi=B(null),Fi=null;function Cl(a){var c=a.alternate;Q(mr,mr.current&1),Q(mi,a),Fi===null&&(c===null||Ed.current!==null||c.memoizedState!==null)&&(Fi=a);}function PC(a){Q(mr,mr.current),Q(mi,a),Fi===null&&(Fi=a);}function JN(a){a.tag===22?(Q(mr,mr.current),Q(mi,a),Fi===null&&(Fi=a)):xl();}function xl(){Q(mr,mr.current),Q(mi,mi.current);}function hi(a){H(mi),Fi===a&&(Fi=null),H(mr);}var mr=B(0);function Nv(a){for(var c=a;c!==null;){if(c.tag===13){var h=c.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||_x(h)||Bx(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 wa=0,Kt=null,Bn=null,Cr=null,Pv=false,Md=false,Gc=false,Iv=0,Km=0,Td=null,XY=0;function ir(){throw Error(r(321))}function IC(a,c){if(c===null)return  false;for(var h=0;h<c.length&&h<a.length;h++)if(!di(a[h],c[h]))return  false;return  true}function OC(a,c,h,v,E,R){return wa=R,Kt=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,k.H=a===null||a.memoizedState===null?kP:KC,Gc=false,R=h(v,E),Gc=false,Md&&(R=tP(c,h,v,E)),eP(a),R}function eP(a){k.H=Qm;var c=Bn!==null&&Bn.next!==null;if(wa=0,Cr=Bn=Kt=null,Pv=false,Km=0,Td=null,c)throw Error(r(300));a===null||xr||(a=a.dependencies,a!==null&&xv(a)&&(xr=true));}function tP(a,c,h,v){Kt=a;var E=0;do{if(Md&&(Td=null),Km=0,Md=false,25<=E)throw Error(r(301));if(E+=1,Cr=Bn=null,a.updateQueue!=null){var R=a.updateQueue;R.lastEffect=null,R.events=null,R.stores=null,R.memoCache!=null&&(R.memoCache.index=0);}k.H=_P,R=c(h,v);}while(Md);return R}function QY(){var a=k.H,c=a.useState()[0];return c=typeof c.then=="function"?Ym(c):c,a=a.useState()[0],(Bn!==null?Bn.memoizedState:null)!==a&&(Kt.flags|=1024),c}function DC(){var a=Iv!==0;return Iv=0,a}function LC(a,c,h){c.updateQueue=a.updateQueue,c.flags&=-2053,a.lanes&=~h;}function kC(a){if(Pv){for(a=a.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next;}Pv=false;}wa=0,Cr=Bn=Kt=null,Md=false,Km=Iv=0,Td=null;}function Oo(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cr===null?Kt.memoizedState=Cr=a:Cr=Cr.next=a,Cr}function hr(){if(Bn===null){var a=Kt.alternate;a=a!==null?a.memoizedState:null;}else a=Bn.next;var c=Cr===null?Kt.memoizedState:Cr.next;if(c!==null)Cr=c,Bn=a;else {if(a===null)throw Kt.alternate===null?Error(r(467)):Error(r(310));Bn=a,a={memoizedState:Bn.memoizedState,baseState:Bn.baseState,baseQueue:Bn.baseQueue,queue:Bn.queue,next:null},Cr===null?Kt.memoizedState=Cr=a:Cr=Cr.next=a;}return Cr}function Ov(){return {lastEffect:null,events:null,stores:null,memoCache:null}}function Ym(a){var c=Km;return Km+=1,Td===null&&(Td=[]),a=WN(Td,a,c),c=Kt,(Cr===null?c.memoizedState:Cr.next)===null&&(c=c.alternate,k.H=c===null||c.memoizedState===null?kP:KC),a}function Dv(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Ym(a);if(a.$$typeof===M)return ro(a)}throw Error(r(438,String(a)))}function _C(a){var c=null,h=Kt.updateQueue;if(h!==null&&(c=h.memoCache),c==null){var v=Kt.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(c={data:v.data.map(function(E){return E.slice()}),index:0})));}if(c==null&&(c={data:[],index:0}),h===null&&(h=Ov(),Kt.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 $a(a,c){return typeof c=="function"?c(a):c}function Lv(a){var c=hr();return BC(c,Bn,a)}function BC(a,c,h){var v=a.queue;if(v===null)throw Error(r(311));v.lastRenderedReducer=h;var E=a.baseQueue,R=v.pending;if(R!==null){if(E!==null){var F=E.next;E.next=R.next,R.next=F;}c.baseQueue=E=R,v.pending=null;}if(R=a.baseState,E===null)a.memoizedState=R;else {c=E.next;var Z=F=null,ue=null,$e=c,_e=false;do{var We=$e.lane&-536870913;if(We!==$e.lane?(an&We)===We:(wa&We)===We){var Ae=$e.revertLane;if(Ae===0)ue!==null&&(ue=ue.next={lane:0,revertLane:0,gesture:null,action:$e.action,hasEagerState:$e.hasEagerState,eagerState:$e.eagerState,next:null}),We===Cd&&(_e=true);else if((wa&Ae)===Ae){$e=$e.next,Ae===Cd&&(_e=true);continue}else We={lane:0,revertLane:$e.revertLane,gesture:null,action:$e.action,hasEagerState:$e.hasEagerState,eagerState:$e.eagerState,next:null},ue===null?(Z=ue=We,F=R):ue=ue.next=We,Kt.lanes|=Ae,El|=Ae;We=$e.action,Gc&&h(R,We),R=$e.hasEagerState?$e.eagerState:h(R,We);}else Ae={lane:We,revertLane:$e.revertLane,gesture:$e.gesture,action:$e.action,hasEagerState:$e.hasEagerState,eagerState:$e.eagerState,next:null},ue===null?(Z=ue=Ae,F=R):ue=ue.next=Ae,Kt.lanes|=We,El|=We;$e=$e.next;}while($e!==null&&$e!==c);if(ue===null?F=R:ue.next=Z,!di(R,a.memoizedState)&&(xr=true,_e&&(h=xd,h!==null)))throw h;a.memoizedState=R,a.baseState=F,a.baseQueue=ue,v.lastRenderedState=R;}return E===null&&(v.lanes=0),[a.memoizedState,v.dispatch]}function zC(a){var c=hr(),h=c.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=a;var v=h.dispatch,E=h.pending,R=c.memoizedState;if(E!==null){h.pending=null;var F=E=E.next;do R=a(R,F.action),F=F.next;while(F!==E);di(R,c.memoizedState)||(xr=true),c.memoizedState=R,c.baseQueue===null&&(c.baseState=R),h.lastRenderedState=R;}return [R,v]}function nP(a,c,h){var v=Kt,E=hr(),R=gn;if(R){if(h===void 0)throw Error(r(407));h=h();}else h=c();var F=!di((Bn||E).memoizedState,h);if(F&&(E.memoizedState=h,xr=true),E=E.queue,VC(iP.bind(null,v,E,a),[a]),E.getSnapshot!==c||F||Cr!==null&&Cr.memoizedState.tag&1){if(v.flags|=2048,Ad(9,{destroy:void 0},oP.bind(null,v,E,h,c),null),jn===null)throw Error(r(349));R||(wa&127)!==0||rP(v,c,h);}return h}function rP(a,c,h){a.flags|=16384,a={getSnapshot:c,value:h},c=Kt.updateQueue,c===null?(c=Ov(),Kt.updateQueue=c,c.stores=[a]):(h=c.stores,h===null?c.stores=[a]:h.push(a));}function oP(a,c,h,v){c.value=h,c.getSnapshot=v,sP(c)&&aP(a);}function iP(a,c,h){return h(function(){sP(c)&&aP(a);})}function sP(a){var c=a.getSnapshot;a=a.value;try{var h=c();return !di(a,h)}catch{return  true}}function aP(a){var c=_c(a,2);c!==null&&Yo(c,a,2);}function FC(a){var c=Oo();if(typeof a=="function"){var h=a;if(a=h(),Gc){Oe(true);try{h();}finally{Oe(false);}}}return c.memoizedState=c.baseState=a,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:a},c}function lP(a,c,h,v){return a.baseState=h,BC(a,Bn,typeof v=="function"?v:$a)}function ZY(a,c,h,v,E){if(Bv(a))throw Error(r(485));if(a=c.action,a!==null){var R={payload:E,action:a,next:null,isTransition:true,status:"pending",value:null,reason:null,listeners:[],then:function(F){R.listeners.push(F);}};k.T!==null?h(true):R.isTransition=false,v(R),h=c.pending,h===null?(R.next=c.pending=R,cP(c,R)):(R.next=h.next,c.pending=h.next=R);}}function cP(a,c){var h=c.action,v=c.payload,E=a.state;if(c.isTransition){var R=k.T,F={};k.T=F;try{var Z=h(E,v),ue=k.S;ue!==null&&ue(F,Z),uP(a,c,Z);}catch($e){HC(a,c,$e);}finally{R!==null&&F.types!==null&&(R.types=F.types),k.T=R;}}else try{R=h(E,v),uP(a,c,R);}catch($e){HC(a,c,$e);}}function uP(a,c,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(v){dP(a,c,v);},function(v){return HC(a,c,v)}):dP(a,c,h);}function dP(a,c,h){c.status="fulfilled",c.value=h,fP(c),a.state=h,c=a.pending,c!==null&&(h=c.next,h===c?a.pending=null:(h=h.next,c.next=h,cP(a,h)));}function HC(a,c,h){var v=a.pending;if(a.pending=null,v!==null){v=v.next;do c.status="rejected",c.reason=h,fP(c),c=c.next;while(c!==v)}a.action=null;}function fP(a){a=a.listeners;for(var c=0;c<a.length;c++)(0, a[c])();}function mP(a,c){return c}function hP(a,c){if(gn){var h=jn.formState;if(h!==null){e:{var v=Kt;if(gn){if(qn){t:{for(var E=qn,R=zi;E.nodeType!==8;){if(!R){E=null;break t}if(E=Hi(E.nextSibling),E===null){E=null;break t}}R=E.data,E=R==="F!"||R==="F"?E:null;}if(E){qn=Hi(E.nextSibling),v=E.data==="F!";break e}}gl(v);}v=false;}v&&(c=h[0]);}}return h=Oo(),h.memoizedState=h.baseState=c,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mP,lastRenderedState:c},h.queue=v,h=OP.bind(null,Kt,v),v.dispatch=h,v=FC(false),R=qC.bind(null,Kt,false,v.queue),v=Oo(),E={state:c,dispatch:null,action:a,pending:null},v.queue=E,h=ZY.bind(null,Kt,E,R,h),E.dispatch=h,v.memoizedState=a,[c,h,false]}function pP(a){var c=hr();return gP(c,Bn,a)}function gP(a,c,h){if(c=BC(a,c,mP)[0],a=Lv($a)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var v=Ym(c);}catch(F){throw F===wd?Ev:F}else v=c;c=hr();var E=c.queue,R=E.dispatch;return h!==c.memoizedState&&(Kt.flags|=2048,Ad(9,{destroy:void 0},JY.bind(null,E,h),null)),[v,R,a]}function JY(a,c){a.action=c;}function vP(a){var c=hr(),h=Bn;if(h!==null)return gP(c,h,a);hr(),c=c.memoizedState,h=hr();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=Kt.updateQueue,c===null&&(c=Ov(),Kt.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 bP(){return hr().memoizedState}function kv(a,c,h,v){var E=Oo();Kt.flags|=a,E.memoizedState=Ad(1|c,{destroy:void 0},h,v===void 0?null:v);}function _v(a,c,h,v){var E=hr();v=v===void 0?null:v;var R=E.memoizedState.inst;Bn!==null&&v!==null&&IC(v,Bn.memoizedState.deps)?E.memoizedState=Ad(c,R,h,v):(Kt.flags|=a,E.memoizedState=Ad(1|c,R,h,v));}function yP(a,c){kv(8390656,8,a,c);}function VC(a,c){_v(2048,8,a,c);}function eX(a){Kt.flags|=4;var c=Kt.updateQueue;if(c===null)c=Ov(),Kt.updateQueue=c,c.events=[a];else {var h=c.events;h===null?c.events=[a]:h.push(a);}}function SP(a){var c=hr().memoizedState;return eX({ref:c,nextImpl:a}),function(){if((wn&2)!==0)throw Error(r(440));return c.impl.apply(void 0,arguments)}}function CP(a,c){return _v(4,2,a,c)}function xP(a,c){return _v(4,4,a,c)}function wP(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 $P(a,c,h){h=h!=null?h.concat([a]):null,_v(4,4,wP.bind(null,c,a),h);}function jC(){}function EP(a,c){var h=hr();c=c===void 0?null:c;var v=h.memoizedState;return c!==null&&IC(c,v[1])?v[0]:(h.memoizedState=[a,c],a)}function MP(a,c){var h=hr();c=c===void 0?null:c;var v=h.memoizedState;if(c!==null&&IC(c,v[1]))return v[0];if(v=a(),Gc){Oe(true);try{a();}finally{Oe(false);}}return h.memoizedState=[v,c],v}function UC(a,c,h){return h===void 0||(wa&1073741824)!==0&&(an&261930)===0?a.memoizedState=c:(a.memoizedState=h,a=T5(),Kt.lanes|=a,El|=a,h)}function TP(a,c,h,v){return di(h,c)?h:Ed.current!==null?(a=UC(a,h,v),di(a,c)||(xr=true),a):(wa&42)===0||(wa&1073741824)!==0&&(an&261930)===0?(xr=true,a.memoizedState=h):(a=T5(),Kt.lanes|=a,El|=a,c)}function AP(a,c,h,v,E){var R=G.p;G.p=R!==0&&8>R?R:8;var F=k.T,Z={};k.T=Z,qC(a,false,c,h);try{var ue=E(),$e=k.S;if($e!==null&&$e(Z,ue),ue!==null&&typeof ue=="object"&&typeof ue.then=="function"){var _e=YY(ue,v);Xm(a,c,_e,vi(a));}else Xm(a,c,v,vi(a));}catch(We){Xm(a,c,{then:function(){},status:"rejected",reason:We},vi());}finally{G.p=R,F!==null&&Z.types!==null&&(F.types=Z.types),k.T=F;}}function tX(){}function WC(a,c,h,v){if(a.tag!==5)throw Error(r(476));var E=RP(a).queue;AP(a,E,c,j,h===null?tX:function(){return NP(a),h(v)});}function RP(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:$a,lastRenderedState:j},next:null};var h={};return c.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:h},next:null},a.memoizedState=c,a=a.alternate,a!==null&&(a.memoizedState=c),c}function NP(a){var c=RP(a);c.next===null&&(c=a.alternate.memoizedState),Xm(a,c.next.queue,{},vi());}function GC(){return ro(mh)}function PP(){return hr().memoizedState}function IP(){return hr().memoizedState}function nX(a){for(var c=a.return;c!==null;){switch(c.tag){case 24:case 3:var h=vi();a=yl(h);var v=Sl(c,a,h);v!==null&&(Yo(v,c,h),Wm(v,c,h)),c={cache:CC()},a.payload=c;return}c=c.return;}}function rX(a,c,h){var v=vi();h={lane:v,revertLane:0,gesture:null,action:h,hasEagerState:false,eagerState:null,next:null},Bv(a)?DP(c,h):(h=uC(a,c,h,v),h!==null&&(Yo(h,a,v),LP(h,c,v)));}function OP(a,c,h){var v=vi();Xm(a,c,h,v);}function Xm(a,c,h,v){var E={lane:v,revertLane:0,gesture:null,action:h,hasEagerState:false,eagerState:null,next:null};if(Bv(a))DP(c,E);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(E.hasEagerState=!0,E.eagerState=Z,di(Z,F))return bv(a,c,E,0),jn===null&&vv(),!1}catch{}if(h=uC(a,c,E,v),h!==null)return Yo(h,a,v),LP(h,c,v),true}return  false}function qC(a,c,h,v){if(v={lane:2,revertLane:Ex(),gesture:null,action:v,hasEagerState:false,eagerState:null,next:null},Bv(a)){if(c)throw Error(r(479))}else c=uC(a,h,v,2),c!==null&&Yo(c,a,2);}function Bv(a){var c=a.alternate;return a===Kt||c!==null&&c===Kt}function DP(a,c){Md=Pv=true;var h=a.pending;h===null?c.next=c:(c.next=h.next,h.next=c),a.pending=c;}function LP(a,c,h){if((h&4194048)!==0){var v=c.lanes;v&=a.pendingLanes,h|=v,c.lanes=h,xe(a,h);}}var Qm={readContext:ro,use:Dv,useCallback:ir,useContext:ir,useEffect:ir,useImperativeHandle:ir,useLayoutEffect:ir,useInsertionEffect:ir,useMemo:ir,useReducer:ir,useRef:ir,useState:ir,useDebugValue:ir,useDeferredValue:ir,useTransition:ir,useSyncExternalStore:ir,useId:ir,useHostTransitionStatus:ir,useFormState:ir,useActionState:ir,useOptimistic:ir,useMemoCache:ir,useCacheRefresh:ir};Qm.useEffectEvent=ir;var kP={readContext:ro,use:Dv,useCallback:function(a,c){return Oo().memoizedState=[a,c===void 0?null:c],a},useContext:ro,useEffect:yP,useImperativeHandle:function(a,c,h){h=h!=null?h.concat([a]):null,kv(4194308,4,wP.bind(null,c,a),h);},useLayoutEffect:function(a,c){return kv(4194308,4,a,c)},useInsertionEffect:function(a,c){kv(4,2,a,c);},useMemo:function(a,c){var h=Oo();c=c===void 0?null:c;var v=a();if(Gc){Oe(true);try{a();}finally{Oe(false);}}return h.memoizedState=[v,c],v},useReducer:function(a,c,h){var v=Oo();if(h!==void 0){var E=h(c);if(Gc){Oe(true);try{h(c);}finally{Oe(false);}}}else E=c;return v.memoizedState=v.baseState=E,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:E},v.queue=a,a=a.dispatch=rX.bind(null,Kt,a),[v.memoizedState,a]},useRef:function(a){var c=Oo();return a={current:a},c.memoizedState=a},useState:function(a){a=FC(a);var c=a.queue,h=OP.bind(null,Kt,c);return c.dispatch=h,[a.memoizedState,h]},useDebugValue:jC,useDeferredValue:function(a,c){var h=Oo();return UC(h,a,c)},useTransition:function(){var a=FC(false);return a=AP.bind(null,Kt,a.queue,true,false),Oo().memoizedState=a,[false,a]},useSyncExternalStore:function(a,c,h){var v=Kt,E=Oo();if(gn){if(h===void 0)throw Error(r(407));h=h();}else {if(h=c(),jn===null)throw Error(r(349));(an&127)!==0||rP(v,c,h);}E.memoizedState=h;var R={value:h,getSnapshot:c};return E.queue=R,yP(iP.bind(null,v,R,a),[a]),v.flags|=2048,Ad(9,{destroy:void 0},oP.bind(null,v,R,h,c),null),h},useId:function(){var a=Oo(),c=jn.identifierPrefix;if(gn){var h=Fs,v=zs;h=(v&~(1<<32-ct(v)-1)).toString(32)+h,c="_"+c+"R_"+h,h=Iv++,0<h&&(c+="H"+h.toString(32)),c+="_";}else h=XY++,c="_"+c+"r_"+h.toString(32)+"_";return a.memoizedState=c},useHostTransitionStatus:GC,useFormState:hP,useActionState:hP,useOptimistic:function(a){var c=Oo();c.memoizedState=c.baseState=a;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=h,c=qC.bind(null,Kt,true,h),h.dispatch=c,[a,c]},useMemoCache:_C,useCacheRefresh:function(){return Oo().memoizedState=nX.bind(null,Kt)},useEffectEvent:function(a){var c=Oo(),h={impl:a};return c.memoizedState=h,function(){if((wn&2)!==0)throw Error(r(440));return h.impl.apply(void 0,arguments)}}},KC={readContext:ro,use:Dv,useCallback:EP,useContext:ro,useEffect:VC,useImperativeHandle:$P,useInsertionEffect:CP,useLayoutEffect:xP,useMemo:MP,useReducer:Lv,useRef:bP,useState:function(){return Lv($a)},useDebugValue:jC,useDeferredValue:function(a,c){var h=hr();return TP(h,Bn.memoizedState,a,c)},useTransition:function(){var a=Lv($a)[0],c=hr().memoizedState;return [typeof a=="boolean"?a:Ym(a),c]},useSyncExternalStore:nP,useId:PP,useHostTransitionStatus:GC,useFormState:pP,useActionState:pP,useOptimistic:function(a,c){var h=hr();return lP(h,Bn,a,c)},useMemoCache:_C,useCacheRefresh:IP};KC.useEffectEvent=SP;var _P={readContext:ro,use:Dv,useCallback:EP,useContext:ro,useEffect:VC,useImperativeHandle:$P,useInsertionEffect:CP,useLayoutEffect:xP,useMemo:MP,useReducer:zC,useRef:bP,useState:function(){return zC($a)},useDebugValue:jC,useDeferredValue:function(a,c){var h=hr();return Bn===null?UC(h,a,c):TP(h,Bn.memoizedState,a,c)},useTransition:function(){var a=zC($a)[0],c=hr().memoizedState;return [typeof a=="boolean"?a:Ym(a),c]},useSyncExternalStore:nP,useId:PP,useHostTransitionStatus:GC,useFormState:vP,useActionState:vP,useOptimistic:function(a,c){var h=hr();return Bn!==null?lP(h,Bn,a,c):(h.baseState=a,[a,h.queue.dispatch])},useMemoCache:_C,useCacheRefresh:IP};_P.useEffectEvent=SP;function YC(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 XC={enqueueSetState:function(a,c,h){a=a._reactInternals;var v=vi(),E=yl(v);E.payload=c,h!=null&&(E.callback=h),c=Sl(a,E,v),c!==null&&(Yo(c,a,v),Wm(c,a,v));},enqueueReplaceState:function(a,c,h){a=a._reactInternals;var v=vi(),E=yl(v);E.tag=1,E.payload=c,h!=null&&(E.callback=h),c=Sl(a,E,v),c!==null&&(Yo(c,a,v),Wm(c,a,v));},enqueueForceUpdate:function(a,c){a=a._reactInternals;var h=vi(),v=yl(h);v.tag=2,c!=null&&(v.callback=c),c=Sl(a,v,h),c!==null&&(Yo(c,a,h),Wm(c,a,h));}};function BP(a,c,h,v,E,R,F){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(v,R,F):c.prototype&&c.prototype.isPureReactComponent?!_m(h,v)||!_m(E,R):true}function zP(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&&XC.enqueueReplaceState(c,c.state,null);}function qc(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 E in a)h[E]===void 0&&(h[E]=a[E]);}return h}function FP(a){gv(a);}function HP(a){console.error(a);}function VP(a){gv(a);}function zv(a,c){try{var h=a.onUncaughtError;h(c.value,{componentStack:c.stack});}catch(v){setTimeout(function(){throw v});}}function jP(a,c,h){try{var v=a.onCaughtError;v(h.value,{componentStack:h.stack,errorBoundary:c.tag===1?c.stateNode:null});}catch(E){setTimeout(function(){throw E});}}function QC(a,c,h){return h=yl(h),h.tag=3,h.payload={element:null},h.callback=function(){zv(a,c);},h}function UP(a){return a=yl(a),a.tag=3,a}function WP(a,c,h,v){var E=h.type.getDerivedStateFromError;if(typeof E=="function"){var R=v.value;a.payload=function(){return E(R)},a.callback=function(){jP(c,h,v);};}var F=h.stateNode;F!==null&&typeof F.componentDidCatch=="function"&&(a.callback=function(){jP(c,h,v),typeof E!="function"&&(Ml===null?Ml=new Set([this]):Ml.add(this));var Z=v.stack;this.componentDidCatch(v.value,{componentStack:Z!==null?Z:""});});}function oX(a,c,h,v,E){if(h.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(c=h.alternate,c!==null&&Sd(c,h,E,true),h=mi.current,h!==null){switch(h.tag){case 31:case 13:return Fi===null?Qv():h.alternate===null&&sr===0&&(sr=3),h.flags&=-257,h.flags|=65536,h.lanes=E,v===Mv?h.flags|=16384:(c=h.updateQueue,c===null?h.updateQueue=new Set([v]):c.add(v),xx(a,v,E)),false;case 22:return h.flags|=65536,v===Mv?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)),xx(a,v,E)),false}throw Error(r(435,h.tag))}return xx(a,v,E),Qv(),false}if(gn)return c=mi.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=E,v!==gC&&(a=Error(r(422),{cause:v}),Fm(ki(a,h)))):(v!==gC&&(c=Error(r(423),{cause:v}),Fm(ki(c,h))),a=a.current.alternate,a.flags|=65536,E&=-E,a.lanes|=E,v=ki(v,h),E=QC(a.stateNode,v,E),TC(a,E),sr!==4&&(sr=2)),false;var R=Error(r(520),{cause:v});if(R=ki(R,h),ih===null?ih=[R]:ih.push(R),sr!==4&&(sr=2),c===null)return  true;v=ki(v,h),h=c;do{switch(h.tag){case 3:return h.flags|=65536,a=E&-E,h.lanes|=a,a=QC(h.stateNode,v,a),TC(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"&&(Ml===null||!Ml.has(R))))return h.flags|=65536,E&=-E,h.lanes|=E,E=UP(E),WP(E,a,h,v),TC(h,E),false}h=h.return;}while(h!==null);return  false}var ZC=Error(r(461)),xr=false;function oo(a,c,h,v){c.child=a===null?YN(c,null,h,v):Wc(c,a.child,h,v);}function GP(a,c,h,v,E){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 Hc(c),v=OC(a,c,h,F,R,E),Z=DC(),a!==null&&!xr?(LC(a,c,E),Ea(a,c,E)):(gn&&Z&&hC(c),c.flags|=1,oo(a,c,v,E),c.child)}function qP(a,c,h,v,E){if(a===null){var R=h.type;return typeof R=="function"&&!dC(R)&&R.defaultProps===void 0&&h.compare===null?(c.tag=15,c.type=R,KP(a,c,R,v,E)):(a=Sv(h.type,null,v,c,c.mode,E),a.ref=c.ref,a.return=c,c.child=a)}if(R=a.child,!sx(a,E)){var F=R.memoizedProps;if(h=h.compare,h=h!==null?h:_m,h(F,v)&&a.ref===c.ref)return Ea(a,c,E)}return c.flags|=1,a=ya(R,v),a.ref=c.ref,a.return=c,c.child=a}function KP(a,c,h,v,E){if(a!==null){var R=a.memoizedProps;if(_m(R,v)&&a.ref===c.ref)if(xr=false,c.pendingProps=v=R,sx(a,E))(a.flags&131072)!==0&&(xr=true);else return c.lanes=a.lanes,Ea(a,c,E)}return JC(a,c,h,v,E)}function YP(a,c,h,v){var E=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,E=0;v!==null;)E=E|v.lanes|v.childLanes,v=v.sibling;v=E&~R;}else v=0,c.child=null;return XP(a,c,R,h,v)}if((h&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},a!==null&&$v(c,R!==null?R.cachePool:null),R!==null?ZN(c,R):RC(),JN(c);else return v=c.lanes=536870912,XP(a,c,R!==null?R.baseLanes|h:h,h,v)}else R!==null?($v(c,R.cachePool),ZN(c,R),xl(),c.memoizedState=null):(a!==null&&$v(c,null),RC(),xl());return oo(a,c,E,h),c.child}function Zm(a,c){return a!==null&&a.tag===22||c.stateNode!==null||(c.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.sibling}function XP(a,c,h,v,E){var R=wC();return R=R===null?null:{parent:Sr._currentValue,pool:R},c.memoizedState={baseLanes:h,cachePool:R},a!==null&&$v(c,null),RC(),JN(c),a!==null&&Sd(a,c,v,true),c.childLanes=E,null}function Fv(a,c){return c=Vv({mode:c.mode,children:c.children},a.mode),c.ref=a.ref,a.child=c,c.return=a,c}function QP(a,c,h){return Wc(c,a.child,null,h),a=Fv(c,c.pendingProps),a.flags|=2,hi(c),c.memoizedState=null,a}function iX(a,c,h){var v=c.pendingProps,E=(c.flags&128)!==0;if(c.flags&=-129,a===null){if(gn){if(v.mode==="hidden")return a=Fv(c,v),c.lanes=536870912,Zm(null,a);if(PC(c),(a=qn)?(a=c4(a,zi),a=a!==null&&a.data==="&"?a:null,a!==null&&(c.memoizedState={dehydrated:a,treeContext:hl!==null?{id:zs,overflow:Fs}:null,retryLane:536870912,hydrationErrors:null},h=DN(a),h.return=c,c.child=h,no=c,qn=null)):a=null,a===null)throw gl(c);return c.lanes=536870912,null}return Fv(c,v)}var R=a.memoizedState;if(R!==null){var F=R.dehydrated;if(PC(c),E)if(c.flags&256)c.flags&=-257,c=QP(a,c,h);else if(c.memoizedState!==null)c.child=a.child,c.flags|=128,c=null;else throw Error(r(558));else if(xr||Sd(a,c,h,false),E=(h&a.childLanes)!==0,xr||E){if(v=jn,v!==null&&(F=ze(v,h),F!==0&&F!==R.retryLane))throw R.retryLane=F,_c(a,F),Yo(v,a,F),ZC;Qv(),c=QP(a,c,h);}else a=R.treeContext,qn=Hi(F.nextSibling),no=c,gn=true,pl=null,zi=false,a!==null&&_N(c,a),c=Fv(c,v),c.flags|=4096;return c}return a=ya(a.child,{mode:v.mode,children:v.children}),a.ref=c.ref,c.child=a,a.return=c,a}function Hv(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 JC(a,c,h,v,E){return Hc(c),h=OC(a,c,h,v,void 0,E),v=DC(),a!==null&&!xr?(LC(a,c,E),Ea(a,c,E)):(gn&&v&&hC(c),c.flags|=1,oo(a,c,h,E),c.child)}function ZP(a,c,h,v,E,R){return Hc(c),c.updateQueue=null,h=tP(c,v,h,E),eP(a),v=DC(),a!==null&&!xr?(LC(a,c,R),Ea(a,c,R)):(gn&&v&&hC(c),c.flags|=1,oo(a,c,h,R),c.child)}function JP(a,c,h,v,E){if(Hc(c),c.stateNode===null){var R=gd,F=h.contextType;typeof F=="object"&&F!==null&&(R=ro(F)),R=new h(v,R),c.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,R.updater=XC,c.stateNode=R,R._reactInternals=c,R=c.stateNode,R.props=v,R.state=c.memoizedState,R.refs={},EC(c),F=h.contextType,R.context=typeof F=="object"&&F!==null?ro(F):gd,R.state=c.memoizedState,F=h.getDerivedStateFromProps,typeof F=="function"&&(YC(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&&XC.enqueueReplaceState(R,R.state,null),qm(c,v,R,E),Gm(),R.state=c.memoizedState),typeof R.componentDidMount=="function"&&(c.flags|=4194308),v=true;}else if(a===null){R=c.stateNode;var Z=c.memoizedProps,ue=qc(h,Z);R.props=ue;var $e=R.context,_e=h.contextType;F=gd,typeof _e=="object"&&_e!==null&&(F=ro(_e));var We=h.getDerivedStateFromProps;_e=typeof We=="function"||typeof R.getSnapshotBeforeUpdate=="function",Z=c.pendingProps!==Z,_e||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(Z||$e!==F)&&zP(c,R,v,F),bl=false;var Ae=c.memoizedState;R.state=Ae,qm(c,v,R,E),Gm(),$e=c.memoizedState,Z||Ae!==$e||bl?(typeof We=="function"&&(YC(c,h,We,v),$e=c.memoizedState),(ue=bl||BP(c,h,ue,v,Ae,$e,F))?(_e||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=$e),R.props=v,R.state=$e,R.context=F,v=ue):(typeof R.componentDidMount=="function"&&(c.flags|=4194308),v=false);}else {R=c.stateNode,MC(a,c),F=c.memoizedProps,_e=qc(h,F),R.props=_e,We=c.pendingProps,Ae=R.context,$e=h.contextType,ue=gd,typeof $e=="object"&&$e!==null&&(ue=ro($e)),Z=h.getDerivedStateFromProps,($e=typeof Z=="function"||typeof R.getSnapshotBeforeUpdate=="function")||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(F!==We||Ae!==ue)&&zP(c,R,v,ue),bl=false,Ae=c.memoizedState,R.state=Ae,qm(c,v,R,E),Gm();var Pe=c.memoizedState;F!==We||Ae!==Pe||bl||a!==null&&a.dependencies!==null&&xv(a.dependencies)?(typeof Z=="function"&&(YC(c,h,Z,v),Pe=c.memoizedState),(_e=bl||BP(c,h,_e,v,Ae,Pe,ue)||a!==null&&a.dependencies!==null&&xv(a.dependencies))?($e||typeof R.UNSAFE_componentWillUpdate!="function"&&typeof R.componentWillUpdate!="function"||(typeof R.componentWillUpdate=="function"&&R.componentWillUpdate(v,Pe,ue),typeof R.UNSAFE_componentWillUpdate=="function"&&R.UNSAFE_componentWillUpdate(v,Pe,ue)),typeof R.componentDidUpdate=="function"&&(c.flags|=4),typeof R.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof R.componentDidUpdate!="function"||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=ue,v=_e):(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,Hv(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=Wc(c,a.child,null,E),c.child=Wc(c,null,h,E)):oo(a,c,h,E),c.memoizedState=R.state,a=c.child):a=Ea(a,c,E),a}function e5(a,c,h,v){return zc(),c.flags|=256,oo(a,c,h,v),c.child}var ex={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function tx(a){return {baseLanes:a,cachePool:jN()}}function nx(a,c,h){return a=a!==null?a.childLanes&~h:0,c&&(a|=gi),a}function t5(a,c,h){var v=c.pendingProps,E=false,R=(c.flags&128)!==0,F;if((F=R)||(F=a!==null&&a.memoizedState===null?false:(mr.current&2)!==0),F&&(E=true,c.flags&=-129),F=(c.flags&32)!==0,c.flags&=-33,a===null){if(gn){if(E?Cl(c):xl(),(a=qn)?(a=c4(a,zi),a=a!==null&&a.data!=="&"?a:null,a!==null&&(c.memoizedState={dehydrated:a,treeContext:hl!==null?{id:zs,overflow:Fs}:null,retryLane:536870912,hydrationErrors:null},h=DN(a),h.return=c,c.child=h,no=c,qn=null)):a=null,a===null)throw gl(c);return Bx(a)?c.lanes=32:c.lanes=536870912,null}var Z=v.children;return v=v.fallback,E?(xl(),E=c.mode,Z=Vv({mode:"hidden",children:Z},E),v=Bc(v,E,h,null),Z.return=c,v.return=c,Z.sibling=v,c.child=Z,v=c.child,v.memoizedState=tx(h),v.childLanes=nx(a,F,h),c.memoizedState=ex,Zm(null,v)):(Cl(c),rx(c,Z))}var ue=a.memoizedState;if(ue!==null&&(Z=ue.dehydrated,Z!==null)){if(R)c.flags&256?(Cl(c),c.flags&=-257,c=ox(a,c,h)):c.memoizedState!==null?(xl(),c.child=a.child,c.flags|=128,c=null):(xl(),Z=v.fallback,E=c.mode,v=Vv({mode:"visible",children:v.children},E),Z=Bc(Z,E,h,null),Z.flags|=2,v.return=c,Z.return=c,v.sibling=Z,c.child=v,Wc(c,a.child,null,h),v=c.child,v.memoizedState=tx(h),v.childLanes=nx(a,F,h),c.memoizedState=ex,c=Zm(null,v));else if(Cl(c),Bx(Z)){if(F=Z.nextSibling&&Z.nextSibling.dataset,F)var $e=F.dgst;F=$e,v=Error(r(419)),v.stack="",v.digest=F,Fm({value:v,source:null,stack:null}),c=ox(a,c,h);}else if(xr||Sd(a,c,h,false),F=(h&a.childLanes)!==0,xr||F){if(F=jn,F!==null&&(v=ze(F,h),v!==0&&v!==ue.retryLane))throw ue.retryLane=v,_c(a,v),Yo(F,a,v),ZC;_x(Z)||Qv(),c=ox(a,c,h);}else _x(Z)?(c.flags|=192,c.child=a.child,c=null):(a=ue.treeContext,qn=Hi(Z.nextSibling),no=c,gn=true,pl=null,zi=false,a!==null&&_N(c,a),c=rx(c,v.children),c.flags|=4096);return c}return E?(xl(),Z=v.fallback,E=c.mode,ue=a.child,$e=ue.sibling,v=ya(ue,{mode:"hidden",children:v.children}),v.subtreeFlags=ue.subtreeFlags&65011712,$e!==null?Z=ya($e,Z):(Z=Bc(Z,E,h,null),Z.flags|=2),Z.return=c,v.return=c,v.sibling=Z,c.child=v,Zm(null,v),v=c.child,Z=a.child.memoizedState,Z===null?Z=tx(h):(E=Z.cachePool,E!==null?(ue=Sr._currentValue,E=E.parent!==ue?{parent:ue,pool:ue}:E):E=jN(),Z={baseLanes:Z.baseLanes|h,cachePool:E}),v.memoizedState=Z,v.childLanes=nx(a,F,h),c.memoizedState=ex,Zm(a.child,v)):(Cl(c),h=a.child,a=h.sibling,h=ya(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 rx(a,c){return c=Vv({mode:"visible",children:c},a.mode),c.return=a,a.child=c}function Vv(a,c){return a=fi(22,a,null,c),a.lanes=0,a}function ox(a,c,h){return Wc(c,a.child,null,h),a=rx(c,c.pendingProps.children),a.flags|=2,c.memoizedState=null,a}function n5(a,c,h){a.lanes|=c;var v=a.alternate;v!==null&&(v.lanes|=c),yC(a.return,c,h);}function ix(a,c,h,v,E,R){var F=a.memoizedState;F===null?a.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:v,tail:h,tailMode:E,treeForkCount:R}:(F.isBackwards=c,F.rendering=null,F.renderingStartTime=0,F.last=v,F.tail=h,F.tailMode=E,F.treeForkCount=R);}function r5(a,c,h){var v=c.pendingProps,E=v.revealOrder,R=v.tail;v=v.children;var F=mr.current,Z=(F&2)!==0;if(Z?(F=F&1|2,c.flags|=128):F&=1,Q(mr,F),oo(a,c,v,h),v=gn?zm:0,!Z&&a!==null&&(a.flags&128)!==0)e:for(a=c.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&n5(a,h,c);else if(a.tag===19)n5(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(E){case "forwards":for(h=c.child,E=null;h!==null;)a=h.alternate,a!==null&&Nv(a)===null&&(E=h),h=h.sibling;h=E,h===null?(E=c.child,c.child=null):(E=h.sibling,h.sibling=null),ix(c,false,E,h,R,v);break;case "backwards":case "unstable_legacy-backwards":for(h=null,E=c.child,c.child=null;E!==null;){if(a=E.alternate,a!==null&&Nv(a)===null){c.child=E;break}a=E.sibling,E.sibling=h,h=E,E=a;}ix(c,true,h,null,R,v);break;case "together":ix(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=ya(a,a.pendingProps),c.child=h,h.return=c;a.sibling!==null;)a=a.sibling,h=h.sibling=ya(a,a.pendingProps),h.return=c;h.sibling=null;}return c.child}function sx(a,c){return (a.lanes&c)!==0?true:(a=a.dependencies,!!(a!==null&&xv(a)))}function sX(a,c,h){switch(c.tag){case 3:oe(c,c.stateNode.containerInfo),vl(c,Sr,a.memoizedState.cache),zc();break;case 27:case 5:ee(c);break;case 4:oe(c,c.stateNode.containerInfo);break;case 10:vl(c,c.type,c.memoizedProps.value);break;case 31:if(c.memoizedState!==null)return c.flags|=128,PC(c),null;break;case 13:var v=c.memoizedState;if(v!==null)return v.dehydrated!==null?(Cl(c),c.flags|=128,null):(h&c.child.childLanes)!==0?t5(a,c,h):(Cl(c),a=Ea(a,c,h),a!==null?a.sibling:null);Cl(c);break;case 19:var E=(a.flags&128)!==0;if(v=(h&c.childLanes)!==0,v||(Sd(a,c,h,false),v=(h&c.childLanes)!==0),E){if(v)return r5(a,c,h);c.flags|=128;}if(E=c.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),Q(mr,mr.current),v)break;return null;case 22:return c.lanes=0,YP(a,c,h,c.pendingProps);case 24:vl(c,Sr,a.memoizedState.cache);}return Ea(a,c,h)}function o5(a,c,h){if(a!==null)if(a.memoizedProps!==c.pendingProps)xr=true;else {if(!sx(a,h)&&(c.flags&128)===0)return xr=false,sX(a,c,h);xr=(a.flags&131072)!==0;}else xr=false,gn&&(c.flags&1048576)!==0&&kN(c,zm,c.index);switch(c.lanes=0,c.tag){case 16:e:{var v=c.pendingProps;if(a=jc(c.elementType),c.type=a,typeof a=="function")dC(a)?(v=qc(a,v),c.tag=1,c=JP(null,c,a,v,h)):(c.tag=0,c=JC(null,c,a,v,h));else {if(a!=null){var E=a.$$typeof;if(E===T){c.tag=11,c=GP(null,c,a,v,h);break e}else if(E===N){c.tag=14,c=qP(null,c,a,v,h);break e}}throw c=W(a)||a,Error(r(306,c,""))}}return c;case 0:return JC(a,c,c.type,c.pendingProps,h);case 1:return v=c.type,E=qc(v,c.pendingProps),JP(a,c,v,E,h);case 3:e:{if(oe(c,c.stateNode.containerInfo),a===null)throw Error(r(387));v=c.pendingProps;var R=c.memoizedState;E=R.element,MC(a,c),qm(c,v,null,h);var F=c.memoizedState;if(v=F.cache,vl(c,Sr,v),v!==R.cache&&SC(c,[Sr],h,true),Gm(),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=e5(a,c,v,h);break e}else if(v!==E){E=ki(Error(r(424)),c),Fm(E),c=e5(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=Hi(a.firstChild),no=c,gn=true,pl=null,zi=true,h=YN(c,null,v,h),c.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else {if(zc(),v===E){c=Ea(a,c,h);break e}oo(a,c,v,h);}c=c.child;}return c;case 26:return Hv(a,c),a===null?(h=p4(c.type,null,c.pendingProps,null))?c.memoizedState=h:gn||(h=c.type,a=c.pendingProps,v=ob(ne.current).createElement(h),v[Nt]=c,v[pn]=a,io(v,h,a),bn(v),c.stateNode=v):c.memoizedState=p4(c.type,a.memoizedProps,c.pendingProps,a.memoizedState),null;case 27:return ee(c),a===null&&gn&&(v=c.stateNode=f4(c.type,c.pendingProps,ne.current),no=c,zi=true,E=qn,Nl(c.type)?(zx=E,qn=Hi(v.firstChild)):qn=E),oo(a,c,c.pendingProps.children,h),Hv(a,c),a===null&&(c.flags|=4194304),c.child;case 5:return a===null&&gn&&((E=v=qn)&&(v=kX(v,c.type,c.pendingProps,zi),v!==null?(c.stateNode=v,no=c,qn=Hi(v.firstChild),zi=false,E=true):E=false),E||gl(c)),ee(c),E=c.type,R=c.pendingProps,F=a!==null?a.memoizedProps:null,v=R.children,Dx(E,R)?v=null:F!==null&&Dx(E,F)&&(c.flags|=32),c.memoizedState!==null&&(E=OC(a,c,QY,null,null,h),mh._currentValue=E),Hv(a,c),oo(a,c,v,h),c.child;case 6:return a===null&&gn&&((a=h=qn)&&(h=_X(h,c.pendingProps,zi),h!==null?(c.stateNode=h,no=c,qn=null,a=true):a=false),a||gl(c)),null;case 13:return t5(a,c,h);case 4:return oe(c,c.stateNode.containerInfo),v=c.pendingProps,a===null?c.child=Wc(c,null,v,h):oo(a,c,v,h),c.child;case 11:return GP(a,c,c.type,c.pendingProps,h);case 7:return oo(a,c,c.pendingProps,h),c.child;case 8:return oo(a,c,c.pendingProps.children,h),c.child;case 12:return oo(a,c,c.pendingProps.children,h),c.child;case 10:return v=c.pendingProps,vl(c,c.type,v.value),oo(a,c,v.children,h),c.child;case 9:return E=c.type._context,v=c.pendingProps.children,Hc(c),E=ro(E),v=v(E),c.flags|=1,oo(a,c,v,h),c.child;case 14:return qP(a,c,c.type,c.pendingProps,h);case 15:return KP(a,c,c.type,c.pendingProps,h);case 19:return r5(a,c,h);case 31:return iX(a,c,h);case 22:return YP(a,c,h,c.pendingProps);case 24:return Hc(c),v=ro(Sr),a===null?(E=wC(),E===null&&(E=jn,R=CC(),E.pooledCache=R,R.refCount++,R!==null&&(E.pooledCacheLanes|=h),E=R),c.memoizedState={parent:v,cache:E},EC(c),vl(c,Sr,E)):((a.lanes&h)!==0&&(MC(a,c),qm(c,null,null,h),Gm()),E=a.memoizedState,R=c.memoizedState,E.parent!==v?(E={parent:v,cache:v},c.memoizedState=E,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=E),vl(c,Sr,v)):(v=R.cache,vl(c,Sr,v),v!==E.cache&&SC(c,[Sr],h,true))),oo(a,c,c.pendingProps.children,h),c.child;case 29:throw c.pendingProps}throw Error(r(156,c.tag))}function Ma(a){a.flags|=4;}function ax(a,c,h,v,E){if((c=(a.mode&32)!==0)&&(c=false),c){if(a.flags|=16777216,(E&335544128)===E)if(a.stateNode.complete)a.flags|=8192;else if(P5())a.flags|=8192;else throw Uc=Mv,$C}else a.flags&=-16777217;}function i5(a,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!S4(c))if(P5())a.flags|=8192;else throw Uc=Mv,$C}function jv(a,c){c!==null&&(a.flags|=4),a.flags&16384&&(c=a.tag!==22?be():536870912,a.lanes|=c,Id|=c);}function Jm(a,c){if(!gn)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 E=a.child;E!==null;)h|=E.lanes|E.childLanes,v|=E.subtreeFlags&65011712,v|=E.flags&65011712,E.return=a,E=E.sibling;else for(E=a.child;E!==null;)h|=E.lanes|E.childLanes,v|=E.subtreeFlags,v|=E.flags,E.return=a,E=E.sibling;return a.subtreeFlags|=v,a.childLanes=h,c}function aX(a,c,h){var v=c.pendingProps;switch(pC(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),xa(Sr),de(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(a===null||a.child===null)&&(yd(c)?Ma(c):a===null||a.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,vC())),Kn(c),null;case 26:var E=c.type,R=c.memoizedState;return a===null?(Ma(c),R!==null?(Kn(c),i5(c,R)):(Kn(c),ax(c,E,null,v,h))):R?R!==a.memoizedState?(Ma(c),Kn(c),i5(c,R)):(Kn(c),c.flags&=-16777217):(a=a.memoizedProps,a!==v&&Ma(c),Kn(c),ax(c,E,a,v,h)),null;case 27:if(se(c),h=ne.current,E=c.type,a!==null&&c.stateNode!=null)a.memoizedProps!==v&&Ma(c);else {if(!v){if(c.stateNode===null)throw Error(r(166));return Kn(c),null}a=J.current,yd(c)?BN(c):(a=f4(E,v,h),c.stateNode=a,Ma(c));}return Kn(c),null;case 5:if(se(c),E=c.type,a!==null&&c.stateNode!=null)a.memoizedProps!==v&&Ma(c);else {if(!v){if(c.stateNode===null)throw Error(r(166));return Kn(c),null}if(R=J.current,yd(c))BN(c);else {var F=ob(ne.current);switch(R){case 1:R=F.createElementNS("http://www.w3.org/2000/svg",E);break;case 2:R=F.createElementNS("http://www.w3.org/1998/Math/MathML",E);break;default:switch(E){case "svg":R=F.createElementNS("http://www.w3.org/2000/svg",E);break;case "math":R=F.createElementNS("http://www.w3.org/1998/Math/MathML",E);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(E,{is:v.is}):F.createElement(E);}}R[Nt]=c,R[pn]=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(io(R,E,v),E){case "button":case "input":case "select":case "textarea":v=!!v.autoFocus;break e;case "img":v=true;break e;default:v=false;}v&&Ma(c);}}return Kn(c),ax(c,c.type,a===null?null:a.memoizedProps,c.pendingProps,h),null;case 6:if(a&&c.stateNode!=null)a.memoizedProps!==v&&Ma(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,E=no,E!==null)switch(E.tag){case 27:case 5:v=E.memoizedProps;}a[Nt]=c,a=!!(a.nodeValue===h||v!==null&&v.suppressHydrationWarning===true||t4(a.nodeValue,h)),a||gl(c,true);}else a=ob(a).createTextNode(v),a[Nt]=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[Nt]=c;}else zc(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Kn(c),a=false;}else h=vC(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=h),a=true;if(!a)return c.flags&256?(hi(c),c):(hi(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(E=yd(c),v!==null&&v.dehydrated!==null){if(a===null){if(!E)throw Error(r(318));if(E=c.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[Nt]=c;}else zc(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Kn(c),E=false;}else E=vC(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=E),E=true;if(!E)return c.flags&256?(hi(c),c):(hi(c),null)}return hi(c),(c.flags&128)!==0?(c.lanes=h,c):(h=v!==null,a=a!==null&&a.memoizedState!==null,h&&(v=c.child,E=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(E=v.alternate.memoizedState.cachePool.pool),R=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(R=v.memoizedState.cachePool.pool),R!==E&&(v.flags|=2048)),h!==a&&h&&(c.child.flags|=8192),jv(c,c.updateQueue),Kn(c),null);case 4:return de(),a===null&&Rx(c.stateNode.containerInfo),Kn(c),null;case 10:return xa(c.type),Kn(c),null;case 19:if(H(mr),v=c.memoizedState,v===null)return Kn(c),null;if(E=(c.flags&128)!==0,R=v.rendering,R===null)if(E)Jm(v,false);else {if(sr!==0||a!==null&&(a.flags&128)!==0)for(a=c.child;a!==null;){if(R=Nv(a),R!==null){for(c.flags|=128,Jm(v,false),a=R.updateQueue,c.updateQueue=a,jv(c,a),c.subtreeFlags=0,a=h,h=c.child;h!==null;)ON(h,a),h=h.sibling;return Q(mr,mr.current&1|2),gn&&Sa(c,v.treeForkCount),c.child}a=a.sibling;}v.tail!==null&&Se()>Kv&&(c.flags|=128,E=true,Jm(v,false),c.lanes=4194304);}else {if(!E)if(a=Nv(R),a!==null){if(c.flags|=128,E=true,a=a.updateQueue,c.updateQueue=a,jv(c,a),Jm(v,true),v.tail===null&&v.tailMode==="hidden"&&!R.alternate&&!gn)return Kn(c),null}else 2*Se()-v.renderingStartTime>Kv&&h!==536870912&&(c.flags|=128,E=true,Jm(v,false),c.lanes=4194304);v.isBackwards?(R.sibling=c.child,c.child=R):(a=v.last,a!==null?a.sibling=R:c.child=R,v.last=R);}return v.tail!==null?(a=v.tail,v.rendering=a,v.tail=a.sibling,v.renderingStartTime=Se(),a.sibling=null,h=mr.current,Q(mr,E?h&1|2:h&1),gn&&Sa(c,v.treeForkCount),a):(Kn(c),null);case 22:case 23:return hi(c),NC(),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&&jv(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&&H(Vc),null;case 24:return h=null,a!==null&&(h=a.memoizedState.cache),c.memoizedState.cache!==h&&(c.flags|=2048),xa(Sr),Kn(c),null;case 25:return null;case 30:return null}throw Error(r(156,c.tag))}function lX(a,c){switch(pC(c),c.tag){case 1:return a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 3:return xa(Sr),de(),a=c.flags,(a&65536)!==0&&(a&128)===0?(c.flags=a&-65537|128,c):null;case 26:case 27:case 5:return se(c),null;case 31:if(c.memoizedState!==null){if(hi(c),c.alternate===null)throw Error(r(340));zc();}return a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 13:if(hi(c),a=c.memoizedState,a!==null&&a.dehydrated!==null){if(c.alternate===null)throw Error(r(340));zc();}return a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 19:return H(mr),null;case 4:return de(),null;case 10:return xa(c.type),null;case 22:case 23:return hi(c),NC(),a!==null&&H(Vc),a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 24:return xa(Sr),null;case 25:return null;default:return null}}function s5(a,c){switch(pC(c),c.tag){case 3:xa(Sr),de();break;case 26:case 27:case 5:se(c);break;case 4:de();break;case 31:c.memoizedState!==null&&hi(c);break;case 13:hi(c);break;case 19:H(mr);break;case 10:xa(c.type);break;case 22:case 23:hi(c),NC(),a!==null&&H(Vc);break;case 24:xa(Sr);}}function eh(a,c){try{var h=c.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var E=v.next;h=E;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!==E)}}catch(Z){Ln(c,c.return,Z);}}function wl(a,c,h){try{var v=c.updateQueue,E=v!==null?v.lastEffect:null;if(E!==null){var R=E.next;v=R;do{if((v.tag&a)===a){var F=v.inst,Z=F.destroy;if(Z!==void 0){F.destroy=void 0,E=c;var ue=h,$e=Z;try{$e();}catch(_e){Ln(E,ue,_e);}}}v=v.next;}while(v!==R)}}catch(_e){Ln(c,c.return,_e);}}function a5(a){var c=a.updateQueue;if(c!==null){var h=a.stateNode;try{QN(c,h);}catch(v){Ln(a,a.return,v);}}}function l5(a,c,h){h.props=qc(a.type,a.memoizedProps),h.state=a.memoizedState;try{h.componentWillUnmount();}catch(v){Ln(a,c,v);}}function th(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(E){Ln(a,c,E);}}function Hs(a,c){var h=a.ref,v=a.refCleanup;if(h!==null)if(typeof v=="function")try{v();}catch(E){Ln(a,c,E);}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null);}else if(typeof h=="function")try{h(null);}catch(E){Ln(a,c,E);}else h.current=null;}function c5(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(E){Ln(a,a.return,E);}}function lx(a,c,h){try{var v=a.stateNode;NX(v,a.type,h,c),v[pn]=c;}catch(E){Ln(a,a.return,E);}}function u5(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Nl(a.type)||a.tag===4}function cx(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||u5(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&&Nl(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 ux(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=va));else if(v!==4&&(v===27&&Nl(a.type)&&(h=a.stateNode,c=null),a=a.child,a!==null))for(ux(a,c,h),a=a.sibling;a!==null;)ux(a,c,h),a=a.sibling;}function Uv(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&&Nl(a.type)&&(h=a.stateNode),a=a.child,a!==null))for(Uv(a,c,h),a=a.sibling;a!==null;)Uv(a,c,h),a=a.sibling;}function d5(a){var c=a.stateNode,h=a.memoizedProps;try{for(var v=a.type,E=c.attributes;E.length;)c.removeAttributeNode(E[0]);io(c,v,h),c[Nt]=a,c[pn]=h;}catch(R){Ln(a,a.return,R);}}var Ta=false,wr=false,dx=false,f5=typeof WeakSet=="function"?WeakSet:Set,Ur=null;function cX(a,c){if(a=a.containerInfo,Ix=db,a=$N(a),oC(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 E=v.anchorOffset,R=v.focusNode;v=v.focusOffset;try{h.nodeType,R.nodeType;}catch{h=null;break e}var F=0,Z=-1,ue=-1,$e=0,_e=0,We=a,Ae=null;t:for(;;){for(var Pe;We!==h||E!==0&&We.nodeType!==3||(Z=F+E),We!==R||v!==0&&We.nodeType!==3||(ue=F+v),We.nodeType===3&&(F+=We.nodeValue.length),(Pe=We.firstChild)!==null;)Ae=We,We=Pe;for(;;){if(We===a)break t;if(Ae===h&&++$e===E&&(Z=F),Ae===R&&++_e===v&&(ue=F),(Pe=We.nextSibling)!==null)break;We=Ae,Ae=We.parentNode;}We=Pe;}h=Z===-1||ue===-1?null:{start:Z,end:ue};}else h=null;}h=h||{start:0,end:0};}else h=null;for(Ox={focusedElem:a,selectionRange:h},db=false,Ur=c;Ur!==null;)if(c=Ur,a=c.child,(c.subtreeFlags&1028)!==0&&a!==null)a.return=c,Ur=a;else for(;Ur!==null;){switch(c=Ur,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++)E=a[h],E.ref.impl=E.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&R!==null){a=void 0,h=c,E=R.memoizedProps,R=R.memoizedState,v=h.stateNode;try{var gt=qc(h.type,E);a=v.getSnapshotBeforeUpdate(gt,R),v.__reactInternalSnapshotBeforeUpdate=a;}catch(Pt){Ln(h,h.return,Pt);}}break;case 3:if((a&1024)!==0){if(a=c.stateNode.containerInfo,h=a.nodeType,h===9)kx(a);else if(h===1)switch(a.nodeName){case "HEAD":case "HTML":case "BODY":kx(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,Ur=a;break}Ur=c.return;}}function m5(a,c,h){var v=h.flags;switch(h.tag){case 0:case 11:case 15:Ra(a,h),v&4&&eh(5,h);break;case 1:if(Ra(a,h),v&4)if(a=h.stateNode,c===null)try{a.componentDidMount();}catch(F){Ln(h,h.return,F);}else {var E=qc(h.type,c.memoizedProps);c=c.memoizedState;try{a.componentDidUpdate(E,c,a.__reactInternalSnapshotBeforeUpdate);}catch(F){Ln(h,h.return,F);}}v&64&&a5(h),v&512&&th(h,h.return);break;case 3:if(Ra(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{QN(a,c);}catch(F){Ln(h,h.return,F);}}break;case 27:c===null&&v&4&&d5(h);case 26:case 5:Ra(a,h),c===null&&v&4&&c5(h),v&512&&th(h,h.return);break;case 12:Ra(a,h);break;case 31:Ra(a,h),v&4&&g5(a,h);break;case 13:Ra(a,h),v&4&&v5(a,h),v&64&&(a=h.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(h=bX.bind(null,h),BX(a,h))));break;case 22:if(v=h.memoizedState!==null||Ta,!v){c=c!==null&&c.memoizedState!==null||wr,E=Ta;var R=wr;Ta=v,(wr=c)&&!R?Na(a,h,(h.subtreeFlags&8772)!==0):Ra(a,h),Ta=E,wr=R;}break;case 30:break;default:Ra(a,h);}}function h5(a){var c=a.alternate;c!==null&&(a.alternate=null,h5(c)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(c=a.stateNode,c!==null&&Bt(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 er=null,Wo=false;function Aa(a,c,h){for(h=h.child;h!==null;)p5(a,c,h),h=h.sibling;}function p5(a,c,h){if(ke&&typeof ke.onCommitFiberUnmount=="function")try{ke.onCommitFiberUnmount(Qe,h);}catch{}switch(h.tag){case 26:wr||Hs(h,c),Aa(a,c,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:wr||Hs(h,c);var v=er,E=Wo;Nl(h.type)&&(er=h.stateNode,Wo=false),Aa(a,c,h),uh(h.stateNode),er=v,Wo=E;break;case 5:wr||Hs(h,c);case 6:if(v=er,E=Wo,er=null,Aa(a,c,h),er=v,Wo=E,er!==null)if(Wo)try{(er.nodeType===9?er.body:er.nodeName==="HTML"?er.ownerDocument.body:er).removeChild(h.stateNode);}catch(R){Ln(h,c,R);}else try{er.removeChild(h.stateNode);}catch(R){Ln(h,c,R);}break;case 18:er!==null&&(Wo?(a=er,a4(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,h.stateNode),Fd(a)):a4(er,h.stateNode));break;case 4:v=er,E=Wo,er=h.stateNode.containerInfo,Wo=true,Aa(a,c,h),er=v,Wo=E;break;case 0:case 11:case 14:case 15:wl(2,h,c),wr||wl(4,h,c),Aa(a,c,h);break;case 1:wr||(Hs(h,c),v=h.stateNode,typeof v.componentWillUnmount=="function"&&l5(h,c,v)),Aa(a,c,h);break;case 21:Aa(a,c,h);break;case 22:wr=(v=wr)||h.memoizedState!==null,Aa(a,c,h),wr=v;break;default:Aa(a,c,h);}}function g5(a,c){if(c.memoizedState===null&&(a=c.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{Fd(a);}catch(h){Ln(c,c.return,h);}}}function v5(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){Ln(c,c.return,h);}}function uX(a){switch(a.tag){case 31:case 13:case 19:var c=a.stateNode;return c===null&&(c=a.stateNode=new f5),c;case 22:return a=a.stateNode,c=a._retryCache,c===null&&(c=a._retryCache=new f5),c;default:throw Error(r(435,a.tag))}}function Wv(a,c){var h=uX(a);c.forEach(function(v){if(!h.has(v)){h.add(v);var E=yX.bind(null,a,v);v.then(E,E);}});}function Go(a,c){var h=c.deletions;if(h!==null)for(var v=0;v<h.length;v++){var E=h[v],R=a,F=c,Z=F;e:for(;Z!==null;){switch(Z.tag){case 27:if(Nl(Z.type)){er=Z.stateNode,Wo=false;break e}break;case 5:er=Z.stateNode,Wo=false;break e;case 3:case 4:er=Z.stateNode.containerInfo,Wo=true;break e}Z=Z.return;}if(er===null)throw Error(r(160));p5(R,F,E),er=null,Wo=false,R=E.alternate,R!==null&&(R.return=null),E.return=null;}if(c.subtreeFlags&13886)for(c=c.child;c!==null;)b5(c,a),c=c.sibling;}var fs=null;function b5(a,c){var h=a.alternate,v=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Go(c,a),qo(a),v&4&&(wl(3,a,a.return),eh(3,a),wl(5,a,a.return));break;case 1:Go(c,a),qo(a),v&512&&(wr||h===null||Hs(h,h.return)),v&64&&Ta&&(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 E=fs;if(Go(c,a),qo(a),v&512&&(wr||h===null||Hs(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,E=E.ownerDocument||E;t:switch(v){case "title":R=E.getElementsByTagName("title")[0],(!R||R[wt]||R[Nt]||R.namespaceURI==="http://www.w3.org/2000/svg"||R.hasAttribute("itemprop"))&&(R=E.createElement(v),E.head.insertBefore(R,E.querySelector("head > title"))),io(R,v,h),R[Nt]=a,bn(R),v=R;break e;case "link":var F=b4("link","href",E).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=E.createElement(v),io(R,v,h),E.head.appendChild(R);break;case "meta":if(F=b4("meta","content",E).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=E.createElement(v),io(R,v,h),E.head.appendChild(R);break;default:throw Error(r(468,v))}R[Nt]=a,bn(R),v=R;}a.stateNode=v;}else y4(E,a.type,a.stateNode);else a.stateNode=v4(E,v,a.memoizedProps);else R!==v?(R===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):R.count--,v===null?y4(E,a.type,a.stateNode):v4(E,v,a.memoizedProps)):v===null&&a.stateNode!==null&&lx(a,a.memoizedProps,h.memoizedProps);}break;case 27:Go(c,a),qo(a),v&512&&(wr||h===null||Hs(h,h.return)),h!==null&&v&4&&lx(a,a.memoizedProps,h.memoizedProps);break;case 5:if(Go(c,a),qo(a),v&512&&(wr||h===null||Hs(h,h.return)),a.flags&32){E=a.stateNode;try{cd(E,"");}catch(gt){Ln(a,a.return,gt);}}v&4&&a.stateNode!=null&&(E=a.memoizedProps,lx(a,E,h!==null?h.memoizedProps:E)),v&1024&&(dx=true);break;case 6:if(Go(c,a),qo(a),v&4){if(a.stateNode===null)throw Error(r(162));v=a.memoizedProps,h=a.stateNode;try{h.nodeValue=v;}catch(gt){Ln(a,a.return,gt);}}break;case 3:if(ab=null,E=fs,fs=ib(c.containerInfo),Go(c,a),fs=E,qo(a),v&4&&h!==null&&h.memoizedState.isDehydrated)try{Fd(c.containerInfo);}catch(gt){Ln(a,a.return,gt);}dx&&(dx=false,y5(a));break;case 4:v=fs,fs=ib(a.stateNode.containerInfo),Go(c,a),qo(a),fs=v;break;case 12:Go(c,a),qo(a);break;case 31:Go(c,a),qo(a),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,Wv(a,v)));break;case 13:Go(c,a),qo(a),a.child.flags&8192&&a.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(qv=Se()),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,Wv(a,v)));break;case 22:E=a.memoizedState!==null;var ue=h!==null&&h.memoizedState!==null,$e=Ta,_e=wr;if(Ta=$e||E,wr=_e||ue,Go(c,a),wr=_e,Ta=$e,qo(a),v&8192)e:for(c=a.stateNode,c._visibility=E?c._visibility&-2:c._visibility|1,E&&(h===null||ue||Ta||wr||Kc(a)),h=null,c=a;;){if(c.tag===5||c.tag===26){if(h===null){ue=h=c;try{if(R=ue.stateNode,E)F=R.style,typeof F.setProperty=="function"?F.setProperty("display","none","important"):F.display="none";else {Z=ue.stateNode;var We=ue.memoizedProps.style,Ae=We!=null&&We.hasOwnProperty("display")?We.display:null;Z.style.display=Ae==null||typeof Ae=="boolean"?"":(""+Ae).trim();}}catch(gt){Ln(ue,ue.return,gt);}}}else if(c.tag===6){if(h===null){ue=c;try{ue.stateNode.nodeValue=E?"":ue.memoizedProps;}catch(gt){Ln(ue,ue.return,gt);}}}else if(c.tag===18){if(h===null){ue=c;try{var Pe=ue.stateNode;E?l4(Pe,!0):l4(ue.stateNode,!1);}catch(gt){Ln(ue,ue.return,gt);}}}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,Wv(a,h))));break;case 19:Go(c,a),qo(a),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,Wv(a,v)));break;case 30:break;case 21:break;default:Go(c,a),qo(a);}}function qo(a){var c=a.flags;if(c&2){try{for(var h,v=a.return;v!==null;){if(u5(v)){h=v;break}v=v.return;}if(h==null)throw Error(r(160));switch(h.tag){case 27:var E=h.stateNode,R=cx(a);Uv(a,R,E);break;case 5:var F=h.stateNode;h.flags&32&&(cd(F,""),h.flags&=-33);var Z=cx(a);Uv(a,Z,F);break;case 3:case 4:var ue=h.stateNode.containerInfo,$e=cx(a);ux(a,$e,ue);break;default:throw Error(r(161))}}catch(_e){Ln(a,a.return,_e);}a.flags&=-3;}c&4096&&(a.flags&=-4097);}function y5(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var c=a;y5(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),a=a.sibling;}}function Ra(a,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)m5(a,c.alternate,c),c=c.sibling;}function Kc(a){for(a=a.child;a!==null;){var c=a;switch(c.tag){case 0:case 11:case 14:case 15:wl(4,c,c.return),Kc(c);break;case 1:Hs(c,c.return);var h=c.stateNode;typeof h.componentWillUnmount=="function"&&l5(c,c.return,h),Kc(c);break;case 27:uh(c.stateNode);case 26:case 5:Hs(c,c.return),Kc(c);break;case 22:c.memoizedState===null&&Kc(c);break;case 30:Kc(c);break;default:Kc(c);}a=a.sibling;}}function Na(a,c,h){for(h=h&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var v=c.alternate,E=a,R=c,F=R.flags;switch(R.tag){case 0:case 11:case 15:Na(E,R,h),eh(4,R);break;case 1:if(Na(E,R,h),v=R,E=v.stateNode,typeof E.componentDidMount=="function")try{E.componentDidMount();}catch($e){Ln(v,v.return,$e);}if(v=R,E=v.updateQueue,E!==null){var Z=v.stateNode;try{var ue=E.shared.hiddenCallbacks;if(ue!==null)for(E.shared.hiddenCallbacks=null,E=0;E<ue.length;E++)XN(ue[E],Z);}catch($e){Ln(v,v.return,$e);}}h&&F&64&&a5(R),th(R,R.return);break;case 27:d5(R);case 26:case 5:Na(E,R,h),h&&v===null&&F&4&&c5(R),th(R,R.return);break;case 12:Na(E,R,h);break;case 31:Na(E,R,h),h&&F&4&&g5(E,R);break;case 13:Na(E,R,h),h&&F&4&&v5(E,R);break;case 22:R.memoizedState===null&&Na(E,R,h),th(R,R.return);break;case 30:break;default:Na(E,R,h);}c=c.sibling;}}function fx(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&&Hm(h));}function mx(a,c){a=null,c.alternate!==null&&(a=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==a&&(c.refCount++,a!=null&&Hm(a));}function ms(a,c,h,v){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)S5(a,c,h,v),c=c.sibling;}function S5(a,c,h,v){var E=c.flags;switch(c.tag){case 0:case 11:case 15:ms(a,c,h,v),E&2048&&eh(9,c);break;case 1:ms(a,c,h,v);break;case 3:ms(a,c,h,v),E&2048&&(a=null,c.alternate!==null&&(a=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==a&&(c.refCount++,a!=null&&Hm(a)));break;case 12:if(E&2048){ms(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(ue){Ln(c,c.return,ue);}}else ms(a,c,h,v);break;case 31:ms(a,c,h,v);break;case 13:ms(a,c,h,v);break;case 23:break;case 22:R=c.stateNode,F=c.alternate,c.memoizedState!==null?R._visibility&2?ms(a,c,h,v):nh(a,c):R._visibility&2?ms(a,c,h,v):(R._visibility|=2,Rd(a,c,h,v,(c.subtreeFlags&10256)!==0||false)),E&2048&&fx(F,c);break;case 24:ms(a,c,h,v),E&2048&&mx(c.alternate,c);break;default:ms(a,c,h,v);}}function Rd(a,c,h,v,E){for(E=E&&((c.subtreeFlags&10256)!==0||false),c=c.child;c!==null;){var R=a,F=c,Z=h,ue=v,$e=F.flags;switch(F.tag){case 0:case 11:case 15:Rd(R,F,Z,ue,E),eh(8,F);break;case 23:break;case 22:var _e=F.stateNode;F.memoizedState!==null?_e._visibility&2?Rd(R,F,Z,ue,E):nh(R,F):(_e._visibility|=2,Rd(R,F,Z,ue,E)),E&&$e&2048&&fx(F.alternate,F);break;case 24:Rd(R,F,Z,ue,E),E&&$e&2048&&mx(F.alternate,F);break;default:Rd(R,F,Z,ue,E);}c=c.sibling;}}function nh(a,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var h=a,v=c,E=v.flags;switch(v.tag){case 22:nh(h,v),E&2048&&fx(v.alternate,v);break;case 24:nh(h,v),E&2048&&mx(v.alternate,v);break;default:nh(h,v);}c=c.sibling;}}var rh=8192;function Nd(a,c,h){if(a.subtreeFlags&rh)for(a=a.child;a!==null;)C5(a,c,h),a=a.sibling;}function C5(a,c,h){switch(a.tag){case 26:Nd(a,c,h),a.flags&rh&&a.memoizedState!==null&&XX(h,fs,a.memoizedState,a.memoizedProps);break;case 5:Nd(a,c,h);break;case 3:case 4:var v=fs;fs=ib(a.stateNode.containerInfo),Nd(a,c,h),fs=v;break;case 22:a.memoizedState===null&&(v=a.alternate,v!==null&&v.memoizedState!==null?(v=rh,rh=16777216,Nd(a,c,h),rh=v):Nd(a,c,h));break;default:Nd(a,c,h);}}function x5(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 oh(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];Ur=v,$5(v,a);}x5(a);}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)w5(a),a=a.sibling;}function w5(a){switch(a.tag){case 0:case 11:case 15:oh(a),a.flags&2048&&wl(9,a,a.return);break;case 3:oh(a);break;case 12:oh(a);break;case 22:var c=a.stateNode;a.memoizedState!==null&&c._visibility&2&&(a.return===null||a.return.tag!==13)?(c._visibility&=-3,Gv(a)):oh(a);break;default:oh(a);}}function Gv(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];Ur=v,$5(v,a);}x5(a);}for(a=a.child;a!==null;){switch(c=a,c.tag){case 0:case 11:case 15:wl(8,c,c.return),Gv(c);break;case 22:h=c.stateNode,h._visibility&2&&(h._visibility&=-3,Gv(c));break;default:Gv(c);}a=a.sibling;}}function $5(a,c){for(;Ur!==null;){var h=Ur;switch(h.tag){case 0:case 11:case 15:wl(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:Hm(h.memoizedState.cache);}if(v=h.child,v!==null)v.return=h,Ur=v;else e:for(h=a;Ur!==null;){v=Ur;var E=v.sibling,R=v.return;if(h5(v),v===h){Ur=null;break e}if(E!==null){E.return=R,Ur=E;break e}Ur=R;}}}var dX={getCacheForType:function(a){var c=ro(Sr),h=c.data.get(a);return h===void 0&&(h=a(),c.data.set(a,h)),h},cacheSignal:function(){return ro(Sr).controller.signal}},fX=typeof WeakMap=="function"?WeakMap:Map,wn=0,jn=null,on=null,an=0,Dn=0,pi=null,$l=false,Pd=false,hx=false,Pa=0,sr=0,El=0,Yc=0,px=0,gi=0,Id=0,ih=null,Ko=null,gx=false,qv=0,E5=0,Kv=1/0,Yv=null,Ml=null,Ir=0,Tl=null,Od=null,Ia=0,vx=0,bx=null,M5=null,sh=0,yx=null;function vi(){return (wn&2)!==0&&an!==0?an&-an:k.T!==null?Ex():dt()}function T5(){if(gi===0)if((an&536870912)===0||gn){var a=Dt;Dt<<=1,(Dt&3932160)===0&&(Dt=262144),gi=a;}else gi=536870912;return a=mi.current,a!==null&&(a.flags|=32),gi}function Yo(a,c,h){(a===jn&&(Dn===2||Dn===9)||a.cancelPendingCommit!==null)&&(Dd(a,0),Al(a,an,gi,false)),ye(a,h),((wn&2)===0||a!==jn)&&(a===jn&&((wn&2)===0&&(Yc|=h),sr===4&&Al(a,an,gi,false)),Vs(a));}function A5(a,c,h){if((wn&6)!==0)throw Error(r(327));var v=!h&&(c&127)===0&&(c&a.expiredLanes)===0||He(a,c),E=v?pX(a,c):Cx(a,c,true),R=v;do{if(E===0){Pd&&!v&&Al(a,c,0,false);break}else {if(h=a.current.alternate,R&&!mX(h)){E=Cx(a,c,false),R=false;continue}if(E===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;E=ih;var ue=Z.current.memoizedState.isDehydrated;if(ue&&(Dd(Z,F).flags|=256),F=Cx(Z,F,false),F!==2){if(hx&&!ue){Z.errorRecoveryDisabledLanes|=R,Yc|=R,E=4;break e}R=Ko,Ko=E,R!==null&&(Ko===null?Ko=R:Ko.push.apply(Ko,R));}E=F;}if(R=false,E!==2)continue}}if(E===1){Dd(a,0),Al(a,c,0,true);break}e:{switch(v=a,R=E,R){case 0:case 1:throw Error(r(345));case 4:if((c&4194048)!==c)break;case 6:Al(v,c,gi,!$l);break e;case 2:Ko=null;break;case 3:case 5:break;default:throw Error(r(329))}if((c&62914560)===c&&(E=qv+300-Se(),10<E)){if(Al(v,c,gi,!$l),vt(v,0,true)!==0)break e;Ia=c,v.timeoutHandle=i4(R5.bind(null,v,h,Ko,Yv,gx,c,gi,Yc,Id,$l,R,"Throttled",-0,0),E);break e}R5(v,h,Ko,Yv,gx,c,gi,Yc,Id,$l,R,null,-0,0);}}break}while(true);Vs(a);}function R5(a,c,h,v,E,R,F,Z,ue,$e,_e,We,Ae,Pe){if(a.timeoutHandle=-1,We=c.subtreeFlags,We&8192||(We&16785408)===16785408){We={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:true,waitingForViewTransition:false,unsuspend:va},C5(c,R,We);var gt=(R&62914560)===R?qv-Se():(R&4194048)===R?E5-Se():0;if(gt=QX(We,gt),gt!==null){Ia=R,a.cancelPendingCommit=gt(_5.bind(null,a,c,R,h,v,E,F,Z,ue,_e,We,null,Ae,Pe)),Al(a,R,F,!$e);return}}_5(a,c,R,h,v,E,F,Z,ue);}function mX(a){for(var c=a;;){var h=c.tag;if((h===0||h===11||h===15)&&c.flags&16384&&(h=c.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var v=0;v<h.length;v++){var E=h[v],R=E.getSnapshot;E=E.value;try{if(!di(R(),E))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 Al(a,c,h,v){c&=~px,c&=~Yc,a.suspendedLanes|=c,a.pingedLanes&=~c,v&&(a.warmLanes|=c),v=a.expirationTimes;for(var E=c;0<E;){var R=31-ct(E),F=1<<R;v[R]=-1,E&=~F;}h!==0&&Le(a,h,c);}function Xv(){return (wn&6)===0?(ah(0),false):true}function Sx(){if(on!==null){if(Dn===0)var a=on.return;else a=on,Ca=Fc=null,kC(a),$d=null,jm=0,a=on;for(;a!==null;)s5(a.alternate,a),a=a.return;on=null;}}function Dd(a,c){var h=a.timeoutHandle;h!==-1&&(a.timeoutHandle=-1,OX(h)),h=a.cancelPendingCommit,h!==null&&(a.cancelPendingCommit=null,h()),Ia=0,Sx(),jn=a,on=h=ya(a.current,null),an=c,Dn=0,pi=null,$l=false,Pd=He(a,c),hx=false,Id=gi=px=Yc=El=sr=0,Ko=ih=null,gx=false,(c&8)!==0&&(c|=c&32);var v=a.entangledLanes;if(v!==0)for(a=a.entanglements,v&=c;0<v;){var E=31-ct(v),R=1<<E;c|=a[E],v&=~R;}return Pa=c,vv(),h}function N5(a,c){Kt=null,k.H=Qm,c===wd||c===Ev?(c=GN(),Dn=3):c===$C?(c=GN(),Dn=4):Dn=c===ZC?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,pi=c,on===null&&(sr=1,zv(a,ki(c,a.current)));}function P5(){var a=mi.current;return a===null?true:(an&4194048)===an?Fi===null:(an&62914560)===an||(an&536870912)!==0?a===Fi:false}function I5(){var a=k.H;return k.H=Qm,a===null?Qm:a}function O5(){var a=k.A;return k.A=dX,a}function Qv(){sr=4,$l||(an&4194048)!==an&&mi.current!==null||(Pd=true),(El&134217727)===0&&(Yc&134217727)===0||jn===null||Al(jn,an,gi,false);}function Cx(a,c,h){var v=wn;wn|=2;var E=I5(),R=O5();(jn!==a||an!==c)&&(Yv=null,Dd(a,c)),c=false;var F=sr;e:do try{if(Dn!==0&&on!==null){var Z=on,ue=pi;switch(Dn){case 8:Sx(),F=6;break e;case 3:case 2:case 9:case 6:mi.current===null&&(c=!0);var $e=Dn;if(Dn=0,pi=null,Ld(a,Z,ue,$e),h&&Pd){F=0;break e}break;default:$e=Dn,Dn=0,pi=null,Ld(a,Z,ue,$e);}}hX(),F=sr;break}catch(_e){N5(a,_e);}while(true);return c&&a.shellSuspendCounter++,Ca=Fc=null,wn=v,k.H=E,k.A=R,on===null&&(jn=null,an=0,vv()),F}function hX(){for(;on!==null;)D5(on);}function pX(a,c){var h=wn;wn|=2;var v=I5(),E=O5();jn!==a||an!==c?(Yv=null,Kv=Se()+500,Dd(a,c)):Pd=He(a,c);e:do try{if(Dn!==0&&on!==null){c=on;var R=pi;t:switch(Dn){case 1:Dn=0,pi=null,Ld(a,c,R,1);break;case 2:case 9:if(UN(R)){Dn=0,pi=null,L5(c);break}c=function(){Dn!==2&&Dn!==9||jn!==a||(Dn=7),Vs(a);},R.then(c,c);break e;case 3:Dn=7;break e;case 4:Dn=5;break e;case 7:UN(R)?(Dn=0,pi=null,L5(c)):(Dn=0,pi=null,Ld(a,c,R,7));break;case 5:var F=null;switch(on.tag){case 26:F=on.memoizedState;case 5:case 27:var Z=on;if(F?S4(F):Z.stateNode.complete){Dn=0,pi=null;var ue=Z.sibling;if(ue!==null)on=ue;else {var $e=Z.return;$e!==null?(on=$e,Zv($e)):on=null;}break t}}Dn=0,pi=null,Ld(a,c,R,5);break;case 6:Dn=0,pi=null,Ld(a,c,R,6);break;case 8:Sx(),sr=6;break e;default:throw Error(r(462))}}gX();break}catch(_e){N5(a,_e);}while(true);return Ca=Fc=null,k.H=v,k.A=E,wn=h,on!==null?0:(jn=null,an=0,vv(),sr)}function gX(){for(;on!==null&&!ve();)D5(on);}function D5(a){var c=o5(a.alternate,a,Pa);a.memoizedProps=a.pendingProps,c===null?Zv(a):on=c;}function L5(a){var c=a,h=c.alternate;switch(c.tag){case 15:case 0:c=ZP(h,c,c.pendingProps,c.type,void 0,an);break;case 11:c=ZP(h,c,c.pendingProps,c.type.render,c.ref,an);break;case 5:kC(c);default:s5(h,c),c=on=ON(c,Pa),c=o5(h,c,Pa);}a.memoizedProps=a.pendingProps,c===null?Zv(a):on=c;}function Ld(a,c,h,v){Ca=Fc=null,kC(c),$d=null,jm=0;var E=c.return;try{if(oX(a,E,c,h,an)){sr=1,zv(a,ki(h,a.current)),on=null;return}}catch(R){if(E!==null)throw on=E,R;sr=1,zv(a,ki(h,a.current)),on=null;return}c.flags&32768?(gn||v===1?a=true:Pd||(an&536870912)!==0?a=false:($l=a=true,(v===2||v===9||v===3||v===6)&&(v=mi.current,v!==null&&v.tag===13&&(v.flags|=16384))),k5(c,a)):Zv(c);}function Zv(a){var c=a;do{if((c.flags&32768)!==0){k5(c,$l);return}a=c.return;var h=aX(c.alternate,c,Pa);if(h!==null){on=h;return}if(c=c.sibling,c!==null){on=c;return}on=c=a;}while(c!==null);sr===0&&(sr=5);}function k5(a,c){do{var h=lX(a.alternate,a);if(h!==null){h.flags&=32767,on=h;return}if(h=a.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!c&&(a=a.sibling,a!==null)){on=a;return}on=a=h;}while(a!==null);sr=6,on=null;}function _5(a,c,h,v,E,R,F,Z,ue){a.cancelPendingCommit=null;do Jv();while(Ir!==0);if((wn&6)!==0)throw Error(r(327));if(c!==null){if(c===a.current)throw Error(r(177));if(R=c.lanes|c.childLanes,R|=cC,me(a,h,R,F,Z,ue),a===jn&&(on=jn=null,an=0),Od=c,Tl=a,Ia=h,vx=R,bx=E,M5=v,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,SX(qe,function(){return V5(),null})):(a.callbackNode=null,a.callbackPriority=0),v=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||v){v=k.T,k.T=null,E=G.p,G.p=2,F=wn,wn|=4;try{cX(a,c,h);}finally{wn=F,G.p=E,k.T=v;}}Ir=1,B5(),z5(),F5();}}function B5(){if(Ir===1){Ir=0;var a=Tl,c=Od,h=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||h){h=k.T,k.T=null;var v=G.p;G.p=2;var E=wn;wn|=4;try{b5(c,a);var R=Ox,F=$N(a.containerInfo),Z=R.focusedElem,ue=R.selectionRange;if(F!==Z&&Z&&Z.ownerDocument&&wN(Z.ownerDocument.documentElement,Z)){if(ue!==null&&oC(Z)){var $e=ue.start,_e=ue.end;if(_e===void 0&&(_e=$e),"selectionStart"in Z)Z.selectionStart=$e,Z.selectionEnd=Math.min(_e,Z.value.length);else {var We=Z.ownerDocument||document,Ae=We&&We.defaultView||window;if(Ae.getSelection){var Pe=Ae.getSelection(),gt=Z.textContent.length,Pt=Math.min(ue.start,gt),Fn=ue.end===void 0?Pt:Math.min(ue.end,gt);!Pe.extend&&Pt>Fn&&(F=Fn,Fn=Pt,Pt=F);var pe=xN(Z,Pt),fe=xN(Z,Fn);if(pe&&fe&&(Pe.rangeCount!==1||Pe.anchorNode!==pe.node||Pe.anchorOffset!==pe.offset||Pe.focusNode!==fe.node||Pe.focusOffset!==fe.offset)){var we=We.createRange();we.setStart(pe.node,pe.offset),Pe.removeAllRanges(),Pt>Fn?(Pe.addRange(we),Pe.extend(fe.node,fe.offset)):(we.setEnd(fe.node,fe.offset),Pe.addRange(we));}}}}for(We=[],Pe=Z;Pe=Pe.parentNode;)Pe.nodeType===1&&We.push({element:Pe,left:Pe.scrollLeft,top:Pe.scrollTop});for(typeof Z.focus=="function"&&Z.focus(),Z=0;Z<We.length;Z++){var Fe=We[Z];Fe.element.scrollLeft=Fe.left,Fe.element.scrollTop=Fe.top;}}db=!!Ix,Ox=Ix=null;}finally{wn=E,G.p=v,k.T=h;}}a.current=c,Ir=2;}}function z5(){if(Ir===2){Ir=0;var a=Tl,c=Od,h=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||h){h=k.T,k.T=null;var v=G.p;G.p=2;var E=wn;wn|=4;try{m5(a,c.alternate,c);}finally{wn=E,G.p=v,k.T=h;}}Ir=3;}}function F5(){if(Ir===4||Ir===3){Ir=0,Te();var a=Tl,c=Od,h=Ia,v=M5;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?Ir=5:(Ir=0,Od=Tl=null,H5(a,a.pendingLanes));var E=a.pendingLanes;if(E===0&&(Ml=null),it(h),c=c.stateNode,ke&&typeof ke.onCommitFiberRoot=="function")try{ke.onCommitFiberRoot(Qe,c,void 0,(c.current.flags&128)===128);}catch{}if(v!==null){c=k.T,E=G.p,G.p=2,k.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{k.T=c,G.p=E;}}(Ia&3)!==0&&Jv(),Vs(a),E=a.pendingLanes,(h&261930)!==0&&(E&42)!==0?a===yx?sh++:(sh=0,yx=a):sh=0,ah(0);}}function H5(a,c){(a.pooledCacheLanes&=c)===0&&(c=a.pooledCache,c!=null&&(a.pooledCache=null,Hm(c)));}function Jv(){return B5(),z5(),F5(),V5()}function V5(){if(Ir!==5)return  false;var a=Tl,c=vx;vx=0;var h=it(Ia),v=k.T,E=G.p;try{G.p=32>h?32:h,k.T=null,h=bx,bx=null;var R=Tl,F=Ia;if(Ir=0,Od=Tl=null,Ia=0,(wn&6)!==0)throw Error(r(331));var Z=wn;if(wn|=4,w5(R.current),S5(R,R.current,F,h),wn=Z,ah(0,!1),ke&&typeof ke.onPostCommitFiberRoot=="function")try{ke.onPostCommitFiberRoot(Qe,R);}catch{}return !0}finally{G.p=E,k.T=v,H5(a,c);}}function j5(a,c,h){c=ki(h,c),c=QC(a.stateNode,c,2),a=Sl(a,c,2),a!==null&&(ye(a,2),Vs(a));}function Ln(a,c,h){if(a.tag===3)j5(a,a,h);else for(;c!==null;){if(c.tag===3){j5(c,a,h);break}else if(c.tag===1){var v=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(Ml===null||!Ml.has(v))){a=ki(h,a),h=UP(2),v=Sl(c,h,2),v!==null&&(WP(h,v,c,a),ye(v,2),Vs(v));break}}c=c.return;}}function xx(a,c,h){var v=a.pingCache;if(v===null){v=a.pingCache=new fX;var E=new Set;v.set(c,E);}else E=v.get(c),E===void 0&&(E=new Set,v.set(c,E));E.has(h)||(hx=true,E.add(h),a=vX.bind(null,a,c,h),c.then(a,a));}function vX(a,c,h){var v=a.pingCache;v!==null&&v.delete(c),a.pingedLanes|=a.suspendedLanes&h,a.warmLanes&=~h,jn===a&&(an&h)===h&&(sr===4||sr===3&&(an&62914560)===an&&300>Se()-qv?(wn&2)===0&&Dd(a,0):px|=h,Id===an&&(Id=0)),Vs(a);}function U5(a,c){c===0&&(c=be()),a=_c(a,c),a!==null&&(ye(a,c),Vs(a));}function bX(a){var c=a.memoizedState,h=0;c!==null&&(h=c.retryLane),U5(a,h);}function yX(a,c){var h=0;switch(a.tag){case 31:case 13:var v=a.stateNode,E=a.memoizedState;E!==null&&(h=E.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),U5(a,h);}function SX(a,c){return et(a,c)}var eb=null,kd=null,wx=false,tb=false,$x=false,Rl=0;function Vs(a){a!==kd&&a.next===null&&(kd===null?eb=kd=a:kd=kd.next=a),tb=true,wx||(wx=true,xX());}function ah(a,c){if(!$x&&tb){$x=true;do for(var h=false,v=eb;v!==null;){if(a!==0){var E=v.pendingLanes;if(E===0)var R=0;else {var F=v.suspendedLanes,Z=v.pingedLanes;R=(1<<31-ct(42|a)+1)-1,R&=E&~(F&~Z),R=R&201326741?R&201326741|1:R?R|2:0;}R!==0&&(h=true,K5(v,R));}else R=an,R=vt(v,v===jn?R:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(R&3)===0||He(v,R)||(h=true,K5(v,R));v=v.next;}while(h);$x=false;}}function CX(){W5();}function W5(){tb=wx=false;var a=0;Rl!==0&&IX()&&(a=Rl);for(var c=Se(),h=null,v=eb;v!==null;){var E=v.next,R=G5(v,c);R===0?(v.next=null,h===null?eb=E:h.next=E,E===null&&(kd=h)):(h=v,(a!==0||(R&3)!==0)&&(tb=true)),v=E;}Ir!==0&&Ir!==5||ah(a),Rl!==0&&(Rl=0);}function G5(a,c){for(var h=a.suspendedLanes,v=a.pingedLanes,E=a.expirationTimes,R=a.pendingLanes&-62914561;0<R;){var F=31-ct(R),Z=1<<F,ue=E[F];ue===-1?((Z&h)===0||(Z&v)!==0)&&(E[F]=Ge(Z,c)):ue<=c&&(a.expiredLanes|=Z),R&=~Z;}if(c=jn,h=an,h=vt(a,a===c?h:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),v=a.callbackNode,h===0||a===c&&(Dn===2||Dn===9)||a.cancelPendingCommit!==null)return v!==null&&v!==null&&Ne(v),a.callbackNode=null,a.callbackPriority=0;if((h&3)===0||He(a,h)){if(c=h&-h,c===a.callbackPriority)return c;switch(v!==null&&Ne(v),it(h)){case 2:case 8:h=je;break;case 32:h=qe;break;case 268435456:h=Ye;break;default:h=qe;}return v=q5.bind(null,a),h=et(h,v),a.callbackPriority=c,a.callbackNode=h,c}return v!==null&&v!==null&&Ne(v),a.callbackPriority=2,a.callbackNode=null,2}function q5(a,c){if(Ir!==0&&Ir!==5)return a.callbackNode=null,a.callbackPriority=0,null;var h=a.callbackNode;if(Jv()&&a.callbackNode!==h)return null;var v=an;return v=vt(a,a===jn?v:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),v===0?null:(A5(a,v,c),G5(a,Se()),a.callbackNode!=null&&a.callbackNode===h?q5.bind(null,a):null)}function K5(a,c){if(Jv())return null;A5(a,c,true);}function xX(){DX(function(){(wn&6)!==0?et(Ue,CX):W5();});}function Ex(){if(Rl===0){var a=Cd;a===0&&(a=yt,yt<<=1,(yt&261888)===0&&(yt=256)),Rl=a;}return Rl}function Y5(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:cv(""+a)}function X5(a,c){var h=c.ownerDocument.createElement("input");return h.name=c.name,h.value=c.value,a.id&&h.setAttribute("form",a.id),c.parentNode.insertBefore(h,c),a=new FormData(a),h.parentNode.removeChild(h),a}function wX(a,c,h,v,E){if(c==="submit"&&h&&h.stateNode===E){var R=Y5((E[pn]||null).action),F=v.submitter;F&&(c=(c=F[pn]||null)?Y5(c.formAction):F.getAttribute("formAction"),c!==null&&(R=c,F=null));var Z=new mv("action","action",null,v,E);a.push({event:Z,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(Rl!==0){var ue=F?X5(E,F):new FormData(E);WC(h,{pending:true,data:ue,method:E.method,action:R},null,ue);}}else typeof R=="function"&&(Z.preventDefault(),ue=F?X5(E,F):new FormData(E),WC(h,{pending:true,data:ue,method:E.method,action:R},R,ue));},currentTarget:E}]});}}for(var Mx=0;Mx<lC.length;Mx++){var Tx=lC[Mx],$X=Tx.toLowerCase(),EX=Tx[0].toUpperCase()+Tx.slice(1);ds($X,"on"+EX);}ds(TN,"onAnimationEnd"),ds(AN,"onAnimationIteration"),ds(RN,"onAnimationStart"),ds("dblclick","onDoubleClick"),ds("focusin","onFocus"),ds("focusout","onBlur"),ds(HY,"onTransitionRun"),ds(VY,"onTransitionStart"),ds(jY,"onTransitionCancel"),ds(NN,"onTransitionEnd"),Jn("onMouseEnter",["mouseout","mouseover"]),Jn("onMouseLeave",["mouseout","mouseover"]),Jn("onPointerEnter",["pointerout","pointerover"]),Jn("onPointerLeave",["pointerout","pointerover"]),eo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),eo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),eo("onBeforeInput",["compositionend","keypress","textInput","paste"]),eo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),eo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),eo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),MX=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lh));function Q5(a,c){c=(c&4)!==0;for(var h=0;h<a.length;h++){var v=a[h],E=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],ue=Z.instance,$e=Z.currentTarget;if(Z=Z.listener,ue!==R&&E.isPropagationStopped())break e;R=Z,E.currentTarget=$e;try{R(E);}catch(_e){gv(_e);}E.currentTarget=null,R=ue;}else for(F=0;F<v.length;F++){if(Z=v[F],ue=Z.instance,$e=Z.currentTarget,Z=Z.listener,ue!==R&&E.isPropagationStopped())break e;R=Z,E.currentTarget=$e;try{R(E);}catch(_e){gv(_e);}E.currentTarget=null,R=ue;}}}}function sn(a,c){var h=c[at];h===void 0&&(h=c[at]=new Set);var v=a+"__bubble";h.has(v)||(Z5(c,a,2,false),h.add(v));}function Ax(a,c,h){var v=0;c&&(v|=4),Z5(h,a,v,c);}var nb="_reactListening"+Math.random().toString(36).slice(2);function Rx(a){if(!a[nb]){a[nb]=true,Jr.forEach(function(h){h!=="selectionchange"&&(MX.has(h)||Ax(h,false,a),Ax(h,true,a));});var c=a.nodeType===9?a:a.ownerDocument;c===null||c[nb]||(c[nb]=true,Ax("selectionchange",false,c));}}function Z5(a,c,h,v){switch(T4(c)){case 2:var E=eQ;break;case 8:E=tQ;break;default:E=Ux;}h=E.bind(null,c,h,a),E=void 0,!YS||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(E=true),v?E!==void 0?a.addEventListener(c,h,{capture:true,passive:E}):a.addEventListener(c,h,true):E!==void 0?a.addEventListener(c,h,{passive:E}):a.addEventListener(c,h,false);}function Nx(a,c,h,v,E){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===E)break;if(F===4)for(F=v.return;F!==null;){var ue=F.tag;if((ue===3||ue===4)&&F.stateNode.containerInfo===E)return;F=F.return;}for(;Z!==null;){if(F=tn(Z),F===null)return;if(ue=F.tag,ue===5||ue===6||ue===26||ue===27){v=R=F;continue e}Z=Z.parentNode;}}v=v.return;}rN(function(){var $e=R,_e=qS(h),We=[];e:{var Ae=PN.get(a);if(Ae!==void 0){var Pe=mv,gt=a;switch(a){case "keypress":if(dv(h)===0)break e;case "keydown":case "keyup":Pe=yY;break;case "focusin":gt="focus",Pe=JS;break;case "focusout":gt="blur",Pe=JS;break;case "beforeblur":case "afterblur":Pe=JS;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=sN;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":Pe=aY;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":Pe=xY;break;case TN:case AN:case RN:Pe=uY;break;case NN:Pe=$Y;break;case "scroll":case "scrollend":Pe=iY;break;case "wheel":Pe=MY;break;case "copy":case "cut":case "paste":Pe=fY;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":Pe=lN;break;case "toggle":case "beforetoggle":Pe=AY;}var Pt=(c&4)!==0,Fn=!Pt&&(a==="scroll"||a==="scrollend"),pe=Pt?Ae!==null?Ae+"Capture":null:Ae;Pt=[];for(var fe=$e,we;fe!==null;){var Fe=fe;if(we=Fe.stateNode,Fe=Fe.tag,Fe!==5&&Fe!==26&&Fe!==27||we===null||pe===null||(Fe=Nm(fe,pe),Fe!=null&&Pt.push(ch(fe,Fe,we))),Fn)break;fe=fe.return;}0<Pt.length&&(Ae=new Pe(Ae,gt,null,h,_e),We.push({event:Ae,listeners:Pt}));}}if((c&7)===0){e:{if(Ae=a==="mouseover"||a==="pointerover",Pe=a==="mouseout"||a==="pointerout",Ae&&h!==GS&&(gt=h.relatedTarget||h.fromElement)&&(tn(gt)||gt[Wn]))break e;if((Pe||Ae)&&(Ae=_e.window===_e?_e:(Ae=_e.ownerDocument)?Ae.defaultView||Ae.parentWindow:window,Pe?(gt=h.relatedTarget||h.toElement,Pe=$e,gt=gt?tn(gt):null,gt!==null&&(Fn=i(gt),Pt=gt.tag,gt!==Fn||Pt!==5&&Pt!==27&&Pt!==6)&&(gt=null)):(Pe=null,gt=$e),Pe!==gt)){if(Pt=sN,Fe="onMouseLeave",pe="onMouseEnter",fe="mouse",(a==="pointerout"||a==="pointerover")&&(Pt=lN,Fe="onPointerLeave",pe="onPointerEnter",fe="pointer"),Fn=Pe==null?Ae:xn(Pe),we=gt==null?Ae:xn(gt),Ae=new Pt(Fe,fe+"leave",Pe,h,_e),Ae.target=Fn,Ae.relatedTarget=we,Fe=null,tn(_e)===$e&&(Pt=new Pt(pe,fe+"enter",gt,h,_e),Pt.target=we,Pt.relatedTarget=Fn,Fe=Pt),Fn=Fe,Pe&&gt)t:{for(Pt=TX,pe=Pe,fe=gt,we=0,Fe=pe;Fe;Fe=Pt(Fe))we++;Fe=0;for(var Tt=fe;Tt;Tt=Pt(Tt))Fe++;for(;0<we-Fe;)pe=Pt(pe),we--;for(;0<Fe-we;)fe=Pt(fe),Fe--;for(;we--;){if(pe===fe||fe!==null&&pe===fe.alternate){Pt=pe;break t}pe=Pt(pe),fe=Pt(fe);}Pt=null;}else Pt=null;Pe!==null&&J5(We,Ae,Pe,Pt,!1),gt!==null&&Fn!==null&&J5(We,Fn,gt,Pt,!0);}}e:{if(Ae=$e?xn($e):window,Pe=Ae.nodeName&&Ae.nodeName.toLowerCase(),Pe==="select"||Pe==="input"&&Ae.type==="file")var yn=gN;else if(hN(Ae))if(vN)yn=BY;else {yn=kY;var St=LY;}else Pe=Ae.nodeName,!Pe||Pe.toLowerCase()!=="input"||Ae.type!=="checkbox"&&Ae.type!=="radio"?$e&&WS($e.elementType)&&(yn=gN):yn=_Y;if(yn&&(yn=yn(a,$e))){pN(We,yn,h,_e);break e}St&&St(a,Ae,$e),a==="focusout"&&$e&&Ae.type==="number"&&$e.memoizedProps.value!=null&&ld(Ae,"number",Ae.value);}switch(St=$e?xn($e):window,a){case "focusin":(hN(St)||St.contentEditable==="true")&&(md=St,iC=$e,Bm=null);break;case "focusout":Bm=iC=md=null;break;case "mousedown":sC=!0;break;case "contextmenu":case "mouseup":case "dragend":sC=!1,EN(We,h,_e);break;case "selectionchange":if(FY)break;case "keydown":case "keyup":EN(We,h,_e);}var Xt;if(tC)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?fN(a,h)&&(ln="onCompositionEnd"):a==="keydown"&&h.keyCode===229&&(ln="onCompositionStart");ln&&(cN&&h.locale!=="ko"&&(fd||ln!=="onCompositionStart"?ln==="onCompositionEnd"&&fd&&(Xt=oN()):(ml=_e,XS="value"in ml?ml.value:ml.textContent,fd=!0)),St=rb($e,ln),0<St.length&&(ln=new aN(ln,a,null,h,_e),We.push({event:ln,listeners:St}),Xt?ln.data=Xt:(Xt=mN(h),Xt!==null&&(ln.data=Xt)))),(Xt=NY?PY(a,h):IY(a,h))&&(ln=rb($e,"onBeforeInput"),0<ln.length&&(St=new aN("onBeforeInput","beforeinput",null,h,_e),We.push({event:St,listeners:ln}),St.data=Xt)),wX(We,a,$e,h,_e);}Q5(We,c);});}function ch(a,c,h){return {instance:a,listener:c,currentTarget:h}}function rb(a,c){for(var h=c+"Capture",v=[];a!==null;){var E=a,R=E.stateNode;if(E=E.tag,E!==5&&E!==26&&E!==27||R===null||(E=Nm(a,h),E!=null&&v.unshift(ch(a,E,R)),E=Nm(a,c),E!=null&&v.push(ch(a,E,R))),a.tag===3)return v;a=a.return;}return []}function TX(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function J5(a,c,h,v,E){for(var R=c._reactName,F=[];h!==null&&h!==v;){var Z=h,ue=Z.alternate,$e=Z.stateNode;if(Z=Z.tag,ue!==null&&ue===v)break;Z!==5&&Z!==26&&Z!==27||$e===null||(ue=$e,E?($e=Nm(h,R),$e!=null&&F.unshift(ch(h,$e,ue))):E||($e=Nm(h,R),$e!=null&&F.push(ch(h,$e,ue)))),h=h.return;}F.length!==0&&a.push({event:c,listeners:F});}var AX=/\r\n?/g,RX=/\u0000|\uFFFD/g;function e4(a){return (typeof a=="string"?a:""+a).replace(AX,`
`).replace(RX,"")}function t4(a,c){return c=e4(c),e4(a)===c}function zn(a,c,h,v,E,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":Di(a,"class",v);break;case "tabIndex":Di(a,"tabindex",v);break;case "dir":case "role":case "viewBox":case "width":case "height":Di(a,h,v);break;case "style":tN(a,v,R);break;case "data":if(c!=="object"){Di(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=cv(""+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"&&zn(a,c,"name",E.name,E,null),zn(a,c,"formEncType",E.formEncType,E,null),zn(a,c,"formMethod",E.formMethod,E,null),zn(a,c,"formTarget",E.formTarget,E,null)):(zn(a,c,"encType",E.encType,E,null),zn(a,c,"method",E.method,E,null),zn(a,c,"target",E.target,E,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){a.removeAttribute(h);break}v=cv(""+v),a.setAttribute(h,v);break;case "onClick":v!=null&&(a.onclick=va);break;case "onScroll":v!=null&&sn("scroll",a);break;case "onScrollEnd":v!=null&&sn("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(E.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=cv(""+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":sn("beforetoggle",a),sn("toggle",a),Bs(a,"popover",v);break;case "xlinkActuate":jo(a,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case "xlinkArcrole":jo(a,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case "xlinkRole":jo(a,"http://www.w3.org/1999/xlink","xlink:role",v);break;case "xlinkShow":jo(a,"http://www.w3.org/1999/xlink","xlink:show",v);break;case "xlinkTitle":jo(a,"http://www.w3.org/1999/xlink","xlink:title",v);break;case "xlinkType":jo(a,"http://www.w3.org/1999/xlink","xlink:type",v);break;case "xmlBase":jo(a,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case "xmlLang":jo(a,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case "xmlSpace":jo(a,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case "is":Bs(a,"is",v);break;case "innerText":case "textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=rY.get(h)||h,Bs(a,h,v));}}function Px(a,c,h,v,E,R){switch(h){case "style":tN(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(E.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&&sn("scroll",a);break;case "onScrollEnd":v!=null&&sn("scrollend",a);break;case "onClick":v!=null&&(a.onclick=va);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "innerHTML":case "ref":break;case "innerText":case "textContent":break;default:if(!pa.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&(E=h.endsWith("Capture"),c=h.slice(2,E?h.length-7:void 0),R=a[pn]||null,R=R!=null?R[h]:null,typeof R=="function"&&a.removeEventListener(c,R,E),typeof v=="function")){typeof R!="function"&&R!==null&&(h in a?a[h]=null:a.hasAttribute(h)&&a.removeAttribute(h)),a.addEventListener(c,v,E);break e}h in a?a[h]=v:v===true?a.setAttribute(h,""):Bs(a,h,v);}}}function io(a,c,h){switch(c){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "img":sn("error",a),sn("load",a);var v=false,E=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":E=true;break;case "children":case "dangerouslySetInnerHTML":throw Error(r(137,c));default:zn(a,c,R,F,h,null);}}E&&zn(a,c,"srcSet",h.srcSet,h,null),v&&zn(a,c,"src",h.src,h,null);return;case "input":sn("invalid",a);var Z=R=F=E=null,ue=null,$e=null;for(v in h)if(h.hasOwnProperty(v)){var _e=h[v];if(_e!=null)switch(v){case "name":E=_e;break;case "type":F=_e;break;case "checked":ue=_e;break;case "defaultChecked":$e=_e;break;case "value":R=_e;break;case "defaultValue":Z=_e;break;case "children":case "dangerouslySetInnerHTML":if(_e!=null)throw Error(r(137,c));break;default:zn(a,c,v,_e,h,null);}}av(a,R,Z,ue,$e,F,E,false);return;case "select":sn("invalid",a),v=F=R=null;for(E in h)if(h.hasOwnProperty(E)&&(Z=h[E],Z!=null))switch(E){case "value":R=Z;break;case "defaultValue":F=Z;break;case "multiple":v=Z;default:zn(a,c,E,Z,h,null);}c=R,h=F,a.multiple=!!v,c!=null?ga(a,!!v,c,false):h!=null&&ga(a,!!v,h,true);return;case "textarea":sn("invalid",a),R=E=v=null;for(F in h)if(h.hasOwnProperty(F)&&(Z=h[F],Z!=null))switch(F){case "value":v=Z;break;case "defaultValue":E=Z;break;case "children":R=Z;break;case "dangerouslySetInnerHTML":if(Z!=null)throw Error(r(91));break;default:zn(a,c,F,Z,h,null);}J6(a,v,E,R);return;case "option":for(ue in h)h.hasOwnProperty(ue)&&(v=h[ue],v!=null)&&(ue==="selected"?a.selected=v&&typeof v!="function"&&typeof v!="symbol":zn(a,c,ue,v,h,null));return;case "dialog":sn("beforetoggle",a),sn("toggle",a),sn("cancel",a),sn("close",a);break;case "iframe":case "object":sn("load",a);break;case "video":case "audio":for(v=0;v<lh.length;v++)sn(lh[v],a);break;case "image":sn("error",a),sn("load",a);break;case "details":sn("toggle",a);break;case "embed":case "source":case "link":sn("error",a),sn("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($e in h)if(h.hasOwnProperty($e)&&(v=h[$e],v!=null))switch($e){case "children":case "dangerouslySetInnerHTML":throw Error(r(137,c));default:zn(a,c,$e,v,h,null);}return;default:if(WS(c)){for(_e in h)h.hasOwnProperty(_e)&&(v=h[_e],v!==void 0&&Px(a,c,_e,v,h,void 0));return}}for(Z in h)h.hasOwnProperty(Z)&&(v=h[Z],v!=null&&zn(a,c,Z,v,h,null));}function NX(a,c,h,v){switch(c){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "input":var E=null,R=null,F=null,Z=null,ue=null,$e=null,_e=null;for(Pe in h){var We=h[Pe];if(h.hasOwnProperty(Pe)&&We!=null)switch(Pe){case "checked":break;case "value":break;case "defaultValue":ue=We;default:v.hasOwnProperty(Pe)||zn(a,c,Pe,null,v,We);}}for(var Ae in v){var Pe=v[Ae];if(We=h[Ae],v.hasOwnProperty(Ae)&&(Pe!=null||We!=null))switch(Ae){case "type":R=Pe;break;case "name":E=Pe;break;case "checked":$e=Pe;break;case "defaultChecked":_e=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!==We&&zn(a,c,Ae,Pe,v,We);}}fl(a,F,Z,ue,$e,_e,R,E);return;case "select":Pe=F=Z=Ae=null;for(R in h)if(ue=h[R],h.hasOwnProperty(R)&&ue!=null)switch(R){case "value":break;case "multiple":Pe=ue;default:v.hasOwnProperty(R)||zn(a,c,R,null,v,ue);}for(E in v)if(R=v[E],ue=h[E],v.hasOwnProperty(E)&&(R!=null||ue!=null))switch(E){case "value":Ae=R;break;case "defaultValue":Z=R;break;case "multiple":F=R;default:R!==ue&&zn(a,c,E,R,v,ue);}c=Z,h=F,v=Pe,Ae!=null?ga(a,!!h,Ae,false):!!v!=!!h&&(c!=null?ga(a,!!h,c,true):ga(a,!!h,h?[]:"",false));return;case "textarea":Pe=Ae=null;for(Z in h)if(E=h[Z],h.hasOwnProperty(Z)&&E!=null&&!v.hasOwnProperty(Z))switch(Z){case "value":break;case "children":break;default:zn(a,c,Z,null,v,E);}for(F in v)if(E=v[F],R=h[F],v.hasOwnProperty(F)&&(E!=null||R!=null))switch(F){case "value":Ae=E;break;case "defaultValue":Pe=E;break;case "children":break;case "dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:E!==R&&zn(a,c,F,E,v,R);}lv(a,Ae,Pe);return;case "option":for(var gt in h)Ae=h[gt],h.hasOwnProperty(gt)&&Ae!=null&&!v.hasOwnProperty(gt)&&(gt==="selected"?a.selected=false:zn(a,c,gt,null,v,Ae));for(ue in v)Ae=v[ue],Pe=h[ue],v.hasOwnProperty(ue)&&Ae!==Pe&&(Ae!=null||Pe!=null)&&(ue==="selected"?a.selected=Ae&&typeof Ae!="function"&&typeof Ae!="symbol":zn(a,c,ue,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)&&zn(a,c,Pt,null,v,Ae);for($e in v)if(Ae=v[$e],Pe=h[$e],v.hasOwnProperty($e)&&Ae!==Pe&&(Ae!=null||Pe!=null))switch($e){case "children":case "dangerouslySetInnerHTML":if(Ae!=null)throw Error(r(137,c));break;default:zn(a,c,$e,Ae,v,Pe);}return;default:if(WS(c)){for(var Fn in h)Ae=h[Fn],h.hasOwnProperty(Fn)&&Ae!==void 0&&!v.hasOwnProperty(Fn)&&Px(a,c,Fn,void 0,v,Ae);for(_e in v)Ae=v[_e],Pe=h[_e],!v.hasOwnProperty(_e)||Ae===Pe||Ae===void 0&&Pe===void 0||Px(a,c,_e,Ae,v,Pe);return}}for(var pe in h)Ae=h[pe],h.hasOwnProperty(pe)&&Ae!=null&&!v.hasOwnProperty(pe)&&zn(a,c,pe,null,v,Ae);for(We in v)Ae=v[We],Pe=h[We],!v.hasOwnProperty(We)||Ae===Pe||Ae==null&&Pe==null||zn(a,c,We,Ae,v,Pe);}function n4(a){switch(a){case "css":case "script":case "font":case "img":case "image":case "input":case "link":return  true;default:return  false}}function PX(){if(typeof performance.getEntriesByType=="function"){for(var a=0,c=0,h=performance.getEntriesByType("resource"),v=0;v<h.length;v++){var E=h[v],R=E.transferSize,F=E.initiatorType,Z=E.duration;if(R&&Z&&n4(F)){for(F=0,Z=E.responseEnd,v+=1;v<h.length;v++){var ue=h[v],$e=ue.startTime;if($e>Z)break;var _e=ue.transferSize,We=ue.initiatorType;_e&&n4(We)&&(ue=ue.responseEnd,F+=_e*(ue<Z?1:(Z-$e)/(ue-$e)));}if(--v,c+=8*(R+F)/(E.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 Ix=null,Ox=null;function ob(a){return a.nodeType===9?a:a.ownerDocument}function r4(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 o4(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 Dx(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 Lx=null;function IX(){var a=window.event;return a&&a.type==="popstate"?a===Lx?false:(Lx=a,true):(Lx=null,false)}var i4=typeof setTimeout=="function"?setTimeout:void 0,OX=typeof clearTimeout=="function"?clearTimeout:void 0,s4=typeof Promise=="function"?Promise:void 0,DX=typeof queueMicrotask=="function"?queueMicrotask:typeof s4<"u"?function(a){return s4.resolve(null).then(a).catch(LX)}:i4;function LX(a){setTimeout(function(){throw a});}function Nl(a){return a==="head"}function a4(a,c){var h=c,v=0;do{var E=h.nextSibling;if(a.removeChild(h),E&&E.nodeType===8)if(h=E.data,h==="/$"||h==="/&"){if(v===0){a.removeChild(E),Fd(c);return}v--;}else if(h==="$"||h==="$?"||h==="$~"||h==="$!"||h==="&")v++;else if(h==="html")uh(a.ownerDocument.documentElement);else if(h==="head"){h=a.ownerDocument.head,uh(h);for(var R=h.firstChild;R;){var F=R.nextSibling,Z=R.nodeName;R[wt]||Z==="SCRIPT"||Z==="STYLE"||Z==="LINK"&&R.rel.toLowerCase()==="stylesheet"||h.removeChild(R),R=F;}}else h==="body"&&uh(a.ownerDocument.body);h=E;}while(h);Fd(c);}function l4(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 kx(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":kx(h),Bt(h);continue;case "SCRIPT":case "STYLE":continue;case "LINK":if(h.rel.toLowerCase()==="stylesheet")continue}a.removeChild(h);}}function kX(a,c,h,v){for(;a.nodeType===1;){var E=h;if(a.nodeName.toLowerCase()!==c.toLowerCase()){if(!v&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(v){if(!a[wt])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!==E.rel||a.getAttribute("href")!==(E.href==null||E.href===""?null:E.href)||a.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin)||a.getAttribute("title")!==(E.title==null?null:E.title))break;return a;case "style":if(a.hasAttribute("data-precedence"))break;return a;case "script":if(R=a.getAttribute("src"),(R!==(E.src==null?null:E.src)||a.getAttribute("type")!==(E.type==null?null:E.type)||a.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin))&&R&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(c==="input"&&a.type==="hidden"){var R=E.name==null?null:""+E.name;if(E.type==="hidden"&&a.getAttribute("name")===R)return a}else return a;if(a=Hi(a.nextSibling),a===null)break}return null}function _X(a,c,h){if(c==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!h||(a=Hi(a.nextSibling),a===null))return null;return a}function c4(a,c){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!c||(a=Hi(a.nextSibling),a===null))return null;return a}function _x(a){return a.data==="$?"||a.data==="$~"}function Bx(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 Hi(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 zx=null;function u4(a){a=a.nextSibling;for(var c=0;a;){if(a.nodeType===8){var h=a.data;if(h==="/$"||h==="/&"){if(c===0)return Hi(a.nextSibling);c--;}else h!=="$"&&h!=="$!"&&h!=="$?"&&h!=="$~"&&h!=="&"||c++;}a=a.nextSibling;}return null}function d4(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 f4(a,c,h){switch(c=ob(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 uh(a){for(var c=a.attributes;c.length;)a.removeAttributeNode(c[0]);Bt(a);}var Vi=new Map,m4=new Set;function ib(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Oa=G.d;G.d={f:zX,r:FX,D:HX,C:VX,L:jX,m:UX,X:GX,S:WX,M:qX};function zX(){var a=Oa.f(),c=Xv();return a||c}function FX(a){var c=nn(a);c!==null&&c.tag===5&&c.type==="form"?NP(c):Oa.r(a);}var _d=typeof document>"u"?null:document;function h4(a,c,h){var v=_d;if(v&&typeof c=="string"&&c){var E=Ut(c);E='link[rel="'+a+'"][href="'+E+'"]',typeof h=="string"&&(E+='[crossorigin="'+h+'"]'),m4.has(E)||(m4.add(E),a={rel:a,crossOrigin:h,href:c},v.querySelector(E)===null&&(c=v.createElement("link"),io(c,"link",a),bn(c),v.head.appendChild(c)));}}function HX(a){Oa.D(a),h4("dns-prefetch",a,null);}function VX(a,c){Oa.C(a,c),h4("preconnect",a,c);}function jX(a,c,h){Oa.L(a,c,h);var v=_d;if(v&&a&&c){var E='link[rel="preload"][as="'+Ut(c)+'"]';c==="image"&&h&&h.imageSrcSet?(E+='[imagesrcset="'+Ut(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(E+='[imagesizes="'+Ut(h.imageSizes)+'"]')):E+='[href="'+Ut(a)+'"]';var R=E;switch(c){case "style":R=Bd(a);break;case "script":R=zd(a);}Vi.has(R)||(a=p({rel:"preload",href:c==="image"&&h&&h.imageSrcSet?void 0:a,as:c},h),Vi.set(R,a),v.querySelector(E)!==null||c==="style"&&v.querySelector(dh(R))||c==="script"&&v.querySelector(fh(R))||(c=v.createElement("link"),io(c,"link",a),bn(c),v.head.appendChild(c)));}}function UX(a,c){Oa.m(a,c);var h=_d;if(h&&a){var v=c&&typeof c.as=="string"?c.as:"script",E='link[rel="modulepreload"][as="'+Ut(v)+'"][href="'+Ut(a)+'"]',R=E;switch(v){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":R=zd(a);}if(!Vi.has(R)&&(a=p({rel:"modulepreload",href:a},c),Vi.set(R,a),h.querySelector(E)===null)){switch(v){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":if(h.querySelector(fh(R)))return}v=h.createElement("link"),io(v,"link",a),bn(v),h.head.appendChild(v);}}}function WX(a,c,h){Oa.S(a,c,h);var v=_d;if(v&&a){var E=fr(v).hoistableStyles,R=Bd(a);c=c||"default";var F=E.get(R);if(!F){var Z={loading:0,preload:null};if(F=v.querySelector(dh(R)))Z.loading=5;else {a=p({rel:"stylesheet",href:a,"data-precedence":c},h),(h=Vi.get(R))&&Fx(a,h);var ue=F=v.createElement("link");bn(ue),io(ue,"link",a),ue._p=new Promise(function($e,_e){ue.onload=$e,ue.onerror=_e;}),ue.addEventListener("load",function(){Z.loading|=1;}),ue.addEventListener("error",function(){Z.loading|=2;}),Z.loading|=4,sb(F,c,v);}F={type:"stylesheet",instance:F,count:1,state:Z},E.set(R,F);}}}function GX(a,c){Oa.X(a,c);var h=_d;if(h&&a){var v=fr(h).hoistableScripts,E=zd(a),R=v.get(E);R||(R=h.querySelector(fh(E)),R||(a=p({src:a,async:true},c),(c=Vi.get(E))&&Hx(a,c),R=h.createElement("script"),bn(R),io(R,"link",a),h.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},v.set(E,R));}}function qX(a,c){Oa.M(a,c);var h=_d;if(h&&a){var v=fr(h).hoistableScripts,E=zd(a),R=v.get(E);R||(R=h.querySelector(fh(E)),R||(a=p({src:a,async:true,type:"module"},c),(c=Vi.get(E))&&Hx(a,c),R=h.createElement("script"),bn(R),io(R,"link",a),h.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},v.set(E,R));}}function p4(a,c,h,v){var E=(E=ne.current)?ib(E):null;if(!E)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=fr(E).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=fr(E).hoistableStyles,F=R.get(a);if(F||(E=E.ownerDocument||E,F={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},R.set(a,F),(R=E.querySelector(dh(a)))&&!R._p&&(F.instance=R,F.state.loading=5),Vi.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},Vi.set(a,h),R||KX(E,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=fr(E).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="'+Ut(a)+'"'}function dh(a){return 'link[rel="stylesheet"]['+a+"]"}function g4(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function KX(a,c,h,v){a.querySelector('link[rel="preload"][as="style"]['+c+"]")?v.loading=1:(c=a.createElement("link"),v.preload=c,c.addEventListener("load",function(){return v.loading|=1}),c.addEventListener("error",function(){return v.loading|=2}),io(c,"link",h),bn(c),a.head.appendChild(c));}function zd(a){return '[src="'+Ut(a)+'"]'}function fh(a){return "script[async]"+a}function v4(a,c,h){if(c.count++,c.instance===null)switch(c.type){case "style":var v=a.querySelector('style[data-href~="'+Ut(h.href)+'"]');if(v)return c.instance=v,bn(v),v;var E=p({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return v=(a.ownerDocument||a).createElement("style"),bn(v),io(v,"style",E),sb(v,h.precedence,a),c.instance=v;case "stylesheet":E=Bd(h.href);var R=a.querySelector(dh(E));if(R)return c.state.loading|=4,c.instance=R,bn(R),R;v=g4(h),(E=Vi.get(E))&&Fx(v,E),R=(a.ownerDocument||a).createElement("link"),bn(R);var F=R;return F._p=new Promise(function(Z,ue){F.onload=Z,F.onerror=ue;}),io(R,"link",v),c.state.loading|=4,sb(R,h.precedence,a),c.instance=R;case "script":return R=zd(h.src),(E=a.querySelector(fh(R)))?(c.instance=E,bn(E),E):(v=h,(E=Vi.get(R))&&(v=p({},h),Hx(v,E)),a=a.ownerDocument||a,E=a.createElement("script"),bn(E),io(E,"link",v),a.head.appendChild(E),c.instance=E);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,sb(v,h.precedence,a));return c.instance}function sb(a,c,h){for(var v=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=v.length?v[v.length-1]:null,R=E,F=0;F<v.length;F++){var Z=v[F];if(Z.dataset.precedence===c)R=Z;else if(R!==E)break}R?R.parentNode.insertBefore(a,R.nextSibling):(c=h.nodeType===9?h.head:h,c.insertBefore(a,c.firstChild));}function Fx(a,c){a.crossOrigin==null&&(a.crossOrigin=c.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=c.referrerPolicy),a.title==null&&(a.title=c.title);}function Hx(a,c){a.crossOrigin==null&&(a.crossOrigin=c.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=c.referrerPolicy),a.integrity==null&&(a.integrity=c.integrity);}var ab=null;function b4(a,c,h){if(ab===null){var v=new Map,E=ab=new Map;E.set(h,v);}else E=ab,v=E.get(h),v||(v=new Map,E.set(h,v));if(v.has(a))return v;for(v.set(a,null),h=h.getElementsByTagName(a),E=0;E<h.length;E++){var R=h[E];if(!(R[wt]||R[Nt]||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 y4(a,c,h){a=a.ownerDocument||a,a.head.insertBefore(h,c==="title"?a.querySelector("head > title"):null);}function YX(a,c,h){if(h===1||c.itemProp!=null)return  false;switch(a){case "meta":case "title":return  true;case "style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return  true;case "link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;return c.rel==="stylesheet"?(a=c.disabled,typeof c.precedence=="string"&&a==null):true;case "script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return  true}return  false}function S4(a){return !(a.type==="stylesheet"&&(a.state.loading&3)===0)}function XX(a,c,h,v){if(h.type==="stylesheet"&&(typeof v.media!="string"||matchMedia(v.media).matches!==false)&&(h.state.loading&4)===0){if(h.instance===null){var E=Bd(v.href),R=c.querySelector(dh(E));if(R){c=R._p,c!==null&&typeof c=="object"&&typeof c.then=="function"&&(a.count++,a=lb.bind(a),c.then(a,a)),h.state.loading|=4,h.instance=R,bn(R);return}R=c.ownerDocument||c,v=g4(v),(E=Vi.get(E))&&Fx(v,E),R=R.createElement("link"),bn(R);var F=R;F._p=new Promise(function(Z,ue){F.onload=Z,F.onerror=ue;}),io(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=lb.bind(a),c.addEventListener("load",h),c.addEventListener("error",h));}}var Vx=0;function QX(a,c){return a.stylesheets&&a.count===0&&ub(a,a.stylesheets),0<a.count||0<a.imgCount?function(h){var v=setTimeout(function(){if(a.stylesheets&&ub(a,a.stylesheets),a.unsuspend){var R=a.unsuspend;a.unsuspend=null,R();}},6e4+c);0<a.imgBytes&&Vx===0&&(Vx=62500*PX());var E=setTimeout(function(){if(a.waitingForImages=false,a.count===0&&(a.stylesheets&&ub(a,a.stylesheets),a.unsuspend)){var R=a.unsuspend;a.unsuspend=null,R();}},(a.imgBytes>Vx?50:800)+c);return a.unsuspend=h,function(){a.unsuspend=null,clearTimeout(v),clearTimeout(E);}}:null}function lb(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ub(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a();}}}var cb=null;function ub(a,c){a.stylesheets=null,a.unsuspend!==null&&(a.count++,cb=new Map,c.forEach(ZX,a),cb=null,lb.call(a));}function ZX(a,c){if(!(c.state.loading&4)){var h=cb.get(a);if(h)var v=h.get(null);else {h=new Map,cb.set(a,h);for(var E=a.querySelectorAll("link[data-precedence],style[data-precedence]"),R=0;R<E.length;R++){var F=E[R];(F.nodeName==="LINK"||F.getAttribute("media")!=="not all")&&(h.set(F.dataset.precedence,F),v=F);}v&&h.set(null,v);}E=c.instance,F=E.getAttribute("data-precedence"),R=h.get(F)||v,R===v&&h.set(null,E),h.set(F,E),this.count++,v=lb.bind(this),E.addEventListener("load",v),E.addEventListener("error",v),R?R.parentNode.insertBefore(E,R.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(E,a.firstChild)),c.state.loading|=4;}}var mh={$$typeof:M,Provider:null,Consumer:null,_currentValue:j,_currentValue2:j,_threadCount:0};function JX(a,c,h,v,E,R,F,Z,ue){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Me(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Me(0),this.hiddenUpdates=Me(null),this.identifierPrefix=v,this.onUncaughtError=E,this.onCaughtError=R,this.onRecoverableError=F,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ue,this.incompleteTransitions=new Map;}function C4(a,c,h,v,E,R,F,Z,ue,$e,_e,We){return a=new JX(a,c,h,F,ue,$e,_e,We,Z),c=1,R===true&&(c|=24),R=fi(3,null,null,c),a.current=R,R.stateNode=a,c=CC(),c.refCount++,a.pooledCache=c,c.refCount++,R.memoizedState={element:v,isDehydrated:h,cache:c},EC(R),a}function x4(a){return a?(a=gd,a):gd}function w4(a,c,h,v,E,R){E=x4(E),v.context===null?v.context=E:v.pendingContext=E,v=yl(c),v.payload={element:h},R=R===void 0?null:R,R!==null&&(v.callback=R),h=Sl(a,v,c),h!==null&&(Yo(h,a,c),Wm(h,a,c));}function $4(a,c){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var h=a.retryLane;a.retryLane=h!==0&&h<c?h:c;}}function jx(a,c){$4(a,c),(a=a.alternate)&&$4(a,c);}function E4(a){if(a.tag===13||a.tag===31){var c=_c(a,67108864);c!==null&&Yo(c,a,67108864),jx(a,67108864);}}function M4(a){if(a.tag===13||a.tag===31){var c=vi();c=tt(c);var h=_c(a,c);h!==null&&Yo(h,a,c),jx(a,c);}}var db=true;function eQ(a,c,h,v){var E=k.T;k.T=null;var R=G.p;try{G.p=2,Ux(a,c,h,v);}finally{G.p=R,k.T=E;}}function tQ(a,c,h,v){var E=k.T;k.T=null;var R=G.p;try{G.p=8,Ux(a,c,h,v);}finally{G.p=R,k.T=E;}}function Ux(a,c,h,v){if(db){var E=Wx(v);if(E===null)Nx(a,c,v,fb,h),A4(a,v);else if(rQ(E,a,c,h,v))v.stopPropagation();else if(A4(a,v),c&4&&-1<nQ.indexOf(a)){for(;E!==null;){var R=nn(E);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 ue=1<<31-ct(F);Z.entanglements[1]|=ue,F&=~ue;}Vs(R),(wn&6)===0&&(Kv=Se()+500,ah(0));}}break;case 31:case 13:Z=_c(R,2),Z!==null&&Yo(Z,R,2),Xv(),jx(R,2);}if(R=Wx(v),R===null&&Nx(a,c,v,fb,h),R===E)break;E=R;}E!==null&&v.stopPropagation();}else Nx(a,c,v,null,h);}}function Wx(a){return a=qS(a),Gx(a)}var fb=null;function Gx(a){if(fb=null,a=tn(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 fb=a,null}function T4(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(Ie()){case Ue:return 2;case je:return 8;case qe:case Ze:return 32;case Ye:return 268435456;default:return 32}default:return 32}}var qx=false,Pl=null,Il=null,Ol=null,hh=new Map,ph=new Map,Dl=[],nQ="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function A4(a,c){switch(a){case "focusin":case "focusout":Pl=null;break;case "dragenter":case "dragleave":Il=null;break;case "mouseover":case "mouseout":Ol=null;break;case "pointerover":case "pointerout":hh.delete(c.pointerId);break;case "gotpointercapture":case "lostpointercapture":ph.delete(c.pointerId);}}function gh(a,c,h,v,E,R){return a===null||a.nativeEvent!==R?(a={blockedOn:c,domEventName:h,eventSystemFlags:v,nativeEvent:R,targetContainers:[E]},c!==null&&(c=nn(c),c!==null&&E4(c)),a):(a.eventSystemFlags|=v,c=a.targetContainers,E!==null&&c.indexOf(E)===-1&&c.push(E),a)}function rQ(a,c,h,v,E){switch(c){case "focusin":return Pl=gh(Pl,a,c,h,v,E),true;case "dragenter":return Il=gh(Il,a,c,h,v,E),true;case "mouseover":return Ol=gh(Ol,a,c,h,v,E),true;case "pointerover":var R=E.pointerId;return hh.set(R,gh(hh.get(R)||null,a,c,h,v,E)),true;case "gotpointercapture":return R=E.pointerId,ph.set(R,gh(ph.get(R)||null,a,c,h,v,E)),true}return  false}function R4(a){var c=tn(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(){M4(h);});return}}else if(c===31){if(c=l(h),c!==null){a.blockedOn=c,Et(a.priority,function(){M4(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 mb(a){if(a.blockedOn!==null)return  false;for(var c=a.targetContainers;0<c.length;){var h=Wx(a.nativeEvent);if(h===null){h=a.nativeEvent;var v=new h.constructor(h.type,h);GS=v,h.target.dispatchEvent(v),GS=null;}else return c=nn(h),c!==null&&E4(c),a.blockedOn=h,false;c.shift();}return  true}function N4(a,c,h){mb(a)&&h.delete(c);}function oQ(){qx=false,Pl!==null&&mb(Pl)&&(Pl=null),Il!==null&&mb(Il)&&(Il=null),Ol!==null&&mb(Ol)&&(Ol=null),hh.forEach(N4),ph.forEach(N4);}function hb(a,c){a.blockedOn===c&&(a.blockedOn=null,qx||(qx=true,e.unstable_scheduleCallback(e.unstable_NormalPriority,oQ)));}var pb=null;function P4(a){pb!==a&&(pb=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){pb===a&&(pb=null);for(var c=0;c<a.length;c+=3){var h=a[c],v=a[c+1],E=a[c+2];if(typeof v!="function"){if(Gx(v||h)===null)continue;break}var R=nn(h);R!==null&&(a.splice(c,3),c-=3,WC(R,{pending:true,data:E,method:h.method,action:v},v,E));}}));}function Fd(a){function c(ue){return hb(ue,a)}Pl!==null&&hb(Pl,a),Il!==null&&hb(Il,a),Ol!==null&&hb(Ol,a),hh.forEach(c),ph.forEach(c);for(var h=0;h<Dl.length;h++){var v=Dl[h];v.blockedOn===a&&(v.blockedOn=null);}for(;0<Dl.length&&(h=Dl[0],h.blockedOn===null);)R4(h),h.blockedOn===null&&Dl.shift();if(h=(a.ownerDocument||a).$$reactFormReplay,h!=null)for(v=0;v<h.length;v+=3){var E=h[v],R=h[v+1],F=E[pn]||null;if(typeof R=="function")F||P4(h);else if(F){var Z=null;if(R&&R.hasAttribute("formAction")){if(E=R,F=R[pn]||null)Z=F.formAction;else if(Gx(E)!==null)continue}else Z=F.action;typeof Z=="function"?h[v+1]=Z:(h.splice(v,3),v-=3),P4(h);}}}function I4(){function a(R){R.canIntercept&&R.info==="react-transition"&&R.intercept({handler:function(){return new Promise(function(F){return E=F})},focusReset:"manual",scroll:"manual"});}function c(){E!==null&&(E(),E=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,E=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),E!==null&&(E(),E=null);}}}function Kx(a){this._internalRoot=a;}gb.prototype.render=Kx.prototype.render=function(a){var c=this._internalRoot;if(c===null)throw Error(r(409));var h=c.current,v=vi();w4(h,v,a,c,null,null);},gb.prototype.unmount=Kx.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var c=a.containerInfo;w4(a.current,2,null,a,null,null),Xv(),c[Wn]=null;}};function gb(a){this._internalRoot=a;}gb.prototype.unstable_scheduleHydration=function(a){if(a){var c=dt();a={blockedOn:null,target:a,priority:c};for(var h=0;h<Dl.length&&c!==0&&c<Dl[h].priority;h++);Dl.splice(h,0,a),h===0&&R4(a);}};var O4=t.version;if(O4!=="19.2.5")throw Error(r(527,O4,"19.2.5"));G.findDOMNode=function(a){var c=a._reactInternals;if(c===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=d(c),a=a!==null?m(a):null,a=a===null?null:a.stateNode,a};var iQ={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vb=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vb.isDisabled&&vb.supportsFiber)try{Qe=vb.inject(iQ),ke=vb;}catch{}}return vh.createRoot=function(a,c){if(!o(a))throw Error(r(299));var h=false,v="",E=FP,R=HP,F=VP;return c!=null&&(c.unstable_strictMode===true&&(h=true),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onUncaughtError!==void 0&&(E=c.onUncaughtError),c.onCaughtError!==void 0&&(R=c.onCaughtError),c.onRecoverableError!==void 0&&(F=c.onRecoverableError)),c=C4(a,1,false,null,null,h,v,null,E,R,F,I4),a[Wn]=c.current,Rx(a),new Kx(c)},vh.hydrateRoot=function(a,c,h){if(!o(a))throw Error(r(299));var v=false,E="",R=FP,F=HP,Z=VP,ue=null;return h!=null&&(h.unstable_strictMode===true&&(v=true),h.identifierPrefix!==void 0&&(E=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&&(ue=h.formState)),c=C4(a,1,true,c,h??null,v,E,ue,R,F,Z,I4),c.context=x4(null),h=c.current,v=vi(),v=tt(v),E=yl(v),E.callback=null,Sl(h,E,v),h=v,c.current.lanes=h,ye(c,h),Vs(c),a[Wn]=c.current,Rx(a),new gb(c)},vh.version="19.2.5",vh}var X4;function TZ(){if(X4)return Qx.exports;X4=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(),Qx.exports=MZ(),Qx.exports}var _9=TZ();const Mo="Bilibili-Gate",Xr="bilibili-gate",o0="bilibili_gate",Q4="bili-gate",bo=L9(Xr),AZ=L9(Xr+"-verbose"),B9="https://api.bilibili.com",nT="https://app.bilibili.com",yp={appkey:"4409e2ce8ffd12b8",appsec:"59b43e04ad6965f34319062b478f83dd"},Ls=`${Xr}-root`,RZ=`${Xr}-video-grid`,ec=`${Xr}-video-card`,z9=`${Xr}-video-card-active`,F9=`${Xr}-video-card-cover`,H9=`${Xr}-tab-bar`,NZ=`${Xr}-video-card__recommend-reason`,mg="请求失败, 请重试 !!!",yb="bilibili.com";var Ya=(e=>(e[e.Tld=yb]="Tld",e.Main=`www.${yb}`,e.Space=`space.${yb}`,e.Search=`search.${yb}`,e))(Ya||{});const{hostname:Sp,pathname:Z4}=location;Sp===Ya.Tld||Sp.endsWith(`.${Ya.Tld}`);const V9=[Ya.Tld,Ya.Main].includes(Sp),PZ=Sp===Ya.Space,IZ=Sp===Ya.Search,tl=V9&&(Z4==="/"||Z4==="/index.html");function rT(e){return function(...n){const[r,...o]=n,i=`%c${Mo}%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 OZ=rT(console.log),zo=rT(console.warn),j9=rT(console.error);var Qf=(e=>(e.Pink="#f69",e.Blue="#00aeec",e))(Qf||{});function fa(e,t){const n=_9.createRoot(e,t);return e.dataset.gateReactRoot="true",n}var tw={exports:{}},bh={};var J4;function DZ(){if(J4)return bh;J4=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 bh.Fragment=t,bh.jsx=n,bh.jsxs=n,bh}var eI;function LZ(){return eI||(eI=1,tw.exports=DZ()),tw.exports}var ni=LZ();function kZ(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 _Z(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(_Z(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=kZ(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})(),wo="-ms-",i0="-moz-",$n="-webkit-",U9="comm",oT="rule",iT="decl",zZ="@import",W9="@keyframes",FZ="@layer",HZ=Math.abs,C1=String.fromCharCode,VZ=Object.assign;function jZ(e,t){return lo(e,0)^45?(((t<<2^lo(e,0))<<2^lo(e,1))<<2^lo(e,2))<<2^lo(e,3):0}function G9(e){return e.trim()}function UZ(e,t){return (e=t.exec(e))?e[0]:e}function Mn(e,t,n){return e.replace(t,n)}function bE(e,t){return e.indexOf(t)}function lo(e,t){return e.charCodeAt(t)|0}function Cp(e,t,n){return e.slice(t,n)}function Ys(e){return e.length}function sT(e){return e.length}function Sb(e,t){return t.push(e),e}function WZ(e,t){return e.map(t).join("")}var x1=1,Pf=1,q9=0,ii=0,Mr=0,Zf="";function w1(e,t,n,r,o,i,s){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:x1,column:Pf,length:s,return:""}}function yh(e,t){return VZ(w1("",null,null,"",null,null,0),e,{length:-e.length},t)}function GZ(){return Mr}function qZ(){return Mr=ii>0?lo(Zf,--ii):0,Pf--,Mr===10&&(Pf=1,x1--),Mr}function Ni(){return Mr=ii<q9?lo(Zf,ii++):0,Pf++,Mr===10&&(Pf=1,x1++),Mr}function ra(){return lo(Zf,ii)}function uy(){return ii}function hg(e,t){return Cp(Zf,e,t)}function xp(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 K9(e){return x1=Pf=1,q9=Ys(Zf=e),ii=0,[]}function Y9(e){return Zf="",e}function dy(e){return G9(hg(ii-1,yE(e===91?e+2:e===40?e+1:e)))}function KZ(e){for(;(Mr=ra())&&Mr<33;)Ni();return xp(e)>2||xp(Mr)>3?"":" "}function YZ(e,t){for(;--t&&Ni()&&!(Mr<48||Mr>102||Mr>57&&Mr<65||Mr>70&&Mr<97););return hg(e,uy()+(t<6&&ra()==32&&Ni()==32))}function yE(e){for(;Ni();)switch(Mr){case e:return ii;case 34:case 39:e!==34&&e!==39&&yE(Mr);break;case 40:e===41&&yE(e);break;case 92:Ni();break}return ii}function XZ(e,t){for(;Ni()&&e+Mr!==57;)if(e+Mr===84&&ra()===47)break;return "/*"+hg(t,ii-1)+"*"+C1(e===47?e:Ni())}function QZ(e){for(;!xp(ra());)Ni();return hg(e,ii)}function ZZ(e){return Y9(fy("",null,null,null,[""],e=K9(e),0,[0],e))}function fy(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,$=1,w=0,M="",T=o,A=i,P=r,N=M;x;)switch(y=w,w=Ni()){case 40:if(y!=108&&lo(N,p-1)==58){bE(N+=Mn(dy(w),"&","&\f"),"&\f")!=-1&&($=-1);break}case 34:case 39:case 91:N+=dy(w);break;case 9:case 10:case 13:case 32:N+=KZ(y);break;case 92:N+=YZ(uy()-1,7);continue;case 47:switch(ra()){case 42:case 47:Sb(JZ(XZ(Ni(),uy()),t,n),u);break;default:N+="/";}break;case 123*S:l[d++]=Ys(N)*$;case 125*S:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+m:$==-1&&(N=Mn(N,/\f/g,"")),b>0&&Ys(N)-p&&Sb(b>32?nI(N+";",r,n,p-1):nI(Mn(N," ","")+";",r,n,p-2),u);break;case 59:N+=";";default:if(Sb(P=tI(N,t,n,d,m,o,l,M,T=[],A=[],p),i),w===123)if(m===0)fy(N,t,P,P,T,i,p,l,A);else switch(g===99&&lo(N,3)===110?100:g){case 100:case 108:case 109:case 115:fy(e,P,P,r&&Sb(tI(e,P,P,0,0,o,l,M,o,T=[],p),A),o,A,p,l,r?T:A);break;default:fy(N,P,P,P,[""],A,0,l,A);}}d=m=b=0,S=$=1,M=N="",p=s;break;case 58:p=1+Ys(N),b=y;default:if(S<1){if(w==123)--S;else if(w==125&&S++==0&&qZ()==125)continue}switch(N+=C1(w),w*S){case 38:$=m>0?1:(N+="\f",-1);break;case 44:l[d++]=(Ys(N)-1)*$,$=1;break;case 64:ra()===45&&(N+=dy(Ni())),g=ra(),m=p=Ys(M=N+=QZ(uy())),w++;break;case 45:y===45&&Ys(N)==2&&(S=0);}}return i}function tI(e,t,n,r,o,i,s,l,u,d,m){for(var p=o-1,g=o===0?i:[""],b=sT(g),y=0,S=0,x=0;y<r;++y)for(var $=0,w=Cp(e,p+1,p=HZ(S=s[y])),M=e;$<b;++$)(M=G9(S>0?g[$]+" "+w:Mn(w,/&\f/g,g[$])))&&(u[x++]=M);return w1(e,t,n,o===0?oT:l,u,d,m)}function JZ(e,t,n){return w1(e,t,n,U9,C1(GZ()),Cp(e,2,-2),0)}function nI(e,t,n,r){return w1(e,t,n,iT,Cp(e,0,r),Cp(e,r+1,-1),r)}function bf(e,t){for(var n="",r=sT(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function eJ(e,t,n,r){switch(e.type){case FZ:if(e.children.length)break;case zZ:case iT:return e.return=e.return||e.value;case U9:return "";case W9:return e.return=e.value+"{"+bf(e.children,r)+"}";case oT:e.value=e.props.join(",");}return Ys(n=bf(e.children,r))?e.return=e.value+"{"+n+"}":""}function tJ(e){var t=sT(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 nJ(e){return function(t){t.root||(t=t.return)&&e(t);}}function rJ(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var oJ=function(t,n,r){for(var o=0,i=0;o=i,i=ra(),o===38&&i===12&&(n[r]=1),!xp(i);)Ni();return hg(t,ii)},iJ=function(t,n){var r=-1,o=44;do switch(xp(o)){case 0:o===38&&ra()===12&&(n[r]=1),t[r]+=oJ(ii-1,n,r);break;case 2:t[r]+=dy(o);break;case 4:if(o===44){t[++r]=ra()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=C1(o);}while(o=Ni());return t},sJ=function(t,n){return Y9(iJ(K9(t),n))},rI=new WeakMap,aJ=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&&!rI.get(r))&&!o){rI.set(t,true);for(var i=[],s=sJ(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];}}},lJ=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function X9(e,t){switch(jZ(e,t)){case 5103:return $n+"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 $n+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $n+e+i0+e+wo+e+e;case 6828:case 4268:return $n+e+wo+e+e;case 6165:return $n+e+wo+"flex-"+e+e;case 5187:return $n+e+Mn(e,/(\w+).+(:[^]+)/,$n+"box-$1$2"+wo+"flex-$1$2")+e;case 5443:return $n+e+wo+"flex-item-"+Mn(e,/flex-|-self/,"")+e;case 4675:return $n+e+wo+"flex-line-pack"+Mn(e,/align-content|flex-|-self/,"")+e;case 5548:return $n+e+wo+Mn(e,"shrink","negative")+e;case 5292:return $n+e+wo+Mn(e,"basis","preferred-size")+e;case 6060:return $n+"box-"+Mn(e,"-grow","")+$n+e+wo+Mn(e,"grow","positive")+e;case 4554:return $n+Mn(e,/([^-])(transform)/g,"$1"+$n+"$2")+e;case 6187:return Mn(Mn(Mn(e,/(zoom-|grab)/,$n+"$1"),/(image-set)/,$n+"$1"),e,"")+e;case 5495:case 3959:return Mn(e,/(image-set\([^]*)/,$n+"$1$`$1");case 4968:return Mn(Mn(e,/(.+:)(flex-)?(.*)/,$n+"box-pack:$3"+wo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$n+e+e;case 4095:case 3583:case 4068:case 2532:return Mn(e,/(.+)-inline(.+)/,$n+"$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(Ys(e)-1-t>6)switch(lo(e,t+1)){case 109:if(lo(e,t+4)!==45)break;case 102:return Mn(e,/(.+:)(.+)-([^]+)/,"$1"+$n+"$2-$3$1"+i0+(lo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~bE(e,"stretch")?X9(Mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(lo(e,t+1)!==115)break;case 6444:switch(lo(e,Ys(e)-3-(~bE(e,"!important")&&10))){case 107:return Mn(e,":",":"+$n)+e;case 101:return Mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$n+(lo(e,14)===45?"inline-":"")+"box$3$1"+$n+"$2$3$1"+wo+"$2box$3")+e}break;case 5936:switch(lo(e,t+11)){case 114:return $n+e+wo+Mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $n+e+wo+Mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $n+e+wo+Mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $n+e+wo+e+e}return e}var cJ=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case iT:t.return=X9(t.value,t.length);break;case W9:return bf([yh(t,{value:Mn(t.value,"@","@"+$n)})],o);case oT:if(t.length)return WZ(t.props,function(i){switch(UZ(i,/(::plac\w+|:read-\w+)/)){case ":read-only":case ":read-write":return bf([yh(t,{props:[Mn(i,/:(read-\w+)/,":"+i0+"$1")]})],o);case "::placeholder":return bf([yh(t,{props:[Mn(i,/:(plac\w+)/,":"+$n+"input-$1")]}),yh(t,{props:[Mn(i,/:(plac\w+)/,":"+i0+"$1")]}),yh(t,{props:[Mn(i,/:(plac\w+)/,wo+"input-$1")]})],o)}return ""})}},uJ=[cJ],Q9=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||uJ,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(" "),$=1;$<x.length;$++)i[x[$]]=true;l.push(S);});var u,d=[aJ,lJ];{var m,p=[eJ,nJ(function(S){m.insert(S);})],g=tJ(d.concat(o,p)),b=function(x){return bf(ZZ(x),g)};u=function(x,$,w,M){m=w,b(x?x+"{"+$.styles+"}":$.styles),M&&(y.inserted[$.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 ur(){return ur=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},ur.apply(null,arguments)}var nw={exports:{}},An={};var oI;function dJ(){if(oI)return An;oI=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,$=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function M(A){if(typeof A=="object"&&A!==null){var P=A.$$typeof;switch(P){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 P}}case n:return P}}}function T(A){return M(A)===d}return An.AsyncMode=u,An.ConcurrentMode=d,An.ContextConsumer=l,An.ContextProvider=s,An.Element=t,An.ForwardRef=m,An.Fragment=r,An.Lazy=y,An.Memo=b,An.Portal=n,An.Profiler=i,An.StrictMode=o,An.Suspense=p,An.isAsyncMode=function(A){return T(A)||M(A)===u},An.isConcurrentMode=T,An.isContextConsumer=function(A){return M(A)===l},An.isContextProvider=function(A){return M(A)===s},An.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},An.isForwardRef=function(A){return M(A)===m},An.isFragment=function(A){return M(A)===r},An.isLazy=function(A){return M(A)===y},An.isMemo=function(A){return M(A)===b},An.isPortal=function(A){return M(A)===n},An.isProfiler=function(A){return M(A)===i},An.isStrictMode=function(A){return M(A)===o},An.isSuspense=function(A){return M(A)===p},An.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===$||A.$$typeof===w||A.$$typeof===S)},An.typeOf=M,An}var iI;function fJ(){return iI||(iI=1,nw.exports=dJ()),nw.exports}var rw,sI;function mJ(){if(sI)return rw;sI=1;var e=fJ(),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 $=p(S);$&&$!==g&&b(y,$,x);}var w=u(S);d&&(w=w.concat(d(S)));for(var M=s(y),T=s(S),A=0;A<w.length;++A){var P=w[A];if(!n[P]&&!(x&&x[P])&&!(T&&T[P])&&!(M&&M[P])){var N=m(S,P);try{l(y,P,N);}catch{}}}}return y}return rw=b,rw}mJ();var hJ=true;function aT(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ");}),r}var Z9=function(t,n,r){var o=t.key+"-"+n.name;(r===false||hJ===false)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},lT=function(t,n,r){Z9(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 pJ(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 gJ={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},vJ=/[A-Z]|^ms/g,bJ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,J9=function(t){return t.charCodeAt(1)===45},aI=function(t){return t!=null&&typeof t!="boolean"},ow=rJ(function(e){return J9(e)?e:e.replace(vJ,"-$&").toLowerCase()}),lI=function(t,n){switch(t){case "animation":case "animationName":if(typeof n=="string")return n.replace(bJ,function(r,o,i){return Xs={name:o,styles:i,next:Xs},o})}return gJ[t]!==1&&!J9(t)&&typeof n=="number"&&n!==0?n+"px":n};function wp(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 Xs={name:o.name,styles:o.styles,next:Xs},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Xs={name:s.name,styles:s.styles,next:Xs},s=s.next;var l=i.styles+";";return l}return yJ(e,t,n)}case "function":{if(e!==void 0){var u=Xs,d=n(e);return Xs=u,wp(e,t,d)}break}}var m=n;if(t==null)return m;var p=t[m];return p!==void 0?p:m}function yJ(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=wp(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]+"}":aI(l)&&(r+=ow(i)+":"+lI(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++)aI(s[u])&&(r+=ow(i)+":"+lI(i,s[u])+";");else {var d=wp(e,t,s);switch(i){case "animation":case "animationName":{r+=ow(i)+":"+d+";";break}default:r+=i+"{"+d+"}";}}}return r}var cI=/label:\s*([^\s;{]+)\s*(;|$)/g,Xs;function yf(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="";Xs=void 0;var i=e[0];if(i==null||i.raw===void 0)r=false,o+=wp(n,t,i);else {var s=i;o+=s[0];}for(var l=1;l<e.length;l++)if(o+=wp(n,t,e[l]),r){var u=i;o+=u[l];}cI.lastIndex=0;for(var d="",m;(m=cI.exec(o))!==null;)d+="-"+m[1];var p=pJ(o)+d;return {name:p,styles:o,next:Xs}}var SJ=function(t){return t()},eB=pE.useInsertionEffect?pE.useInsertionEffect:false,CJ=eB||SJ,uI=eB||f.useLayoutEffect,tB=f.createContext(typeof HTMLElement<"u"?Q9({key:"css"}):null),xJ=tB.Provider,nB=function(t){return f.forwardRef(function(n,r){var o=f.useContext(tB);return t(n,o,r)})},rB=f.createContext({}),pg={}.hasOwnProperty,SE="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",cT=function(t,n){var r={};for(var o in n)pg.call(n,o)&&(r[o]=n[o]);return r[SE]=t,r},wJ=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Z9(n,r,o),CJ(function(){return lT(n,r,o)}),null},$J=nB(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[SE],i=[r],s="";typeof e.className=="string"?s=aT(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var l=yf(i,void 0,f.useContext(rB));s+=t.key+"-"+l.name;var u={};for(var d in e)pg.call(e,d)&&d!=="css"&&d!==SE&&(u[d]=e[d]);return u.className=s,n&&(u.ref=n),f.createElement(f.Fragment,null,f.createElement(wJ,{cache:t,serialized:l,isStringTag:typeof o=="string"}),f.createElement(o,u))}),uT=$J,De=ni.Fragment,C=function(t,n,r){return pg.call(n,"css")?ni.jsx(uT,cT(t,n),r):ni.jsx(t,n,r)},_=function(t,n,r){return pg.call(n,"css")?ni.jsxs(uT,cT(t,n),r):ni.jsxs(t,n,r)};const js=new WeakMap,Gi=new WeakMap,tc=new WeakMap,sf=new WeakMap;var EJ={};const xu=Symbol("anyProducer"),dI=Promise.resolve(),$1=Symbol("listenerAdded"),E1=Symbol("listenerRemoved"),af=new WeakMap,lf=new WeakMap,oB=Symbol("suppressAllEnqueue"),my=new WeakMap;let iw=false;const za=e=>typeof e=="string"||typeof e=="symbol"||typeof e=="number";function sw(e){return e[Symbol.dispose]=e,e}function hy(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 Xc(e){if(!za(e))throw new TypeError("`eventName` must be a string, symbol, or number")}function Cb(e){if(typeof e!="function")throw new TypeError("listener must be a function")}function ka(e,t){const n=Gi.get(e);if(n.has(t))return n.get(t)}function $p(e,t){const n=za(t)?t:xu,r=tc.get(e);if(r.has(n))return r.get(n)}function fI(e,t,n,r){if(sB(e,t))return;const o=tc.get(e);if(!o.has(t)&&!o.get(xu)?.size)return;const i=Promise.resolve(n),s=async()=>Fh(t,await i,r);if(o.has(t))for(const l of o.get(t))l.enqueue(s());if(o.has(xu))for(const l of o.get(xu))l.enqueue(s());}function mI(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=za(m)?m:xu;let g=$p(e,m);g||(g=new Set,tc.get(e).set(p,g)),g.add(l);}const u=()=>{for(const m of t){const p=za(m)?m:xu,g=$p(e,m);g&&(g.delete(l),g.size===0&&tc.get(e).delete(p));}},d=()=>{i&&(i=void 0,s(),u(),o());};return s=hy(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 hI(e){if(e===void 0)return wE;if(!Array.isArray(e))throw new TypeError("`methodNames` must be an array of strings");for(const t of e)if(!wE.includes(t))throw typeof t!="string"?new TypeError("`methodNames` element must be a string"):new Error(`${t} is not Emittery method`);return e}const qs=e=>e===$1||e===E1;function iB(e,t,n){const r=t.some(s=>!za(s))?[oB]:t;let o=my.get(e);o||(o=new Set,my.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&&my.delete(e);}}function sB(e,t){const n=my.get(e);return n?n.has(oB)||n.has(t):false}function MJ(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&&Gi.get(e).delete(r),i}}function Qh(e){const t=e?.deinitFn;t&&(e.deinitFn=void 0,t());}const s0="subscribe",a0="unsubscribe";function CE(e,{eventName:t,listener:n,action:r,swallowLifecycleError:o=false,removeResubscribedListener:i=false}){if(r===s0){let u=ka(e,t);u||(u=new Set,Gi.get(e).set(t,u));const d=u.size===0,m=u.has(n);if(u.add(n),!qs(t)&&d&&!sB(e,t)){const p=sf.get(e).get(t);p&&MJ(e,p,n,{eventName:t,set:u});}return {hasSet:true,changed:!m}}const s=ka(e,t);if(!s)return {hasSet:false,changed:false};const l=s.delete(n);if(s.size===0){Gi.get(e).delete(t);const u=sf.get(e).get(t);if(o)try{Qh(u);}catch{}else Qh(u);if(i){const d=ka(e,t);d?.delete(n),d?.size===0&&Gi.get(e).delete(t);}}return {hasSet:true,changed:l}}function xE(e,{eventName:t,listener:n,action:r,swallowErrors:o=false}){const i=r===s0,s=i?"subscribe":"unsubscribe",l=i?$1:E1;if(o){try{e.logIfDebugEnabled(s,t,void 0);}catch{}if(!qs(t))try{l0(e,l,{eventName:t,listener:n});}catch{}return}e.logIfDebugEnabled(s,t,void 0),qs(t)||l0(e,l,{eventName:t,listener:n});}function TJ(e,t,n){iB(e,t,()=>{for(const r of t){const{hasSet:o}=CE(e,{eventName:r,listener:n,action:a0,swallowLifecycleError:!0,removeResubscribedListener:!0});o&&xE(e,{eventName:r,listener:n,action:a0,swallowErrors:!0});}});}function pI(e,t){const n=$p(e,t);if(n){for(const r of n)r.finish();n.clear();}}function aw(e){const t=tc.get(e);for(const[n,r]of t.entries()){for(const o of r)o.finish();r.clear(),t.delete(n);}}const Fh=(e,t,n)=>n?{name:e,data:t}:{name:e};function l0(e,t,n){af.set(e,(af.get(e)??0)+1),lf.set(e,(lf.get(e)??0)+1);try{ho.prototype.emit.call(e,t,n);}finally{af.set(e,(af.get(e)??0)-1);}}class ho{static mixin(t,n){return n=hI(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 ho}),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 EJ!="object")return iw;const{env:t}=globalThis.process??{env:{}};return t.DEBUG==="emittery"||t.DEBUG==="*"||iw}static set isDebugEnabled(t){iw=t;}constructor(t={}){js.set(this,new Set),Gi.set(this,new Map),tc.set(this,new Map),sf.set(this,new Map),tc.get(this).set(xu,new Set);for(const n of wE)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){(ho.isDebugEnabled||this.debug.enabled)&&this.debug.logger(t,this.debug.name,n,r);}on(t,n,{signal:r}={}){Cb(n),t=Array.isArray(t)?t:[t];const o=[];try{for(const u of t){Xc(u);const{changed:d}=CE(this,{eventName:u,listener:n,action:s0});d&&o.push(u),xE(this,{eventName:u,listener:n,action:s0});}}catch(u){throw TJ(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=hy(r,l,{swallowErrors:true}),sw(l)}off(t,n){Cb(n),t=Array.isArray(t)?t:[t];for(const r of t)Xc(r),CE(this,{eventName:r,listener:n,action:a0}),xE(this,{eventName:r,listener:n,action:a0});}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($){S=S===y?$: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=hy(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)Xc(r);return mI(this,t,{signal:n})}async emit(t,n){if(Xc(t),qs(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);}qs(t)||this.logIfDebugEnabled("emit",t,n);const r=arguments.length>1;fI(this,t,n,r);const o=ka(this,t)??new Set,i=js.get(this),s=[...o],l=qs(t)?[]:[...i];await dI;const d=(await Promise.allSettled([...s.map(async m=>{if(o.has(m))return m(Fh(t,n,r))}),...l.map(async m=>{if(i.has(m))return m(Fh(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(Xc(t),qs(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);}qs(t)||this.logIfDebugEnabled("emitSerial",t,n);const r=arguments.length>1;fI(this,t,n,r);const o=ka(this,t)??new Set,i=js.get(this),s=[...o],l=qs(t)?[]:[...i];await dI;for(const u of s)o.has(u)&&await u(Fh(t,n,r));for(const u of l)i.has(u)&&await u(Fh(t,n,r));}onAny(t,{signal:n}={}){Cb(t),this.logIfDebugEnabled("subscribeAny",void 0,void 0),js.get(this).add(t),l0(this,$1,{listener:t});let r=()=>{};const o=()=>{r(),this.offAny(t);};return r=hy(n,o,{swallowErrors:true}),sw(o)}anyEvent({signal:t}={}){return mI(this,void 0,{signal:t})}offAny(t){Cb(t),this.logIfDebugEnabled("unsubscribeAny",void 0,void 0),l0(this,E1,{listener:t}),js.get(this).delete(t);}clearListeners(t){t=Array.isArray(t)?t:[t];const n=t.some(r=>!za(r));iB(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(za(i)){const s=ka(this,i),l=s?.size>0;s?.clear(),pI(this,i);const u=l?sf.get(this).get(i):void 0;try{Qh(u);}catch(d){o=o===r?d:o;}}else {js.get(this).clear(),aw(this);for(const[s,l]of Gi.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(),Gi.get(this).delete(s);}js.get(this).clear(),aw(this);}}}finally{if(n){js.get(this).clear();for(const i of Gi.get(this).values())i.clear();Gi.get(this).clear(),aw(this);}else for(const i of t)za(i)&&(ka(this,i)?.clear(),Gi.get(this).delete(i),pI(this,i));}if(o!==r)throw o});}init(t,n){if(Xc(t),qs(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),ka(this,t)?.size>0)try{const s=n();typeof s=="function"&&(o.deinitFn=s);}catch(s){throw r.delete(t),s}return sw(()=>{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(za(r)){n+=js.get(this).size+(ka(this,r)?.size??0)+($p(this,r)?.size??0)+($p(this)?.size??0);continue}r!==void 0&&Xc(r),n+=js.get(this).size;for(const o of Gi.get(this).values())n+=o.size;for(const o of tc.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=hI(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 wE=Object.getOwnPropertyNames(ho.prototype).filter(e=>e!=="constructor");Object.defineProperty(ho,"listenerAdded",{value:$1,writable:false,enumerable:true,configurable:false});Object.defineProperty(ho,"listenerRemoved",{value:E1,writable:false,enumerable:true,configurable:false});const At=e=>{const t=f.useRef(e);return t.current=e,f.useCallback((...r)=>t.current?.(...r),[])};function Ii(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}const gI=Ii()?f.useLayoutEffect:f.useEffect,In=(e,t)=>{const n=f.useRef(true);gI(()=>e(n.current),t),gI(()=>(n.current=false,()=>{n.current=true;}),[]);},py=(e,t)=>{In(n=>{if(!n)return e()},t);},aB=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 mn(e,t){const[n,r]=f.useState(e),o=t!==void 0?t:n;return In(i=>{i||r(t);},[t]),[o,r]}var lw={exports:{}},Rn={};var vI;function AJ(){if(vI)return Rn;vI=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 $=x.$$typeof;switch($){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 $}}case t:return $}}}return Rn.ContextConsumer=s,Rn.ContextProvider=i,Rn.Element=e,Rn.ForwardRef=u,Rn.Fragment=n,Rn.Lazy=g,Rn.Memo=p,Rn.Portal=t,Rn.Profiler=o,Rn.StrictMode=r,Rn.Suspense=d,Rn.SuspenseList=m,Rn.isAsyncMode=function(){return  false},Rn.isConcurrentMode=function(){return  false},Rn.isContextConsumer=function(x){return S(x)===s},Rn.isContextProvider=function(x){return S(x)===i},Rn.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Rn.isForwardRef=function(x){return S(x)===u},Rn.isFragment=function(x){return S(x)===n},Rn.isLazy=function(x){return S(x)===g},Rn.isMemo=function(x){return S(x)===p},Rn.isPortal=function(x){return S(x)===t},Rn.isProfiler=function(x){return S(x)===o},Rn.isStrictMode=function(x){return S(x)===r},Rn.isSuspense=function(x){return S(x)===d},Rn.isSuspenseList=function(x){return S(x)===m},Rn.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)},Rn.typeOf=S,Rn}var bI;function RJ(){return bI||(bI=1,lw.exports=AJ()),lw.exports}var cw=RJ();function Jf(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 NJ=Symbol.for("react.element"),PJ=Symbol.for("react.transitional.element"),IJ=Symbol.for("react.fragment");function lB(e){return e&&typeof e=="object"&&(e.$$typeof===NJ||e.$$typeof===PJ)&&e.type===IJ}const OJ=Number(f.version.split(".")[0]),DJ=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t);},Fr=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{DJ(r,n);});}},nl=(...e)=>Jf(()=>Fr(...e),e,(t,n)=>t.length!==n.length||t.every((r,o)=>r!==n[o])),em=e=>{if(!e)return  false;if(dT(e)&&OJ>=19)return  true;const t=cw.isMemo(e)?e.type.type:e.type;return !(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==cw.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==cw.ForwardRef)};function dT(e){return f.isValidElement(e)&&!lB(e)}const cB=e=>dT(e)&&em(e),Cc=e=>{if(e&&dT(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Ki(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 uB(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]=uB(s[o],i,n,r),s}function xi(e,t,n,r=false){return t.length&&r&&n===void 0&&!Ki(e,t.slice(0,-1))?e:uB(e,t,n,r)}function LJ(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function yI(e){return Array.isArray(e)?[]:{}}const kJ=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function _J(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let o=yI(e[0]);return e.forEach(i=>{function s(l,u){const d=new Set(u),m=Ki(i,l),p=Array.isArray(m);if(p||LJ(m)){if(!d.has(m)){d.add(m);const g=Ki(o,l);p?o=xi(o,l,r(g,m)):(!g||typeof g!="object")&&(o=xi(o,l,yI(m))),kJ(m).forEach(b=>{Object.getOwnPropertyDescriptor(m,b).enumerable&&s([...l,b],d);});}}else o=xi(o,l,m);}s([]);}),o}function cf(...e){return _J(e)}let $E={};const BJ=e=>{};function zJ(e,t){}function FJ(e,t){}function HJ(){$E={};}function dB(e,t,n){!t&&!$E[n]&&(e(false,n),$E[n]=true);}function Pr(e,t){dB(zJ,e,t);}function VJ(e,t){dB(FJ,e,t);}Pr.preMessage=BJ;Pr.resetWarned=HJ;Pr.noteOnce=VJ;function Vn(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete n[r];}),n}function si(e,t={}){let n=[];return q.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(si(r)):lB(r)&&r.props?n=n.concat(si(r.props.children,t)):n.push(r));}),n}const jJ=f.createContext({});function If(e){return e instanceof HTMLElement||e instanceof SVGElement}function Fu(e){return e&&typeof e=="object"&&If(e.nativeElement)?e.nativeElement:If(e)?e:null}const EE=f.createContext(null);function UJ({children:e,onBatchResize:t}){const n=f.useRef(0),r=f.useRef([]),o=f.useContext(EE),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(EE.Provider,{value:i},e)}const Yl=new Map;function WJ(e){e.forEach(t=>{const{target:n}=t;Yl.get(n)?.forEach(r=>r(n));});}let uw;function fB(){return uw||(uw=new ResizeObserver(WJ)),uw}function GJ(e,t){Yl.has(e)||(Yl.set(e,new Set),fB().observe(e)),Yl.get(e).add(t);}function qJ(e,t){Yl.has(e)&&(Yl.get(e).delete(t),Yl.get(e).size||(fB().unobserve(e),Yl.delete(e)));}function mB(e,t,n,r){const o=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),i=At(u=>{const{width:d,height:m}=u.getBoundingClientRect(),{offsetWidth:p,offsetHeight:g}=u,b=Math.floor(d),y=Math.floor(m);if(o.current.width!==b||o.current.height!==y||o.current.offsetWidth!==p||o.current.offsetHeight!==g){const S={width:b,height:y,offsetWidth:p,offsetHeight:g};o.current=S;const x=p===Math.round(d)?d:p,$=g===Math.round(m)?m:g,w={...S,offsetWidth:x,offsetHeight:$};r?.(w,u),Promise.resolve().then(()=>{n?.(w,u);});}}),s=typeof t=="function",l=f.useRef(0);f.useEffect(()=>{const u=s?t():t;return u&&e?GJ(u,i):e&&s&&(l.current+=1),()=>{u&&qJ(u,i);}},[e,s?l.current:t]);}function KJ(e,t){const{children:n,disabled:r,onResize:o,data:i}=e,s=f.useRef(null),l=f.useContext(EE),u=typeof n=="function",d=u?n(s):n,m=!u&&f.isValidElement(d)&&em(d),p=m?Cc(d):null,g=nl(p,s),b=()=>Fu(s.current);return f.useImperativeHandle(t,()=>b()),mB(!r,b,o,(y,S)=>{l?.(y,S,i);}),m?f.cloneElement(d,{ref:g}):d}const YJ=f.forwardRef(KJ);function ME(){return ME=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},ME.apply(this,arguments)}const XJ="rc-observer-key";function QJ(e,t){const{children:n}=e;return (typeof n=="function"?[n]:si(n)).map((o,i)=>{const s=o?.key||`${XJ}-${i}`;return f.createElement(YJ,ME({},e,{key:s,ref:i===0?t:void 0}),o)})}const Es=f.forwardRef(QJ);Es.Collection=UJ;function hB(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=hB(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=hB(e))&&(r&&(r+=" "),r+=t);return r}function TE(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 ZJ(e){if(Array.isArray(e))return TE(e)}function JJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fT(e,t){if(e){if(typeof e=="string")return TE(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)?TE(e,t):void 0}}function eee(){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 Qt(e){return ZJ(e)||JJ(e)||fT(e)||eee()}let pB=e=>+setTimeout(e,16),gB=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(pB=e=>window.requestAnimationFrame(e),gB=e=>window.cancelAnimationFrame(e));let SI=0;const mT=new Map;function vB(e){mT.delete(e);}const zt=(e,t=1)=>{SI+=1;const n=SI;function r(o){if(o===0)vB(n),e();else {const i=pB(()=>{r(o-1);});mT.set(n,i);}}return r(t),n};zt.cancel=e=>{const t=mT.get(e);return vB(e),gB(t)};function tee(e){let t=null;const n=o=>()=>{t=null,e.apply(void 0,Qt(o));},r=(...o)=>{t===null&&(t=zt(n(o)));};return r.cancel=()=>{zt.cancel(t),t=null;},r}const Ep="ant",M1="anticon",nee=["outlined","borderless","filled","underlined"],ree=(e,t)=>t||(e?`${Ep}-${e}`:Ep),$t=f.createContext({getPrefixCls:ree,iconPrefixCls:M1}),{Consumer:pIe}=$t,CI={};function Gt(e){const t=f.useContext($t),{getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:i}=t,s=t[e];return {classNames:CI,styles:CI,...s,getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:i}}function Mp(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 AE(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 xI="data-rc-order",wI="data-rc-priority",oee="rc-util-key",RE=new Map;function bB({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:oee}function T1(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function iee(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function hT(e){return Array.from((RE.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function yB(e,t={}){if(!Ii())return null;const{csp:n,prepend:r,priority:o=0}=t,i=iee(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(xI,i),s&&o&&l.setAttribute(wI,`${o}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const u=T1(t),{firstChild:d}=u;if(r){if(s){const m=(t.styles||hT(u)).filter(p=>{if(!["prepend","prependQueue"].includes(p.getAttribute(xI)))return  false;const g=Number(p.getAttribute(wI)||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 SB(e,t={}){let{styles:n}=t;return n||=hT(T1(t)),n.find(r=>r.getAttribute(bB(t))===e)}function Tp(e,t={}){const n=SB(e,t);n&&T1(t).removeChild(n);}function see(e,t){const n=RE.get(e);if(!n||!AE(document,n)){const r=yB("",t),{parentNode:o}=r;RE.set(e,o),e.removeChild(r);}}function nc(e,t,n={}){const r=T1(n),o=hT(r),i={...n,styles:o};see(r,i);const s=SB(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=yB(e,i);return l.setAttribute(bB(i),t),l}function sc(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 aee="%";function NE(e){return e.join(aee)}let $I=0;class lee{instanceId;constructor(t){this.instanceId=t;}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(NE(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate(NE(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,$I),$I+=1);}}const cee={},pT="data-token-hash",Ua="data-css-hash",wu="__cssinjs_instance__";function CB(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Ua}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(o=>{o[wu]||=e,o[wu]===e&&document.head.insertBefore(o,n);});const r={};Array.from(document.querySelectorAll(`style[${Ua}]`)).forEach(o=>{const i=o.getAttribute(Ua);r[i]?o[wu]===e&&o.parentNode?.removeChild(o):r[i]=true;});}return new lee(e)}const Hu=f.createContext({hashPriority:"low",cache:CB(),defaultCache:true,autoPrefix:false}),uee=e=>{const{children:t,...n}=e,r=f.useContext(Hu),o=Jf(()=>{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||CB(),i.defaultCache=!s&&r.defaultCache,l.includes(cee)&&(i.autoPrefix=true),i},[r,n],(i,s)=>!sc(i[0],s[0],true)||!sc(i[1],s[1],true));return f.createElement(Hu.Provider,{value:o},t)};function dee(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 c0{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>c0.MAX_CACHE_SIZE+c0.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=>!dee(n,t)),this.deleteByPath(this.cache,t)}}let EI=0;class xB{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=EI,t.length===0&&(t.length>0,void 0),EI+=1;}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const dw=new c0;function u0(e){const t=Array.isArray(e)?e:[e];return dw.has(t)||dw.set(t,new xB(t)),dw.get(t)}const fee=new WeakMap,fw={};function mee(e,t){let n=fee;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(fw)||n.set(fw,e()),n.get(fw)}const MI=new WeakMap;function Zh(e){let t=MI.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof xB?t+=r.id:r&&typeof r=="object"?t+=Zh(r):t+=r;}),t=Mp(t),MI.set(e,t)),t}function hee(e,t){return Mp(`${t}_${Zh(e)}`)}const PE=Ii();function ie(e){return typeof e=="number"?`${e}px`:e}function wB(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return "";const r=`.${t}`;return n==="low"?`:where(${r})`:r}const pee=e=>e!=null;function gT(e,t){const n=typeof t=="function"?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}const gy=(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(),gee=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",scope:i}=n||{};if(!Object.keys(e).length)return "";const s=`${wB({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("")}}`},$B=(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=gy(p,i);d[b]=typeof g=="number"&&!s?.[p]?`${g}px`:String(g),m[p]=`var(${b})`;}}),[m,gee(d,t,{scope:n?.scope,hashCls:r,hashPriority:o})]},xb=new Map;function vT(e,t,n,r,o){const{cache:i}=f.useContext(Hu),s=[e,...t],l=NE(s),u=p=>{i.opUpdate(l,g=>{const[b=0,y]=g||[void 0,void 0],x=y||n(),$=[b,x];return p?p($):$});};f.useMemo(()=>{u();},[l]);const m=i.opGet(l)[1];return f.useInsertionEffect(()=>(u(([p,g])=>[p+1,g]),xb.has(l)||(o?.(m),xb.set(l,true),Promise.resolve().then(()=>{xb.delete(l);})),()=>{i.opUpdate(l,p=>{const[g=0,b]=p||[];return g-1===0?(r?.(b,false),xb.delete(l),null):[g-1,b]});}),[l]),m}const vee={},bee="css",au=new Map;function yee(e){au.set(e,(au.get(e)||0)+1);}function See(e,t){typeof document<"u"&&document.querySelectorAll(`style[${pT}="${e}"]`).forEach(r=>{r[wu]===t&&r.parentNode?.removeChild(r);});}const Cee=-1;function xee(e,t){au.set(e,(au.get(e)||0)-1);const n=new Set;au.forEach((r,o)=>{r<=0&&n.add(o);}),au.size-n.size>Cee&&n.forEach(r=>{See(r,t),au.delete(r);});}const EB=(e,t,n,r)=>{let i={...n.getDerivativeToken(e),...t};return r&&(i=r(i)),i},wee="token";function $ee(e,t,n){const{cache:{instanceId:r},container:o,hashPriority:i}=f.useContext(Hu),{salt:s="",override:l=vee,formatToken:u,getComputedToken:d,cssVar:m,nonce:p}=n,g=mee(()=>Object.assign({},...t),t),b=Zh(g),y=Zh(l),S=Zh(m);return vT(wee,[s,e.id,b,y,S],()=>{const $=d?d(g,l,e):EB(g,l,e,u),w={...$},M=`${s}_${m.prefix}`,T=Mp(M),A=`${bee}-${T}`;w._tokenKey=hee(w,M);const[P,N]=$B($,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve,hashPriority:i,hashCls:m.hashed?A:void 0});return P._hashId=T,yee(m.key),[P,A,w,N,m.key]},([,,,,$])=>{xee($,r);},([,,,$,w])=>{if(!$)return;let M={mark:Ua,prepend:"queue",attachTo:o,priority:-999};M=gT(M,p);const T=nc($,Mp(`css-var-${w}`),M);T[wu]=r,T.setAttribute(pT,w);})}var Eee={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-",Jh="-moz-",En="-webkit-",MB="comm",bT="rule",yT="decl",Mee="@import",Tee="@namespace",TB="@keyframes",Aee="@layer",AB=Math.abs,ST=String.fromCharCode,IE=Object.assign;function Ree(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 RB(e){return e.trim()}function La(e,t){return (e=t.exec(e))?e[0]:e}function Jt(e,t,n){return e.replace(t,n)}function vy(e,t,n){return e.indexOf(t,n)}function Dr(e,t){return e.charCodeAt(t)|0}function Vu(e,t,n){return e.slice(t,n)}function bs(e){return e.length}function NB(e){return e.length}function Hh(e,t){return t.push(e),e}function Nee(e,t){return e.map(t).join("")}function TI(e,t){return e.filter(function(n){return !La(n,t)})}var A1=1,Of=1,PB=0,rs=0,Tr=0,tm="";function R1(e,t,n,r,o,i,s,l){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:A1,column:Of,length:s,return:"",siblings:l}}function Fl(e,t){return IE(R1("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Hd(e){for(;e.root;)e=Fl(e.root,{children:[e]});Hh(e,e.siblings);}function Pee(){return Tr}function Iee(){return Tr=rs>0?Dr(tm,--rs):0,Of--,Tr===10&&(Of=1,A1--),Tr}function Ms(){return Tr=rs<PB?Dr(tm,rs++):0,Of++,Tr===10&&(Of=1,A1++),Tr}function Xl(){return Dr(tm,rs)}function by(){return rs}function N1(e,t){return Vu(tm,e,t)}function Ap(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 Oee(e){return A1=Of=1,PB=bs(tm=e),rs=0,[]}function Dee(e){return tm="",e}function mw(e){return RB(N1(rs-1,OE(e===91?e+2:e===40?e+1:e)))}function Lee(e){for(;(Tr=Xl())&&Tr<33;)Ms();return Ap(e)>2||Ap(Tr)>3?"":" "}function kee(e,t){for(;--t&&Ms()&&!(Tr<48||Tr>102||Tr>57&&Tr<65||Tr>70&&Tr<97););return N1(e,by()+(t<6&&Xl()==32&&Ms()==32))}function OE(e){for(;Ms();)switch(Tr){case e:return rs;case 34:case 39:e!==34&&e!==39&&OE(Tr);break;case 40:e===41&&OE(e);break;case 92:Ms();break}return rs}function _ee(e,t){for(;Ms()&&e+Tr!==57;)if(e+Tr===84&&Xl()===47)break;return "/*"+N1(t,rs-1)+"*"+ST(e===47?e:Ms())}function Bee(e){for(;!Ap(Xl());)Ms();return N1(e,rs)}function AI(e){return Dee(yy("",null,null,null,[""],e=Oee(e),0,[0],e))}function yy(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,$=1,w=0,M="",T=o,A=i,P=r,N=M;x;)switch(y=w,w=Ms()){case 40:if(y!=108&&Dr(N,p-1)==58){vy(N+=Jt(mw(w),"&","&\f"),"&\f",AB(d?l[d-1]:0))!=-1&&($=-1);break}case 34:case 39:case 91:N+=mw(w);break;case 9:case 10:case 13:case 32:N+=Lee(y);break;case 92:N+=kee(by()-1,7);continue;case 47:switch(Xl()){case 42:case 47:Hh(zee(_ee(Ms(),by()),t,n,u),u),(Ap(y||1)==5||Ap(Xl()||1)==5)&&bs(N)&&Vu(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/";}break;case 123*S:l[d++]=bs(N)*$;case 125*S:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+m:$==-1&&(N=Jt(N,/\f/g,"")),b>0&&(bs(N)-p||S===0&&y===47)&&Hh(b>32?NI(N+";",r,n,p-1,u):NI(Jt(N," ","")+";",r,n,p-2,u),u);break;case 59:N+=";";default:if(Hh(P=RI(N,t,n,d,m,o,l,M,T=[],A=[],p,i),i),w===123)if(m===0)yy(N,t,P,P,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?yy(e,P,P,r&&Hh(RI(e,P,P,0,0,o,l,M,o,T=[],p,A),A),o,A,p,l,r?T:A):yy(N,P,P,P,[""],A,0,l,A);}}d=m=b=0,S=$=1,M=N="",p=s;break;case 58:p=1+bs(N),b=y;default:if(S<1){if(w==123)--S;else if(w==125&&S++==0&&Iee()==125)continue}switch(N+=ST(w),w*S){case 38:$=m>0?1:(N+="\f",-1);break;case 44:l[d++]=(bs(N)-1)*$,$=1;break;case 64:Xl()===45&&(N+=mw(Ms())),g=Xl(),m=p=bs(M=N+=Bee(by())),w++;break;case 45:y===45&&bs(N)==2&&(S=0);}}return i}function RI(e,t,n,r,o,i,s,l,u,d,m,p){for(var g=o-1,b=o===0?i:[""],y=NB(b),S=0,x=0,$=0;S<r;++S)for(var w=0,M=Vu(e,g+1,g=AB(x=s[S])),T=e;w<y;++w)(T=RB(x>0?b[w]+" "+M:Jt(M,/&\f/g,b[w])))&&(u[$++]=T);return R1(e,t,n,o===0?bT:l,u,d,m,p)}function zee(e,t,n,r){return R1(e,t,n,MB,ST(Pee()),Vu(e,2,-2),0,r)}function NI(e,t,n,r,o){return R1(e,t,n,yT,Vu(e,0,r),Vu(e,r+1,-1),r,o)}function IB(e,t,n){switch(Ree(e,t)){case 5103:return En+"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 En+e+e;case 4855:return En+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Jh+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return En+e+Jh+e+Yn+e+e;case 5936:switch(Dr(e,t+11)){case 114:return En+e+Yn+Jt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return En+e+Yn+Jt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return En+e+Yn+Jt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return En+e+Yn+e+e;case 6165:return En+e+Yn+"flex-"+e+e;case 5187:return En+e+Jt(e,/(\w+).+(:[^]+)/,En+"box-$1$2"+Yn+"flex-$1$2")+e;case 5443:return En+e+Yn+"flex-item-"+Jt(e,/flex-|-self/g,"")+(La(e,/flex-|baseline/)?"":Yn+"grid-row-"+Jt(e,/flex-|-self/g,""))+e;case 4675:return En+e+Yn+"flex-line-pack"+Jt(e,/align-content|flex-|-self/g,"")+e;case 5548:return En+e+Yn+Jt(e,"shrink","negative")+e;case 5292:return En+e+Yn+Jt(e,"basis","preferred-size")+e;case 6060:return En+"box-"+Jt(e,"-grow","")+En+e+Yn+Jt(e,"grow","positive")+e;case 4554:return En+Jt(e,/([^-])(transform)/g,"$1"+En+"$2")+e;case 6187:return Jt(Jt(Jt(e,/(zoom-|grab)/,En+"$1"),/(image-set)/,En+"$1"),e,"")+e;case 5495:case 3959:return Jt(e,/(image-set\([^]*)/,En+"$1$`$1");case 4968:return Jt(Jt(e,/(.+:)(flex-)?(.*)/,En+"box-pack:$3"+Yn+"flex-pack:$3"),/space-between/,"justify")+En+e+e;case 4200:if(!La(e,/flex-|baseline/))return Yn+"grid-column-align"+Vu(e,t)+e;break;case 2592:case 3360:return Yn+Jt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,La(r.props,/grid-\w+-end/)})?~vy(e+(n=n[t].value),"span",0)?e:Yn+Jt(e,"-start","")+e+Yn+"grid-row-span:"+(~vy(n,"span",0)?La(n,/\d+/):+La(n,/\d+/)-+La(e,/\d+/))+";":Yn+Jt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return La(r.props,/grid-\w+-start/)})?e:Yn+Jt(Jt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Jt(e,/(.+)-inline(.+)/,En+"$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(bs(e)-1-t>6)switch(Dr(e,t+1)){case 109:if(Dr(e,t+4)!==45)break;case 102:return Jt(e,/(.+:)(.+)-([^]+)/,"$1"+En+"$2-$3$1"+Jh+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~vy(e,"stretch",0)?IB(Jt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Jt(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 Jt(e,":",":"+En)+e;break;case 6444:switch(Dr(e,Dr(e,14)===45?18:11)){case 120:return Jt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+En+(Dr(e,14)===45?"inline-":"")+"box$3$1"+En+"$2$3$1"+Yn+"$2box$3")+e;case 100:return Jt(e,":",":"+Yn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Jt(e,"scroll-","scroll-snap-")+e}return e}function Rp(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function PI(e,t,n,r){switch(e.type){case Aee:if(e.children.length)break;case Mee:case Tee:case yT:return e.return=e.return||e.value;case MB:return "";case TB:return e.return=e.value+"{"+Rp(e.children,r)+"}";case bT:if(!bs(e.value=e.props.join(",")))return ""}return bs(n=Rp(e.children,r))?e.return=e.value+"{"+n+"}":""}function Fee(e){var t=NB(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 Hee(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case yT:e.return=IB(e.value,e.length,n);return;case TB:return Rp([Fl(e,{value:Jt(e.value,"@","@"+En)})],r);case bT:if(e.length)return Nee(n=e.props,function(o){switch(La(o,r=/(::plac\w+|:read-\w+)/)){case ":read-only":case ":read-write":Hd(Fl(e,{props:[Jt(o,/:(read-\w+)/,":"+Jh+"$1")]})),Hd(Fl(e,{props:[o]})),IE(e,{props:TI(n,r)});break;case "::placeholder":Hd(Fl(e,{props:[Jt(o,/:(plac\w+)/,":"+En+"input-$1")]})),Hd(Fl(e,{props:[Jt(o,/:(plac\w+)/,":"+Jh+"$1")]})),Hd(Fl(e,{props:[Jt(o,/:(plac\w+)/,Yn+"input-$1")]})),Hd(Fl(e,{props:[o]})),IE(e,{props:TI(n,r)});break}return ""})}}const II="data-ant-cssinjs-cache-path",OB="_FILE_STYLE__";let $u,DB=true;function Vee(){if(!$u&&($u={},Ii())){const e=document.createElement("div");e.className=II,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(":");$u[o]=i;});const n=document.querySelector(`style[${II}]`);n&&(DB=false,n.parentNode?.removeChild(n)),document.body.removeChild(e);}}function jee(e){return Vee(),!!$u[e]}function Uee(e){const t=$u[e];let n=null;if(t&&Ii())if(DB)n=OB;else {const r=document.querySelector(`style[${Ua}="${$u[e]}"]`);r?n=r.innerHTML:delete $u[e];}return [n,t]}const Wee="_skip_check_",LB="_multi_value_";function hw(e,t){return (t?Rp(AI(e),Fee([Hee,PI])):Rp(AI(e),PI)).replace(/\{%%%\:[^;];}/g,";")}function Gee(e){return typeof e=="object"&&e&&(Wee in e||LB in e)}function OI(e,t,n="high"){if(!t)return e;const r=wB({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 DE=(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 $=x.getName(i);if(!g[$]){const[w]=DE(x.style,t,{root:false,parentSelectors:o});g[$]=`@keyframes ${x.getName(i)}${w}`;}}function y(x,$=[]){return x.forEach(w=>{Array.isArray(w)?y(w,$):w&&$.push(w);}),$}return y(Array.isArray(e)?e:[e]).forEach(x=>{const $=typeof x=="string"&&!n?{}:x;if(typeof $=="string")p+=`${$}
`;else if($._keyframe)b($);else {const w=d.reduce((M,T)=>T?.visit?.(M)||M,$);Object.keys(w).forEach(M=>{const T=w[M];if(typeof T=="object"&&T&&(M!=="animationName"||!T._keyframe)&&!Gee(T)){let A=false,P=M.trim(),N=false;(n||r)&&i?P.startsWith("@")?A=true:P==="&"?P=OI("",i,u):P=OI(M,i,u):n&&!i&&(P==="&"||P==="")&&(P="",N=true);const[I,O]=DE(T,t,{root:N,injectHash:A,parentSelectors:[...o,P]});g={...g,...O},p+=`${P}${I}`;}else {let A=function(N,I){const O=N.replace(/[A-Z]/g,L=>`-${L.toLowerCase()}`);let D=I;!Eee[N]&&typeof D=="number"&&D!==0&&(D=`${D}px`),N==="animationName"&&I?._keyframe&&(b(I),D=I.getName(i)),p+=`${O}:${D};`;};const P=T?.value??T;typeof T=="object"&&T?.[LB]&&Array.isArray(P)?P.forEach(N=>{A(M,N);}):pee(P)&&A(M,P);}});}}),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 kB(e,t){return Mp(`${e.join("%")}${t}`)}const qee="style";function LE(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(Hu),x=[r||""];y&&x.push("layer"),x.push(...n);let $=PE;vT(qee,x,()=>{const w=x.join("|");if(jee(w)){const[I,O]=Uee(w);if(I)return [I,O,{},s,l]}const M=t(),[T,A]=DE(M,{hashId:r,hashPriority:d,layer:y?o:void 0,path:n.join("-"),transformers:p,linters:g}),P=hw(T,S||false),N=kB(x,P);return [P,N,A,s,l]},(w,M)=>{const[,T]=w;M&&PE&&Tp(T,{mark:Ua,attachTo:m});},w=>{const[M,T,A,,P]=w;if($&&M!==OB){let N={mark:Ua,prepend:y?false:"queue",attachTo:m,priority:P};N=gT(N,i);const I=[],O=[];Object.keys(A).forEach(L=>{L.startsWith("@layer")?I.push(L):O.push(L);}),I.forEach(L=>{nc(hw(A[L],S||false),`_layer-${L}`,{...N,prepend:true});});const D=nc(M,T,N);D[wu]=b.instanceId,O.forEach(L=>{nc(hw(A[L],S||false),`_effect-${L}`,N);});}});}const Kee="cssVar",Yee=(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(Hu),{_tokenKey:b}=s,y=Array.isArray(u)?u.join("@@"):u,S=[...e.path,n,y,b];return vT(Kee,S,()=>{const $=t(),[w,M]=$B($,n,{prefix:r,unitless:o,ignore:i,scope:u,hashPriority:g,hashCls:l}),T=kB(S,M);return [w,M,T,n]},([,,$])=>{PE&&Tp($,{mark:Ua,attachTo:p});},([,$,w])=>{if(!$)return;let M={mark:Ua,prepend:"queue",attachTo:p,priority:-999};M=gT(M,d);const T=nc($,w,M);T[wu]=m,T.setAttribute(pT,n);})};class Ft{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 Xee(e){if(Array.isArray(e))return e}function Qee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,l=[],u=true,d=false;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1;}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(m){d=true,o=m;}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return l}}function Zee(){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 CT(e,t){return Xee(e)||Qee(e,t)||fT(e,t)||Zee()}function Jee(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 _B(e){var t=Jee(e,"string");return Ar(t)=="symbol"?t:t+""}function Ct(e,t,n){return (t=_B(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function DI(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?DI(Object(n),true).forEach(function(r){Ct(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function cs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LI(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,_B(r.key),r);}}function us(e,t,n){return t&&LI(e.prototype,t),n&&LI(e,n),Object.defineProperty(e,"prototype",{writable:false}),e}function Sf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Np(e,t){return Np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Np(e,t)}function BB(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&&Np(e,t);}function Pp(e){return Pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pp(e)}function xT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (xT=function(){return !!e})()}function ete(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 Sf(e)}function zB(e){var t=xT();return function(){var n,r=Pp(e);if(t){var o=Pp(this).constructor;n=Reflect.construct(r,arguments,o);}else n=r.apply(this,arguments);return ete(this,n)}}var tte=us(function e(){cs(this,e);}),FB="CALC_UNIT",nte=new RegExp(FB,"g");function pw(e){return typeof e=="number"?"".concat(e).concat(FB):e}var rte=(function(e){BB(n,e);var t=zB(n);function n(r,o){var i;cs(this,n),i=t.call(this),Ct(Sf(i),"result",""),Ct(Sf(i),"unitlessCssVar",void 0),Ct(Sf(i),"lowPriority",void 0);var s=Ar(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):s==="number"?i.result=pw(r):s==="string"&&(i.result=r),i}return us(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(pw(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(pw(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(nte,u?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(tte),ote=function(t,n){var r=rte;return function(o){return new r(o,n)}},kI=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 _I(e,t,n,r){var o=rr({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(l){var u=CT(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 HB=typeof CSSINJS_STATISTIC<"u",kE=true;function Vt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!HB)return Object.assign.apply(Object,[{}].concat(t));kE=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]}});});}}),kE=true,r}var BI={};function ite(){}var ste=function(t){var n,r=t,o=ite;return HB&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(s,l){if(kE){var u;(u=n)===null||u===void 0||u.add(l);}return s[l]}}),o=function(s,l){var u;BI[s]={global:Array.from(n),component:rr(rr({},(u=BI[s])===null||u===void 0?void 0:u.component),l)};}),{token:r,keys:n,flush:o}};function zI(e,t,n){if(typeof n=="function"){var r;return n(Vt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function ate(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 ie(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 ie(i)}).join(","),")")}}}var lte=1e3*60*10,cte=(function(){function e(){cs(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 us(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>lte&&(n.map.delete(i),n.lastAccessBeat.delete(i));}),this.accessBeat=0;}}}]),e})(),FI=new cte;function ute(e,t){return q.useMemo(function(){var n=FI.get(t);if(n)return n;var r=e();return FI.set(t,r),r},t)}var dte=function(){return {}};function fte(e){var t=e.useCSP,n=t===void 0?dte: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 $(I){return "".concat(String(x)).concat(I.slice(0,1).toUpperCase()).concat(I.slice(1))}var w=S?.unitless||{},M=typeof l=="function"?l(g):{},T=rr(rr({},M),{},Ct({},$("zIndexPopup"),true));Object.keys(w).forEach(function(I){T[$(I)]=w[I];});var A=rr(rr({},S),{},{unitless:T,prefixToken:$}),P=m(g,b,y,A),N=d(x,y,A);return function(I){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,D=P(I,O),L=S?.extraCssVarPrefixCls,V=typeof L=="function"?L({prefixCls:I,rootCls:O}):L,U=N(V!=null&&V.length?[O].concat(Qt(V)):O);return [D,U]}}function d(g,b,y){var S=y.unitless,x=y.prefixToken,$=y.ignore;return function(w){var M=r(),T=M.cssVar,A=M.realToken,P=n();return Yee({path:[g],prefix:T.prefix,key:T.key,unitless:S,ignore:$,token:A,scope:w,nonce:function(){return P.nonce}},function(){var N=zI(g,A,b),I=_I(g,A,N,{deprecatedTokens:y?.deprecatedTokens});return N&&Object.keys(N).forEach(function(O){I[x(O)]=I[O],delete I[O];}),I}),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],$=CT(x,1),w=$[0],M=x.join("-"),T=e.layer||{name:"antd"};return function(A){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A,N=r(),I=N.theme,O=N.realToken,D=N.hashId,L=N.token,V=N.cssVar,U=N.zeroRuntime,W=f.useMemo(function(){return U},[]);if(W)return D;var z=o(),k=z.rootPrefixCls,G=z.iconPrefixCls,j=n(),K="css",X=ute(function(){var te=new Set;return Object.keys(S.unitless||{}).forEach(function(ne){te.add(gy(ne,V.prefix)),te.add(gy(ne,kI(w,V.prefix)));}),ote(K,te)},[K,w,V?.prefix]),B=ate(),H=B.max,Q=B.min,J={theme:I,token:L,hashId:D,nonce:function(){return j.nonce},clientOnly:S.clientOnly,layer:T,order:S.order||-999};return typeof i=="function"&&LE(rr(rr({},J),{},{clientOnly:false,path:["Shared",k]}),function(){return i(L,{prefix:{rootPrefixCls:k,iconPrefixCls:G},csp:j})}),LE(rr(rr({},J),{},{path:[M,A,G]}),function(){if(S.injectStyle===false)return [];var te=ste(L),ne=te.token,re=te.flush,oe=zI(w,O,y),de=".".concat(A),ee=_I(w,O,oe,{deprecatedTokens:S.deprecatedTokens});oe&&Ar(oe)==="object"&&Object.keys(oe).forEach(function(Ee){oe[Ee]="var(".concat(gy(Ee,kI(w,V.prefix)),")");});var se=Vt(ne,{componentCls:de,prefixCls:A,iconCls:".".concat(G),antCls:".".concat(k),calc:X,max:H,min:Q},oe),le=b(se,{hashId:D,prefixCls:A,rootPrefixCls:k,iconPrefixCls:G});re(w,ee);var ae=typeof s=="function"?s(se,A,P,S.resetFont):null;return [S.resetStyle===false?null:ae,le]}),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)),$=function(M){var T=M.prefixCls,A=M.rootCls,P=A===void 0?T:A;return x(T,P),null};return $}return {genStyleHooks:u,genSubStyleComponent:p,genComponentStyleHook:m}}const ia=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Sy(e){return (e+8)/e}function mte(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:Sy(n)}))}const hte="6.3.7",wT={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"},Df={...wT,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},pte={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"},Wr=Math.round;function gw(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 HI=(e,t,n)=>n===0?e:e/100;function Sh(e,t){const n=t||255;return e>n?n:e<0?0:e}class vn{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=pte[r.toLowerCase()];i&&this.fromHexString(parseInt(i,36).toString(16).padStart(6,"0"));}}else if(t instanceof vn)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=Sh(t.r),this.g=Sh(t.g),this.b=Sh(t.b),this.a=typeof t.a=="number"?Sh(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=Wr(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:Wr(i("r")),g:Wr(i("g")),b:Wr(i("b")),a:Wr(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=>Wr((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=Wr(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=Wr(this.getHSLSaturation()*100),r=Wr(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]=Sh(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=Wr(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=Wr((s+g)*255),this.g=Wr((l+g)*255),this.b=Wr((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=Wr(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=Wr(r*(1-n)*255),p=Wr(r*(1-n*d)*255),g=Wr(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=gw(t,HI);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]});}fromHslString(t){const n=gw(t,HI);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]});}fromRgbString(t){const n=gw(t,(r,o)=>o.includes("%")?Wr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3];}}const wb=2,VI=.16,gte=.05,vte=.05,bte=.15,VB=5,jB=4,yte=[{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 jI(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-wb*t:Math.round(e.h)+wb*t:r=n?Math.round(e.h)+wb*t:Math.round(e.h)-wb*t,r<0?r+=360:r>=360&&(r-=360),r}function UI(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-VI*t:t===jB?r=e.s+VI:r=e.s+gte*t,r>1&&(r=1),n&&t===VB&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function WI(e,t,n){let r;return n?r=e.v+vte*t:r=e.v-bte*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function gg(e,t={}){const n=[],r=new vn(e),o=r.toHsv();for(let i=VB;i>0;i-=1){const s=new vn({h:jI(o,i,true),s:UI(o,i,true),v:WI(o,i,true)});n.push(s);}n.push(r);for(let i=1;i<=jB;i+=1){const s=new vn({h:jI(o,i),s:UI(o,i),v:WI(o,i)});n.push(s);}return t.theme==="dark"?yte.map(({index:i,amount:s})=>new vn(t.backgroundColor||"#141414").mix(n[i],s).toHexString()):n.map(i=>i.toHexString())}const vw={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"},_E=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];_E.primary=_E[5];const BE=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];BE.primary=BE[5];const zE=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];zE.primary=zE[5];const FE=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];FE.primary=FE[5];const HE=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];HE.primary=HE[5];const VE=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];VE.primary=VE[5];const jE=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];jE.primary=jE[5];const UE=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];UE.primary=UE[5];const d0=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];d0.primary=d0[5];const WE=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];WE.primary=WE[5];const GE=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];GE.primary=GE[5];const qE=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];qE.primary=qE[5];const KE=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];KE.primary=KE[5];const bw={red:_E,volcano:BE,orange:zE,gold:FE,yellow:HE,lime:VE,green:jE,cyan:UE,blue:d0,geekblue:WE,purple:GE,magenta:qE,grey:KE};function UB(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,$=t(x),w=new vn(b[1]).mix(new vn(b[3]),50).toHexString(),M={};return ia.forEach(T=>{const A=e[T];if(A){const P=t(A);M[`${T}Hover`]=P[5],M[`${T}Active`]=P[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:w,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:$[4],colorLink:$[6],colorLinkActive:$[7],...M,colorBgMask:new vn("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const Ste=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 Cte(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,...Ste(r)}}const WB=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},GB=e=>{const t=mte(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 xte(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 ji=(e,t)=>new vn(e).setA(t).toRgbString(),jd=(e,t)=>new vn(e).darken(t).toHexString(),wte=e=>{const t=gg(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]}},$te=(e,t,n)=>{const r=e||"#fff",o=t||"#000";return {colorBgBase:r,colorTextBase:o,colorShadow:n||"#000",colorText:ji(o,.88),colorTextSecondary:ji(o,.65),colorTextTertiary:ji(o,.45),colorTextQuaternary:ji(o,.25),colorFill:ji(o,.15),colorFillSecondary:ji(o,.06),colorFillTertiary:ji(o,.04),colorFillQuaternary:ji(o,.02),colorBgSolid:ji(o,1),colorBgSolidHover:ji(o,.75),colorBgSolidActive:ji(o,.95),colorBgLayout:jd(r,4),colorBgContainer:jd(r,0),colorBgElevated:jd(r,0),colorBgSpotlight:ji(o,.85),colorBgBlur:"transparent",colorBorder:jd(r,15),colorBorderDisabled:jd(r,15),colorBorderSecondary:jd(r,6)}};function P1(e){vw.pink=vw.magenta,bw.pink=bw.magenta;const t=Object.keys(wT).map(n=>{const r=e[n]===vw[n]?bw[n]:gg(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,...UB(e,{generateColorPalettes:wte,generateNeutralColorPalettes:$te}),...GB(e.fontSize),...xte(e),...WB(e),...Cte(e)}}const $T=u0(P1),Ip={token:Df,override:{override:Df},hashed:true},ET=q.createContext(Ip);function yw(e){return e>=0&&e<=255}function Vh(e,t){const{r:n,g:r,b:o,a:i}=new vn(e).toRgb();if(i<1)return e;const{r:s,g:l,b:u}=new vn(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(yw(m)&&yw(p)&&yw(g))return new vn({r:m,g:p,b:g,a:Math.round(d*100)/100}).toRgbString()}return new vn({r:n,g:r,b:o,a:1}).toRgbString()}function qB(e){const{override:t,...n}=e,r={...t};Object.keys(Df).forEach(x=>{delete r[x];});const o={...n,...r},i=new vn(o.colorShadow),s=i.a,l=x=>i.clone().setA(s*x).toRgbString(),u=480,d=576,m=768,p=992,g=1200,b=1600,y=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:Vh(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:Vh(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Vh(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:Vh(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 ${l(.08)},
      0 3px 6px -4px ${l(.12)},
      0 9px 28px 8px ${l(.05)}
    `,boxShadowSecondary:`
      0 6px 16px 0 ${l(.08)},
      0 3px 6px -4px ${l(.12)},
      0 9px 28px 8px ${l(.05)}
    `,boxShadowTertiary:`
      0 1px 2px 0 ${l(.03)},
      0 1px 6px -1px ${l(.02)},
      0 2px 4px 0 ${l(.02)}
    `,screenXS:u,screenXSMin:u,screenXSMax:d-1,screenSM:d,screenSMMin:d,screenSMMax:m-1,screenMD:m,screenMDMin:m,screenMDMax:p-1,screenLG:p,screenLGMin:p,screenLGMax:g-1,screenXL:g,screenXLMin:g,screenXLMax:b-1,screenXXL:b,screenXXLMin:b,screenXXLMax:y-1,screenXXXL:y,screenXXXLMin:y,boxShadowPopoverArrow:`2px 2px 5px ${l(.05)}`,boxShadowCard:`
      0 1px 2px -2px ${l(.16)},
      0 3px 6px 0 ${l(.12)},
      0 5px 12px 4px ${l(.09)}
    `,boxShadowDrawerRight:`
      -6px 0 16px 0 ${l(.08)},
      -3px 0 6px -4px ${l(.12)},
      -9px 0 28px 8px ${l(.05)}
    `,boxShadowDrawerLeft:`
      6px 0 16px 0 ${l(.08)},
      3px 0 6px -4px ${l(.12)},
      9px 0 28px 8px ${l(.05)}
    `,boxShadowDrawerUp:`
      0 6px 16px 0 ${l(.08)},
      0 3px 6px -4px ${l(.12)},
      0 9px 28px 8px ${l(.05)}
    `,boxShadowDrawerDown:`
      0 -6px 16px 0 ${l(.08)},
      0 -3px 6px -4px ${l(.12)},
      0 -9px 28px 8px ${l(.05)}
    `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${l(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${l(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${l(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${l(.08)}`,...r}}const KB={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},Ete={motionBase:true,motionUnit:true},Mte={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},YB=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o,...i}=t;let s={...r,override:o};return s=qB(s),i&&Object.entries(i).forEach(([l,u])=>{const{theme:d,...m}=u;let p=m;d&&(p=YB({...s,...m},{override:m},d)),s[l]=p;}),s};function Qr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o,zeroRuntime:i}=q.useContext(ET),{csp:s}=q.useContext($t),l={prefix:o?.prefix??"ant",key:o?.key??"css-var-root"},u=`${hte}-${t||""}`,d=n||$T,[m,p,g]=$ee(d,[Df,e],{salt:u,override:r,getComputedToken:YB,cssVar:{...l,unitless:KB,ignore:Ete,preserve:Mte},nonce:s?.nonce});return [d,g,t?p:"",m,l,!!i]}const sa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},hn=(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}),Xu=()=>({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"}}),f0=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),os=(e,t)=>({outline:`${ie(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),ai=(e,t)=>({"&:focus-visible":os(e,t)}),Tte=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},...ai(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Ate=(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}}},XB=e=>({[`.${e}`]:{...Xu(),[`.${e} .${e}-icon`]:{display:"block"}}}),Rte=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...ai(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:qt,genComponentStyleHook:Nte,genSubStyleComponent:nm}=fte({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=f.useContext($t);return {rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o,i]=Qr();return {theme:e,realToken:t,hashId:n,token:r,cssVar:o,zeroRuntime:i}},useCSP:()=>{const{csp:e}=f.useContext($t);return e??{}},getResetStyles:(e,t)=>{const n=Tte(e);return [n,{"&":n},XB(t?.prefix.iconPrefixCls??M1)]},getCommonStyle:Ate,getCompUnitless:()=>KB}),nr=(e,t)=>{const n=`--${e.replace(/\./g,"")}-${t}-`;return [i=>`${n}${i}`,(i,s)=>s?`var(${n}${i}, ${s})`:`var(${n}${i})`]};function I1(e,t){return ia.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 Pte=(e,t)=>(Qr(),LE({hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>XB(e)));var Ite={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 MT=f.createContext({});function QB(e){return e?.getRootNode?.()}function Ote(e){return QB(e)instanceof ShadowRoot}function m0(e){return Ote(e)?QB(e):null}function Dte(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function Lte(e,t){Pr(e,`[@ant-design/icons] ${t}`);}function GI(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function qI(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[Dte(n)]=r),t},{})}function YE(e,t,n){return n?q.createElement(e.tag,{key:t,...qI(e.attrs),...n},(e.children||[]).map((r,o)=>YE(r,`${t}-${e.tag}-${o}`))):q.createElement(e.tag,{key:t,...qI(e.attrs)},(e.children||[]).map((r,o)=>YE(r,`${t}-${e.tag}-${o}`)))}function ZB(e){return gg(e)[0]}function JB(e){return e?Array.isArray(e)?e:[e]:[]}const kte=`
.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 {
  -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);
  }
}
`,_te=e=>{const{csp:t,prefixCls:n,layer:r}=f.useContext(MT);let o=kte;n&&(o=o.replace(/anticon/g,n)),r&&(o=`@layer ${r} {
${o}
}`),f.useEffect(()=>{const i=e.current,s=m0(i);nc(o,"@ant-design-icons",{prepend:!r,csp:t,attachTo:s});},[]);},ep={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:false};function Bte({primaryColor:e,secondaryColor:t}){ep.primaryColor=e,ep.secondaryColor=t||ZB(e),ep.calculated=!!t;}function zte(){return {...ep}}const rm=e=>{const{icon:t,className:n,onClick:r,style:o,primaryColor:i,secondaryColor:s,...l}=e,u=f.useRef(null);let d=ep;if(i&&(d={primaryColor:i,secondaryColor:s||ZB(i)}),_te(u),Lte(GI(t),`icon should be icon definiton, but got ${t}`),!GI(t))return null;let m=t;return m&&typeof m.icon=="function"&&(m={...m,icon:m.icon(d.primaryColor,d.secondaryColor)}),YE(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})};rm.displayName="IconReact";rm.getTwoToneColors=zte;rm.setTwoToneColors=Bte;function ez(e){const[t,n]=JB(e);return rm.setTwoToneColors({primaryColor:t,secondaryColor:n})}function Fte(){const e=rm.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function XE(){return XE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},XE.apply(this,arguments)}ez(d0.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(MT),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]=JB(u);return f.createElement("span",XE({role:"img","aria-label":r.name},d,{ref:t,tabIndex:b,onClick:l,className:g}),f.createElement(rm,{icon:r,primaryColor:S,secondaryColor:x,style:y}))});Qn.getTwoToneColor=Fte;Qn.setTwoToneColor=ez;function QE(){return QE=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},QE.apply(this,arguments)}const Hte=(e,t)=>f.createElement(Qn,QE({},e,{ref:t,icon:Ite})),TT=f.forwardRef(Hte);var Vte={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 ZE(){return ZE=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},ZE.apply(this,arguments)}const jte=(e,t)=>f.createElement(Qn,ZE({},e,{ref:t,icon:Vte})),vg=f.forwardRef(jte);var Ute={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 JE(){return JE=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},JE.apply(this,arguments)}const Wte=(e,t)=>f.createElement(Qn,JE({},e,{ref:t,icon:Ute})),rl=f.forwardRef(Wte);var Gte={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 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)}const qte=(e,t)=>f.createElement(Qn,e2({},e,{ref:t,icon:Gte})),bg=f.forwardRef(qte);var Kte={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 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 Yte=(e,t)=>f.createElement(Qn,t2({},e,{ref:t,icon:Kte})),AT=f.forwardRef(Yte),tz=f.createContext({}),Xte=e=>{const{children:t,...n}=e,r=f.useMemo(()=>({motion:n.motion}),[n.motion]);return f.createElement(tz.Provider,{value:r},t)};function Qte(e){const[,t]=f.useReducer(i=>i+1,0),n=f.useRef(e),r=At(()=>n.current),o=At(i=>{n.current=typeof i=="function"?i(n.current):i,t();});return [r,o]}const Ws="none",$b="appear",Eb="enter",Mb="leave",KI="none",ys="prepare",lu="start",cu="active",RT="end",nz="prepared";function YI(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 Zte(e,t){const n={animationend:YI("Animation","AnimationEnd"),transitionend:YI("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const Jte=Zte(Ii(),typeof window<"u"?window:{});let rz={};Ii()&&({style:rz}=document.createElement("div"));const Tb={};function oz(e){if(Tb[e])return Tb[e];const t=Jte[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 rz)return Tb[e]=t[i],Tb[e]}}return ""}const iz=oz("animationend"),sz=oz("transitionend"),ene=!!(iz&&sz),XI=iz||"animationend",QI=sz||"transitionend";function ZI(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 tne=(e=>{const t=f.useRef();function n(o){o&&(o.removeEventListener(QI,e),o.removeEventListener(XI,e));}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(QI,e),o.addEventListener(XI,e),t.current=o);}return f.useEffect(()=>()=>{n(t.current),t.current=null;},[]),[r,n]}),az=Ii()?f.useLayoutEffect:f.useEffect,nne=(()=>{const e=f.useRef(null);function t(){zt.cancel(e.current);}function n(r,o=2){t();const i=zt(()=>{o<=1?r({isCanceled:()=>i!==e.current}):n(r,o-1);});e.current=i;}return f.useEffect(()=>()=>{t();},[]),[n,t]}),rne=[ys,lu,cu,RT],one=[ys,nz],lz=false,ine=true;function cz(e){return e===cu||e===RT}const sne=((e,t,n)=>{const[r,o]=aB(KI),[i,s]=nne();function l(){o(ys,true);}const u=t?one:rne;return az(()=>{if(r!==KI&&r!==RT){const d=u.indexOf(r),m=u[d+1],p=n(r);p===lz?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 ane(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:$,onEnterEnd:w,onLeaveEnd:M,onVisibleChanged:T}){const[A,P]=f.useState(),[N,I]=Qte(Ws),[O,D]=f.useState([null,null]),L=N(),V=f.useRef(false),U=f.useRef(null);function W(){return n()}const z=f.useRef(false);function k(){I(Ws),D([null,null]);}const G=At(oe=>{const de=N();if(de===Ws)return;const ee=W();if(oe&&!oe.deadline&&oe.target!==ee)return;const se=z.current;let le;de===$b&&se?le=$?.(ee,oe):de===Eb&&se?le=w?.(ee,oe):de===Mb&&se&&(le=M?.(ee,oe)),se&&le!==false&&k();}),[j]=tne(G),K=oe=>{switch(oe){case $b:return {[ys]:u,[lu]:p,[cu]:y};case Eb:return {[ys]:d,[lu]:g,[cu]:S};case Mb:return {[ys]:m,[lu]:b,[cu]:x};default:return {}}},X=f.useMemo(()=>K(L),[L]),[B,H]=sne(L,!e,oe=>{if(oe===ys){const de=X[ys];return de?de(W()):lz}return oe in X&&D([X[oe]?.(W(),null)||null,oe]),oe===cu&&L!==Ws&&(j(W()),s>0&&(clearTimeout(U.current),U.current=setTimeout(()=>{G({deadline:true});},s))),oe===nz&&k(),ine}),Q=cz(H);z.current=Q;const J=f.useRef(null);az(()=>{if(V.current&&J.current===t)return;P(t);const oe=V.current;V.current=true;let de;!oe&&t&&o&&(de=$b),oe&&t&&r&&(de=Eb),(oe&&!t&&i||!oe&&l&&!t&&i)&&(de=Mb);const ee=K(de);de&&(e||ee[ys])?(I(de),B()):I(Ws),J.current=t;},[t]),f.useEffect(()=>{(L===$b&&!o||L===Eb&&!r||L===Mb&&!i)&&I(Ws);},[o,r,i]),f.useEffect(()=>()=>{V.current=false,clearTimeout(U.current);},[]);const te=f.useRef(false);f.useEffect(()=>{A&&(te.current=true),A!==void 0&&L===Ws&&((te.current||A)&&T?.(A),te.current=true);},[A,L]);let ne=O[0];X[ys]&&H===lu&&(ne={transition:"none",...ne});const re=O[1];return [N,H,ne,A??t,!V.current&&L===Ws&&e&&o?"NONE":H===lu||H===cu?re===H:true]}function uz(e){return e?.length<2}function lne(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(tz),y=n(o,b),S=f.useRef();function x(){return Fu(S.current)}const[$,w,M,T,A]=ane(y,s,x,o),P=$(),N=f.useRef(T);T&&(N.current=true);const I=f.useMemo(()=>{const L={};return Object.defineProperties(L,{nativeElement:{enumerable:true,get:x},inMotion:{enumerable:true,get:()=>()=>$()!==Ws},enableMotion:{enumerable:true,get:()=>()=>y}}),L},[]);f.useImperativeHandle(i,()=>I,[]);const O=f.useRef(0);A&&(O.current+=1);const D=f.useMemo(()=>{if(A==="NONE")return null;let L;const V={...g,visible:s};if(!d)L=null;else if(P===Ws)T?L=d({...V},S):!l&&N.current&&p?L=d({...V,className:p},S):u||!l&&!p?L=d({...V,style:{display:"none"}},S):L=null;else {let U;w===ys?U="prepare":cz(w)?U="active":w===lu&&(U="start");const W=ZI(m,`${P}-${U}`);L=d({...V,className:Y(ZI(m,P),{[W]:W&&U,[m]:typeof m=="string"}),style:M},S);}return L},[O.current]);if(uz(d)&&cB(D)){const L=Cc(D);if(L!==S)return f.cloneElement(D,{ref:Fr(L,S)})}return D});return r.displayName="CSSMotion",r}const Io=lne(ene),n2="add",r2="keep",o2="remove",Sw="removed";function cne(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function i2(e=[]){return e.map(cne)}function une(e=[],t=[]){let n=[],r=0;const o=t.length,i=i2(e),s=i2(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:n2}))),r=p),n.push({...g,status:r2}),r+=1,m=true;break}}m||n.push({...d,status:o2});}),r<o&&(n=n.concat(s.slice(r).map(d=>({...d,status:n2}))));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!==o2),n.forEach(m=>{m.key===d&&(m.status=r2);});}),n}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 dne=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fne(e,t=Io){class n extends f.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:o},{keyEntities:i}){const s=i2(o);return {keyEntities:une(i,s).filter(u=>{const d=i.find(({key:m})=>u.key===m);return !(d&&d.status===Sw&&u.status===o2)})}}removeKey=o=>{this.setState(i=>({keyEntities:i.keyEntities.map(l=>l.key!==o?l:{...l,status:Sw})}),()=>{const{keyEntities:i}=this.state;i.filter(({status:l})=>l!==Sw).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 dne.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===n2||g===r2;return f.createElement(t,s2({},p,{key:b.key,visible:S,eventProps:b,onVisibleChanged:x=>{l?.(x,{key:b.key}),x||this.removeKey(b.key);}}),uz(s)?x=>s({...x,index:y}):(x,$)=>s({...x,index:y},$))}))}}return n}const mne=fne(),hne=`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`,pne=`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`,gne=`${hne} ${pne}`.split(/[\s\n]+/),vne="aria-",bne="data-";function JI(e,t){return e.indexOf(t)===0}function No(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"||JI(o,vne))||n.data&&JI(o,bne)||n.attr&&gne.includes(o))&&(r[o]=e[o]);}),r}const dz={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 yne={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:true};function Op(e){"@babel/helpers - typeof";return Op=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},Op(e)}function eO(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 tO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eO(Object(n),true).forEach(function(r){Sne(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Sne(e,t,n){return t=Cne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Cne(e){var t=xne(e,"string");return Op(t)=="symbol"?t:String(t)}function xne(e,t){if(Op(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Op(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}var wne=tO(tO({},yne),{},{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 fz={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},nO={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"],...wne},timePickerLocale:{...fz}},bi="${label} is not a valid ${type}",Ps={locale:"en",Pagination:dz,DatePicker:nO,TimePicker:fz,Calendar:nO,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:bi,method:bi,array:bi,object:bi,number:bi,date:bi,boolean:bi,integer:bi,float:bi,regexp:bi,email:bi,url:bi,hex:bi},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 Cy={...Ps.Modal},xy=[];const rO=()=>xy.reduce((e,t)=>({...e,...t}),Ps.Modal);function $ne(e){if(e){const t={...e};return xy.push(t),Cy=rO(),()=>{xy=xy.filter(n=>n!==t),Cy=rO();}}Cy={...Ps.Modal};}function mz(){return Cy}const NT=f.createContext(void 0),Ho=(e,t)=>{const n=f.useContext(NT),r=f.useMemo(()=>{const i=t||Ps[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?Ps.locale:i},[n]);return [r,o]},Ene="internalMark",Mne=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f.useEffect(()=>$ne(t?.Modal),[t]);const o=f.useMemo(()=>({...t,exist:true}),[t]);return f.createElement(NT.Provider,{value:o},n)};function oO(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r]);});}),t}const br=e=>e!=null,Fo=e=>typeof e=="number"&&!Number.isNaN(e),iO=e=>typeof e=="string",Cn=e=>e!==null&&typeof e=="object",PT=e=>typeof e=="function",Cw=e=>br(e)&&PT(e.then),Tne=e=>typeof e!="object"&&!PT(e)||e===null,ac=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return {closable:t,closeIcon:n}},hz={},sO=(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 Cn(e)&&(n={...n,...e}),n},Ane=(e,t,n)=>e===false?false:e?oO(n,t,e):t===false?false:t?oO(n,t):n.closable?n:false,Rne=(e,t,n)=>{const{closeIconRender:r}=t,{closeIcon:o,...i}=e;let s=o;const l=No(i,true);return br(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]},pz=(e,t,n=hz,r="Close")=>{const o=sO(e?.closable,e?.closeIcon),i=sO(t?.closable,t?.closeIcon),s={closeIcon:q.createElement(rl,null),...n},l=Ane(o,i,s),u=typeof l!="boolean"?!!l?.disabled:false;if(l===false)return [false,null,u,{}];const[d,m]=Rne(l,s,r);return [true,d,u,m]},IT=(e,t,n=hz)=>{const[r]=Ho("global",Ps.global);return q.useMemo(()=>pz(e,t,{closeIcon:q.createElement(rl,null),...n},r.close),[e,t,n,r.close])},gz=()=>q.useReducer(e=>e+1,0),a2=(e,t)=>{let n={};return Cn(e)&&(n=e),typeof e=="boolean"&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},Nne=(e,t,n,r)=>f.useMemo(()=>{const o=a2(e,r),i=a2(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]),O1=(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(Cn(s))if(Cn(l))r[i]=O1(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),{})},Pne=(e,...t)=>f.useMemo(()=>O1.apply(void 0,[e].concat(t)),[e].concat(t)),OT=(...e)=>e.filter(Boolean).reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]={...t[r],...n[r]};}),t),{}),Ine=(...e)=>f.useMemo(()=>OT.apply(void 0,e),[].concat(e)),l2=(e,t)=>{const n={...e};return Object.keys(t).forEach(r=>{if(r!=="_default"){const o=t[r],i=n[r]||{};n[r]=o?l2(i,o):i;}}),n},Ql=(e,t)=>typeof e=="function"?e(t):e,Yt=(e,t,n,r)=>{const o=e.map(u=>u?Ql(u,n):void 0),i=t.map(u=>u?Ql(u,n):void 0),s=Pne.apply(void 0,[r].concat(Qt(o))),l=Ine.apply(void 0,Qt(i));return f.useMemo(()=>r?[l2(s,r),l2(l,r)]:[s,l],[s,l,r])},aO=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]},lO=e=>e==="horizontal"||e==="vertical",Qu=(e,t,n)=>f.useMemo(()=>{const r=lO(e);let o;return r?o=e:typeof t=="boolean"?o=t?"vertical":"horizontal":o=lO(n)?n:"horizontal",[o,o==="vertical"]},[n,e,t]),One=()=>{const[e,t]=f.useState([]),n=f.useCallback(r=>(t(o=>[].concat(Qt(o),[r])),()=>{t(o=>o.filter(i=>i!==r));}),[]);return [e,n]},D1=q.createContext(void 0),Hl=100,Dne=10,DT=Hl*Dne,vz={Modal:Hl,Drawer:Hl,Popover:Hl,Popconfirm:Hl,Tooltip:Hl,Tour:Hl,FloatButton:Hl},Lne={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},kne=e=>e in vz,Zu=(e,t)=>{const[,n]=Qr(),r=q.useContext(D1),o=kne(e);let i;if(t!==void 0)i=[t,t];else {let s=r??0;o?s+=(r?0:n.zIndexPopupBase)+vz[e]:s+=Lne[e],i=[r===void 0?t:s,s];}return i},c2=e=>br(e)&&e===e.window,bz=e=>{if(typeof window>"u")return 0;let t=0;return c2(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!c2(e)&&typeof t!="number"&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function _ne(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=bz(i),l=Date.now();let u;const d=()=>{const p=Date.now()-l,g=_ne(p>o?o:p,s,e,o);c2(i)?i.scrollTo(window.pageXOffset,g):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=g:i.scrollTop=g,p<o?u=zt(d):typeof r=="function"&&r();};return u=zt(d),()=>{zt.cancel(u);}}const Zn=e=>`${e}-css-var`,zne=f.createContext(void 0);var Lo=k9();const yz=f.createContext(null);let Fne=false;function Hne(e){return Fne}const cO=[];function Vne(e,t){const[n]=f.useState(()=>Ii()?document.createElement("div"):null),r=f.useRef(false),o=f.useContext(yz),[i,s]=f.useState(cO),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 In(()=>(e?o?o(u):u():d(),d),[e]),In(()=>{i.length&&(i.forEach(m=>m()),s(cO));},[i]),[n,l]}function jne(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};`:"";nc(`
#${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),Tp(t),{width:s,height:l}}function Une(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:jne(e)}function Wne(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const Gne=`rc-util-locker-${Date.now()}`;let uO=0;function qne(e){const t=!!e,[n]=f.useState(()=>(uO+=1,`${Gne}_${uO}`));In(()=>{if(t){const r=Une(document.body).width,o=Wne();nc(`
html body {
  overflow-y: hidden;
  ${o?`width: calc(100% - ${r}px);`:""}
}`,n);}else Tp(n);return ()=>{Tp(n);}},[t,n]);}function Kne(){return {...pE}.useId}let dO=0;const fO=Kne(),ol=fO?(function(t){const n=fO();return t||n}):(function(t){const[n,r]=f.useState("ssr-id");return f.useEffect(()=>{const o=dO;dO+=1,r(`rc_unique_${o}`);},[]),t||n});let mu=[];const Yne=200;let Sz=0;const Cz=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-Sz<Yne)return;const n=mu.length;for(let r=n-1;r>=0;r-=1)mu[r].onEsc({top:r===n-1,event:e});}},xz=()=>{Sz=Date.now();};function Xne(){window.addEventListener("keydown",Cz),window.addEventListener("compositionend",xz);}function Qne(){mu.length===0&&(window.removeEventListener("keydown",Cz),window.removeEventListener("compositionend",xz));}function Zne(e,t){const n=ol(),r=At(t),o=()=>{mu.find(s=>s.id===n)||mu.push({id:n,onEsc:r});},i=()=>{mu=mu.filter(s=>s.id!==n);};f.useMemo(()=>{e?o():e||i();},[e]),f.useEffect(()=>{if(e)return o(),Xne(),()=>{i(),Qne();}},[e]);}const mO=e=>e===false?false:!Ii()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,L1=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(()=>mO(o));f.useEffect(()=>{const A=mO(o);b(()=>A??null);});const[y,S]=Vne(p&&!g),x=g??y;qne(r&&n&&Ii()&&(x===y||x===document.body)),Zne(n,u);let $=null;l&&em(l)&&t&&($=Cc(l));const w=nl($,t);if(!p||!Ii()||g===void 0)return null;const M=x===false||Hne();let T=l;return t&&(T=f.cloneElement(l,{ref:w})),f.createElement(yz.Provider,{value:S},M?T:Lo.createPortal(T,x))});function Jne(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],$=b[1];y===x||!["t","b"].includes(y)?p.top=d:y==="t"?p.top=0:p.bottom=0,S===$||!["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 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)}function ere(e){const{prefixCls:t,open:n,zIndex:r,mask:o,motion:i,mobile:s}=e;return o?f.createElement(Io,u2({},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 tre=f.memo(({children:e})=>e,(e,t)=>t.cache);function wz(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 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 $z=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:$,maskMotion:w,mobile:M,forceRender:T,getPopupContainer:A,autoDestroy:P,portal:N,children:I,zIndex:O,onMouseEnter:D,onMouseLeave:L,onPointerEnter:V,onPointerDownCapture:U,ready:W,offsetX:z,offsetY:k,offsetR:G,offsetB:j,onAlign:K,onPrepare:X,onResize:B,stretch:H,targetWidth:Q,targetHeight:J}=e,te=typeof r=="function"?r():r,ne=d||m,re=!!M,[oe,de,ee]=f.useMemo(()=>M?[M.mask,M.maskMotion,M.motion]:[b,w,$],[M,b,w,$]),se=A?.length>0,[le,ae]=f.useState(!A||!se);In(()=>{!le&&se&&l&&ae(true);},[le,se,l]);const Ee=At((ge,Ce)=>{B?.(ge,Ce),K();}),ce=wz(re,W,d,x,G,j,z,k);if(!le)return null;const he={};return H&&(H.includes("height")&&J?he.height=J:H.includes("minHeight")&&J&&(he.minHeight=J),H.includes("width")&&Q?he.width=Q:H.includes("minWidth")&&Q&&(he.minWidth=Q)),d||(he.pointerEvents="none"),f.createElement(N,{open:T||ne,getContainer:A&&(()=>A(l)),autoDestroy:P,onEsc:n},f.createElement(ere,{prefixCls:i,open:d,zIndex:O,mask:oe,motion:de,mobile:re}),f.createElement(Es,{onResize:Ee,disabled:!d},ge=>f.createElement(Io,d2({motionAppear:true,motionEnter:true,motionLeave:true,removeOnLeave:false,forceRender:T,leavedClassName:`${i}-hidden`},ee,{onAppearPrepare:X,onEnterPrepare:X,visible:d,onVisibleChanged:Ce=>{$?.onVisibleChanged?.(Ce),u(Ce);}}),({className:Ce,style:Re},et)=>{const Ne=Y(i,Ce,o,{[`${i}-mobile`]:re});return f.createElement("div",{ref:Fr(ge,t,et),className:Ne,style:{"--arrow-x":`${S.x||0}px`,"--arrow-y":`${S.y||0}px`,...ce,...he,...Re,boxSizing:"border-box",zIndex:O,...s},onMouseEnter:D,onMouseLeave:L,onPointerEnter:V,onClick:g,onPointerDownCapture:U},y&&f.createElement(Jne,{prefixCls:i,arrow:y,arrowPos:S,align:x}),f.createElement(tre,{cache:!d&&!p},te))})),I)}),h0=f.createContext(null),Ez=f.createContext(null);function hO(e){return e?Array.isArray(e)?e:[e]:[]}function nre(e,t,n){return f.useMemo(()=>{const r=hO(t??e),o=hO(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 LT=(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 rre(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 Mz(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(rre(e[l]?.points,o,r))return `${t}-placement-${l}`}return ""}function yg(e){return e.ownerDocument.defaultView}function f2(e){const t=[];let n=e?.parentElement;const r=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:o,overflowY:i,overflow:s}=yg(n).getComputedStyle(n);[o,i,s].some(l=>r.includes(l))&&t.push(n),n=n.parentElement;}return t}function Dp(e,t=1){return Number.isNaN(e)?t:e}function Ch(e){return Dp(parseFloat(e),0)}function pO(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}=yg(r).getComputedStyle(r),m=r.getBoundingClientRect(),{offsetHeight:p,clientHeight:g,offsetWidth:b,clientWidth:y}=r,S=Ch(s),x=Ch(l),$=Ch(u),w=Ch(d),M=Dp(Math.round(m.width/b*1e3)/1e3),T=Dp(Math.round(m.height/p*1e3)/1e3),A=(b-y-$-w)*M,P=(p-g-S-x)*T,N=S*T,I=x*T,O=$*M,D=w*M;let L=0,V=0;if(o==="clip"){const G=Ch(i);L=G*M,V=G*T;}const U=m.x+O-L,W=m.y+N-V,z=U+m.width+2*L-O-D-A,k=W+m.height+2*V-N-I-P;n.left=Math.max(n.left,U),n.top=Math.max(n.top,W),n.right=Math.min(n.right,z),n.bottom=Math.min(n.bottom,k);}),n}function gO(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function vO(e,t){const[n,r]=t||[];return [gO(e.width,n),gO(e.height,r)]}function bO(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 _l(e,t){const n={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=n[e[t]]||"c",r}function yO(e){return e.join("")}function Tz(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?[]:f2(t),[t]),g=f.useRef({});e||(g.current={});const y=At(()=>{if(t&&n&&e&&!l){let Oe=function(Ht,Vr,jr=Ee){const Bs=U.x+Ht,Di=U.y+Vr,jo=Bs+Q,to=Di+H,Ic=Math.max(Bs,jr.left),sv=Math.max(Di,jr.top),Oc=Math.min(jo,jr.right),sd=Math.min(to,jr.bottom);return Math.max(0,(Oc-Ic)*(sd-sv))},xe=function(){Me=U.y+ke,ye=Me+H,me=U.x+Qe,Le=me+Q;};const $=t,w=$.ownerDocument,M=yg($),{position:T}=M.getComputedStyle($),A=$.style.left,P=$.style.top,N=$.style.right,I=$.style.bottom,O=$.style.overflow,D={...o[r],...i},L=w.createElement("div");$.parentElement?.appendChild(L),L.style.left=`${$.offsetLeft}px`,L.style.top=`${$.offsetTop}px`,L.style.position=T,L.style.height=`${$.offsetHeight}px`,L.style.width=`${$.offsetWidth}px`,$.style.left="0",$.style.top="0",$.style.right="auto",$.style.bottom="auto",$.style.overflow="hidden";let V;if(Array.isArray(n))V={x:n[0],y:n[1],width:0,height:0};else {const Ht=n.getBoundingClientRect();Ht.x=Ht.x??Ht.left,Ht.y=Ht.y??Ht.top,V={x:Ht.x,y:Ht.y,width:Ht.width,height:Ht.height};}const U=$.getBoundingClientRect(),{height:W,width:z}=M.getComputedStyle($);U.x=U.x??U.left,U.y=U.y??U.top;const{clientWidth:k,clientHeight:G,scrollWidth:j,scrollHeight:K,scrollTop:X,scrollLeft:B}=w.documentElement,H=U.height,Q=U.width,J=V.height,te=V.width,ne={left:0,top:0,right:k,bottom:G},re={left:-B,top:-X,right:j-B,bottom:K-X};let{htmlRegion:oe}=D;const de="visible",ee="visibleFirst";oe!=="scroll"&&oe!==ee&&(oe=de);const se=oe===ee,le=pO(re,p),ae=pO(ne,p),Ee=oe===de?ae:le,ce=se?ae:Ee;$.style.left="auto",$.style.top="auto",$.style.right="0",$.style.bottom="0";const he=$.getBoundingClientRect();$.style.left=A,$.style.top=P,$.style.right=N,$.style.bottom=I,$.style.overflow=O,$.parentElement?.removeChild(L);const ge=Dp(Math.round(Q/parseFloat(z)*1e3)/1e3),Ce=Dp(Math.round(H/parseFloat(W)*1e3)/1e3);if(ge===0||Ce===0||If(n)&&!LT(n))return;const{offset:Re,targetOffset:et}=D;let[Ne,ve]=vO(U,Re);const[Te,Se]=vO(V,et);V.x-=Te,V.y-=Se;const[Ie,Ue]=D.points||[],je=bO(Ue),qe=bO(Ie),Ze=Ud(V,je),Ye=Ud(U,qe),Be={...D};let Ke=[qe,je],Qe=Ze.x-Ye.x+Ne,ke=Ze.y-Ye.y+ve;const ct=Oe(Qe,ke),Ot=Oe(Qe,ke,ae),mt=Ud(V,["t","l"]),kt=Ud(U,["t","l"]),yt=Ud(V,["b","r"]),Dt=Ud(U,["b","r"]),ft=D.overflow||{},{adjustX:ut,adjustY:vt,shiftX:He,shiftY:Ge}=ft,be=Ht=>typeof Ht=="boolean"?Ht:Ht>=0;let Me,ye,me,Le;xe();const ze=be(vt),tt=qe[0]===je[0];if(ze&&qe[0]==="t"&&(ye>ce.bottom||g.current.bt)){let Ht=ke;tt?Ht-=H-J:Ht=mt.y-Dt.y-ve;const Vr=Oe(Qe,Ht),jr=Oe(Qe,Ht,ae);Vr>ct||Vr===ct&&(!se||jr>=Ot)?(g.current.bt=true,ke=Ht,ve=-ve,Ke=[_l(Ke[0],0),_l(Ke[1],0)]):g.current.bt=false;}if(ze&&qe[0]==="b"&&(Me<ce.top||g.current.tb)){let Ht=ke;tt?Ht+=H-J:Ht=yt.y-kt.y-ve;const Vr=Oe(Qe,Ht),jr=Oe(Qe,Ht,ae);Vr>ct||Vr===ct&&(!se||jr>=Ot)?(g.current.tb=true,ke=Ht,ve=-ve,Ke=[_l(Ke[0],0),_l(Ke[1],0)]):g.current.tb=false;}const it=be(ut),dt=qe[1]===je[1];if(it&&qe[1]==="l"&&(Le>ce.right||g.current.rl)){let Ht=Qe;dt?Ht-=Q-te:Ht=mt.x-Dt.x-Ne;const Vr=Oe(Ht,ke),jr=Oe(Ht,ke,ae);Vr>ct||Vr===ct&&(!se||jr>=Ot)?(g.current.rl=true,Qe=Ht,Ne=-Ne,Ke=[_l(Ke[0],1),_l(Ke[1],1)]):g.current.rl=false;}if(it&&qe[1]==="r"&&(me<ce.left||g.current.lr)){let Ht=Qe;dt?Ht+=Q-te:Ht=yt.x-kt.x-Ne;const Vr=Oe(Ht,ke),jr=Oe(Ht,ke,ae);Vr>ct||Vr===ct&&(!se||jr>=Ot)?(g.current.lr=true,Qe=Ht,Ne=-Ne,Ke=[_l(Ke[0],1),_l(Ke[1],1)]):g.current.lr=false;}Be.points=[yO(Ke[0]),yO(Ke[1])],xe();const Et=He===true?0:He;typeof Et=="number"&&(me<ae.left&&(Qe-=me-ae.left-Ne,V.x+te<ae.left+Et&&(Qe+=V.x-ae.left+te-Et)),Le>ae.right&&(Qe-=Le-ae.right-Ne,V.x>ae.right-Et&&(Qe+=V.x-ae.right+Et)));const _t=Ge===true?0:Ge;typeof _t=="number"&&(Me<ae.top&&(ke-=Me-ae.top-ve,V.y+J<ae.top+_t&&(ke+=V.y-ae.top+J-_t)),ye>ae.bottom&&(ke-=ye-ae.bottom-ve,V.y>ae.bottom-_t&&(ke+=V.y-ae.bottom+_t)));const Nt=U.x+Qe,pn=Nt+Q,Wn=U.y+ke,at=Wn+H,Ve=V.x,Xe=Ve+te,Mt=V.y,wt=Mt+J,Bt=Math.max(Nt,Ve),tn=Math.min(pn,Xe),xn=(Bt+tn)/2-Nt,fr=Math.max(Wn,Mt),bn=Math.min(at,wt),pa=(fr+bn)/2-Wn;s?.(t,Be);let eo=he.right-U.x-(Qe+U.width),Jn=he.bottom-U.y-(ke+U.height);ge===1&&(Qe=Math.floor(Qe),eo=Math.floor(eo)),Ce===1&&(ke=Math.floor(ke),Jn=Math.floor(Jn));const Rm={ready:true,offsetX:Qe/ge,offsetY:ke/Ce,offsetR:eo/ge,offsetB:Jn/Ce,arrowX:xn/ge,arrowY:pa/Ce,scaleX:ge,scaleY:Ce,align:Be};d(Rm);}}),S=()=>{m.current+=1;const $=m.current;Promise.resolve().then(()=>{m.current===$&&y();});},x=()=>{d($=>({...$,ready:false}));};return In(x,[r]),In(()=>{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 Az(){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 ore(e,t,n,r,o){In(()=>{if(e&&t&&n){let p=function(){r(),o();};const i=t,s=n,l=f2(i),u=f2(s),d=yg(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 ire(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=yg(r);b.addEventListener("pointerdown",p,true),b.addEventListener("mousedown",g,true),b.addEventListener("contextmenu",g,true);const y=m0(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 sre(){const[e,t]=q.useState(null),[n,r]=q.useState(false),[o,i]=q.useState(false),s=q.useRef(null),l=At(d=>{d===false?(s.current=null,r(false)):o&&n?s.current=d:(r(true),t(d),s.current=null,n||i(true));}),u=At(d=>{d?(i(false),s.current&&(t(s.current),s.current=null)):(i(false),s.current=null);});return [l,n,e,u]}function m2(){return m2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},m2.apply(this,arguments)}const are=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,$]=q.useState(false),w=wz(n,r,o,i,s,l,u,d),M=q.useRef(w);r&&(M.current=w);const T={};return p&&(T.width=p.width,T.height=p.height),q.createElement(Io,m2({motionAppear:true,motionEnter:true,motionLeave:true,removeOnLeave:false,leavedClassName:`${S}-hidden`},g,{visible:o,onVisibleChanged:A=>{$(A);}}),({className:A,style:P})=>{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,...P,...y}})})},lre=({children:e,postTriggerProps:t})=>{const[n,r,o,i]=sre(),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=At(j=>{p.current=j,If(j)&&l!==j&&u(j);}),b=f.useRef(null),y=Az(),S=At((j,K)=>{b.current=K,y(()=>{n(j);},j.delay);}),x=j=>{y(()=>{b.current?.()||n(false);},j);},$=At(j=>{i(j);}),[w,M,T,A,P,N,I,,,O,D]=Tz(r,l,s?.target,s?.popupPlacement,s?.builtinPlacements||{},s?.popupAlign,void 0,false),L=f.useMemo(()=>{if(!s)return "";const j=Mz(s.builtinPlacements||{},s.prefixCls||"",O,false);return Y(j,s.getPopupClassNameFromAlign?.(O))},[O,s?.getPopupClassNameFromAlign,s?.builtinPlacements,s?.prefixCls]),V=f.useMemo(()=>({show:S,hide:x}),[]);f.useEffect(()=>{D();},[s?.target]);const U=At(()=>(D(),Promise.resolve())),W=f.useRef({}),z=f.useContext(h0),k=f.useMemo(()=>({registerSubPopup:(j,K)=>{W.current[j]=K,z?.registerSubPopup(j,K);}}),[z]),G=s?.prefixCls;return f.createElement(Ez.Provider,{value:V},e,s&&f.createElement(h0.Provider,{value:k},f.createElement($z,{ref:g,portal:L1,onEsc:s.onEsc,prefixCls:G,popup:s.popup,className:Y(s.popupClassName,L,`${G}-unique-controlled`),style:s.popupStyle,target:s.target,open:r,keepDom:true,fresh:true,autoDestroy:false,onVisibleChanged:$,ready:w,offsetX:M,offsetY:T,offsetR:A,offsetB:P,onAlign:D,onPrepare:U,onResize:j=>m({width:j.offsetWidth,height:j.offsetHeight}),arrowPos:{x:N,y:I},align:O,zIndex:s.zIndex,mask:s.mask,arrow:s.arrow,motion:s.popupMotion,maskMotion:s.maskMotion,getPopupContainer:s.getPopupContainer},f.createElement(are,{prefixCls:G,isMobile:false,ready:w,open:r,align:O,offsetR:A,offsetB:P,offsetX:M,offsetY:T,arrowPos:{x:N,y:I},popupSize:d,motion:s.popupMotion,uniqueContainerClassName:Y(s.uniqueContainerClassName,L),uniqueContainerStyle:s.uniqueContainerStyle}))))};function cre(e=L1){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:$,blurDelay:w,mask:M,maskClosable:T=true,getPopupContainer:A,forceRender:P,autoDestroy:N,popup:I,popupClassName:O,uniqueContainerClassName:D,uniqueContainerStyle:L,popupStyle:V,popupPlacement:U,builtinPlacements:W={},popupAlign:z,zIndex:k,stretch:G,getPopupClassNameFromAlign:j,fresh:K,unique:X,alignPoint:B,onPopupClick:H,onPopupAlign:Q,arrow:J,popupMotion:te,maskMotion:ne,mobile:re,...oe}=n,de=N||false,ee=d===void 0,se=!!re,le=f.useRef({}),ae=f.useContext(h0),Ee=f.useMemo(()=>({registerSubPopup:(ht,Ut)=>{le.current[ht]=Ut,ae?.registerSubPopup(ht,Ut);}}),[ae]),ce=f.useContext(Ez),he=ol(),[ge,Ce]=f.useState(null),Re=f.useRef(null),et=At(ht=>{Re.current=ht,If(ht)&&ge!==ht&&Ce(ht),ae?.registerSubPopup(he,ht);}),[Ne,ve]=f.useState(null),Te=f.useRef(null),Se=At(ht=>{const Ut=Fu(ht);If(Ut)&&Ne!==Ut&&(ve(Ut),Te.current=Ut);}),Ie={},Ue=At(ht=>{const Ut=Ne;return Ut?.contains(ht)||m0(Ut)?.host===ht||ht===Ut||ge?.contains(ht)||m0(ge)?.host===ht||ht===ge||Object.values(le.current).some(fl=>fl?.contains(ht)||ht===fl)}),je=J?{...J!==true?J:{}}:null,[qe,Ze]=mn(m||false,d),Ye=qe||false,Be=f.useMemo(()=>{const ht=typeof i=="function"?i({open:Ye}):i;return f.Children.only(ht)},[i,Ye]),Ke=Be?.props||{},Qe=At(()=>Ye),ke=At((ht=0)=>({popup:I,target:Ne,delay:ht,prefixCls:o,popupClassName:O,uniqueContainerClassName:D,uniqueContainerStyle:L,popupStyle:V,popupPlacement:U,builtinPlacements:W,popupAlign:z,zIndex:k,mask:M,maskClosable:T,popupMotion:te,maskMotion:ne,arrow:je,getPopupContainer:A,getPopupClassNameFromAlign:j,id:he,onEsc:kt}));In(()=>{ce&&X&&Ne&&!ee&&!ae&&(Ye?ce.show(ke(S),Qe):ce.hide(x));},[Ye,Ne]);const Oe=f.useRef(Ye);Oe.current=Ye;const ct=At(ht=>{Lo.flushSync(()=>{Ye!==ht&&(Ze(ht),p?.(ht),b?.(ht));});}),Ot=Az(),mt=(ht,Ut=0)=>{if(d!==void 0){Ot(()=>{ct(ht);},Ut);return}if(ce&&X&&ee&&!ae){ht?ce.show(ke(Ut),Qe):ce.hide(Ut);return}Ot(()=>{ct(ht);},Ut);};function kt({top:ht}){ht&&mt(false);}const[yt,Dt]=f.useState(false);In(ht=>{(!ht||Ye)&&Dt(true);},[Ye]);const[ft,ut]=f.useState(null),[vt,He]=f.useState(null),Ge=ht=>{He([ht.clientX,ht.clientY]);},[be,Me,ye,me,Le,xe,ze,tt,it,dt,Et]=Tz(Ye,ge,B&&vt!==null?vt:Ne,U,W,z,Q,se),[_t,Nt]=nre(s,l,u),pn=_t.has("click"),Wn=Nt.has("click")||Nt.has("contextMenu"),at=At(()=>{yt||Et();});ore(Ye,Ne,ge,at,()=>{Oe.current&&B&&Wn&&mt(false);}),In(()=>{at();},[vt,U]),In(()=>{Ye&&!W?.[U]&&at();},[JSON.stringify(z)]);const Xe=f.useMemo(()=>{const ht=Mz(W,o,dt,B);return Y(ht,j?.(dt))},[dt,j,W,o,B]);f.useImperativeHandle(r,()=>({nativeElement:Te.current,popupElement:Re.current,forceAlign:at}));const[Mt,wt]=f.useState(0),[Bt,tn]=f.useState(0),nn=()=>{if(G&&Ne){const ht=Ne.getBoundingClientRect();wt(ht.width),tn(ht.height);}},xn=()=>{nn(),at();},fr=ht=>{Dt(false),Et(),g?.(ht),y?.(ht);},bn=()=>new Promise(ht=>{nn(),ut(()=>ht);});In(()=>{ft&&(Et(),ft(),ut(null));},[ft]);function Jr(ht,Ut,fl,av,ld){Ie[ht]=(ga,...lv)=>{(!ld||!ld())&&(av?.(ga),mt(Ut,fl)),Ke[ht]?.(ga,...lv);};}const pa=_t.has("touch"),eo=Nt.has("touch"),Jn=f.useRef(false);(pa||eo)&&(Ie.onTouchStart=(...ht)=>{Jn.current=true,Oe.current&&eo?mt(false):!Oe.current&&pa&&mt(true),Ke.onTouchStart?.(...ht);}),(pn||Wn)&&(Ie.onClick=(ht,...Ut)=>{Oe.current&&Wn?mt(false):!Oe.current&&pn&&(Ge(ht),mt(true)),Ke.onClick?.(ht,...Ut),Jn.current=false;});const Rm=ire(Ye,Wn||eo,Ne,ge,M,T,Ue,mt),Ht=_t.has("hover"),Vr=Nt.has("hover");let jr,Bs;const Di=()=>Jn.current;if(Ht){const ht=Ut=>{Ge(Ut);};Jr("onMouseEnter",true,S,ht,Di),Jr("onPointerEnter",true,S,ht,Di),jr=Ut=>{(Ye||yt)&&ge?.contains(Ut.target)&&mt(true,S);},B&&(Ie.onMouseMove=Ut=>{Ke.onMouseMove?.(Ut);});}Vr&&(Jr("onMouseLeave",false,x,void 0,Di),Jr("onPointerLeave",false,x,void 0,Di),Bs=()=>{mt(false,x);}),_t.has("focus")&&Jr("onFocus",true,$),Nt.has("focus")&&Jr("onBlur",false,w),_t.has("contextMenu")&&(Ie.onContextMenu=(ht,...Ut)=>{Oe.current&&Nt.has("contextMenu")?mt(false):(Ge(ht),mt(true)),ht.preventDefault(),Ke.onContextMenu?.(ht,...Ut);});const jo=f.useRef(false);jo.current||=P||Ye||yt;const to={...Ke,...Ie},Ic={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(ht=>{oe[ht]&&(Ic[ht]=(...Ut)=>{to[ht]?.(...Ut),oe[ht](...Ut);});});const Oc={x:xe,y:ze};mB(Ye,Ne,xn);const sd=nl(Se,Cc(Be)),ad=f.cloneElement(Be,{...to,...Ic,ref:sd});return f.createElement(f.Fragment,null,ad,jo.current&&(!ce||!X)&&f.createElement(h0.Provider,{value:Ee},f.createElement($z,{portal:e,ref:et,prefixCls:o,popup:I,className:Y(O,!se&&Xe),style:V,target:Ne,onMouseEnter:jr,onMouseLeave:Bs,onPointerEnter:jr,zIndex:k,open:Ye,keepDom:yt,fresh:K,onClick:H,onPointerDownCapture:Rm,mask:M,motion:te,maskMotion:ne,onVisibleChanged:fr,onPrepare:bn,forceRender:P,autoDestroy:de,getPopupContainer:A,onEsc:kt,align:dt,arrow:je,arrowPos:Oc,ready:be,offsetX:Me,offsetY:ye,offsetR:me,offsetB:Le,onAlign:at,stretch:G,targetWidth:Mt/tt,targetHeight:Bt/it,mobile:re})))})}const k1=cre(L1);function Rz(e){return e&&q.isValidElement(e)&&e.type===q.Fragment}const Nz=(e,t,n)=>q.isValidElement(e)?q.cloneElement(e,PT(n)?n(e.props||{}):n):t;function Yr(e,t){return Nz(e,e,t)}const ure=({children:e})=>{const{getPrefixCls:t}=q.useContext($t),n=t();return q.isValidElement(e)?q.createElement(Io,{visible:true,motionName:`${n}-fade`,motionAppear:true,motionEnter:true,motionLeave:false,removeOnLeave:false},({style:r,className:o})=>Yr(e,i=>({className:Y(i.className,o),style:{...i.style,...r}}))):e},Ab=[null,null];function dre(e){if(Ab[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:false};}),Ab[0]=e,Ab[1]=t;}return Ab[1]}const Pz=({children:e})=>{const t=n=>{const{id:r,builtinPlacements:o,popup:i}=n,s=typeof i=="function"?i():i,l=dre(o);return {...n,getPopupContainer:null,arrow:false,popup:q.createElement(ure,{key:r},s),builtinPlacements:l}};return q.createElement(lre,{postTriggerProps:t},e)},po=f.createContext(false),Iz=({children:e,disabled:t})=>{const n=f.useContext(po);return f.createElement(po.Provider,{value:t??n},e)},Lf=f.createContext(void 0),fre=({children:e,size:t})=>{const n=f.useContext(Lf);return f.createElement(Lf.Provider,{value:t||n},e)};function mre(){const e=f.useContext(po),t=f.useContext(Lf);return {componentDisabled:e,componentSize:t}}function hre(e,t,n){const r=e||{},o=r.inherit===false||!t?{...Ip,hashed:t?.hashed??Ip.hashed,cssVar:t?.cssVar}:t,i=f.useId();return Jf(()=>{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 !sc(u,m,true)}))}const SO=f.createContext(true);function pre(e){const t=f.useContext(SO),{children:n}=e,[,r]=Qr(),{motion:o}=r,i=f.useRef(false);return i.current||(i.current=t!==o),i.current?f.createElement(SO.Provider,{value:o},f.createElement(Xte,{motion:o},n)):n}const gre=()=>null,vre=({iconPrefixCls:e,csp:t})=>(Pte(e,t),null),bre=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let p0,Oz,Dz,Lz;function xw(){return p0||Ep}function yre(){return Oz||M1}const Sre=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(p0=t),n!==void 0&&(Oz=n),"holderRender"in e&&(Lz=o),r&&(Dz=r);},kT=()=>({getPrefixCls:(e,t)=>t||(e?`${xw()}-${e}`:xw()),getIconPrefixCls:yre,getRootPrefixCls:()=>p0||xw(),getTheme:()=>Dz,holderRender:Lz}),Cre=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:$,legacyLocale:w,parentContext:M,iconPrefixCls:T,theme:A,componentDisabled:P,segmented:N,statistic:I,spin:O,calendar:D,carousel:L,cascader:V,collapse:U,typography:W,checkbox:z,descriptions:k,divider:G,drawer:j,skeleton:K,steps:X,image:B,layout:H,list:Q,mentions:J,modal:te,progress:ne,result:re,slider:oe,breadcrumb:de,masonry:ee,menu:se,pagination:le,input:ae,textArea:Ee,otp:ce,empty:he,badge:ge,radio:Ce,rate:Re,ribbon:et,switch:Ne,transfer:ve,avatar:Te,message:Se,tag:Ie,table:Ue,card:je,cardMeta:qe,tabs:Ze,timeline:Ye,timePicker:Be,upload:Ke,notification:Qe,tree:ke,colorPicker:Oe,datePicker:ct,rangePicker:Ot,flex:mt,wave:kt,dropdown:yt,warning:Dt,tour:ft,tooltip:ut,popover:vt,popconfirm:He,qrcode:Ge,floatButton:be,floatButtonGroup:Me,variant:ye,inputNumber:me,treeSelect:Le,watermark:xe}=e,ze=f.useMemo(()=>Cn(d)&&Object.prototype.hasOwnProperty.call(d,"default")&&d.default?.locale?d.default:d,[d]),tt=f.useCallback((wt,Bt)=>{const{prefixCls:tn}=e;if(Bt)return Bt;const nn=tn||M.getPrefixCls("");return wt?`${nn}-${wt}`:nn},[M.getPrefixCls,e.prefixCls]),it=T||M.iconPrefixCls||M1,dt=n||M.csp,Et=hre(A,M.theme,{prefixCls:tt("")}),_t={csp:dt,autoInsertSpaceInButton:r,alert:o,affix:i,anchor:s,app:l,locale:ze||w,direction:p,space:g,splitter:b,virtual:y,popupMatchSelectWidth:x??S,popupOverflow:$,getPrefixCls:tt,iconPrefixCls:it,theme:Et,segmented:N,statistic:I,spin:O,calendar:D,carousel:L,cascader:V,collapse:U,typography:W,checkbox:z,descriptions:k,divider:G,drawer:j,skeleton:K,steps:X,image:B,input:ae,textArea:Ee,otp:ce,layout:H,list:Q,mentions:J,modal:te,progress:ne,result:re,slider:oe,breadcrumb:de,masonry:ee,menu:se,pagination:le,empty:he,badge:ge,radio:Ce,rate:Re,ribbon:et,switch:Ne,transfer:ve,avatar:Te,message:Se,tag:Ie,table:Ue,card:je,cardMeta:qe,tabs:Ze,timeline:Ye,timePicker:Be,upload:Ke,notification:Qe,tree:ke,colorPicker:Oe,datePicker:ct,rangePicker:Ot,flex:mt,wave:kt,dropdown:yt,warning:Dt,tour:ft,tooltip:ut,popover:vt,popconfirm:He,qrcode:Ge,floatButton:be,floatButtonGroup:Me,variant:ye,inputNumber:me,treeSelect:Le,watermark:xe},Nt={...M};Object.keys(_t).forEach(wt=>{_t[wt]!==void 0&&(Nt[wt]=_t[wt]);}),bre.forEach(wt=>{const Bt=e[wt];Bt&&(Nt[wt]=Bt);}),typeof r<"u"&&(Nt.button={autoInsertSpace:r,...Nt.button});const pn=Jf(()=>Nt,Nt,(wt,Bt)=>{const tn=Object.keys(wt),nn=Object.keys(Bt);return tn.length!==nn.length||tn.some(xn=>wt[xn]!==Bt[xn])}),{layer:Wn}=f.useContext(Hu),at=f.useMemo(()=>({prefixCls:it,csp:dt,layer:Wn?"antd":void 0}),[it,dt,Wn]);let Ve=f.createElement(f.Fragment,null,f.createElement(vre,{iconPrefixCls:it,csp:dt}),f.createElement(gre,{dropdownMatchSelectWidth:S}),t);const Xe=f.useMemo(()=>cf(Ps.Form?.defaultValidateMessages||{},pn.locale?.Form?.defaultValidateMessages||{},pn.form?.validateMessages||{},u?.validateMessages||{}),[pn,u?.validateMessages]);Object.keys(Xe).length>0&&(Ve=f.createElement(zne.Provider,{value:Xe},Ve)),ze&&(Ve=f.createElement(Mne,{locale:ze,_ANT_MARK__:Ene},Ve)),Ve=f.createElement(MT.Provider,{value:at},Ve),m&&(Ve=f.createElement(fre,{size:m},Ve)),Ve=f.createElement(pre,null,Ve),ut?.unique&&(Ve=f.createElement(Pz,null,Ve));const Mt=f.useMemo(()=>{const{algorithm:wt,token:Bt,components:tn,cssVar:nn,...xn}=Et||{},fr=wt&&(!Array.isArray(wt)||wt.length>0)?u0(wt):$T,bn={};Object.entries(tn||{}).forEach(([pa,eo])=>{const Jn={...eo};"algorithm"in Jn&&(Jn.algorithm===true?Jn.theme=fr:(Array.isArray(Jn.algorithm)||typeof Jn.algorithm=="function")&&(Jn.theme=u0(Jn.algorithm)),delete Jn.algorithm),bn[pa]=Jn;});const Jr={...Df,...Bt};return {...xn,theme:fr,token:Jr,components:bn,override:{override:Jr,...bn},cssVar:nn}},[Et]);return A&&(Ve=f.createElement(ET.Provider,{value:Mt},Ve)),pn.warning&&(Ve=f.createElement(jJ.Provider,{value:pn.warning},Ve)),P!==void 0&&(Ve=f.createElement(Iz,{disabled:P},Ve)),f.createElement($t.Provider,{value:pn},Ve)},Vo=e=>{const t=f.useContext($t),n=f.useContext(NT);return f.createElement(Cre,{parentContext:t,legacyLocale:n,...e})};Vo.ConfigContext=$t;Vo.SizeContext=Lf;Vo.config=Sre;Vo.useConfig=mre;Object.defineProperty(Vo,"SizeContext",{get:()=>Lf});const st={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224};function g0(){return g0=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},g0.apply(this,arguments)}const _T=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,$]=f.useState(false),[w,M]=f.useState(0),[T,A]=f.useState(0),P=S||x,N=typeof i=="number"?i:0,I=N>0&&s,O=()=>{b(u);},D=z=>{(z.key==="Enter"||z.code==="Enter"||z.keyCode===st.ENTER)&&O();};f.useEffect(()=>{if(!P&&N>0){const z=Date.now()-T,k=setTimeout(()=>{O();},N*1e3-T);return ()=>{l&&clearTimeout(k),A(Date.now()-z);}}},[N,P,y]),f.useEffect(()=>{if(!P&&I&&(l||T===0)){const z=performance.now();let k;const G=()=>{cancelAnimationFrame(k),k=requestAnimationFrame(j=>{const K=j+T-z,X=Math.min(K/(N*1e3),1);M(X*100),X<1&&G();});};return G(),()=>{l&&cancelAnimationFrame(k);}}},[N,T,P,I,y]);const L=f.useMemo(()=>typeof m=="object"&&m!==null?m:{},[m]),V=No(L,true),U=100-(!w||w<0?0:w>100?100:w),W=`${n}-notice`;return f.createElement("div",g0({},p,{ref:t,className:Y(W,o,{[`${W}-closable`]:m}),style:r,onMouseEnter:z=>{$(true),p?.onMouseEnter?.(z);},onMouseLeave:z=>{$(false),p?.onMouseLeave?.(z);},onClick:g}),f.createElement("div",{className:`${W}-content`},d),m&&f.createElement("button",g0({className:`${W}-close`,onKeyDown:D,"aria-label":"Close"},V,{onClick:z=>{z.preventDefault(),z.stopPropagation(),O();}}),L.closeIcon??"x"),I&&f.createElement("progress",{className:`${W}-progress`,max:"100",value:U},U+"%"))}),kz=q.createContext({}),_z=({children:e,classNames:t})=>q.createElement(kz.Provider,{value:{classNames:t}},e),CO=8,xO=3,wO=16,xre=e=>{const t={offset:CO,threshold:xO,gap:wO};return e&&typeof e=="object"&&(t.offset=e.offset??CO,t.threshold=e.threshold??xO,t.gap=e.gap??wO),[!!e,t]};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 wre=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(kz),p=f.useRef({}),[g,b]=f.useState(null),[y,S]=f.useState([]),x=t.map(N=>({config:N,key:String(N.key)})),[$,{offset:w,threshold:M,gap:T}]=xre(d),A=$&&(y.length>0||x.length<=M),P=typeof s=="function"?s(n):s;return f.useEffect(()=>{$&&y.length>1&&S(N=>N.filter(I=>x.some(({key:O})=>I===O)));},[y,x,$]),f.useEffect(()=>{$&&p.current[x[x.length-1]?.key]&&b(p.current[x[x.length-1]?.key]);},[x,$]),q.createElement(mne,v0({key:n,className:Y(r,`${r}-${n}`,m?.list,o,{[`${r}-stack`]:!!$,[`${r}-stack-expanded`]:A}),style:i,keys:x,motionAppear:true},P,{onAllRemoved:()=>{l(n);}}),({config:N,className:I,style:O,index:D},L)=>{const{key:V,times:U}=N,W=String(V),{className:z,style:k,classNames:G,styles:j,...K}=N,X=x.findIndex(H=>H.key===W),B={};if($){const H=x.length-1-(X>-1?X:D-1),Q=n==="top"||n==="bottom"?"-50%":"0";if(H>0){B.height=A?p.current[W]?.offsetHeight:g?.offsetHeight;let J=0;for(let re=0;re<H;re++)J+=p.current[x[x.length-1-re].key]?.offsetHeight+T;const te=(A?J:H*w)*(n.startsWith("top")?1:-1),ne=!A&&g?.offsetWidth&&p.current[W]?.offsetWidth?(g?.offsetWidth-w*2*(H<3?H:3))/p.current[W]?.offsetWidth:1;B.transform=`translate3d(${Q}, ${te}px, 0) scaleX(${ne})`;}else B.transform=`translate3d(${Q}, 0, 0)`;}return q.createElement("div",{ref:L,className:Y(`${r}-notice-wrapper`,I,G?.wrapper),style:{...O,...B,...j?.wrapper},onMouseEnter:()=>S(H=>H.includes(W)?H:[...H,W]),onMouseLeave:()=>S(H=>H.filter(Q=>Q!==W))},q.createElement(_T,v0({},K,{ref:H=>{X>-1?p.current[W]=H:delete p.current[W];},prefixCls:r,classNames:G,styles:j,className:Y(z,m?.notice),style:k,times:U,key:V,eventKey:V,onNoticeClose:u,hovering:$&&y.length>0})))})},$re=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(I=>I.key===M),A=T?.closable,P=A&&typeof A=="object"?A:{},{onClose:N}=P;N?.(),T?.onClose?.(),g(I=>I.filter(O=>O.key!==M));};f.useImperativeHandle(t,()=>({open:M=>{g(T=>{let A=[...T];const P=A.findIndex(I=>I.key===M.key),N={...M};return P>=0?(N.times=(T[P]?.times||0)+1,A[P]=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});},$=f.useRef(false);if(f.useEffect(()=>{Object.keys(y).length>0?$.current=true:$.current&&(u?.(),$.current=false);},[y]),!r)return null;const w=Object.keys(y);return Lo.createPortal(f.createElement(f.Fragment,null,w.map(M=>{const T=y[M],A=f.createElement(wre,{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)}),Ere=()=>document.body;let $O=0;function Mre(...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 Bz(e={}){const{getContainer:t=Ere,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($re,{container:p,ref:b,prefixCls:r,motion:n,maxCount:o,className:i,style:s,onAllRemoved:l,stack:u,renderNotifications:d}),[S,x]=f.useState([]),$=At(M=>{const T=Mre(m,M);(T.key===null||T.key===void 0)&&(T.key=`rc-notification-${$O}`,$O+=1),x(A=>[...A,{type:"open",config:T}]);}),w=f.useMemo(()=>({open:$,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(P=>!S.includes(P))),T));}},[S]),[w,y]}var Tre={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 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 Are=(e,t)=>f.createElement(Qn,h2({},e,{ref:t,icon:Tre})),_1=f.forwardRef(Are),Rre=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:$}=e,w=`${t}-notice`,M=new Ft("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:b,transform:"translateY(0)",opacity:1}}),T=new Ft("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},[`${w}-content`]:{display:"inline-block",padding:x,background:$,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]:{...hn(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]:{[`${w}-wrapper`]:{...A}}},{[`${t}-notice-pure-panel`]:{...A,padding:0,textAlign:"start"}}]},Nre=e=>({zIndexPopup:e.zIndexPopupBase+DT+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),zz=qt("Message",e=>{const t=Vt(e,{height:150});return Rre(t)},Nre),Pre={info:f.createElement(AT,null),success:f.createElement(TT,null),error:f.createElement(vg,null),warning:f.createElement(bg,null),loading:f.createElement(_1,null)},Fz=e=>{const{prefixCls:t,type:n,icon:r,children:o,classNames:i,styles:s}=e,l=r||n&&Pre[n],u=Yr(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))},Ire=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}=Gt("message"),S=t||m("message"),x=Zn(S),[$,w]=zz(S,x),[M,T]=Yt([b,l],[y,u],{props:e});return f.createElement(_T,{...d,prefixCls:S,className:Y(p,M.root,n,$,`${S}-notice-pure-panel`,w,x),style:{...T.root,...g,...r},eventKey:"pure",duration:null,content:f.createElement(Fz,{prefixCls:S,type:o,icon:i,classNames:M,styles:T},s)})};function Ore(e,t){return {motionName:t??`${e}-move-up`}}function BT(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 Dre=8,Lre=3,kre=({children:e,prefixCls:t})=>{const n=Zn(t),[r,o]=zz(t,n);return f.createElement(_z,{classNames:{list:Y(r,o,n)}},e)},_re=(e,{prefixCls:t,key:n})=>f.createElement(kre,{prefixCls:t,key:n},e),Bre=f.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:s=Lre,rtl:l,transitionName:u,onAllRemoved:d,pauseOnHover:m=true}=e,{getPrefixCls:p,direction:g,getPopupContainer:b}=Gt("message"),{message:y}=f.useContext($t),S=r||p("message"),x=()=>({left:"50%",transform:"translateX(-50%)",top:n??Dre}),$=()=>Y({[`${S}-rtl`]:l??g==="rtl"}),w=()=>Ore(S,u),[M,T]=Yt([e?.classNames,y?.classNames],[e?.styles,y?.styles],{props:e}),[A,P]=Bz({prefixCls:S,style:x,className:$,motion:w,closable:false,duration:s,getContainer:()=>o?.()||b?.()||document.body,maxCount:i,onAllRemoved:d,renderNotifications:_re,pauseOnHover:m});return f.useImperativeHandle(t,()=>({...A,prefixCls:S,message:y,classNames:M,styles:T})),P});let EO=0;function Hz(e){const t=f.useRef(null);return [f.useMemo(()=>{const r=u=>{t.current?.close(u);},o=u=>{if(!t.current){const B=()=>{};return B.then=()=>{},B}const{open:d,prefixCls:m,message:p,classNames:g,styles:b}=t.current,y=p?.className||{},S=p?.style||{},x=p?.classNames||{},$=p?.styles||{},w=`${m}-notice`,{content:M,icon:T,type:A,key:P,className:N,style:I,onClose:O,classNames:D={},styles:L={},...V}=u;let U=P;br(U)||(EO+=1,U=`antd-message-${EO}`);const W={...e,...u},z=Ql(x,{props:W}),k=Ql(D,{props:W}),G=Ql($,{props:W}),j=Ql(L,{props:W}),K=O1(void 0,z,k,g),X=OT(G,j,b);return BT(B=>(d({...V,key:U,content:f.createElement(Fz,{prefixCls:m,type:A,icon:T,classNames:K,styles:X},M),placement:"top",className:Y({[`${w}-${A}`]:A},N,y,K.root),style:{...X.root,...S,...I},onClose:()=>{O?.(),B();}}),()=>{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;Cn(m)&&"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 Vz(e){return Hz(e)}const b0="__rc_react_root__";function B1(e,t){const n=t[b0]||_9.createRoot(t);n.render(e),t[b0]=n;}async function jz(e){return Promise.resolve().then(()=>{e[b0]?.unmount(),delete e[b0];})}const ww=()=>({height:0,opacity:0}),MO=e=>({height:e?.scrollHeight??0,opacity:e?1:0}),zre=e=>({height:e?.offsetHeight??0}),Fre=e=>Cn(e)&&"propertyName"in e,$w=(e,t)=>t?.deadline===true||(Fre(t)?t.propertyName==="height":false),Uz=(e=Ep)=>({motionName:`${e}-motion-collapse`,onAppearStart:ww,onEnterStart:ww,onAppearActive:MO,onEnterActive:MO,onLeaveStart:zre,onLeaveActive:ww,onAppearEnd:$w,onEnterEnd:$w,onLeaveEnd:$w,motionDeadline:500}),lc=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Hre=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(",")}}}}},Vre=Nte("Wave",Hre),z1=`${Ep}-wave-target`;function TO(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 jre(e,t=null){const n=getComputedStyle(e),{borderTopColor:r,borderColor:o,backgroundColor:i}=n;return t&&TO(n[t])?n[t]:[r,o,i].find(TO)??null}function Ew(e){return Number.isNaN(e)?0:e}const Ure=e=>{const{className:t,target:n,component:r,colorSource:o}=e,i=f.useRef(null),{getPrefixCls:s}=f.useContext($t),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]=f.useState(0),[M,T]=f.useState(0),[A,P]=f.useState(false),N={left:b,top:S,width:$,height:M,borderRadius:p.map(D=>`${D}px`).join(" ")};d&&(N[u("color")]=d);function I(){const D=getComputedStyle(n);m(jre(n,o));const L=D.position==="static",{borderLeftWidth:V,borderTopWidth:U}=D;y(L?n.offsetLeft:Ew(-Number.parseFloat(V))),x(L?n.offsetTop:Ew(-Number.parseFloat(U))),w(n.offsetWidth),T(n.offsetHeight);const{borderTopLeftRadius:W,borderTopRightRadius:z,borderBottomLeftRadius:k,borderBottomRightRadius:G}=D;g([W,z,G,k].map(j=>Ew(Number.parseFloat(j))));}if(f.useEffect(()=>{if(n){const D=zt(()=>{I(),P(true);});let L;return typeof ResizeObserver<"u"&&(L=new ResizeObserver(I),L.observe(n)),()=>{zt.cancel(D),L?.disconnect();}}},[n]),!A)return null;const O=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(z1);return f.createElement(Io,{visible:true,motionAppear:true,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(D,L)=>{if(L.deadline||L.propertyName==="opacity"){const V=i.current?.parentElement;jz(V).then(()=>{V?.remove();});}return  false}},({className:D},L)=>f.createElement("div",{ref:Fr(i,L),className:Y(t,D,{"wave-quick":O}),style:N}))},Wre=(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),B1(f.createElement(Ure,{...t,target:e}),r);},Gre=(e,t,n,r)=>{const{wave:o}=f.useContext($t),[,i,s]=Qr(),l=At(m=>{const p=e.current;if(o?.disabled||!p)return;const g=p.querySelector(`.${z1}`)||p,{showEffect:b}=o||{};(b||Wre)(g,{className:t,token:i,component:n,event:m,hashId:s,colorSource:r});}),u=f.useRef(null);return f.useEffect(()=>()=>{zt.cancel(u.current);},[]),m=>{zt.cancel(u.current),u.current=zt(()=>{l(m);});}},Sg=e=>{const{children:t,disabled:n,component:r,colorSource:o}=e,{getPrefixCls:i}=f.useContext($t),s=f.useRef(null),l=i("wave"),u=Vre(l),d=Gre(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=>{!LT(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=em(t)?Fr(Cc(t),s):s;return Yr(t,{ref:m})},yr=e=>{const t=q.useContext(Lf);return q.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},qre=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},Kre=qt(["Space","Compact"],qre,()=>({}),{resetStyle:false}),F1=f.createContext(null),il=(e,t)=>{const n=f.useContext(F1),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}},Yre=e=>{const{children:t}=e;return f.createElement(F1.Provider,{value:null},t)},Xre=e=>{const{children:t,...n}=e;return f.createElement(F1.Provider,{value:f.useMemo(()=>n,[n])},t)},zT=e=>{const{getPrefixCls:t,direction:n}=f.useContext($t),{size:r,direction:o,orientation:i,block:s,prefixCls:l,className:u,rootClassName:d,children:m,vertical:p,...g}=e,[b,y]=Qu(i,p,o),S=yr(P=>r??P),x=t("space-compact",l),[$]=Kre(x),w=Y(x,$,{[`${x}-rtl`]:n==="rtl",[`${x}-block`]:s,[`${x}-vertical`]:y},u,d),M=f.useContext(F1),T=si(m),A=f.useMemo(()=>T.map((P,N)=>{const I=P?.key||`${x}-item-${N}`;return f.createElement(Xre,{key:I,compactSize:S,compactDirection:b,isFirstItem:N===0&&(!M||M?.isFirstItem),isLastItem:N===T.length-1&&(!M||M?.isLastItem)},P)}),[T,M,b,S,x]);return T.length===0?null:f.createElement("div",{className:w,...g},A)},Wz=f.createContext(void 0),Qre=e=>{const{getPrefixCls:t,direction:n}=f.useContext($t),{prefixCls:r,size:o,className:i,...s}=e,l=t("btn-group",r),[,,u]=Qr(),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(Wz.Provider,{value:o},f.createElement("div",{...s,className:m}))},AO=/^[\u4E00-\u9FA5]{2}$/,p2=AO.test.bind(AO);function FT(e){return e==="danger"?{danger:true}:{type:e}}function Mw(e){return e==="text"||e==="link"}function Zre(e,t,n,r){if(!br(e)||e==="")return;const o=t?" ":"";return typeof e!="string"&&typeof e!="number"&&iO(e.type)&&p2(e.props.children)?Yr(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}}):iO(e)?q.createElement("span",{className:r,style:n},p2(e)?e.split("").join(o):e):Rz(e)?q.createElement("span",{className:r,style:n},e):Yr(e,i=>({...i,className:Y(i.className,r)||void 0,style:{...i.style,...n}}))}function Jre(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=>Zre(s,t,n,r))}["default","primary","danger"].concat(Qt(ia));const Gz=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)}),RO=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,s=Y(`${n}-loading-icon`,r);return q.createElement(Gz,{prefixCls:n,className:s,style:o,ref:t},q.createElement(_1,{className:i}))}),Tw=()=>({width:0,opacity:0,transform:"scale(0)"}),Aw=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),eoe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:s}=e,l=!!n;return r?q.createElement(RO,{prefixCls:t,className:o,style:i}):q.createElement(Io,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:true,onAppearStart:Tw,onAppearActive:Aw,onEnterStart:Tw,onEnterActive:Aw,onLeaveStart:Aw,onLeaveActive:Tw},({className:u,style:d},m)=>{const p={...i,...d};return q.createElement(RO,{prefixCls:t,className:Y(o,u),style:p,ref:m})})},qz=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`}}}},NO=e=>({animationDuration:e,animationFillMode:"both"}),H1=(e,t,n,r,o=false)=>{const i=o?"&":"";return {[`
      ${i}${e}-enter,
      ${i}${e}-appear
    `]:{...NO(r),animationPlayState:"paused"},[`${i}${e}-leave`]:{...NO(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"}}},toe=new Ft("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),noe=new Ft("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),HT=(e,t=false)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return [H1(r,toe,noe,e.motionDurationMid,t),{[`
        ${o}${r}-enter,
        ${o}${r}-appear
      `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},roe=new Ft("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ooe=new Ft("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ioe=new Ft("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),soe=new Ft("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),aoe=new Ft("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),loe=new Ft("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),coe=new Ft("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),uoe=new Ft("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),doe={"move-up":{inKeyframes:coe,outKeyframes:uoe},"move-down":{inKeyframes:roe,outKeyframes:ooe},"move-left":{inKeyframes:ioe,outKeyframes:soe},"move-right":{inKeyframes:aoe,outKeyframes:loe}},y0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=doe[t];return [H1(r,o,i,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},VT=new Ft("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),jT=new Ft("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),UT=new Ft("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),WT=new Ft("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),foe=new Ft("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),moe=new Ft("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),hoe=new Ft("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),poe=new Ft("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),goe={"slide-up":{inKeyframes:VT,outKeyframes:jT},"slide-down":{inKeyframes:UT,outKeyframes:WT},"slide-left":{inKeyframes:foe,outKeyframes:moe},"slide-right":{inKeyframes:hoe,outKeyframes:poe}},cc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=goe[t];return [H1(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}}]},Wa=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}),voe=new Ft("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),boe=new Ft("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),PO=new Ft("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),IO=new Ft("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),yoe=new Ft("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Soe=new Ft("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Coe=new Ft("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),xoe=new Ft("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),woe=new Ft("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),$oe=new Ft("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Eoe=new Ft("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Moe=new Ft("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Toe={zoom:{inKeyframes:voe,outKeyframes:boe},"zoom-big":{inKeyframes:PO,outKeyframes:IO},"zoom-big-fast":{inKeyframes:PO,outKeyframes:IO},"zoom-left":{inKeyframes:Coe,outKeyframes:xoe},"zoom-right":{inKeyframes:woe,outKeyframes:$oe},"zoom-up":{inKeyframes:yoe,outKeyframes:Soe},"zoom-down":{inKeyframes:Eoe,outKeyframes:Moe}},Cg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Toe[t];return [H1(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}}]},OO=(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}},OO(`${t}-primary`,o),OO(`${t}-danger`,i)]}},Rw=e=>Math.round(Number(e||0)),Roe=e=>{if(e instanceof vn)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 Is extends vn{constructor(t){super(Roe(t));}toHsbString(){const t=this.toHsb(),n=Rw(t.s*100),r=Rw(t.b*100),o=Rw(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 Noe="rc-color-picker",Cf=e=>e instanceof Is?e:new Is(e),Poe=Cf("#1677ff"),Kz=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 Cf({...y,h:x<=0?0:x});case "alpha":return Cf({...y,a:S<=0?0:S})}return Cf({h:y.h,s:g<=0?0:g,b:b>=1?1:b,a:y.a})},Yz=(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}}},GT=({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 Ioe(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 Xz(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=$=>{const{pageX:w,pageY:M}=Ioe($),{x:T,y:A,width:P,height:N}=n.current.getBoundingClientRect(),{width:I,height:O}=t.current.getBoundingClientRect(),D=I/2,L=O/2,V=Math.max(0,Math.min(w-T,P))-D,U=Math.max(0,Math.min(M-A,N))-L,W={x:V,y:r==="x"?d.y:U};if(I===0&&O===0||I!==O)return  false;o?.(W);},y=$=>{$.preventDefault(),b($);},S=$=>{$.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,$=>{document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",g.current),!u&&(b($),document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),document.addEventListener("touchmove",y),document.addEventListener("touchend",S),p.current=y,g.current=S);}]}const Qz=({size:e="default",color:t,prefixCls:n})=>q.createElement("div",{className:Y(`${n}-handler`,{[`${n}-handler-sm`]:e==="small"}),style:{backgroundColor:t}}),Zz=({children:e,style:t,prefixCls:n})=>q.createElement("div",{className:`${n}-palette`,style:{position:"relative",...t}},e),Jz=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)}),Ooe=({color:e,onChange:t,prefixCls:n,onChangeComplete:r,disabled:o})=>{const i=f.useRef(),s=f.useRef(),l=f.useRef(e),u=At(p=>{const g=Kz({offset:p,targetRef:s,containerRef:i,color:e});l.current=g,t(g);}),[d,m]=Xz({color:e,containerRef:i,targetRef:s,calculate:()=>Yz(e),onDragChange:u,onDragChangeComplete:()=>r?.(l.current),disabledDrag:o});return q.createElement("div",{ref:i,className:`${n}-select`,onMouseDown:m,onTouchStart:m},q.createElement(Zz,{prefixCls:n},q.createElement(Jz,{x:d.x,y:d.y,ref:s},q.createElement(Qz,{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))"}})))},Doe=(e,t)=>{const[n,r]=mn(e,t);return [f.useMemo(()=>Cf(n),[n]),r]},Loe=({colors:e,children:t,direction:n="to right",type:r,prefixCls:o})=>{const i=f.useMemo(()=>e.map((s,l)=>{let u=Cf(s);return r==="alpha"&&l===e.length-1&&(u=new Is(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)},koe=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=$=>l==="hue"?$.getHue():$.a*100,g=At($=>{const w=Kz({offset:$,targetRef:d,containerRef:u,color:s,type:l});m.current=w,o(p(w));}),[b,y]=Xz({color:s,targetRef:d,containerRef:u,calculate:()=>Yz(s,l),onDragChange:g,onDragChangeComplete(){i(p(m.current));},direction:"x",disabledDrag:r}),S=q.useMemo(()=>{if(l==="hue"){const $=s.toHsb();return $.s=1,$.b=1,$.a=1,new Is($)}return s},[s,l]),x=q.useMemo(()=>n.map($=>`${$.color} ${$.percent}%`),[n]);return q.createElement("div",{ref:u,className:Y(`${t}-slider`,`${t}-slider-${l}`),onMouseDown:y,onTouchStart:y},q.createElement(Zz,{prefixCls:t},q.createElement(Jz,{x:b.x,y:b.y,ref:d},q.createElement(Qz,{size:"small",color:S.toHexString(),prefixCls:t})),q.createElement(Loe,{colors:x,type:l,prefixCls:t})))};function _oe(e){return f.useMemo(()=>{const{slider:t}=e||{};return [t||koe]},[e])}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)}const Boe=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],zoe=f.forwardRef((e,t)=>{const{value:n,defaultValue:r,prefixCls:o=Noe,onChange:i,onChangeComplete:s,className:l,style:u,panelRender:d,disabledAlpha:m=false,disabled:p=false,components:g}=e,[b]=_oe(g),[y,S]=Doe(r||Poe,n),x=f.useMemo(()=>y.setA(1).toRgbString(),[y]),$=(L,V)=>{n||S(L),i?.(L,V);},w=L=>new Is(y.setHue(L)),M=L=>new Is(y.setA(L/100)),T=L=>{$(w(L),{type:"hue",value:L});},A=L=>{$(M(L),{type:"alpha",value:L});},P=L=>{s&&s(w(L));},N=L=>{s&&s(M(L));},I=Y(`${o}-panel`,l,{[`${o}-panel-disabled`]:p}),O={prefixCls:o,disabled:p,color:y},D=q.createElement(q.Fragment,null,q.createElement(Ooe,tp({onChange:$},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,tp({},O,{type:"hue",colors:Boe,min:0,max:359,value:y.getHue(),onChange:T,onChangeComplete:P})),!m&&q.createElement(b,tp({},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(GT,{color:y.toRgbString(),prefixCls:o})));return q.createElement("div",{className:I,style:u,ref:t},typeof d=="function"?d(D):D)}),jh=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"",Foe=(e,t)=>e?jh(e,t):"";let ei=(function(){function e(t){if(cs(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 Is(this.colors[0].color.metaColor)):this.metaColor=new Is(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=true);}return us(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Foe(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 Hoe={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 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 Voe=(e,t)=>f.createElement(Qn,g2({},e,{ref:t,icon:Hoe})),kf=f.forwardRef(Voe),joe=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}),eF=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:$,destroyOnHidden:w,children:M,...T}=e,A=p==="disabled",P=y!=null&&typeof y!="boolean",N={onClick:()=>{i?.(b);},onKeyDown:U=>{(U.key==="Enter"||U.keyCode===st.ENTER||U.which===st.ENTER)&&i?.(b);},role:g?"tab":"button","aria-expanded":o,"aria-disabled":A,tabIndex:A?-1:0},I=typeof x=="function"?x(e):q.createElement("i",{className:"arrow"}),O=I&&q.createElement("div",ur({className:Y(`${m}-expand-icon`,u?.icon),style:d?.icon},["header","icon"].includes(p)?N:{}),I),D=Y(`${m}-item`,{[`${m}-item-active`]:o,[`${m}-item-disabled`]:A},l),V={className:Y(r,`${m}-header`,{[`${m}-collapsible-${p}`]:!!p},u?.header),style:d?.header,...["header","icon"].includes(p)?{}:N};return q.createElement("div",ur({},T,{ref:t,className:D}),q.createElement("div",V,n&&O,q.createElement("span",ur({className:Y(`${m}-title`,u?.title),style:d?.title},p==="header"?N:{}),S),P&&q.createElement("div",{className:`${m}-extra`},y)),q.createElement(Io,ur({visible:o,leavedClassName:`${m}-panel-hidden`},$,{forceRender:s,removeOnLeave:w}),({className:U,style:W},z)=>q.createElement(joe,{ref:z,prefixCls:m,className:U,classNames:u,style:W,styles:d,isActive:o,forceRender:s,role:g?"tabpanel":void 0},M)))});function tF(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 Uoe(e,t){return tF(e,t,(n,r)=>Y(n,r))}function Woe(e,t){return tF(e,t,(n,r)=>({...n,...r}))}const Goe=(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:$,onItemClick:w,destroyOnHidden:M,classNames:T,styles:A,...P}=g,N=String(x??b),I=$??o,O=M??i,D=V=>{I!=="disabled"&&(s(V),w?.(V));};let L=false;return r?L=l[0]===N:L=l.indexOf(N)>-1,q.createElement(eF,ur({},P,{classNames:Uoe(m,T),styles:Woe(p,A),prefixCls:n,key:N,panelKey:N,isActive:L,accordion:r,openMotion:u,expandIcon:d,header:S,collapsible:I,onItemClick:D,destroyOnHidden:O}),y)})},qoe=(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:$,onItemClick:w}=e.props;let M=false;o?M=u[0]===b:M=u.indexOf(b)>-1;const T=$??i,A=N=>{T!=="disabled"&&(l(N),w?.(N));},P={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(P).forEach(N=>{typeof P[N]>"u"&&delete P[N];}),q.cloneElement(e,P))};function Koe(e,t,n){return Array.isArray(e)?Goe(e,n):si(t).map((r,o)=>qoe(r,o,n))}function DO(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 Yoe=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,$=Y(n,s),[w,M]=mn(g,p),T=DO(w),A=At(I=>{const O=DO(I);M(O),b?.(O);}),P=I=>{A(i?T[0]===I?[]:[I]:T.includes(I)?T.filter(O=>O!==I):[...T,I]);};Pr(!l,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");const N=Koe(y,l,{prefixCls:n,accordion:i,openMotion:d,expandIcon:m,collapsible:u,destroyOnHidden:r,onItemClick:P,activeKey:T,classNames:S,styles:x});return q.createElement("div",ur({ref:t,className:$,style:o,role:i?"tablist":void 0},No(e,{aria:true,data:true})),N)}),qT=Object.assign(Yoe,{Panel:eF}),{Panel:gIe}=qT,Xoe=f.forwardRef((e,t)=>{const{getPrefixCls:n}=f.useContext($t),{prefixCls:r,className:o,showArrow:i=true}=e,s=n("collapse",r),l=Y({[`${s}-no-arrow`]:!i},o);return f.createElement(qT.Panel,{ref:t,...e,prefixCls:s,className:l})}),Qoe=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:$,marginSM:w,paddingSM:M,paddingLG:T,paddingXS:A,motionDurationSlow:P,fontSizeIcon:N,contentPadding:I,fontHeight:O,fontHeightLG:D}=e,L=`${ie(d)} ${m} ${p}`;return {[t]:{...hn(e),backgroundColor:o,border:L,borderRadius:u,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:L,"&:first-child":{[`
            &,
            & > ${t}-header`]:{borderRadius:`${ie(u)} ${ie(u)} 0 0`}},"&:last-child":{[`
            &,
            & > ${t}-header`]:{borderRadius:`0 0 ${ie(u)} ${ie(u)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:b,lineHeight:x,cursor:"pointer",transition:`all ${P}, visibility 0s`,...ai(e),[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:O,display:"flex",alignItems:"center",marginInlineEnd:w},[`${t}-arrow`]:{...Xu(),fontSize:N,transition:`transform ${P}`,svg:{transition:`transform ${P}`}},[`${t}-title`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-title`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-panel`]:{color:g,backgroundColor:n,borderTop:L,[`& > ${t}-body`]:{padding:I},"&-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:$,[`> ${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 ${ie(u)} ${ie(u)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"&, & > .arrow":{color:y,cursor:"not-allowed"}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:w}}}}}}},Zoe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Joe=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}}}},eie=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}}}}}},tie=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"}),nie=qt("Collapse",e=>{const t=Vt(e,{collapseHeaderPaddingSM:`${ie(e.paddingXS)} ${ie(e.paddingSM)}`,collapseHeaderPaddingLG:`${ie(e.padding)} ${ie(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return [Qoe(t),Joe(t),eie(t),Zoe(t),qz(t)]},tie),rie=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:o,className:i,style:s,classNames:l,styles:u}=Gt("collapse"),{prefixCls:d,className:m,rootClassName:p,style:g,bordered:b=true,ghost:y,size:S,expandIconPlacement:x,expandIconPosition:$,children:w,destroyInactivePanel:M,destroyOnHidden:T,expandIcon:A,classNames:P,styles:N}=e,I=yr(H=>S??H??"middle"),O=n("collapse",d),D=n(),[L,V]=nie(O),U=x??$??"start",W={...e,size:I,bordered:b,expandIconPlacement:U},[z,k]=Yt([l,P],[u,N],{props:W}),G=A??o,j=f.useCallback((H={})=>{const Q=typeof G=="function"?G(H):f.createElement(kf,{rotate:H.isActive?r==="rtl"?-90:90:void 0,"aria-label":H.isActive?"expanded":"collapsed"});return Yr(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`]:I==="large",[`${O}-small`]:I==="small"},i,m,p,L,V,z.root),X=f.useMemo(()=>({...Uz(D),motionAppear:false,leavedClassName:`${O}-panel-hidden`}),[D,O]),B=f.useMemo(()=>w?si(w).map(H=>H):null,[w]);return f.createElement(qT,{ref:t,openMotion:X,...Vn(e,["rootClassName"]),expandIcon:j,prefixCls:O,className:K,style:{...k.root,...s,...g},classNames:z,styles:k,destroyOnHidden:T??M},B)}),nF=Object.assign(rie,{Panel:Xoe}),go=e=>e instanceof ei?e:new ei(e),wy=e=>Math.round(Number(e||0)),KT=e=>wy(e.toHsb().a*100),$y=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,go(r)}return n.a=1,go(n)},rF=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(Qt(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 Is(s),p=new Is(l);return m.mix(p,d).toRgbString()}}return ""},oie=e=>e.map(t=>(t.colors=t.colors.map(go),t)),YT=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),s=new Is(e.toRgbString()).onBackground(t).toHsv();return i<=.5?s.v>.5:n*.299+r*.587+o*.114>192},LO=(e,t)=>`panel-${e.key??t}`,iie=({prefixCls:e,presets:t,value:n,onChange:r})=>{const[o]=Ho("ColorPicker"),[,i]=Qr(),s=f.useMemo(()=>oie(t),[t]),l=`${e}-presets`,u=f.useMemo(()=>s.reduce((p,g,b)=>{const{defaultOpen:y=true}=g;return y&&p.push(LO(g,b)),p},[]),[s]),d=p=>{r?.(p);},m=s.map((p,g)=>({key:LO(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=go(b);return q.createElement(GT,{key:`preset-${y}-${b.toHexString()}`,color:S.toCssString(),prefixCls:e,className:Y(`${l}-color`,{[`${l}-color-checked`]:b.toCssString()===n?.toCssString(),[`${l}-color-bright`]:YT(b,i.colorBgElevated)}),onClick:()=>d(b)})}):q.createElement("span",{className:`${l}-empty`},o.presetEmpty))}));return q.createElement("div",{className:l},q.createElement(nF,{defaultActiveKey:u,ghost:true,items:m}))},oF=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return Vt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},iF=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,o=e.contentLineHeight??Sy(t),i=e.contentLineHeightSM??Sy(n),s=e.contentLineHeightLG??Sy(r),l=YT(new ei(e.colorBgSolid),"#fff")?"#000":"#fff",u=ia.reduce((p,g)=>({...p,[`${g}ShadowColor`]:`0 ${ie(e.controlOutlineWidth)} 0 ${Vh(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}},sie=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}}}},ia.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}}}]}},aie=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",...Wa(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Xu(),"> a":{color:"currentColor"},"&:not(:disabled)":ai(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(d=>`${d} ${i} ${s}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:u(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:u(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:u(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:u(l).mul(-1).equal()}}}}}},lie=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),XT=(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:`${ie(u)} ${ie(s)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:d}}}},{[`${n}${n}-circle${t}`]:lie(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},cie=e=>{const t=Vt(e,{fontSize:e.contentFontSize});return XT(t,e.componentCls)},uie=e=>{const t=Vt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return XT(t,`${e.componentCls}-sm`)},die=e=>{const t=Vt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return XT(t,`${e.componentCls}-lg`)},fie=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},mie=qt("Button",e=>{const t=oF(e);return [aie(t),cie(t),uie(t),die(t),fie(t),sie(t),Aoe(t)]},iF,{unitless:{fontWeight:true,contentLineHeight:true,contentLineHeightSM:true,contentLineHeightLG:true}});function hie(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 pie(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 om(e,t={focus:true}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,i=`${o}-compact`;return {[i]:{...hie(e,i,t,o),...pie(o,i,t)}}}function gie(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 vie(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 bie(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:{...gie(e,t,e.componentCls),...vie(e.componentCls,t)}}}const yie=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})`}}]},Sie=nm(["Button","compact"],e=>{const t=oF(e);return [om(t),bie(t),yie(t)]},iF);function Cie(e){if(Cn(e)){let t=e?.delay;return t=Fo(t)?t:0,{loading:t<=0,delay:t}}return {loading:!!e,delay:0}}const xie={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},wie=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:$,ghost:w=false,block:M=false,htmlType:T="button",classNames:A,styles:P,style:N,autoInsertSpace:I,autoFocus:O,...D}=e,L=si(y),V=l||"default",{getPrefixCls:U,direction:W,autoInsertSpace:z,className:k,style:G,classNames:j,styles:K,loadingIcon:X,shape:B,color:H,variant:Q}=Gt("button"),J=d||B||"default",[te,ne]=f.useMemo(()=>{if(i&&s)return [i,s];if(l||u){const Ge=xie[V]||[];return u?["danger",Ge[1]]:Ge}return H&&Q?[H,Q]:["default","outlined"]},[i,s,l,u,H,Q,V]),[re,oe]=f.useMemo(()=>w&&ne==="solid"?[te,"outlined"]:[te,ne],[te,ne,w]),de=re==="danger",ee=de?"dangerous":re,se=I??z??true,le=U("btn",o),[ae,Ee]=mie(le),ce=f.useContext(po),he=p??ce,ge=f.useContext(Wz),Ce=f.useMemo(()=>Cie(r),[r]),[Re,et]=f.useState(Ce.loading),[Ne,ve]=f.useState(false),Te=f.useRef(null),Se=nl(t,Te),Ie=L.length===1&&!S&&!Mw(oe),Ue=f.useRef(true);q.useEffect(()=>(Ue.current=false,()=>{Ue.current=true;}),[]),In(()=>{let Ge=null;Ce.delay>0?Ge=setTimeout(()=>{Ge=null,et(true);},Ce.delay):et(Ce.loading);function be(){Ge&&(clearTimeout(Ge),Ge=null);}return be},[Ce.delay,Ce.loading]),f.useEffect(()=>{if(!Te.current||!se)return;const Ge=Te.current.textContent||"";Ie&&p2(Ge)?Ne||ve(true):Ne&&ve(false);}),f.useEffect(()=>{O&&Te.current&&Te.current.focus();},[]);const je=q.useCallback(Ge=>{if(Re||he){Ge.preventDefault();return}e.onClick?.((Ge));},[e.onClick,Re,he]),{compactSize:qe,compactItemClassnames:Ze}=il(le,W),Ye=yr(Ge=>m??qe??ge??Ge),Be=Re?"loading":S,Ke=$??x??"start",Qe=Vn(D,["navigate"]),ke={...e,type:V,color:re,variant:oe,danger:de,shape:J,size:Ye,disabled:he,loading:Re,iconPlacement:Ke},[Oe,ct]=Yt([n?void 0:j,A],[n?void 0:K,P],{props:ke}),Ot=Y(le,ae,Ee,{[`${le}-${J}`]:J!=="default"&&J!=="square"&&J,[`${le}-${V}`]:V,[`${le}-dangerous`]:u,[`${le}-color-${ee}`]:ee,[`${le}-variant-${oe}`]:oe,[`${le}-lg`]:Ye==="large",[`${le}-sm`]:Ye==="small",[`${le}-icon-only`]:!y&&y!==0&&!!Be,[`${le}-background-ghost`]:w&&!Mw(oe),[`${le}-loading`]:Re,[`${le}-two-chinese-chars`]:Ne&&se&&!Re,[`${le}-block`]:M,[`${le}-rtl`]:W==="rtl",[`${le}-icon-end`]:Ke==="end"},Ze,g,b,k,Oe.root),mt={...ct.root,...G,...N},kt={className:Oe.icon,style:ct.icon},yt=Ge=>q.createElement(Gz,{prefixCls:le,...kt},Ge),Dt=q.createElement(eoe,{existIcon:!!S,prefixCls:le,loading:Re,mount:Ue.current,...kt}),ft=Cn(r)&&r.icon||X;let ut;S&&!Re?ut=yt(S):r&&ft?ut=yt(ft):ut=Dt;const vt=br(y)?Jre(y,Ie&&se,ct.content,Oe.content):null;if(Qe.href!==void 0)return q.createElement("a",{...Qe,className:Y(Ot,{[`${le}-disabled`]:he}),href:he?void 0:Qe.href,style:mt,onClick:je,ref:Se,tabIndex:he?-1:0,"aria-disabled":he},ut,vt);let He=q.createElement("button",{...D,type:T,className:Ot,style:mt,onClick:je,disabled:he,ref:Se},ut,vt,Ze&&q.createElement(Sie,{prefixCls:le}));return Mw(oe)||(He=q.createElement(Sg,{component:"Button",disabled:Re},He)),He}),lt=wie;lt.Group=Qre;lt.__ANT_BUTTON=true;const QT=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]=aB(false),S=(...w)=>{i?.(...w);};f.useEffect(()=>{let w=null;return s&&(w=setTimeout(()=>{g.current?.focus({preventScroll:true});})),()=>{w&&clearTimeout(w);}},[s]);const x=w=>{Cw(w)&&(y(true),w.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=>{if(p.current)return;if(p.current=true,!m){S();return}let M;if(l){if(M=m(w),d&&!Cw(M)){p.current=false,S(w);return}}else if(m.length)M=m(i),p.current=false;else if(M=m(),!Cw(M)){S();return}x(M);};return f.createElement(lt,{...FT(t),onClick:$,loading:b,prefixCls:r,...o,ref:g},n)},xg=q.createContext({}),{Provider:sF}=xg,kO=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:s,onCancel:l,onConfirm:u,onClose:d}=f.useContext(xg);return o?q.createElement(QT,{isSilent:r,actionFn:l,close:(...m)=>{s?.(...m),u?.(false),d?.();},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},_O=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:s,onConfirm:l,onOk:u,onClose:d}=f.useContext(xg);return q.createElement(QT,{isSilent:n,type:s||"primary",actionFn:u,close:(...m)=>{t?.(...m),l?.(true),d?.();},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)},aF=f.createContext({});function BO(e,t,n){let r=t;return !r&&n&&(r=`${e}-${n}`),r}function zO(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 $ie(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=zO(o),n.top+=zO(o,true),n}function FO(e,t=false){if(LT(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 ZT(e,t=false){const n=[...e.querySelectorAll("*")].filter(r=>FO(r,t));return FO(e,t)&&n.unshift(e),n}function JT(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(n){case "start":e.setSelectionRange(0,0);break;case "end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r);}}}let xf=null,Ul=[];const v2=new Map,eA=new Map;function tA(){return Ul[Ul.length-1]}function Eie(e){const t=tA();if(e&&t){let n;for(const[o,i]of v2.entries())if(i===t){n=o;break}const r=eA.get(n);return !!r&&(r===e||r.contains(e))}return  false}function Mie(e){const{activeElement:t}=document;return e===t||e.contains(t)}function Nw(){const e=tA(),{activeElement:t}=document;if(!Eie(t))if(e&&!Mie(e)){const n=ZT(e);(n.includes(xf)?xf:n[0])?.focus({preventScroll:true});}else xf=t;}function HO(e){if(e.key==="Tab"){const{activeElement:t}=document,n=tA(),r=ZT(n),o=r[r.length-1];e.shiftKey&&t===r[0]?xf=o:!e.shiftKey&&t===o&&(xf=r[0]);}}function Tie(e,t){return e&&(v2.set(t,e),Ul=Ul.filter(n=>n!==e),Ul.push(e),window.addEventListener("focusin",Nw),window.addEventListener("keydown",HO,true),Nw()),()=>{xf=null,Ul=Ul.filter(n=>n!==e),v2.delete(t),eA.delete(t),Ul.length===0&&(window.removeEventListener("focusin",Nw),window.removeEventListener("keydown",HO,true));}}function Aie(e,t){const n=f.useRef(0),[r,o]=f.useState(0);f.useEffect(()=>{n.current=0;},t),f.useEffect(()=>{const[i,s]=e(n.current);return s||(n.current+=1,o(l=>l+1)),i},[...t,r]);}function Rie(e,t){const n=ol(),r=f.useRef(t);return r.current=t,Aie(s=>{if(!e)return [void 0,true];const l=r.current();return l?[Tie(l,n),true]:[void 0,s>=1]},[n,e]),[s=>{s&&eA.set(n,s);}]}const Nie=f.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!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 lF=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:$,visible:w,forceRender:M,width:T,height:A,classNames:P,styles:N,isFixedPos:I,focusTrap:O}=e,{panel:D}=q.useContext(aF),L=f.useRef(null),V=nl($,D,L),[U]=Rie(w&&I&&O!==false,()=>L.current);q.useImperativeHandle(t,()=>({focus:()=>{L.current?.focus({preventScroll:true});}}));const W={};T!==void 0&&(W.width=T),A!==void 0&&(W.height=A);const z=l?q.createElement("div",{className:Y(`${n}-footer`,P?.footer),style:{...N?.footer}},l):null,k=i?q.createElement("div",{className:Y(`${n}-header`,P?.header),style:{...N?.header}},q.createElement("div",{className:Y(`${n}-title`,P?.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=No(G,true),K=typeof u=="object"&&u.disabled,X=u?q.createElement("button",S0({type:"button",onClick:m,"aria-label":"Close"},j,{className:`${n}-close`,disabled:K}),G.closeIcon):null,B=q.createElement("div",{className:Y(`${n}-container`,P?.container),style:N?.container},X,k,q.createElement("div",S0({className:Y(`${n}-body`,P?.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:V,style:{...o,...W},className:Y(n,r),onMouseDown:S,onMouseUp:x,tabIndex:-1,onFocus:H=>{U(H.target);}},q.createElement(Nie,{shouldUpdate:w||M},y?y(B):B))});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 Pie=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(),$={};S&&($.transformOrigin=S);function w(){if(!b.current?.nativeElement)return;const M=$ie(b.current.nativeElement);x(g&&(g.x||g.y)?`${g.x-M.left}px ${g.y-M.top}px`:"");}return f.createElement(Io,{visible:s,onVisibleChanged:p,onAppearPrepare:w,onEnterPrepare:w,forceRender:l,motionName:d,removeOnLeave:u,ref:b},({className:M,style:T},A)=>f.createElement(lF,b2({},e,{ref:y,title:r,ariaId:m,prefixCls:n,holderRef:A,style:{...T,...o,...$},className:Y(i,M)})))});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 Iie=e=>{const{prefixCls:t,style:n,visible:r,maskProps:o,motionName:i,className:s}=e;return f.createElement(Io,{key:"mask",visible:r,motionName:i,leavedClassName:`${t}-mask-hidden`},({className:l,style:u},d)=>f.createElement("div",y2({ref:d,style:{...u,...n},className:Y(`${t}-mask`,l,s)},o)))};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 Oie=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:$=true,maskStyle:w,maskProps:M,rootClassName:T,rootStyle:A,classNames:P,styles:N}=e,I=f.useRef(null),O=f.useRef(null),D=f.useRef(null),[L,V]=f.useState(r),[U,W]=f.useState(false),z=ol();function k(){AE(O.current,document.activeElement)||(I.current=document.activeElement);}function G(){AE(O.current,document.activeElement)||D.current?.focus();}function j(){if(V(false),y&&I.current&&o){try{I.current.focus({preventScroll:!0});}catch{}I.current=null;}L&&m?.();}function K(te){te?G():j(),d?.(te);}function X(te){u?.(te);}const B=f.useRef(false);let H=null;$&&(H=te=>{O.current===te.target&&B.current&&X(te);});function Q(te){B.current=te.target===O.current;}f.useEffect(()=>{if(r){if(B.current=false,V(true),k(),O.current){const te=getComputedStyle(O.current);W(te.position==="fixed");}}else L&&D.current.enableMotion()&&!D.current.inMotion()&&j();},[r]);const J={zIndex:n,...i,...N?.wrapper,display:L?null:"none"};return f.createElement("div",np({className:Y(`${t}-root`,T),style:A},No(e,{data:true})),f.createElement(Iie,{prefixCls:t,visible:y&&r,motionName:BO(t,S,x),style:{zIndex:n,...w,...N?.mask},maskProps:M,className:P?.mask}),f.createElement("div",np({className:Y(`${t}-wrap`,s,P?.wrapper),ref:O,onClick:H,onMouseDown:Q,style:J},l),f.createElement(Pie,np({},e,{isFixedPos:U,ref:D,closable:b,ariaId:z,prefixCls:t,visible:r&&L,onClose:X,onVisibleChanged:K,motionName:BO(t,p,g)}))))};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 Die=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(aF.Provider,{value:g},f.createElement(L1,{open:t||r||m,onEsc:b,autoDestroy:false,getContainer:n,autoLock:t||m},f.createElement(Oie,S2({},e,{destroyOnHidden:o,afterClose:()=>{const y=s&&typeof s=="object"?s:{},{afterClose:S}=y||{};S?.(),i?.(),p(false);}}))))},hu="RC_FORM_INTERNAL_HOOKS",Hn=()=>{Pr(false,"Can not find FormContext. Please make sure you wrap Field under Form.");},_f=f.createContext({getFieldValue:Hn,getFieldsValue:Hn,getFieldError:Hn,getFieldWarning:Hn,getFieldsError:Hn,isFieldsTouched:Hn,isFieldTouched:Hn,isFieldValidating:Hn,isFieldsValidating:Hn,resetFields:Hn,setFields:Hn,setFieldValue:Hn,setFieldsValue:Hn,validateFields:Hn,submit:Hn,getInternalHooks:()=>(Hn(),{dispatch:Hn,initEntityValue:Hn,registerField:Hn,useSubscribe:Hn,setInitialValues:Hn,destroyForm:Hn,setCallbacks:Hn,registerWatch:Hn,getFields:Hn,setValidateMessages:Hn,setPreserve:Hn,getInitialValue:Hn})}),C0=f.createContext(null);function C2(e){return e==null?[]:Array.isArray(e)?e:[e]}function Lie(e){return e&&!!e._init}function x2(){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 w2=x2();function kie(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function _ie(e,t,n){if(xT())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Np(o,n.prototype),o}function $2(e){var t=typeof Map=="function"?new Map:void 0;return $2=function(r){if(r===null||!kie(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o);}function o(){return _ie(r,arguments,Pp(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:false,writable:true,configurable:true}}),Np(o,r)},$2(e)}var Bie=/%[sdj%]/g,zie=function(){};function E2(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 Ti(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(Bie,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 Fie(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||Fie(t)&&typeof e=="string"&&!e)}function Hie(e,t,n){var r=[],o=0,i=e.length;function s(l){r.push.apply(r,Qt(l||[])),o++,o===i&&n(r);}e.forEach(function(l){t(l,s);});}function VO(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 Vie(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Qt(e[n]||[]));}),t}var jO=(function(e){BB(n,e);var t=zB(n);function n(r,o){var i;return cs(this,n),i=t.call(this,"Async Validation Error"),Ct(Sf(i),"errors",void 0),Ct(Sf(i),"fields",void 0),i.errors=r,i.fields=o,i}return us(n)})($2(Error));function jie(e,t,n,r,o){if(t.first){var i=new Promise(function(g,b){var y=function($){return r($),$.length?b(new jO($,E2($))):g(o)},S=Vie(e);VO(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 jO(m,E2(m))):g(o)};l.length||(r(m),g(o)),l.forEach(function(S){var x=e[S];s.indexOf(S)!==-1?VO(x,n,y):Hie(x,n,y);});});return p.catch(function(g){return g}),p}function Uie(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 UO(e,t){return function(n){var r;return e.fullFields?r=Wie(t,e.fullFields):r=t[n.field||e.fullField],Uie(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 WO(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",Gie=function(t,n,r,o,i){t[Wd]=Array.isArray(t[Wd])?t[Wd]:[],t[Wd].indexOf(n)===-1&&o.push(Ti(i.messages[Wd],t.fullField,t[Wd].join(", ")));},qie=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Ti(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(Ti(i.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},Kie=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(Ti(i.messages[p].len,t.fullField,t.len)):l&&!u&&m<t.min?o.push(Ti(i.messages[p].min,t.fullField,t.min)):u&&!l&&m>t.max?o.push(Ti(i.messages[p].max,t.fullField,t.max)):l&&u&&(m<t.min||m>t.max)&&o.push(Ti(i.messages[p].range,t.fullField,t.min,t.max));},cF=function(t,n,r,o,i,s){t.required&&(!r.hasOwnProperty(t.field)||zr(n,s||t.type))&&o.push(Ti(i.messages.required,t.fullField));},Rb;const Yie=(function(){if(Rb)return Rb;var e="[a-fA-F\\d:]",t=function(P){return P&&P.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(P){return P&&P.exact?l:new RegExp("(?:".concat(t(P)).concat(n).concat(t(P),")|(?:").concat(t(P)).concat(s).concat(t(P),")"),"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]+)*",$="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",w="(?::\\d{2,5})?",M='(?:[/?#][^\\s"]*)?',T="(?:".concat(p,"|www\\.)").concat(g,"(?:localhost|").concat(b,"|").concat(y,"|").concat(S).concat(x).concat($,")").concat(w).concat(M);return Rb=new RegExp("(?:^".concat(T,"$)"),"i"),Rb});var Pw={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},Uh={integer:function(t){return Uh.number(t)&&parseInt(t,10)===t},float:function(t){return Uh.number(t)&&!Uh.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"&&!Uh.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Pw.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(Pw.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Yie())},hex:function(t){return typeof t=="string"&&!!t.match(Pw.hex)}},Xie=function(t,n,r,o,i){if(t.required&&n===void 0){cF(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?Uh[l](n)||o.push(Ti(i.messages.types[l],t.fullField,t.type)):l&&Ar(n)!==t.type&&o.push(Ti(i.messages.types[l],t.fullField,t.type));},Qie=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Ti(i.messages.whitespace,t.fullField));};const un={required:cF,whitespace:Qie,type:Xie,range:Kie,enum:Gie,pattern:qie};var Zie=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();un.required(t,n,o,s,i);}r(s);},Jie=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();un.required(t,n,o,s,i,"array"),n!=null&&(un.type(t,n,o,s,i),un.range(t,n,o,s,i));}r(s);},ese=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();un.required(t,n,o,s,i),n!==void 0&&un.type(t,n,o,s,i);}r(s);},tse=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(un.required(t,n,o,s,i),!zr(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),un.type(t,u,o,s,i),u&&un.range(t,u.getTime(),o,s,i);}}r(s);},nse="enum",rse=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();un.required(t,n,o,s,i),n!==void 0&&un[nse](t,n,o,s,i);}r(s);},ose=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zr(n)&&!t.required)return r();un.required(t,n,o,s,i),n!==void 0&&(un.type(t,n,o,s,i),un.range(t,n,o,s,i));}r(s);},ise=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zr(n)&&!t.required)return r();un.required(t,n,o,s,i),n!==void 0&&(un.type(t,n,o,s,i),un.range(t,n,o,s,i));}r(s);},sse=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zr(n)&&!t.required)return r();un.required(t,n,o,s,i),n!==void 0&&un.type(t,n,o,s,i);}r(s);},ase=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),zr(n)&&!t.required)return r();un.required(t,n,o,s,i),n!==void 0&&(un.type(t,n,o,s,i),un.range(t,n,o,s,i));}r(s);},lse=function(t,n,r,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zr(n)&&!t.required)return r();un.required(t,n,o,s,i),n!==void 0&&un.type(t,n,o,s,i);}r(s);},cse=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();un.required(t,n,o,s,i),zr(n,"string")||un.pattern(t,n,o,s,i);}r(s);},use=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();un.required(t,n,o,s,i),zr(n)||un.type(t,n,o,s,i);}r(s);},dse=function(t,n,r,o,i){var s=[],l=Array.isArray(n)?"array":Ar(n);un.required(t,n,o,s,i,l),r(s);},fse=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();un.required(t,n,o,s,i,"string"),zr(n,"string")||(un.type(t,n,o,s,i),un.range(t,n,o,s,i),un.pattern(t,n,o,s,i),t.whitespace===true&&un.whitespace(t,n,o,s,i));}r(s);},Nb=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();un.required(t,n,o,l,i,s),zr(n,s)||un.type(t,n,o,l,i);}r(l);};const rp={string:fse,method:sse,number:ase,boolean:ese,regexp:use,integer:ise,float:ose,array:Jie,object:lse,enum:rse,pattern:cse,date:tse,url:Nb,hex:Nb,email:Nb,tel:Nb,required:dse,any:Zie};var wg=(function(){function e(t){cs(this,e),Ct(this,"rules",null),Ct(this,"_messages",w2),this.define(t);}return us(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=WO(x2(),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 $(M){if(Array.isArray(M)){var T;S=(T=S).concat.apply(T,Qt(M));}else S.push(M);}for(var w=0;w<y.length;w++)$(y[w]);S.length?(x=E2(S),u(S,x)):u(null,s);}if(l.messages){var m=this.messages();m===w2&&(m=x2()),WO(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($){var w=$;typeof w.transform=="function"&&(s===n&&(s=rr({},s)),x=s[y]=w.transform(x),x!=null&&(w.type=w.type||(Array.isArray(x)?"array":Ar(x)))),typeof w=="function"?w={validator:w}:w=rr({},w),w.validator=r.getValidationMethod(w),w.validator&&(w.field=y,w.fullField=w.fullField||y,w.type=r.getType(w),p[y]=p[y]||[],p[y].push({rule:w,value:x,source:s,field:y}));});});var b={};return jie(p,l,function(y,S){var x=y.rule,$=(x.type==="object"||x.type==="array")&&(Ar(x.fields)==="object"||Ar(x.defaultField)==="object");$=$&&(x.required||!x.required&&y.value),x.field=y.field;function w(N,I){return rr(rr({},I),{},{fullField:"".concat(x.fullField,".").concat(N),fullFields:x.fullFields?[].concat(Qt(x.fullFields),[N]):[N]})}function M(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=Array.isArray(N)?N:[N];!l.suppressWarning&&I.length&&e.warning("async-validator:",I),I.length&&x.message!==void 0&&x.message!==null&&(I=[].concat(x.message));var O=I.map(UO(x,s));if(l.first&&O.length)return b[x.field]=1,S(O);if(!$)S(O);else {if(x.required&&!y.value)return x.message!==void 0?O=[].concat(x.message).map(UO(x,s)):l.error&&(O=[l.error(x,Ti(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 L={};Object.keys(D).forEach(function(U){var W=D[U],z=Array.isArray(W)?W:[W];L[U]=z.map(w.bind(null,U));});var V=new e(L);V.messages(l.messages),y.rule.options&&(y.rule.options.messages=l.messages,y.rule.options.error=l.error),V.validate(y.value,y.rule.options||l,function(U){var W=[];O&&O.length&&W.push.apply(W,Qt(O)),U&&U.length&&W.push.apply(W,Qt(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,P;(A=(P=console).error)===null||A===void 0||A.call(P,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&&!rp.hasOwnProperty(n.type))throw new Error(Ti("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"?rp.required:rp[this.getType(n)]||void 0}}]),e})();Ct(wg,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");rp[t]=n;});Ct(wg,"warning",zie);Ct(wg,"messages",w2);Ct(wg,"validators",rp);const Xo="'${name}' is not a valid ${type}",uF={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:Xo,method:Xo,array:Xo,object:Xo,number:Xo,date:Xo,boolean:Xo,integer:Xo,float:Xo,regexp:Xo,email:Xo,tel:Xo,url:Xo,hex:Xo},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}"}},GO=wg;function mse(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 qO="CODE_LOGIC_ERROR";async function M2(e,t,n,r,o){const i={...n};if(delete i.ruleIndex,GO.warning=()=>{},i.validator){const g=i.validator;i.validator=(...b)=>{try{return g(...b)}catch(y){return console.error(y),Promise.reject(qO)}};}let s=null;i&&i.type==="array"&&i.defaultField&&(s=i.defaultField,delete i.defaultField);const l=new GO({[e]:[i]}),u=cf(uF,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===qO?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)=>M2(`${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"?mse(g,m):g)}function hse(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 w=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=w&&typeof w.then=="function"&&typeof w.catch=="function",Pr(x,"`callback` is deprecated. Please return a promise instead."),x&&w.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 M2(s,t,g,r,i);if(b.length){m([{errors:b,rule:g}]);return}}d([]);});else {const d=l.map(m=>M2(s,t,m,r,i).then(p=>({errors:p,rule:m})));u=(o?gse(d):pse(d)).then(m=>Promise.reject(m));}return u.catch(d=>d),u}async function pse(e){return Promise.all(e).then(t=>[].concat(...t))}async function gse(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 ar(e){return C2(e)}function KO(e,t){let n={};return t.forEach(r=>{const o=Ki(e,r);n=xi(n,r,o);}),n}function wf(e,t,n=false){return e&&e.some(r=>x0(t,r,n))}function x0(e,t,n=false){return !e||!t||!n&&e.length!==t.length?false:t.every((r,o)=>e[o]===r)}function vse(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 bse(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function YO(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 dF=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null);};class yse{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=>!x0(r,n))&&this.namePathList.push(n);}),this.doBatch();}doBatch(){this.taskId+=1;const t=this.taskId;dF(()=>{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 Sse(){return new Promise(e=>{dF(()=>{zt(()=>{e();});});})}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 Qc=[],xh=[];function Iw(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}class Cse extends f.Component{static contextType=_f;state={resetCount:0};cancelRegisterFunc=null;mounted=false;touched=false;dirty=false;validatePromise;prevValidating;errors=Qc;warnings=xh;constructor(t){if(super(t),t.fieldContext){const{getInternalHooks:n}=t.fieldContext,{initEntityValue:r}=n(hu);r(this);}}componentDidMount(){const{shouldUpdate:t,fieldContext:n}=this.props;if(this.mounted=true,n){const{getInternalHooks:r}=n,{registerField:o}=r(hu);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,ar(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};sc(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&&wf(n,u);switch(r.type==="valueUpdate"&&r.source==="external"&&!sc(d,m)&&(this.touched=true,this.dirty=true,this.validatePromise=null,this.errors=Qc,this.warnings=xh,this.triggerMetaEvent()),r.type){case "reset":if(!n||p){this.touched=false,this.dirty=false,this.validatePromise=void 0,this.errors=Qc,this.warnings=xh,this.triggerMetaEvent(),s?.(),this.refresh();return}break;case "remove":{if(o&&Iw(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||Qc),"warnings"in g&&(this.warnings=g.warnings||xh),this.dirty=true,this.triggerMetaEvent(),this.reRender();return}else if("value"in g&&wf(n,u,true)){this.reRender();return}if(o&&!u.length&&Iw(o,t,l,d,m,r)){this.reRender();return}break}case "dependenciesUpdate":{if(i.map(ar).some(b=>wf(r.relatedFields,b))){this.reRender();return}break}default:if(p||(!i.length||u.length||o)&&Iw(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 Sse();let p=this.getRules();if(o&&(p=p.filter(b=>b).filter(b=>{const{validateTrigger:y}=b;return y?C2(y).includes(o):true})),m&&o&&(await new Promise(b=>{setTimeout(b,m);}),this.validatePromise!==l))return [];const g=hse(n,r,p,t,u,d);return g.catch(b=>b).then((b=Qc)=>{if(this.validatePromise===l){this.validatePromise=null;const y=[],S=[];b.forEach?.(({rule:{warningOnly:x},errors:$=Qc})=>{x?S.push(...$):y.push(...$);}),this.errors=y,this.warnings=S,this.triggerMetaEvent(),this.reRender();}}),g});return i||(this.validatePromise=l,this.dirty=true,this.errors=Qc,this.warnings=xh,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(hu);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=si(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 Ki(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(hu),S=this.getValue(),x=u||(A=>({[l]:A})),$=t[r],w=n!==void 0?x(S):{},M={...t,...w};return M[r]=(...A)=>{this.touched=true,this.dirty=true,this.triggerMetaEvent();let P;i?P=i(...A):P=bse(l,...A),s&&(P=s(P,S,b(true))),P!==S&&y({type:"updateValue",namePath:p,value:P}),$&&$(...A);},C2(m||[]).forEach(A=>{const P=M[A];M[A]=(...N)=>{P&&P(...N);const{rules:I}=this.props;I&&I.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 fF({name:e,...t}){const n=f.useContext(_f),r=f.useContext(C0),o=e!==void 0?ar(e):void 0,i=t.isListField??!!r;let s="keep";return i||(s=`_${(o||[]).join("_")}`),f.createElement(Cse,T2({key:s,name:o,isListField:i},t,{fieldContext:n}))}function xse({name:e,initialValue:t,children:n,rules:r,validateTrigger:o,isListField:i}){const s=f.useContext(_f),l=f.useContext(C0),d=f.useRef({keys:[],id:0}).current,m=f.useMemo(()=>[...ar(s.prefixName)||[],...ar(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(C0.Provider,{value:g},f.createElement(_f.Provider,{value:p},f.createElement(fF,{name:[],shouldUpdate:b,rules:r,validateTrigger:o,initialValue:t,isList:true,isListField:i??!!l},({value:y=[],onChange:S},x)=>{const{getFieldValue:$}=s,w=()=>$(m||[])||[],M={add:(A,P)=>{const N=w();P>=0&&P<=N.length?(d.keys=[...d.keys.slice(0,P),d.id,...d.keys.slice(P)],S([...N.slice(0,P),A,...N.slice(P)])):(d.keys=[...d.keys,d.id],S([...N,A])),d.id+=1;},remove:A=>{const P=w(),N=new Set(Array.isArray(A)?A:[A]);N.size<=0||(d.keys=d.keys.filter((I,O)=>!N.has(O)),S(P.filter((I,O)=>!N.has(O))));},move(A,P){if(A===P)return;const N=w();A<0||A>=N.length||P<0||P>=N.length||(d.keys=YO(d.keys,A,P),S(YO(N,A,P)));}};let T=y||[];return Array.isArray(T)||(T=[]),n(T.map((A,P)=>{let N=d.keys[P];return N===void 0&&(d.keys[P]=d.id,N=d.keys[P],d.id+=1),{name:P,key:N,isListField:true}}),M,x)})))}function wse(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 A2="__@field_split__";function Pb(e){return e.map(t=>`${typeof t}:${t}`).join(A2)}class Gd{kvs=new Map;set(t,n){this.kvs.set(Pb(t),n);}get(t){return this.kvs.get(Pb(t))}getAsPrefix(t){const n=Pb(t),r=n+A2,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(Pb(t));}map(t){return [...this.kvs.entries()].map(([n,r])=>{const o=n.split(A2);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 $se{formHooked=false;forceRootUpdate;subscribable=true;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new yse(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===hu?(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=xi(r,o,Ki(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=Ki(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=ar(o),s=r.getAsPrefix(i);return s.length?s:[{INVALIDATE_NAME_PATH:i}]}):t.map(o=>{const i=ar(o);return r.get(i)||{INVALIDATE_NAME_PATH:ar(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=KO(this.store,s.map(ar));return l.forEach(d=>{Ki(u,d)||(u=xi(u,d,[]));}),u};getFieldValue=t=>{this.warningUnhooked();const n=ar(t);return Ki(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:ar(t[o]),errors:[],warnings:[]}));getFieldError=t=>{this.warningUnhooked();const n=ar(t);return this.getFieldsError([n])[0].errors};getFieldWarning=t=>{this.warningUnhooked();const n=ar(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(ar),i=false):(o=null,i=n):(o=n.map(ar),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(ar);return n.some(o=>{const i=o.getNamePath();return wf(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(xi(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(ar);r.forEach(o=>{const i=this.getInitialValue(o);this.updateStore(xi(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=ar(i);r.push(l),"value"in s&&this.updateStore(xi(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();Ki(this.store,r)===void 0&&this.updateStore(xi(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=>!x0(l.getNamePath(),n))){const l=this.store;this.updateStore(xi(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=ar(t),o=this.store;this.updateStore(xi(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=KO(this.store,[r]),u=this.getFieldsValue(),d=xi(u,r,Ki(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=ar(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})=>wf(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(ar):[],l=[...s],u=[],d=String(Date.now()),m=new Set,{recursive:p,dirty:g}=o||{};this.getFieldEntities(true).forEach(x=>{const $=x.getNamePath();if(i||((!x.isList()||!s.some(w=>x0(w,$,true)))&&l.push($),s.push($)),!(!x.props.rules||!x.props.rules.length)&&!(g&&!x.isFieldDirty())&&(m.add($.join(d)),!i||wf(s,$,p))){const w=x.validateRules({validateMessages:{...uF,...this.validateMessages},...o});u.push(w.then(()=>({name:$,errors:[],warnings:[]})).catch(M=>{const T=[],A=[];return M.forEach?.(({rule:{warningOnly:P},errors:N})=>{P?A.push(...N):T.push(...N);}),T.length?Promise.reject({name:$,errors:T,warnings:A}):{name:$,errors:T,warnings:A}}));}});const b=wse(u);this.lastValidatePromise=b,b.catch(x=>x).then(x=>{const $=x.map(({name:w})=>w);this.notifyObservers(this.store,$,{type:"validateFinish"}),this.triggerOnFieldsChange($,x);});const y=b.then(()=>this.lastValidatePromise===b?Promise.resolve(this.getFieldsValue(l)):Promise.reject([])).catch(x=>{const $=x.filter(M=>M&&M.errors.length),w=$[0]?.errors?.[0];return Promise.reject({message:w,values:this.getFieldsValue(s),errorFields:$,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 mF(e){const t=f.useRef(null),[,n]=f.useState({});if(!t.current)if(e)t.current=e;else {const r=()=>{n({});},o=new $se(r);t.current=o.getForm();}return [t.current]}const R2=f.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),Ese=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const o=f.useContext(R2),i=f.useRef({});return f.createElement(R2.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 N2(){return N2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},N2.apply(this,arguments)}const Mse=({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),$=f.useContext(R2),[w]=mF(r),{useSubscribe:M,setInitialValues:T,setCallbacks:A,setValidateMessages:P,setPreserve:N,destroyForm:I}=w.getInternalHooks(hu);f.useImperativeHandle(S,()=>({...w,nativeElement:x.current})),f.useEffect(()=>($.registerForm(e,w),()=>{$.unregisterForm(e);}),[$,w,e]),P({...$.validateMessages,...l}),A({onValuesChange:d,onFieldsChange:(z,...k)=>{$.triggerFormChange(e,z),m&&m(z,...k);},onFinish:z=>{$.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(()=>()=>I(b),[]);let D;const L=typeof i=="function";if(L){const z=w.getFieldsValue(true);D=i(z,w);}else D=i;M(!L);const V=f.useRef(null);f.useEffect(()=>{vse(V.current||[],n||[])||w.setFields(n||[]),V.current=n;},[n,w]);const U=f.useMemo(()=>({...w,validateTrigger:u}),[w,u]),W=f.createElement(C0.Provider,{value:null},f.createElement(_f.Provider,{value:U},D));return s===false?W:f.createElement(s,N2({},y,{ref:x,onSubmit:z=>{z.preventDefault(),z.stopPropagation(),w.submit();},onReset:z=>{z.preventDefault(),w.resetFields(),y.onReset?.(z);}}),W)};function Ow(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Tse(...e){const[t,n={}]=e,r=Lie(n)?{form:n}:n,o=r.form,[i,s]=f.useState(()=>typeof t=="function"?t({}):void 0),l=f.useMemo(()=>Ow(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(hu),S=At(($,w)=>{const M=r.preserve?w??g(true):$??g(),T=typeof t=="function"?t(M):Ki(M,ar(t));Ow(i)!==Ow(T)&&s(T);}),x=typeof t=="function"?t:JSON.stringify(t);return f.useEffect(()=>{p&&S();},[p,x]),f.useEffect(()=>p?y((w,M)=>{S(w,M);}):void 0,[p]),i}const Ase=f.forwardRef(Mse),$g=Ase;$g.FormProvider=Ese;$g.Field=fF;$g.List=xse;$g.useForm=mF;$g.useWatch=Tse;const Po=f.createContext({}),Rse=({children:e,status:t,override:n})=>{const r=f.useContext(Po),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(Po.Provider,{value:o},e)},Nse=f.createContext(void 0),uc=e=>{const{space:t,form:n,children:r}=e;if(!br(r))return null;let o=r;return n&&(o=q.createElement(Rse,{override:true,status:true},o)),t&&(o=q.createElement(Yre,null,o)),o},Pse=()=>Ii()&&window.document.documentElement;function Ise(e,t,n){return f.useMemo(()=>({...{trap:t??true,focusTriggerAfterClose:n??true},...e}),[e,t,n])}const V1=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(()=>Fo(o)?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return f.createElement("span",{className:Y(t,s,l,n),style:{...u,...r}})},Ose=new Ft("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),nA=e=>({height:e,lineHeight:ie(e)}),rc=e=>({width:e,...nA(e)}),Dse=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Ose,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Dw=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...nA(e)}),Lse=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return {[t]:{display:"inline-block",verticalAlign:"top",background:n,...rc(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...rc(o)},[`${t}${t}-sm`]:{...rc(i)}}},kse=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,...Dw(t,l)},[`${r}-lg`]:{...Dw(o,l)},[`${r}-sm`]:{...Dw(i,l)}}},hF=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,...rc(o(r).mul(2).equal())}},_se=e=>({[e.skeletonNodeCls]:{...hF(e)}}),Bse=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return {[t]:{...hF(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...rc(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%"}}},Lw=(e,t,n)=>{const{skeletonButtonCls:r}=e;return {[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},kw=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...nA(e)}),zse=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(),...kw(r,l)},...Lw(e,r,n),[`${n}-lg`]:{...kw(o,l)},...Lw(e,o,`${n}-lg`),[`${n}-sm`]:{...kw(i,l)},...Lw(e,i,`${n}-sm`)}},Fse=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:$,paragraphLiHeight:w,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,...rc(d)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...rc(m)},[`${n}-sm`]:{...rc(p)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:x,background:g,borderRadius:$,[`+ ${o}`]:{marginBlockStart:p}},[o]:{padding:0,"> li":{width:"100%",height:w,listStyle:"none",background:g,borderRadius:$,"+ 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",...zse(e),...Lse(e),...kse(e),..._se(e),...Bse(e)},[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[s]:{width:"100%"}},[`${t}${t}-active`]:{[`
        ${r},
        ${o} > li,
        ${n},
        ${i},
        ${s},
        ${l},
        ${u}
      `]:{...Dse(e)}}}},Hse=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}},Eg=qt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Vt(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 Fse(r)},Hse,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Vse=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($t),g=p("skeleton",t),[b,y]=Eg(g),S=yr($=>d??$),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(V1,{prefixCls:`${g}-avatar`,className:r?.content,style:{...l?.content,...s},shape:u,size:S,...m}))},jse=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($t),g=p("skeleton",t),[b,y]=Eg(g),S=yr($=>d??$),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(V1,{prefixCls:`${g}-button`,className:o?.content,style:{...l?.content,...s},size:S,...m}))},pF=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($t),p=m("skeleton",t),[g,b]=Eg(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))},Use=e=>{const{getPrefixCls:t}=f.useContext($t),n=t("skeleton",e.prefixCls);return f.createElement(pF,{...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($t),g=p("skeleton",t),[b,y]=Eg(g),S=yr($=>d??$),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(V1,{prefixCls:`${g}-input`,className:r?.content,style:{...u?.content,...l},size:S,...m}))},Gse=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},qse=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:Gse(l,e)}}));return f.createElement("ul",{className:Y(t,n),style:r},i)},Kse=({prefixCls:e,className:t,width:n,style:r})=>f.createElement("h3",{className:Y(e,t),style:{width:n,...r}});function _w(e){return Cn(e)?e:{}}function Yse(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Xse(e,t){return !e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Qse(e,t){const n={};return (!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const im=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:$,classNames:w,styles:M}=Gt("skeleton"),T=y("skeleton",t),[A,P]=Eg(T),N={...e,avatar:d,title:m,paragraph:p},[I,O]=Yt([w,i],[M,l],{props:N});if(n||!("loading"in e)){const D=!!d,L=!!m,V=!!p;let U;if(D){const k={className:I.avatar,prefixCls:`${T}-avatar`,...Yse(L,V),..._w(d),style:O.avatar};U=f.createElement("div",{className:Y(I.header,`${T}-header`),style:O.header},f.createElement(V1,{...k}));}let W;if(L||V){let k;if(L){const j={className:I.title,prefixCls:`${T}-title`,...Xse(D,V),..._w(m),style:O.title};k=f.createElement(Kse,{...j});}let G;if(V){const j={className:I.paragraph,prefixCls:`${T}-paragraph`,...Qse(D,L),..._w(p),style:O.paragraph};G=f.createElement(qse,{...j});}W=f.createElement("div",{className:Y(I.section,`${T}-section`),style:O.section},k,G);}const z=Y(T,{[`${T}-with-avatar`]:D,[`${T}-active`]:g,[`${T}-rtl`]:S==="rtl",[`${T}-round`]:b},I.root,x,r,o,A,P);return f.createElement("div",{className:z,style:{...O.root,...$,...s}},U,W)}return u??null};im.Button=jse;im.Avatar=Vse;im.Input=Wse;im.Image=Use;im.Node=pF;function XO(){}const Zse=f.createContext({add:XO,remove:XO});function Jse(e){const t=f.useContext(Zse),n=f.useRef(null);return At(o=>{if(o){const i=e?o.querySelector(e):o;i&&(t.add(i),n.current=i);}else t.remove(n.current);})}const QO=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=f.useContext(xg);return q.createElement(lt,{onClick:n,...e},t)},ZO=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=f.useContext(xg);return q.createElement(lt,{...FT(n),loading:e,onClick:o,...t},r)};function gF(e,t){return q.createElement("span",{className:`${e}-close-x`},t||q.createElement(rl,{className:`${e}-close-icon`}))}const vF=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:s,okButtonProps:l,cancelButtonProps:u,footer:d}=e,[m]=Ho("Modal",mz()),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(QO,null),q.createElement(ZO,null)),typeof d=="function"&&(y=d(y,{OkBtn:ZO,CancelBtn:QO})),y=q.createElement(sF,{value:b},y)):y=d,q.createElement(Iz,{disabled:false},y)},eae=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"}}}},tae=e=>{const{componentCls:t}=e;return {[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},nae=(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},P2=(e,t)=>nae(e,t),rae=(e,t,n)=>({[`@media (min-width: ${ie(t)})`]:{...P2(e,n)}}),oae=()=>({}),iae=()=>({});qt("Grid",eae,oae);const bF=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin});qt("Grid",e=>{const t=Vt(e,{gridColumns:24}),n=bF(t);return delete n.xs,[tae(t),P2(t,""),P2(t,"-xs"),Object.keys(n).map(r=>rae(t,n[r],`-${r}`)).reduce((r,o)=>({...r,...o}),{})]},iae);function JO(e){return {position:e,inset:0}}const sae=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`]:HT(e)}]},aae=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:`${ie(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...hn(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ie(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...os(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:ie(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...ai(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ie(e.borderRadiusLG)} ${ie(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:`${ie(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"}}}]},lae=e=>{const{componentCls:t}=e;return {[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},cae=e=>{const{componentCls:t}=e,n=bF(e),r={...n};delete r.xs;const o=`--${t.replace(".","")}-`,i=Object.keys(r).map(s=>({[`@media (min-width: ${ie(r[s])})`]:{width:`var(${o}${s}-width)`}}));return {[`${t}-root`]:{[t]:[].concat(Qt(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)`}],Qt(i))}}},yF=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Vt(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:`${ie(e.paddingMD)} ${ie(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ie(e.padding)} ${ie(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ie(e.paddingXS)} ${ie(e.padding)}`:0,footerBorderTop:e.wireframe?`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ie(e.padding*2)} ${ie(e.padding*2)} ${ie(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:true}),CF=qt("Modal",e=>{const t=yF(e);return [aae(t),lae(t),sae(t),Cg(t,"zoom"),cae(t)]},SF,{unitless:{titleLineHeight:true}});let I2;const uae=e=>{I2={x:e.pageX,y:e.pageY},setTimeout(()=>{I2=null;},100);};Pse()&&document.documentElement.addEventListener("click",uae,true);const xF=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:$,onOk:w,onCancel:M,okButtonProps:T,cancelButtonProps:A,destroyOnHidden:P,destroyOnClose:N,panelRef:I=null,closable:O,mask:D,modalRender:L,maskClosable:V,focusTriggerAfterClose:U,focusable:W,...z}=e,{getPopupContainer:k,getPrefixCls:G,direction:j,className:K,style:X,classNames:B,styles:H,centered:Q,cancelButtonProps:J,okButtonProps:te,mask:ne}=Gt("modal"),{modal:re}=f.useContext($t),[oe,de]=f.useMemo(()=>typeof O=="boolean"?[void 0,void 0]:[O?.afterClose,O?.onClose],[O]),ee=G("modal",t),se=G(),[le,ae,Ee]=Nne(D,ne,ee,V),ce=Ise(W,le,U),he=yt=>{S||(M?.(yt),de?.());},ge=yt=>{w?.(yt),de?.();},Ce=Zn(ee),[Re,et]=CF(ee,Ce),Ne=Y(i,{[`${ee}-centered`]:s??Q,[`${ee}-wrap-rtl`]:j==="rtl"}),ve=m!==null&&!y?f.createElement(vF,{...e,okButtonProps:{...te,...T},onOk:ge,cancelButtonProps:{...J,...A},onCancel:he}):null,[Te,Se,Ie,Ue]=IT(ac(e),ac(re),{closable:true,closeIcon:f.createElement(rl,{className:`${ee}-close-icon`}),closeIconRender:yt=>gF(ee,yt)}),je=Te?{disabled:Ie,closeIcon:Se,afterClose:oe,...Ue}:false,qe=L?yt=>f.createElement("div",{className:`${ee}-render`},L(yt)):void 0,Ze=`.${ee}-${L?"render":"container"}`,Ye=Jse(Ze),Be=Fr(I,Ye),[Ke,Qe]=Zu("Modal",x),ke={...e,width:d,panelRef:I,focusTriggerAfterClose:ce.focusTriggerAfterClose,focusable:ce,mask:le,maskClosable:Ee,zIndex:Ke},[Oe,ct]=Yt([B,p,ae],[H,g],{props:ke}),[Ot,mt]=f.useMemo(()=>Cn(d)?[void 0,d]:[d,void 0],[d]),kt=f.useMemo(()=>{const yt={};return mt&&Object.keys(mt).forEach(Dt=>{const ft=mt[Dt];br(ft)&&(yt[`--${ee}-${Dt}-width`]=Fo(ft)?`${ft}px`:ft);}),yt},[ee,mt]);return f.createElement(uc,{form:true,space:true},f.createElement(D1.Provider,{value:Qe},f.createElement(Die,{width:Ot,...z,zIndex:Ke,getContainer:l===void 0?k:l,prefixCls:ee,rootClassName:Y(Re,r,et,Ce,Oe.root),rootStyle:ct.root,footer:ve,visible:o,mousePosition:$??I2,onClose:he,closable:je,closeIcon:Se,transitionName:lc(se,"zoom",e.transitionName),maskTransitionName:lc(se,"fade",e.maskTransitionName),mask:le,maskClosable:Ee,className:Y(Re,n,K),style:{...X,...u,...kt},classNames:{...Oe,wrapper:Y(Oe.wrapper,Ne)},styles:ct,panelRef:Be,destroyOnHidden:P??N,modalRender:qe,focusTriggerAfterClose:ce.focusTriggerAfterClose,focusTrap:ce.trap},y?f.createElement(im,{active:true,title:false,paragraph:{rows:4},className:`${ee}-body-skeleton`}):b)))},dae=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`]:{...f0()},[`&${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% - ${ie(e.marginSM)})`},[`${m}-body-no-icon ${m}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${m}-paragraph`]:{maxWidth:`calc(100% - ${ie(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}}},fae=nm(["Modal","confirm"],e=>{const t=yF(e);return dae(t)},SF,{order:-1e3}),wF=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(AT,null);break;case "success":b=f.createElement(TT,null);break;case "error":b=f.createElement(vg,null);break;default:b=f.createElement(bg,null);}const y=l??s==="confirm",S=f.useMemo(()=>{const L=p?.autoFocusButton||m;return L||L===null?L:"ok"},[m,p?.autoFocusButton]),[x]=Ho("Modal"),$=d||x,w=r||(y?$?.okText:$?.justOkText),M=o||$?.cancelText,{closable:T}=g,{onClose:A}=Cn(T)?T:{},P=f.useMemo(()=>({autoFocusButton:S,cancelTextLocale:M,okTextLocale:w,mergedOkCancel:y,onClose:A,...g}),[S,M,w,y,A,g]),N=f.createElement(f.Fragment,null,f.createElement(kO,null),f.createElement(_O,null)),I=br(e.title)&&e.title!=="",O=br(b),D=`${i}-body`;return f.createElement("div",{className:`${i}-body-wrapper`},f.createElement("div",{className:Y(D,{[`${D}-has-title`]:I,[`${D}-no-icon`]:!O})},b,f.createElement("div",{className:`${i}-paragraph`},I&&f.createElement("span",{className:`${i}-title`},e.title),f.createElement("div",{className:`${i}-content`},e.content))),u===void 0||typeof u=="function"?f.createElement(sF,{value:P},f.createElement("div",{className:`${i}-btns`},typeof u=="function"?u(N,{OkBtn:_O,CancelBtn:kO}):N)):u,f.createElement(fae,{prefixCls:t}))},mae=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:$,okButtonProps:w}=Gt("modal"),M=`${i}-confirm`,T=e.width||416,A=e.style||{},P=Y(M,`${M}-${e.type}`,{[`${M}-rtl`]:o==="rtl"},e.className),N=f.useMemo(()=>{const D=a2(b,y);return D.closable??(D.closable=false),D},[b,y]),[,I]=Qr(),O=f.useMemo(()=>n!==void 0?n:I.zIndexPopupBase+DT,[n,I]);return f.createElement(xF,{...e,className:P,wrapClassName:Y({[`${M}-centered`]:!!e.centered},s),onCancel:()=>{t?.({triggerCancel:true}),m?.(false);},title:g,footer:null,transitionName:lc(l||"","zoom",e.transitionName),maskTransitionName:lc(l||"","fade",e.maskTransitionName),mask:N,style:A,styles:{body:u,mask:r,...p},width:T,zIndex:O,closable:d},f.createElement(wF,{...e,confirmPrefixCls:M,okButtonProps:{...w,...S},cancelButtonProps:{...$,...x}}))},$F=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return f.createElement(Vo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},f.createElement(mae,{...e}))},pu=[];let EF="";function MF(){return EF}const hae=e=>{const{prefixCls:t,getContainer:n,direction:r}=e,o=mz(),i=f.useContext($t),s=MF()||i.getPrefixCls(),l=t||`${s}-modal`;let u=n;return u===false&&(u=void 0),q.createElement($F,{...e,rootPrefixCls:s,prefixCls:l,iconPrefixCls:i.iconPrefixCls,theme:i.theme,direction:r??i.direction,locale:i.locale?.Modal??o,getContainer:u})};function Mg(e){const t=kT(),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<pu.length;p++)if(pu[p]===l){pu.splice(p,1);break}jz(n).then(()=>{});}const s=d=>{clearTimeout(o),o=setTimeout(()=>{const m=t.getPrefixCls(void 0,MF()),p=t.getIconPrefixCls(),g=t.getTheme(),b=q.createElement(hae,{...d});B1(q.createElement(Vo,{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),pu.push(l),{destroy:l,update:u}}function TF(e){return {...e,type:"warning"}}function AF(e){return {...e,type:"info"}}function RF(e){return {...e,type:"success"}}function NF(e){return {...e,type:"error"}}function PF(e){return {...e,type:"confirm"}}function pae({rootPrefixCls:e}){EF=e;}const gae=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($t),p=m("modal"),g=m(),b=()=>{n(),l.afterClose?.();},y=(...$)=>{s(false),$.some(M=>M?.triggerCancel)&&l.onCancel?.(()=>{},...$.slice(1));};f.useImperativeHandle(t,()=>({destroy:y,update:$=>{u(w=>{const M=typeof $=="function"?$(w):$;return {...w,...M}});}}));const S=l.okCancel??l.type==="confirm",[x]=Ho("Modal",Ps.Modal);return f.createElement($F,{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 eD=0;const vae=f.memo(f.forwardRef((e,t)=>{const[n,r]=One();return f.useImperativeHandle(t,()=>({patchElement:r}),[r]),f.createElement(f.Fragment,null,n)}));function IF(){const e=f.useRef(null),[t,n]=f.useState([]);f.useEffect(()=>{t.length&&(Qt(t).forEach(s=>{s();}),n([]));},[t]);const r=f.useCallback(i=>function(l){eD+=1;const u=f.createRef();let d;const m=new Promise(S=>{d=S;});let p=false,g;const b=f.createElement(gae,{key:`modal-${eD}`,config:i(l),ref:u,afterClose:()=>{g?.();},isSilent:()=>p,onConfirm:S=>{d(S);}});return g=e.current?.patchElement(b),g&&pu.push(g),{destroy:()=>{function S(){u.current?.destroy();}u.current?S():n(x=>[].concat(Qt(x),[S]));},update:S=>{function x(){u.current?.update(S);}u.current?x():n($=>[].concat(Qt($),[x]));},then:S=>(p=true,m.then(S))}},[]);return [f.useMemo(()=>({info:r(AF),success:r(RF),error:r(NF),warning:r(TF),confirm:r(PF)}),[r]),f.createElement(vae,{key:"modal-holder",ref:e})]}const bae=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new Ft("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),s=new Ft("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new Ft("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),u=new Ft("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}}}}},yae=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Sae={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Cae=(e,t)=>{const{componentCls:n}=e;return {[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Sae[t]]:{value:0,_skip_check_:true}}}}},xae=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}},wae=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},$ae=e=>{const{componentCls:t}=e;return {[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:{transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute",...xae(e)}},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:{...wae(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"}}},...yae.map(n=>Cae(e,n)).reduce((n,r)=>({...n,...r}),{})}},OF=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:$,lineHeight:w,width:M,notificationIconSize:T,colorText:A,colorSuccessBg:P,colorErrorBg:N,colorInfoBg:I,colorWarningBg:O,motionDurationMid:D}=e,L=`${n}-notice`;return {position:"relative",marginBottom:i,marginInlineStart:"auto",background:g,borderRadius:s,boxShadow:r,[L]:{padding:b,width:M,maxWidth:`calc(100vw - ${ie(e.calc(y).mul(2).equal())})`,lineHeight:w,wordWrap:"break-word",borderRadius:s,overflow:"hidden","&-success":P?{background:P}:{},"&-error":N?{background:N}:{},"&-info":I?{background:I}:{},"&-warning":O?{background:O}:{}},[`${L}-title`]:{marginBottom:e.marginXS,color:p,fontSize:o,lineHeight:e.lineHeightLG},[`${L}-description`]:{fontSize:$,color:A,marginTop:e.marginXS,"&:first-child":{marginTop:0,marginInlineEnd:e.marginSM}},[`${L}-closable ${L}-title`]:{paddingInlineEnd:e.paddingLG},[`${L}-with-icon ${L}-title`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(T).equal(),fontSize:o},[`${L}-with-icon ${L}-description`]:{marginInlineStart:e.calc(e.marginSM).add(T).equal(),fontSize:$},[`${L}-icon`]:{position:"absolute",fontSize:T,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:u},[`&-warning${t}`]:{color:d},[`&-error${t}`]:{color:m}},[`${L}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:["color","background-color"].map(V=>`${V} ${D}`).join(", "),display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...ai(e)},[`${L}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${ie(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}},[`${L}-actions`]:{float:"right",marginTop:e.marginSM}}},Eae=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,s=`${t}-notice`,l=new Ft("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return [{[t]:{...hn(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`]:OF(e)}}]},DF=e=>({zIndexPopup:e.zIndexPopupBase+DT+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),LF=e=>{const t=e.paddingMD,n=e.paddingLG;return Vt(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:`${ie(e.paddingMD)} ${ie(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2})},kF=qt("Notification",e=>{const t=LF(e);return [Eae(t),bae(t),$ae(t)]},DF),Mae=nm(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=LF(e);return {[`${t}-pure-panel`]:{...OF(n),width:n.width,maxWidth:`calc(100vw - ${ie(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0}}},DF);function rA(e,t){return t===null||t===false?null:t||f.createElement(rl,{className:`${e}-close-icon`})}const Tae={success:TT,info:AT,error:vg,warning:bg},_F=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(Tae[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,o&&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))},Aae=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:$,style:w,classNames:M,styles:T}=Gt("notification"),[A,P]=Yt([M,b],[T,g],{props:e}),{notification:N}=f.useContext($t),I=u??l,O=i??o,D=t||x("notification"),L=`${D}-notice`,V=Zn(D),[U,W]=kF(D,V),[z,k,,G]=IT(ac(e),ac(N),{closable:true,closeIcon:f.createElement(rl,{className:`${D}-close-icon`}),closeIconRender:K=>rA(D,K)}),j=z?{onClose:Cn(y)?y?.onClose:void 0,closeIcon:k,...G}:false;return f.createElement("div",{className:Y(`${L}-pure-panel`,U,m,W,V,A.root),style:P.root},f.createElement(Mae,{prefixCls:D}),f.createElement(_T,{style:{...w,...p},...S,prefixCls:D,eventKey:"pure",duration:null,closable:j,className:Y(m,$),content:f.createElement(_F,{classNames:A,styles:P,prefixCls:L,icon:n,type:r,title:O,description:s,actions:I})}))};function Rae(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 Nae(e){return {motionName:`${e}-fade`}}function Pae(e,t,n){return typeof e<"u"?e:typeof t?.closeIcon<"u"?t.closeIcon:n?.closeIcon}const tD=24,Iae=4.5,Oae="topRight",Dae=({children:e,prefixCls:t})=>{const n=Zn(t),[r,o]=kF(t,n);return q.createElement(_z,{classNames:{list:Y(r,o,n)}},e)},Lae=(e,{prefixCls:t,key:n})=>q.createElement(Dae,{prefixCls:t,key:n},e),kae=q.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:s,rtl:l,onAllRemoved:u,stack:d,duration:m=Iae,pauseOnHover:p=true,showProgress:g}=e,{getPrefixCls:b,getPopupContainer:y,direction:S}=Gt("notification"),{notification:x}=f.useContext($t),[,$]=Qr(),w=o||b("notification"),M=f.useMemo(()=>Fo(m)&&m>0?m:false,[m]),T=L=>Rae(L,n??tD,r??tD),A=()=>Y({[`${w}-rtl`]:l??S==="rtl"}),P=()=>Nae(w),[N,I]=Bz({prefixCls:w,style:T,className:A,motion:P,closable:{closeIcon:rA(w)},duration:M,getContainer:()=>i?.()||y?.()||document.body,maxCount:s,pauseOnHover:p,showProgress:g,onAllRemoved:u,renderNotifications:Lae,stack:d===false?false:{threshold:Cn(d)?d?.threshold:void 0,offset:8,gap:$.margin}}),[O,D]=Yt([x?.classNames,e?.classNames],[x?.styles,e?.styles],{props:e});return q.useImperativeHandle(t,()=>({...N,prefixCls:w,notification:x,classNames:O,styles:D})),I});function BF(e){const t=q.useRef(null),{notification:n}=q.useContext($t);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:$,message:w,description:M,icon:T,type:A,btn:P,actions:N,className:I,style:O,role:D="alert",closeIcon:L,closable:V,classNames:U={},styles:W={},...z}=u,k=$??w,G=N??P,j=rA(x,Pae(L,e,p)),[K,X,,B]=pz(ac({...e||{},...u}),ac(n),{closable:true,closeIcon:j}),H=K?{onClose:Cn(V)?V.onClose:void 0,closeIcon:X,...B}:false,Q=Ql(U,{props:u}),J=Ql(W,{props:u}),te=O1(void 0,g,Q),ne=OT(b,J);return d({placement:e?.placement??Oae,...z,content:q.createElement(_F,{prefixCls:x,icon:T,type:A,title:k,description:M,actions:G,role:D,classNames:te,styles:ne}),className:Y({[`${x}-${A}`]:A},I,y,te.root),style:{...S,...ne.root,...O},closable:H})},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(kae,{key:"notification-holder",...e,ref:t})]}function zF(e){return BF(e)}const w0=q.createContext({}),FF=q.createContext({message:{},notification:{},modal:{}}),_ae=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return {[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},Bae=()=>({}),zae=qt("App",_ae,Bae),Fae=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}=Gt("app"),b=m("app",t),[y,S]=zae(b),x=Y(y,b,r,o,S,{[`${b}-rtl`]:d==="rtl"}),$=f.useContext(w0),w=q.useMemo(()=>({message:{...$.message,...i},notification:{...$.notification,...s}}),[i,s,$.message,$.notification]),[M,T]=Vz(w.message),[A,P]=zF(w.notification),[N,I]=IF(),O=q.useMemo(()=>({message:M,notification:A,modal:N}),[M,A,N]),D=u===false?q.Fragment:u,L={className:Y(p,x),style:{...g,...l}};return q.createElement(FF.Provider,{value:O},q.createElement(w0.Provider,{value:w},q.createElement(D,{...u===false?void 0:L},I,T,P,n)))},Hae=()=>q.useContext(FF),Tg=Fae;Tg.useApp=Hae;function HF(e){return t=>f.createElement(Vo,{theme:{token:{motion:false,zIndexPopupBase:0}}},f.createElement(e,{...t}))}const oA=(e,t,n,r,o)=>HF(s=>{const{prefixCls:l,style:u}=s,d=f.useRef(null),[m,p]=f.useState(0),[g,b]=f.useState(0),[y,S]=mn(false,s.open),{getPrefixCls:x}=f.useContext($t),$=x(r||"select",l);f.useEffect(()=>{if(S(true),typeof ResizeObserver<"u"){const T=new ResizeObserver(P=>{const N=P[0].target;p(N.offsetHeight+8),b(N.offsetWidth);}),A=setInterval(()=>{const P=o?`.${o($)}`:`.${$}-dropdown`,N=d.current?.querySelector(P);N&&(clearInterval(A),T.observe(N));},10);return ()=>{clearInterval(A),T.disconnect();}}},[$]);let w={...s,style:{...u,margin:0},open:y,getPopupContainer:()=>d.current};n&&(w=n(w)),t&&(w={...w,[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,{...w}))}),Vae=(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])},VF=f.createContext(null);function Ju(){return f.useContext(VF)}function jae(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 jF(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function Uae(e,t,n,r){const o=At(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&&!jF(e(),s)&&n(false);});f.useEffect(()=>(window.addEventListener("mousedown",o),()=>window.removeEventListener("mousedown",o)),[o]);}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 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"}}},Gae=(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:$,empty:w,onPopupVisibleChange:M,onPopupMouseEnter:T,onPopupMouseDown:A,onPopupBlur:P,...N}=e,I=`${n}-dropdown`;let O=s;S&&(O=S(s));const D=f.useMemo(()=>b||Wae(y),[b,y]),L=l?`${I}-${l}`:u,V=typeof y=="number",U=f.useMemo(()=>V?null:y===false?"minWidth":"width",[y,V]);let W=d;V&&(W={...d,width:y});const z=f.useRef(null);return f.useImperativeHandle(t,()=>({getPopupElement:()=>z.current?.popupElement})),f.createElement(k1,O2({},N,{showAction:M?["click"]:[],hideAction:M?["click"]:[],popupPlacement:g||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:D,prefixCls:I,popupMotion:{motionName:L},popup:f.createElement("div",{onMouseEnter:T,onMouseDown:A,onBlur:P},O),ref:z,stretch:U,popupAlign:x,popupVisible:o,getPopupContainer:$,popupClassName:Y(m,{[`${I}-empty`]:w}),popupStyle:W,onPopupVisibleChange:M}),i)},qae=f.forwardRef(Gae);function nD(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 D2(e){return typeof e<"u"&&!Number.isNaN(e)}function UF(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 Kae(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:o,value:i,options:s,groupLabel:l}=UF(t,false);function u(d,m){Array.isArray(d)&&d.forEach(p=>{if(m||!(s in p)){const g=p[i];r.push({key:nD(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:nD(p,r.length),group:true,data:p,label:g}),u(p[s],true);}});}return u(e,false),r}function L2(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 Yae=(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 Xae(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 Qae=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null);},iA=(e,t=1)=>{if(t<=0){e();return}Qae(()=>{iA(e,t-1);});};function Zae(e,t,n,r){const[o,i]=f.useState(false);f.useEffect(()=>{i(true);},[]);const[s,l]=mn(e,t),[u,d]=f.useState(false),m=o?s:false,p=r(m),g=f.useRef(0),b=At(S=>{n&&p!==S&&n(S),l(S);}),y=At((S,x={})=>{const{cancelFun:$}=x;g.current+=1;const w=g.current,M=typeof S=="boolean"?S:!p;d(!M);function T(){w===g.current&&!$?.()&&(b(M),d(false));}M?T():iA(()=>{T();});});return [m,p,y,u]}function Bw(e){const{children:t,...n}=e;return t?f.createElement("div",n,t):null}const WF=f.createContext(null);function Ag(){return f.useContext(WF)}const GF=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:$,placeholder:w,components:{input:M="input"}}=Ag(),{id:T,classNames:A,styles:P,open:N,activeDescendantId:I,role:O,disabled:D}=Ju()||{},L=Y(`${p}-input`,A?.input,u),V=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($&&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,V.current),n?.(te);},k=te=>{const{key:ne}=te,{value:re}=te.currentTarget;ne==="Enter"&&g==="tags"&&!N&&!V.current&&y&&y(re),r?.(te);},G=te=>{S?.(),o?.(te);},j=()=>{V.current=true;},K=te=>{if(V.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||"";},[B,H]=f.useState(void 0);In(()=>{const te=W.current;if(s&&te){te.style.width="0px";const ne=te.scrollWidth;H(ne),te.style.width="";}},[s,l]);const Q={id:T,type:g==="combobox"?"text":"search",...m,ref:W,style:{...P?.input,...i,"--select-input-width":B},autoFocus:x,autoComplete:d||"off",className:L,disabled:D,value:l||"",onChange:z,onKeyDown:k,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?I:void 0};if(f.isValidElement(M)){const te=M.props||{},ne={placeholder:e.placeholder||w,...Q,...te};return Object.keys(te).forEach(re=>{const oe=te[re];typeof oe=="function"&&(ne[re]=(...de)=>{oe(...de),Q[re]?.(...de);});}),ne.ref=Fr(M.ref,Q.ref),f.cloneElement(M,ne)}const J=M;return f.createElement(J,Q)});function qF(e){const{prefixCls:t,placeholder:n,displayValues:r}=Ag(),{classNames:o,styles:i}=Ju(),{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 sA=f.createContext(null);function KF(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Jae(e){return e!=null}function ele(e){return !e&&e!==0}function rD(e){return ["string","number"].includes(typeof e)}function k2(e){let t;return e&&(rD(e.title)?t=e.title.toString():rD(e.label)&&(t=e.label.toString())),t}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 tle=f.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:o,displayValues:i,maxLength:s,mode:l,components:u}=Ag(),{triggerOpen:d,title:m,showSearch:p,classNames:g,styles:b}=Ju(),y=f.useContext(sA),[S,x]=f.useState(false),$=l==="combobox",w=i[0],M=f.useMemo(()=>$&&o&&!S&&d?o:p?r:"",[$,o,S,d,r,p]),[T,A,P,N]=f.useMemo(()=>{let L,V,U;if(w&&y?.flattenOptions){const z=y.flattenOptions.find(k=>k.value===w.value);z?.data&&(L=z.data.className,V=z.data.style,U=k2(z.data));}return w&&!U&&(U=k2(w)),m!==void 0&&(U=m),[L,V,U,!!L||!!V]},[w,y?.flattenOptions,m]);f.useEffect(()=>{$&&x(false);},[$,o]);const I=w&&w.label!==null&&w.label!==void 0&&String(w.label).trim()!=="",D=!($&&u?.input)?w?N?f.createElement("div",{className:Y(`${n}-content-value`,T),style:{...M?{visibility:"hidden"}:{},...A},title:P},w.label):w.label:f.createElement(qF,{show:!M}):null;return f.createElement("div",{className:Y(`${n}-content`,I&&`${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:P},D,f.createElement(GF,_2({ref:t},e,{value:M,maxLength:l==="combobox"?s:void 0,onChange:L=>{x(true),e.onChange?.(L);}})))}),qd=void 0;function nle(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,$=s&&!b;function w(N){u(d,N);}f.useEffect(()=>()=>{w(null);},[]);const M=i&&o!==qd?i(o,{index:y}):g;let T;r||(T={opacity:$?0:1,height:$?0:qd,overflowY:$?"hidden":qd,order:s?y:qd,pointerEvents:$?"none":qd,position:$?"absolute":qd});const A={};$&&(A["aria-hidden"]=true);let P=f.createElement(S,ur({className:Y(!r&&n,m),style:{...T,...p}},A,x,{ref:t}),M);return s&&(P=f.createElement(Es,{onResize:({offsetWidth:N})=>{w(N);},disabled:l},P)),P}const Wh=f.forwardRef(nle);function rle(e){if(typeof MessageChannel>"u")zt(e);else {const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0);}}function ole(){const e=f.useRef(null);return n=>{e.current||(e.current=[],rle(()=>{Lo.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=At(i=>{e(()=>{r(i);});});return [n,o]}const $0=q.createContext(null),ile=(e,t)=>{const n=f.useContext($0);if(!n){const{component:l="div",...u}=e;return f.createElement(l,ur({},u,{ref:t}))}const{className:r,...o}=n,{className:i,...s}=e;return f.createElement($0.Provider,{value:null},f.createElement(Wh,ur({ref:t,className:Y(r,i)},o,s)))},sle=f.forwardRef(ile),YF="responsive",XF="invalidate";function ale(e){return `+ ${e.length} ...`}function lle(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:$,onVisibleChange:w,...M}=e,T=u==="full",A=ole(),[P,N]=Kd(A,null),I=P||0,[O,D]=Kd(A,new Map),[L,V]=Kd(A,0),[U,W]=Kd(A,0),[z,k]=Kd(A,0),[G,j]=Kd(A,0),[K,X]=f.useState(null),[B,H]=f.useState(null),Q=f.useMemo(()=>B===null&&T?Number.MAX_SAFE_INTEGER:B||0,[B,P]),[J,te]=f.useState(false),ne=`${n}-item`,re=Math.max(L,U),oe=p===YF,de=r.length&&oe,ee=p===XF,se=de||typeof p=="number"&&r.length>p,le=f.useMemo(()=>{let Be=r;return de?P===null&&T?Be=r:Be=r.slice(0,Math.min(r.length,I/l)):typeof p=="number"&&(Be=r.slice(0,p)),Be},[r,l,P,p,de]),ae=f.useMemo(()=>de?r.slice(Q+1):r.slice(le.length),[r,le,de,Q]),Ee=f.useCallback((Be,Ke)=>typeof s=="function"?s(Be):(s&&Be?.[s])??Ke,[s]),ce=f.useCallback(o||(Be=>Be),[o]);function he(Be,Ke,Qe){B===Be&&(Ke===void 0||Ke===K)||(H(Be),Qe||(te(Be<r.length-1),w?.(Be)),Ke!==void 0&&X(Ke));}function ge(Be,Ke){N(Ke.clientWidth);}function Ce(Be,Ke){D(Qe=>{const ke=new Map(Qe);return Ke===null?ke.delete(Be):ke.set(Be,Ke),ke});}function Re(Be,Ke){W(Ke),V(U);}function et(Be,Ke){k(Ke);}function Ne(Be,Ke){j(Ke);}function ve(Be){return O.get(Ee(le[Be],Be))}In(()=>{if(I&&typeof re=="number"&&le){let Be=z+G;const Ke=le.length,Qe=Ke-1;if(!Ke){he(0,null);return}for(let ke=0;ke<Ke;ke+=1){let Oe=ve(ke);if(T&&(Oe=Oe||0),Oe===void 0){he(ke-1,void 0,true);break}if(Be+=Oe,Qe===0&&Be<=I||ke===Qe-1&&Be+ve(Qe)<=I){he(Qe,null);break}else if(Be+re>I){he(ke-1,Be-Oe-G+U);break}}S&&ve(0)+G>I&&X(null);}},[I,O,U,z,G,Ee,le]);const Te=J&&!!ae.length;let Se={};K!==null&&de&&(Se={position:"absolute",left:K,top:0});const Ie={prefixCls:ne,responsive:de,component:$,invalidate:ee},Ue=i?(Be,Ke)=>{const Qe=Ee(Be,Ke);return f.createElement($0.Provider,{key:Qe,value:{...Ie,order:Ke,item:Be,itemKey:Qe,registerSize:Ce,display:Ke<=Q}},i(Be,Ke))}:(Be,Ke)=>{const Qe=Ee(Be,Ke);return f.createElement(Wh,ur({},Ie,{order:Ke,key:Qe,item:Be,renderItem:ce,itemKey:Qe,registerSize:Ce,display:Ke<=Q}))},je={order:Te?Q:Number.MAX_SAFE_INTEGER,className:`${ne}-rest`,registerSize:Re,display:Te},qe=g||ale,Ze=b?f.createElement($0.Provider,{value:{...Ie,...je}},b(ae)):f.createElement(Wh,ur({},Ie,je),typeof qe=="function"?qe(ae):qe),Ye=f.createElement(x,ur({className:Y(!ee&&n,m),style:d,ref:t},M),y&&f.createElement(Wh,ur({},Ie,{responsive:oe,responsiveDisabled:!de,order:-1,className:`${ne}-prefix`,registerSize:et,display:true}),y),le.map(Ue),se?Ze:null,S&&f.createElement(Wh,ur({},Ie,{responsive:oe,responsiveDisabled:!de,order:Q,className:`${ne}-suffix`,registerSize:Ne,display:true,style:Se}),S));return oe?f.createElement(Es,{onResize:ge,disabled:!de},Ye):Ye}const Ga=f.forwardRef(lle);Ga.Item=sle;Ga.RESPONSIVE=YF;Ga.INVALIDATE=XF;const QF=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 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)}function cle(e){return e.key??e.value}const oD=e=>{e.preventDefault(),e.stopPropagation();},ule=f.forwardRef(function({inputProps:t},n){const{prefixCls:r,displayValues:o,searchValue:i,mode:s,onSelectorRemove:l,removeIcon:u}=Ag(),{disabled:d,showSearch:m,triggerOpen:p,rawOpen:g,toggleOpen:b,autoClearSearchValue:y,tagRender:S,maxTagPlaceholder:x,maxTagTextLength:$,maxTagCount:w,classNames:M,styles:T}=Ju(),A=`${r}-selection-item`;let P=i;!g&&s==="multiple"&&y!==false&&(P="");const N=m&&P||"",I=m&&!d,O=u??"×",D=x??(j=>`+ ${j.length} ...`),L=S,V=j=>{b(j);},U=j=>{l?.(j);},W=(j,K,X,B,H)=>f.createElement("span",{title:k2(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),B&&f.createElement(QF,{className:Y(`${A}-remove`,M?.itemRemove),style:T?.itemRemove,onMouseDown:oD,onClick:H,customizeIcon:O},"×")),z=(j,K,X,B,H,Q,J)=>{const te=ne=>{oD(ne),V(!p);};return f.createElement("span",{onMouseDown:te},L({label:K,value:j,index:J?.index,disabled:X,closable:B,onClose:H,isMaxTag:!!Q}))},k=(j,K)=>{const{disabled:X,label:B,value:H}=j,Q=!d&&!X;let J=B;if(typeof $=="number"&&(typeof B=="string"||typeof B=="number")){const ne=String(J);ne.length>$&&(J=`${ne.slice(0,$)}...`);}const te=ne=>{ne&&ne.stopPropagation(),U(j);};return typeof L=="function"?z(H,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 L=="function"?z(void 0,K,false,false,void 0,true):W({title:K},K,false)};return f.createElement(Ga,{prefixCls:`${r}-content`,className:M?.content,style:T?.content,prefix:!o.length&&!N&&f.createElement(qF,null),data:o,renderItem:k,renderRest:G,suffix:f.createElement(GF,B2({ref:n,disabled:d,readOnly:!I},t,{value:N||"",syncWidth:true})),itemKey:cle,maxCount:w})}),dle=f.forwardRef(function(t,n){const{multiple:r,onInputKeyDown:o,tabIndex:i}=Ag(),s=Ju(),{showSearch:l}=s,d={...No(s,{aria:true}),onKeyDown:o,readOnly:!l,tabIndex:i};return r?f.createElement(ule,{ref:n,inputProps:d}):f.createElement(tle,{ref:n,inputProps:d})});function fle(e){return e&&![st.ESC,st.SHIFT,st.BACKSPACE,st.TAB,st.WIN_KEY,st.ALT,st.META,st.WIN_KEY_RIGHT,st.CTRL,st.SEMICOLON,st.EQUALS,st.CAPS_LOCK,st.CONTEXT_MENU,st.UP,st.LEFT,st.RIGHT,st.F1,st.F2,st.F3,st.F4,st.F5,st.F6,st.F7,st.F8,st.F9,st.F10,st.F11,st.F12].includes(e)}function 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 mle=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],hle=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:$,maxLength:w,autoFocus:M,onMouseDown:T,onClearMouseDown:A,onInputKeyDown:P,onSelectorRemove:N,tokenWithEnter:I,components:O,...D}=t,{triggerOpen:L,toggleOpen:V,showSearch:U,disabled:W,loading:z,classNames:k,styles:G}=Ju(),j=f.useRef(null),K=f.useRef(null),X=At(re=>{const{which:oe}=re,de=K.current instanceof HTMLTextAreaElement;if(!de&&L&&(oe===st.UP||oe===st.DOWN)&&re.preventDefault(),P&&P(re),de&&!L&&~[st.UP,st.DOWN,st.LEFT,st.RIGHT].indexOf(oe))return;!(re.ctrlKey||re.altKey||re.metaKey)&&fle(oe)&&V(true);});f.useImperativeHandle(n,()=>({focus:re=>{(K.current||j.current).focus?.(re);},blur:()=>{(K.current||j.current).blur?.();},nativeElement:Fu(j.current)}));const B=At(re=>{if(!W){const oe=Fu(K.current);re.nativeEvent._ori_target=oe;const de=oe===re.target||oe?.contains(re.target);oe&&!de&&re.preventDefault();const le=L&&!m&&(b==="combobox"||U)||L&&m&&de;re.nativeEvent._select_lazy?L&&V(false):(K.current?.focus(),le||V());}T?.(re);}),{root:H}=O,Q=Vn(D,mle),J=No(Q,{aria:true}),te=Object.keys(J),ne={...t,onInputKeyDown:X};if(H){const re=H.props||{},oe={...re,...Q};return Object.keys(re).forEach(de=>{const ee=re[de],se=Q[de];typeof ee=="function"&&typeof se=="function"&&(oe[de]=(...le)=>{se(...le),ee(...le);});}),f.isValidElement(H)?f.cloneElement(H,{...oe,ref:Fr(H.ref,j)}):f.createElement(H,E0({},oe,{ref:j}))}return f.createElement(WF.Provider,{value:ne},f.createElement("div",E0({},Vn(Q,te),{ref:j,className:o,style:i,onMouseDown:B}),f.createElement(Bw,{className:Y(`${r}-prefix`,k?.prefix),style:G?.prefix},s),f.createElement(dle,{ref:K}),f.createElement(Bw,{className:Y(`${r}-suffix`,{[`${r}-suffix-loading`]:z},k?.suffix),style:G?.suffix},l),u&&f.createElement(Bw,{className:Y(`${r}-clear`,k?.clear),style:G?.clear,onMouseDown:re=>{re.nativeEvent._select_lazy=true,A?.(re);}},u),d))});function ple(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 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 F2=e=>e==="tags"||e==="multiple",gle=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:$,placeholder:w,mode:M,disabled:T,loading:A,getInputElement:P,getRawInputElement:N,open:I,defaultOpen:O,onPopupVisibleChange:D,activeValue:L,onActiveValueChange:V,activeDescendantId:U,searchValue:W,autoClearSearchValue:z,onSearch:k,onSearchSplit:G,tokenSeparators:j,allowClear:K,prefix:X,suffix:B,suffixIcon:H,clearIcon:Q,OptionList:J,animation:te,transitionName:ne,popupStyle:re,popupClassName:oe,popupMatchSelectWidth:de,popupRender:ee,popupAlign:se,placement:le,builtinPlacements:ae,getPopupContainer:Ee,showAction:ce=[],onFocus:he,onBlur:ge,onKeyUp:Ce,onKeyDown:Re,onMouseDown:et,components:Ne,...ve}=e,Te=F2(M),Se=f.useRef(null),Ie=f.useRef(null),Ue=f.useRef(null),[je,qe]=f.useState(false);f.useImperativeHandle(t,()=>({focus:Se.current?.focus,blur:Se.current?.blur,scrollTo:Xe=>Ue.current?.scrollTo(Xe),nativeElement:Fu(Se.current)}));const Ze=ple(Ne,P,N),Ye=f.useMemo(()=>{if(M!=="combobox")return W;const Xe=g[0]?.value;return typeof Xe=="string"||typeof Xe=="number"?String(Xe):""},[W,M,g]),Be=M==="combobox"&&typeof P=="function"&&P()||null,Ke=!S&&y,[Qe,ke,Oe,ct]=Zae(O||false,I,D,Xe=>T||Ke?false:Xe),Ot=f.useMemo(()=>(j||[]).some(Xe=>[`
`,`\r
`].includes(Xe)),[j]),mt=(Xe,Mt,wt)=>{if(Te&&D2($)&&g.length>=$)return;let Bt=true,tn=Xe;V?.(null);const nn=Yae(Xe,j,D2($)?$-g.length:void 0),xn=wt?null:nn;return M!=="combobox"&&xn&&(tn="",G?.(xn),Oe(false),Bt=false),k&&Ye!==tn&&k(tn,{source:Mt?"typing":"effect"}),Xe&&Mt&&Bt&&Oe(true),Bt},kt=Xe=>{!Xe||!Xe.trim()||k(Xe,{source:"submit"});};f.useEffect(()=>{!Qe&&!Te&&M!=="combobox"&&mt("",false,false);},[Qe]),f.useEffect(()=>{T&&(Oe(false),qe(false));},[T,ke]);const[yt,Dt]=jae(),ft=f.useRef(false),ut=Xe=>{const Mt=yt(),{key:wt}=Xe,Bt=wt==="Enter",tn=wt===" ";if(Bt||tn){const nn=M==="combobox";(tn&&!(nn||l)||Bt&&!nn)&&Xe.preventDefault(),ke||Oe(true);}if(Dt(!!Ye),wt==="Backspace"&&!Mt&&Te&&!Ye&&g.length){const nn=[...g];let xn=null;for(let fr=nn.length-1;fr>=0;fr-=1){const bn=nn[fr];if(!bn.disabled){nn.splice(fr,1),xn=bn;break}}xn&&b(nn,{type:"remove",values:[xn]});}ke&&(!Bt||!ft.current)&&!tn&&(Bt&&(ft.current=true),Ue.current?.onKeyDown(Xe)),Re?.(Xe);},vt=(Xe,...Mt)=>{ke&&Ue.current?.onKeyUp(Xe,...Mt),Xe.key==="Enter"&&(ft.current=false),Ce?.(Xe,...Mt);},He=At(Xe=>{const Mt=g.filter(wt=>wt!==Xe);b(Mt,{type:"remove",values:[Xe]});}),Ge=()=>{ft.current=false;},be=()=>[Fu(Se.current),Ie.current?.getPopupElement()];Uae(be,ke,Oe,!!Ze.root);const Me=f.useRef(false),ye=Xe=>{qe(true),T||(ce.includes("focus")&&Oe(true),he?.(Xe));},me=()=>{ke&&!Me.current&&Oe(false,{cancelFun:()=>jF(be(),document.activeElement)});},Le=Xe=>{qe(false),Ye&&(M==="tags"?k(Ye,{source:"submit"}):M==="multiple"&&k("",{source:"blur"})),me(),T||ge?.(Xe);},xe=(Xe,...Mt)=>{const{target:wt}=Xe;Ie.current?.getPopupElement()?.contains(wt)&&Oe&&Oe(true),et?.(Xe,...Mt),Me.current=true,iA(()=>{Me.current=false;});},[,ze]=f.useState({});function tt(){ze({});}let it;Ze.root&&(it=Xe=>{Oe(Xe);});const dt=f.useMemo(()=>({...e,notFoundContent:S,open:ke,triggerOpen:ke,rawOpen:Qe,id:n,showSearch:l,multiple:Te,toggleOpen:Oe,showScrollBar:d,styles:i,classNames:s,lockOptions:ct}),[e,S,Oe,n,l,Te,ke,Qe,d,i,s,ct]),Et=f.useMemo(()=>{const Xe=B??H;return typeof Xe=="function"?Xe({searchValue:Ye,open:ke,focused:je,showSearch:l,loading:A}):Xe},[B,H,Ye,ke,je,l,A]),_t=()=>{x?.(),Se.current?.focus(),b([],{type:"clear",values:g}),mt("",false,false);},{allowClear:Nt,clearIcon:pn}=Vae(r,g,K,Q,T,Ye,M),Wn=f.createElement(J,{ref:Ue}),at=Y(r,o,{[`${r}-focused`]:je,[`${r}-multiple`]:Te,[`${r}-single`]:!Te,[`${r}-allow-clear`]:Nt,[`${r}-show-arrow`]:Et!=null,[`${r}-disabled`]:T,[`${r}-loading`]:A,[`${r}-open`]:ke,[`${r}-customize-input`]:Be,[`${r}-show-search`]:l});let Ve=f.createElement(hle,z2({},ve,{ref:Se,prefixCls:r,className:at,focused:je,prefix:X,suffix:Et,clearIcon:pn,multiple:Te,mode:M,displayValues:g,placeholder:w,searchValue:Ye,activeValue:L,onSearch:mt,onSearchSubmit:kt,onInputBlur:Ge,onFocus:ye,onBlur:Le,onClearMouseDown:_t,onKeyDown:ut,onKeyUp:vt,onSelectorRemove:He,tokenWithEnter:Ot,onMouseDown:xe,components:Ze}));return Ve=f.createElement(qae,{ref:Ie,disabled:T,prefixCls:r,visible:ke,popupElement:Wn,animation:te,transitionName:ne,popupStyle:re,popupClassName:oe,direction:m,popupMatchSelectWidth:de,popupRender:ee,popupAlign:se,placement:le,builtinPlacements:ae,getPopupContainer:Ee,empty:y,onPopupVisibleChange:it,onPopupMouseEnter:tt,onPopupMouseDown:xe,onPopupBlur:me},Ve),f.createElement(VF.Provider,{value:dt},f.createElement(Xae,{visible:je&&!ke,values:g}),Ve)}),aA=()=>null;aA.isSelectOptGroup=true;const lA=()=>null;lA.isSelectOption=true;const ZF=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(Es,{onResize:({offsetHeight:g})=>{g&&i&&i();}},f.createElement("div",ur({style:p,className:Y({[`${o}-holder-inner`]:o}),ref:d},s),r,u)))});ZF.displayName="Filler";function vle({children:e,setRef:t}){const n=f.useCallback(r=>{t(r);},[]);return f.cloneElement(e,{ref:n})}function ble(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(vle,{key:g,setRef:b=>i(u,b)},p)})}function yle(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 Sle(e,t,n){const[r,o]=f.useState(e),[i,s]=f.useState(null);return f.useEffect(()=>{const l=yle(r||[],e||[],t);l?.index!==void 0&&s(e[l.index]),o(e);},[e]),[i]}const iD=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),JF=((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 Cle(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=JF(t,n,r,o);function g(w,M){if(zt.cancel(u.current),p(false,M))return;const T=w;if(!T._virtualHandled)T._virtualHandled=true;else return;l.current+=M,d.current=M,iD||T.preventDefault(),u.current=zt(()=>{const A=m.current?10:1;s(l.current*A,false),l.current=0;});}function b(w,M){s(M,true),iD||w.preventDefault();}const y=f.useRef(null),S=f.useRef(null);function x(w){if(!e)return;zt.cancel(S.current),S.current=zt(()=>{y.current=null;},2);const{deltaX:M,deltaY:T,shiftKey:A}=w;let P=M,N=T;(y.current==="sx"||!y.current&&A&&T&&!M)&&(P=T,N=0,y.current="sx");const I=Math.abs(P),O=Math.abs(N);y.current===null&&(y.current=i&&I>O?"x":"y"),y.current==="y"?g(w,N):b(w,P);}function $(w){e&&(m.current=w.detail===d.current);}return [x,$]}function xle(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 wle{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 sD(e){const t=parseFloat(e);return isNaN(t)?0:t}function $le(e,t,n){const[r,o]=f.useState(0),i=f.useRef(new Map),s=f.useRef(new wle),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:$,marginBottom:w}=getComputedStyle(y),M=sD($),T=sD(w),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 aD=14/15;function Ele(e,t,n){const r=f.useRef(false),o=f.useRef(0),i=f.useRef(0),s=f.useRef(null),l=f.useRef(null);let u;const d=g=>{if(r.current){const b=Math.ceil(g.touches[0].pageX),y=Math.ceil(g.touches[0].pageY);let S=o.current-b,x=i.current-y;const $=Math.abs(S)>Math.abs(x);$?o.current=b:i.current=y;const w=n($,$?S:x,false,g);w&&g.preventDefault(),clearInterval(l.current),w&&(l.current=setInterval(()=>{$?S*=aD:x*=aD;const M=Math.floor($?S:x);(!n($,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));},In(()=>(e&&t.current.addEventListener("touchstart",p,{passive:true}),()=>{t.current?.removeEventListener("touchstart",p),u(),clearInterval(l.current);}),[e]);}function lD(e){return Math.floor(e**.5)}function H2(e,t){return ("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function Mle(e,t,n){f.useEffect(()=>{const r=t.current;if(e&&r){let o=false,i,s;const l=()=>{zt.cancel(i);},u=()=>{l(),i=zt(()=>{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=H2(g,false),{top:y,bottom:S}=r.getBoundingClientRect();if(b<=y){const x=y-b;s=-lD(x),u();}else if(b>=S){const x=b-S;s=lD(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 Tle=10;function Ale(e,t,n,r,o,i,s,l){const u=f.useRef(),[d,m]=f.useState(null);return In(()=>{if(d&&d.times<Tle){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,$=p,w=null;if(S){const M=p||g;let T=0,A=0,P=0;const N=Math.min(t.length-1,b);for(let O=0;O<=N;O+=1){const D=o(t[O]);A=T;const L=n.get(D);P=A+(L===void 0?r:L),T=P;}let I=M==="top"?y:S-y;for(let O=N;O>=0;O-=1){const D=o(t[O]),L=n.get(D);if(L===void 0){x=true;break}if(I-=L,I<=0)break}switch(M){case "top":w=A-y;break;case "bottom":w=P-S+y;break;default:{const{scrollTop:O}=e.current,D=O+S;A<O?$="top":P>D&&($="bottom");}}w!==null&&s(w),w!==d.lastTop&&(x=true);}x&&m({...d,times:d.times+1,targetAlign:$,lastTop:w});}},[d,e.current]),p=>{if(p==null){l();return}if(zt.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 cD=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]=f.useState(null),[M,T]=f.useState(null),A=!r,P=f.useRef(),N=f.useRef(),[I,O]=f.useState(y),D=f.useRef(),L=()=>{y===true||y===false||(clearTimeout(D.current),O(true),D.current=setTimeout(()=>{O(false);},3e3));},V=i-p||0,U=p-m||0,W=f.useMemo(()=>o===0||V===0?0:o/V*U,[o,V,U]),z=Q=>{Q.stopPropagation(),Q.preventDefault();},k=f.useRef({top:W,dragging:S,pageY:$,startTop:M});k.current={top:W,dragging:S,pageY:$,startTop:M};const G=Q=>{x(true),w(H2(Q,d)),T(k.current.top),s(),Q.stopPropagation(),Q.preventDefault();};f.useEffect(()=>{const Q=ne=>{ne.preventDefault();},J=P.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=V;const K=f.useRef();K.current=U,f.useEffect(()=>{if(S){let Q;const J=ne=>{const{dragging:re,pageY:oe,startTop:de}=k.current;zt.cancel(Q);const ee=P.current.getBoundingClientRect(),se=p/(d?ee.width:ee.height);if(re){const le=(H2(ne,d)-oe)*se;let ae=de;!A&&d?ae-=le:ae+=le;const Ee=j.current,ce=K.current,he=ce?ae/ce:0;let ge=Math.ceil(he*Ee);ge=Math.max(ge,0),ge=Math.min(ge,Ee),Q=zt(()=>{u(ge,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),zt.cancel(Q);}}},[S]),f.useEffect(()=>(L(),()=>{clearTimeout(D.current);}),[o]),f.useImperativeHandle(t,()=>({delayHidden:L}));const X=`${n}-scrollbar`,B={position:"absolute",visibility:I?null:"hidden"},H={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(B,{height:8,left:0,right:0,bottom:0}),Object.assign(H,{height:"100%",width:m,[A?"left":"right"]:W})):(Object.assign(B,{width:8,top:0,bottom:0,[A?"right":"left"]:0}),Object.assign(H,{width:"100%",height:m,top:W})),f.createElement("div",{ref:P,className:Y(X,{[`${X}-horizontal`]:d,[`${X}-vertical`]:!d,[`${X}-visible`]:I}),style:{...B,...g},onMouseDown:z,onMouseMove:L},f.createElement("div",{ref:N,className:Y(`${X}-thumb`,{[`${X}-thumb-moving`]:S}),style:{...H,...b},onMouseDown:G}))}),Rle=20;function uD(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Rle),Math.floor(n)}const Nle=[],Ple={overflowY:"auto",overflowAnchor:"none"};function Ile(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:$,innerProps:w,extraRender:M,styles:T,showScrollBar:A="optional",...P}=e,N=f.useCallback(ye=>typeof m=="function"?m(ye):ye?.[m],[m]),[I,O,D,L]=$le(N),V=!!(p!==false&&o&&i),U=f.useMemo(()=>Object.values(D.maps).reduce((ye,me)=>ye+me,0),[D.id,D.maps]),W=V&&u&&(Math.max(i*u.length,U)>o||!!b),z=g==="rtl",k=Y(n,{[`${n}-rtl`]:z},r),G=u||Nle,j=f.useRef(),K=f.useRef(),X=f.useRef(),[B,H]=f.useState(0),[Q,J]=f.useState(0),[te,ne]=f.useState(false),re=()=>{ne(true);},oe=()=>{ne(false);},de={getKey:N};function ee(ye){H(me=>{let Le;typeof ye=="function"?Le=ye(me):Le=ye;const xe=je(Le);return j.current.scrollTop=xe,xe});}const se=f.useRef({start:0,end:G.length}),le=f.useRef(),[ae]=Sle(G,N);le.current=ae;const{scrollHeight:Ee,start:ce,end:he,offset:ge}=f.useMemo(()=>{if(!V)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 ye=0,me,Le,xe;const ze=G.length;for(let tt=0;tt<ze;tt+=1){const it=G[tt],dt=N(it),Et=D.get(dt),_t=ye+(Et===void 0?i:Et);_t>=B&&me===void 0&&(me=tt,Le=ye),_t>B+o&&xe===void 0&&(xe=tt),ye=_t;}return me===void 0&&(me=0,Le=0,xe=Math.ceil(o/i)),xe===void 0&&(xe=G.length-1),xe=Math.min(xe+1,G.length-1),{scrollHeight:ye,start:me,end:xe,offset:Le}},[W,V,B,G,L,o]);se.current.start=ce,se.current.end=he,f.useLayoutEffect(()=>{const ye=D.getRecord();if(ye.size===1){const me=Array.from(ye.keys())[0],Le=ye.get(me),xe=G[ce];if(xe&&Le===void 0&&N(xe)===me){const it=D.get(me)-i;ee(dt=>dt+it);}}D.resetRecord();},[Ee]);const[Ce,Re]=f.useState({width:0,height:o}),et=ye=>{Re({width:ye.offsetWidth,height:ye.offsetHeight});},Ne=f.useRef(),ve=f.useRef(),Te=f.useMemo(()=>uD(Ce.width,b),[Ce.width,b]),Se=f.useMemo(()=>uD(Ce.height,Ee),[Ce.height,Ee]),Ie=Ee-o,Ue=f.useRef(Ie);Ue.current=Ie;function je(ye){let me=ye;return Number.isNaN(Ue.current)||(me=Math.min(me,Ue.current)),me=Math.max(me,0),me}const qe=B<=0,Ze=B>=Ie,Ye=Q<=0,Be=Q>=b,Ke=JF(qe,Ze,Ye,Be),Qe=()=>({x:z?-Q:Q,y:B}),ke=f.useRef(Qe()),Oe=At(ye=>{if(x){const me={...Qe(),...ye};(ke.current.x!==me.x||ke.current.y!==me.y)&&(x(me),ke.current=me);}});function ct(ye,me){const Le=ye;me?(Lo.flushSync(()=>{J(Le);}),Oe()):ee(Le);}function Ot(ye){const{scrollTop:me}=ye.currentTarget;me!==B&&ee(me),S?.(ye),Oe();}const mt=ye=>{let me=ye;const Le=b?b-Ce.width:0;return me=Math.max(me,0),me=Math.min(me,Le),me},kt=At((ye,me)=>{me?(Lo.flushSync(()=>{J(Le=>{const xe=Le+(z?-ye:ye);return mt(xe)});}),Oe()):ee(Le=>Le+ye);}),[yt,Dt]=Cle(V,qe,Ze,Ye,Be,!!b,kt);Ele(V,j,(ye,me,Le,xe)=>{const ze=xe;return Ke(ye,me,Le)?false:!ze||!ze._virtualHandled?(ze&&(ze._virtualHandled=true),yt({preventDefault(){},deltaX:ye?me:0,deltaY:ye?0:me}),true):false}),Mle(W,j,ye=>{ee(me=>me+ye);}),In(()=>{function ye(Le){const xe=qe&&Le.detail<0,ze=Ze&&Le.detail>0;V&&!xe&&!ze&&Le.preventDefault();}const me=j.current;return me.addEventListener("wheel",yt,{passive:false}),me.addEventListener("DOMMouseScroll",Dt,{passive:true}),me.addEventListener("MozMousePixelScroll",ye,{passive:false}),()=>{me.removeEventListener("wheel",yt),me.removeEventListener("DOMMouseScroll",Dt),me.removeEventListener("MozMousePixelScroll",ye);}},[V,qe,Ze]),In(()=>{if(b){const ye=mt(Q);J(ye),Oe({x:ye});}},[Ce.width,b]);const ft=()=>{Ne.current?.delayHidden(),ve.current?.delayHidden();},ut=Ale(j,G,D,i,N,()=>O(true),ee,ft);f.useImperativeHandle(t,()=>({nativeElement:X.current,getScrollInfo:Qe,scrollTo:ye=>{function me(Le){return Le&&typeof Le=="object"&&("left"in Le||"top"in Le)}me(ye)?(ye.left!==void 0&&J(mt(ye.left)),ut(ye.top)):ut(ye);}})),In(()=>{if($){const ye=G.slice(ce,he+1);$(ye,G);}},[ce,he,G]);const vt=xle(G,N,D,i),He=M?.({start:ce,end:he,virtual:W,offsetX:Q,offsetY:ge,rtl:z,getSize:vt}),Ge=ble(G,ce,he,b,Q,I,d,de);let be=null;o&&(be={[s?"height":"maxHeight"]:o,...Ple},V&&(be.overflowY="hidden",b&&(be.overflowX="hidden"),te&&(be.pointerEvents="none")));const Me={};return z&&(Me.dir="rtl"),f.createElement("div",ur({ref:X,style:{...l,position:"relative"},className:k},Me,P),f.createElement(Es,{onResize:et},f.createElement(y,{className:`${n}-holder`,style:be,ref:j,onScroll:Ot,onMouseEnter:ft},f.createElement(ZF,{prefixCls:n,height:Ee,offsetX:Q,offsetY:ge,scrollWidth:b,onInnerResize:O,ref:K,innerProps:w,rtl:z,extra:He},Ge))),W&&Ee>o&&f.createElement(cD,{ref:Ne,prefixCls:n,scrollOffset:B,scrollRange:Ee,rtl:z,onScroll:ct,onStartMove:re,onStopMove:oe,spinSize:Se,containerSize:Ce.height,style:T?.verticalScrollBar,thumbStyle:T?.verticalScrollBarThumb,showScrollBar:A}),W&&b>Ce.width&&f.createElement(cD,{ref:ve,prefixCls:n,scrollOffset:Q,scrollRange:b,rtl:z,onScroll:ct,onStartMove:re,onStopMove:oe,spinSize:Te,containerSize:Ce.width,horizontal:true,style:T?.horizontalScrollBar,thumbStyle:T?.horizontalScrollBarThumb,showScrollBar:A}))}const e7=f.forwardRef(Ile);e7.displayName="List";function Ole(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}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)}function dD(e){return typeof e=="string"||typeof e=="number"}const Dle=(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}=Ju(),{maxCount:b,flattenOptions:y,onActiveValue:S,defaultActiveFirstOption:x,onSelect:$,menuItemSelectedIcon:w,rawValues:M,fieldNames:T,virtual:A,direction:P,listHeight:N,listItemHeight:I,optionRender:O,classNames:D,styles:L}=f.useContext(sA),V=`${n}-item`,U=Jf(()=>y,[o,g],(ee,se)=>se[0]&&!se[1]),W=f.useRef(null),z=f.useMemo(()=>i&&D2(b)&&M?.size>=b,[i,b,M?.size]),k=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,se=1)=>{const le=U.length;for(let ae=0;ae<le;ae+=1){const Ee=(ee+ae*se+le)%le,{group:ce,data:he}=U[Ee]||{};if(!ce&&!he?.disabled&&(j(he.value)||!z))return Ee}return  -1},[X,B]=f.useState(()=>K(0)),H=(ee,se=false)=>{B(ee);const le={source:se?"keyboard":"mouse"},ae=U[ee];if(!ae){S(null,-1,le);return}S(ae.value,ee,le);};f.useEffect(()=>{H(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 se=Array.from(M)[0],le=U.findIndex(({data:ae})=>l?String(ae.value).startsWith(l):ae.value===se);le!==-1&&(H(le),ee=setTimeout(()=>{G(le);}));}return o&&W.current?.scrollTo(void 0),()=>clearTimeout(ee)},[o,l]);const J=ee=>{ee!==void 0&&$(ee,{selected:!M.has(ee)}),i||u(false);};if(f.useImperativeHandle(t,()=>({onKeyDown:ee=>{const{which:se,ctrlKey:le}=ee;switch(se){case st.N:case st.P:case st.UP:case st.DOWN:{let ae=0;if(se===st.UP?ae=-1:se===st.DOWN?ae=1:Ole()&&le&&(se===st.N?ae=1:se===st.P&&(ae=-1)),ae!==0){const Ee=K(X+ae,ae);G(Ee),H(Ee,true);}break}case st.TAB:case st.ENTER:{const ae=U[X];if(!ae||ae.data.disabled)return J(void 0);!z||M.has(ae.value)?J(ae.value):J(void 0),o&&ee.preventDefault();break}case st.ESC:u(false),o&&ee.stopPropagation();}},onKeyUp:()=>{},scrollTo:ee=>{G(ee);}})),U.length===0)return f.createElement("div",{role:"listbox",id:`${r}_list`,className:`${V}-empty`,onMouseDown:k},d);const te=Object.keys(T).map(ee=>T[ee]),ne=ee=>ee.label;function re(ee,se){const{group:le}=ee;return {role:le?"presentation":"option",id:`${r}_list_${se}`}}const oe=ee=>{const se=U[ee];if(!se)return null;const le=se.data||{},{value:ae,disabled:Ee}=le,{group:ce}=se,he=No(le,true),ge=ne(se);return se?f.createElement("div",op({"aria-label":typeof ge=="string"&&!ce?ge:null},he,{key:ee},re(se,ee),{"aria-selected":Q(ae),"aria-disabled":Ee}),ae):null},de={role:"listbox",id:`${r}_list`};return f.createElement(f.Fragment,null,A&&f.createElement("div",op({},de,{style:{height:0,width:0,overflow:"hidden"}}),oe(X-1),oe(X),oe(X+1)),f.createElement(e7,{itemKey:"key",ref:W,data:U,height:N,itemHeight:I,fullHeight:false,onMouseDown:k,onScroll:m,virtual:A,direction:P,innerProps:A?null:de,showScrollBar:p,className:D?.popup?.list,style:L?.popup?.list},(ee,se)=>{const{group:le,groupOption:ae,data:Ee,label:ce,value:he}=ee,{key:ge}=Ee;if(le){const Qe=Ee.title??(dD(ce)?ce.toString():void 0);return f.createElement("div",{className:Y(V,`${V}-group`,Ee.className),title:Qe},ce!==void 0?ce:ge)}const{disabled:Ce,title:Re,children:et,style:Ne,className:ve,...Te}=Ee,Se=Vn(Te,te),Ie=j(he),Ue=Ce||!Ie&&z,je=`${V}-option`,qe=Y(V,je,ve,D?.popup?.listItem,{[`${je}-grouped`]:ae,[`${je}-active`]:X===se&&!Ue,[`${je}-disabled`]:Ue,[`${je}-selected`]:Ie}),Ze=ne(ee),Ye=!w||typeof w=="function"||Ie,Be=typeof Ze=="number"?Ze:Ze||he;let Ke=dD(Be)?Be.toString():void 0;return Re!==void 0&&(Ke=Re),f.createElement("div",op({},No(Se),A?{}:re(ee,se),{"aria-selected":A?void 0:Q(he),"aria-disabled":Ue,className:qe,title:Ke,onMouseMove:()=>{X===se||Ue||H(se);},onClick:()=>{Ue||J(he);},style:{...L?.popup?.listItem,...Ne}}),f.createElement("div",{className:`${je}-content`},typeof O=="function"?O(ee,{index:se}):Be),f.isValidElement(w)||Ie,Ye&&f.createElement(QF,{className:`${V}-option-state`,customizeIcon:w,customizeIconProps:{value:he,disabled:Ue,isSelected:Ie}},Ie?"✓":null))}))},Lle=f.forwardRef(Dle),kle=((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 zw(e,t){return KF(e).join("").toUpperCase().includes(t)}const _le=((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=>zw(y[S],m)):y[i]?zw(y[s!=="children"?s:"label"],m):zw(y[l],m),g=d?b=>L2(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 Ble(e){const{key:t,props:{children:n,value:r,...o}}=e;return {key:t,value:r!==void 0?r:t,children:n,...o}}function t7(e,t=false){return si(e).map((n,r)=>{if(!f.isValidElement(n)||!n.type)return null;const{type:{isSelectOptGroup:o},key:i,props:{children:s,...l}}=n;return t||!o?Ble(n):{key:`__RC_SELECT_GRP__${i===null?r:i}__`,label:i,...l,options:t7(s)}}).filter(n=>n)}const zle=(e,t,n,r,o)=>f.useMemo(()=>{let i=e;!e&&(i=t7(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 fD(e){const t=f.useRef();return t.current=e,f.useCallback((...r)=>t.current(...r),[])}function Fle(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 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 Hle=["inputValue"];function Vle(e){return !e||typeof e!="object"}const jle=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:$=true,optionLabelProp:w,options:M,optionRender:T,children:A,defaultActiveFirstOption:P,menuItemSelectedIcon:N,virtual:I,direction:O,listHeight:D=200,listItemHeight:L=20,labelRender:V,value:U,defaultValue:W,labelInValue:z,onChange:k,maxCount:G,classNames:j,styles:K,...X}=e,B={searchValue:u,onSearch:d,autoClearSearchValue:m,filterOption:p,optionFilterProp:g,filterSort:b},[H,Q]=Fle(l,B,r),{filterOption:J,searchValue:te,optionFilterProp:ne,filterSort:re,onSearch:oe,autoClearSearchValue:de=true}=Q,ee=f.useMemo(()=>ne?Array.isArray(ne)?ne:[ne]:[],[ne]),se=ol(n),le=F2(r),ae=!!(!M&&A),Ee=f.useMemo(()=>J===void 0&&r==="combobox"?false:J,[J,r]),ce=f.useMemo(()=>UF(s,ae),[JSON.stringify(s),ae]),[he,ge]=mn("",te),Ce=he||"",Re=zle(M,A,ce,ee,w),{valueOptions:et,labelOptions:Ne,options:ve}=Re,Te=f.useCallback(xe=>KF(xe).map(tt=>{let it,dt,Et,_t;Vle(tt)?it=tt:(dt=tt.label,it=tt.value);const Nt=et.get(it);return Nt&&(dt===void 0&&(dt=Nt?.[w||ce.label]),Et=Nt?.disabled,_t=Nt?.title),{label:dt,value:it,key:it,disabled:Et,title:_t}}),[ce,w,et]),[Se,Ie]=mn(W,U),Ue=f.useMemo(()=>{const ze=Te(le&&Se===null?[]:Se);return r==="combobox"&&ele(ze[0]?.value)?[]:ze},[Se,Te,r,le]),[je,qe]=kle(Ue,et),Ze=f.useMemo(()=>{if(!r&&je.length===1){const xe=je[0];if(xe.value===null&&(xe.label===null||xe.label===void 0))return []}return je.map(xe=>({...xe,label:(typeof V=="function"?V(xe):xe.label)??xe.value}))},[r,je,V]),Ye=f.useMemo(()=>new Set(je.map(xe=>xe.value)),[je]);f.useEffect(()=>{if(r==="combobox"){const xe=je[0]?.value;ge(Jae(xe)?String(xe):"");}},[je]);const Be=fD((xe,ze)=>{const tt=ze??xe;return {[ce.value]:xe,[ce.label]:tt}}),Ke=f.useMemo(()=>{if(r!=="tags")return ve;const xe=[...ve],ze=tt=>et.has(tt);return [...je].sort((tt,it)=>tt.value<it.value?-1:1).forEach(tt=>{const it=tt.value;ze(it)||xe.push(Be(it,tt.label));}),xe},[Be,ve,et,je,r]),Qe=_le(Ke,ce,Ce,Ee,ee),ke=f.useMemo(()=>{const xe=ze=>ee.length?ee.some(tt=>ze?.[tt]===Ce):ze?.value===Ce;return r!=="tags"||!Ce||Qe.some(ze=>xe(ze))||Qe.some(ze=>ze[ce.value]===Ce)?Qe:[Be(Ce),...Qe]},[Be,ee,r,Qe,Ce,ce]),Oe=xe=>[...xe].sort((tt,it)=>re(tt,it,{searchValue:Ce})).map(tt=>Array.isArray(tt.options)?{...tt,options:tt.options.length>0?Oe(tt.options):tt.options}:tt),ct=f.useMemo(()=>re?Oe(ke):ke,[ke,re,Ce]),Ot=f.useMemo(()=>Kae(ct,{fieldNames:ce,childrenAsData:ae}),[ct,ce,ae]),mt=xe=>{const ze=Te(xe);if(Ie(ze),k&&(ze.length!==je.length||ze.some((tt,it)=>je[it]?.value!==tt?.value))){const tt=z?ze.map(({label:dt,value:Et})=>({label:dt,value:Et})):ze.map(dt=>dt.value),it=ze.map(dt=>L2(qe(dt.value)));k(le?tt:tt[0],le?it:it[0]);}},[kt,yt]=f.useState(null),[Dt,ft]=f.useState(0),ut=P!==void 0?P:r!=="combobox",vt=f.useRef(),He=f.useCallback((xe,ze,{source:tt="keyboard"}={})=>{ft(ze),i&&r==="combobox"&&xe!==null&&tt==="keyboard"&&yt(String(xe));const it=Promise.resolve().then(()=>{vt.current===it&&x?.(xe);});vt.current=it;},[i,r,x]),Ge=(xe,ze,tt)=>{const it=()=>{const dt=qe(xe);return [z?{label:dt?.[ce.label],value:xe}:xe,L2(dt)]};if(ze&&y){const[dt,Et]=it();y(dt,Et);}else if(!ze&&S&&tt!=="clear"){const[dt,Et]=it();S(dt,Et);}},be=fD((xe,ze)=>{let tt;const it=le?ze.selected:true;it?tt=le?[...je,xe]:[xe]:tt=je.filter(dt=>dt.value!==xe),mt(tt),Ge(xe,it),r==="combobox"?yt(""):(!F2||de)&&(ge(""),yt(""));}),Me=(xe,ze)=>{mt(xe);const{type:tt,values:it}=ze;(tt==="remove"||tt==="clear")&&it.forEach(dt=>{Ge(dt.value,false,tt);});},ye=(xe,ze)=>{if(ge(xe),yt(null),ze.source==="submit"){const tt=(xe||"").trim();if(tt){const it=Array.from(new Set([...Ye,tt]));mt(it),Ge(tt,true),ge("");}return}ze.source!=="blur"&&(r==="combobox"&&mt(xe),oe?.(xe));},me=xe=>{let ze=xe;r!=="tags"&&(ze=xe.map(it=>Ne.get(it)?.value).filter(it=>it!==void 0));const tt=Array.from(new Set([...Ye,...ze]));mt(tt),tt.forEach(it=>{Ge(it,true);});},Le=f.useMemo(()=>({...Re,flattenOptions:Ot,onActiveValue:He,defaultActiveFirstOption:ut,onSelect:be,menuItemSelectedIcon:N,rawValues:Ye,fieldNames:ce,virtual:I!==false&&$!==false,direction:O,listHeight:D,listItemHeight:L,childrenAsData:ae,maxCount:G,optionRender:T,classNames:j,styles:K}),[G,Re,Ot,He,ut,be,N,Ye,ce,I,$,O,D,L,ae,T,j,K]);return f.createElement(sA.Provider,{value:Le},f.createElement(gle,V2({},X,{id:se,prefixCls:o,ref:t,omitDomProps:Hle,mode:r,classNames:j,styles:K,displayValues:Ze,onDisplayValuesChange:Me,maxCount:G,direction:O,showSearch:H,searchValue:Ce,onSearch:ye,autoClearSearchValue:de,onSearchSplit:me,popupMatchSelectWidth:$,OptionList:Lle,emptyOptions:!Ot.length,activeValue:kt,activeDescendantId:`${se}_list_${Dt}`})))}),cA=jle;cA.Option=lA;cA.OptGroup=aA;const dc=(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}),sm=(e,t)=>t||e,Ule=()=>{const[,e]=Qr(),[t]=Ho("Empty"),r=new vn(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]=Qr(),[t]=Ho("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:s,shadowColor:l,contentColor:u}=f.useMemo(()=>({borderColor:new vn(n).onBackground(i).toHexString(),shadowColor:new vn(r).onBackground(i).toHexString(),contentColor:new vn(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}))))},Gle=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}}}}},qle=qt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Vt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return Gle(o)}),n7=f.createElement(Ule,null),r7=f.createElement(Wle,null),Qi=e=>{const{className:t,rootClassName:n,prefixCls:r,image:o,description:i,children:s,imageStyle:l,style:u,classNames:d,styles:m,...p}=e,{getPrefixCls:g,direction:b,className:y,style:S,classNames:x,styles:$,image:w}=Gt("empty"),M=g("empty",r),[T,A]=qle(M),[P,N]=Yt([x,d],[$,m],{props:e}),[I]=Ho("Empty"),O=typeof i<"u"?i:I?.description,D=typeof O=="string"?O:"empty",L=o??w??n7;let V=null;return typeof L=="string"?V=f.createElement("img",{draggable:false,alt:D,src:L}):V=L,f.createElement("div",{className:Y(T,A,M,y,{[`${M}-normal`]:L===r7,[`${M}-rtl`]:b==="rtl"},t,n,P.root),style:{...N.root,...S,...u},...p},f.createElement("div",{className:Y(`${M}-image`,P.image),style:{...l,...N.image}},V),O&&f.createElement("div",{className:Y(`${M}-description`,P.description),style:N.description},O),s&&f.createElement("div",{className:Y(`${M}-footer`,P.footer),style:N.footer},s))};Qi.PRESENTED_IMAGE_DEFAULT=n7;Qi.PRESENTED_IMAGE_SIMPLE=r7;const o7=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext($t),r=n("empty");switch(t){case "Table":case "List":return q.createElement(Qi,{image:Qi.PRESENTED_IMAGE_SIMPLE});case "Select":case "TreeSelect":case "Cascader":case "Transfer":case "Mentions":return q.createElement(Qi,{image:Qi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case "Table.filter":return null;default:return q.createElement(Qi,null)}},j1=(e,t,n)=>{const{variant:r,[e]:o}=f.useContext($t),i=f.useContext(Nse),s=o?.variant;let l;typeof t<"u"?l=t:n===false?l="borderless":l=i??s??r??"outlined";const u=nee.includes(l);return [l,u]},Kle=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 Yle(e,t){return e||Kle(t)}const mD=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"}},Xle=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`]:{...hn(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:VT},[`
          ${o}${l}topLeft,
          ${i}${l}topLeft,
          ${o}${l}topRight,
          ${i}${l}topRight
        `]:{animationName:UT},[`${s}${l}bottomLeft`]:{animationName:jT},[`
          ${s}${l}topLeft,
          ${s}${l}topRight
        `]:{animationName:WT},"&-hidden":{display:"none"},[r]:{...mD(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",...sa},"&-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":{...mD(e),color:e.colorTextDisabled}},[`${u}:has(+ ${u})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${u}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},cc(e,"slide-up"),cc(e,"slide-down"),y0(e,"move-up"),y0(e,"move-down")]},Qle=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"}}}}},hD=4,Zle=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% - ${hD}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":{...sa,marginInlineEnd:i},"&-remove":{...Xu(),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:hD,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"}}}}},Fw=(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 ${ie(e.controlOutlineWidth)} ${u}`}},[`&${n}-disabled`]:{[o("border-color")]:t.borderDisabled||t.border,[o("background-color")]:t.backgroundDisabled||t.background}}},Ib=(e,t,n,r={},o={},i)=>{const{componentCls:s}=e;return {[`&${s}-${t}`]:[Fw(e,n),{[`&${s}-status-error`]:Fw(e,{...n,color:r.color||e.colorError,...r}),[`&${s}-status-warning`]:Fw(e,{...n,color:o.color||e.colorWarning,...o})},i]}},Jle=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")})`,...hn(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`]:{...sa,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`]:{...sa,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"}},Zle(e),Ib(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}),Ib(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}),Ib(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),Ib(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",borderInlineColor:"transparent"}),Qle(e)]}},ece=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:$,colorPrimaryHover:w,colorPrimary:M,controlOutline:T}=e,A=l*2,P=r*2,N=Math.min(o-A,o-P),I=Math.min(i-A,i-P),O=Math.min(s-A,s-P);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:I,multipleItemHeightLG:O,multipleSelectorBgDisabled:x,multipleItemColorDisabled:$,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:w,activeBorderColor:M,activeOutlineColor:T,selectAffixPadding:l}},tce=e=>{const{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:o}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return {[n]:{...hn(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...sa,[`> ${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()}}}}}},nce=e=>{const{componentCls:t}=e;return [{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},tce(e),Xle(e),{[`${t}-rtl`]:{direction:"rtl"}},om(e,{focusElCls:`${t}-focused`})]},rce=qt("Select",(e,{rootPrefixCls:t})=>{const n=Vt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [nce(n),Jle(n)]},ece,{unitless:{optionLineHeight:true,optionSelectedFontWeight:true}});var oce={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 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 ice=(e,t)=>f.createElement(Qn,j2({},e,{ref:t,icon:oce})),sce=f.forwardRef(ice);var ace={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 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 lce=(e,t)=>f.createElement(Qn,U2({},e,{ref:t,icon:ace})),uA=f.forwardRef(lce);var cce={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 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 uce=(e,t)=>f.createElement(Qn,W2({},e,{ref:t,icon:cce})),dA=f.forwardRef(uce);function dce({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(vg,null),b=$=>e===null&&!l&&!m?null:f.createElement(f.Fragment,null,u!==false&&$,l&&d);let y=null;e!==void 0?y=b(e):o?y=b(i??f.createElement(_1,{spin:true})):y=({open:$,showSearch:w})=>b($&&w?f.createElement(dA,null):f.createElement(uA,null));let S=null;n!==void 0?S=n:s?S=f.createElement(sce,null):S=null;let x=null;return r!==void 0?x=r:x=f.createElement(rl,null),{clearIcon:g,suffixIcon:y,itemIcon:S,removeIcon:x}}function fce(e){return q.useMemo(()=>{if(e)return (...t)=>q.createElement(uc,{space:true},e.apply(void 0,t))},[e])}function mce(e,t){return t!==void 0?t:e!==null}const i7="SECRET_COMBOBOX_MODE_DO_NOT_USE",hce=(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:$,popupMatchSelectWidth:w,direction:M,style:T,allowClear:A,variant:P,popupStyle:N,dropdownStyle:I,transitionName:O,tagRender:D,maxCount:L,prefix:V,dropdownRender:U,popupRender:W,onDropdownVisibleChange:z,onOpenChange:k,styles:G,classNames:j,...K}=e,{getPopupContainer:X,getPrefixCls:B,renderEmpty:H,direction:Q,virtual:J,popupMatchSelectWidth:te,popupOverflow:ne}=f.useContext($t),{showSearch:re,style:oe,styles:de,className:ee,classNames:se}=Gt("select"),[,le]=Qr(),ae=p??le?.controlHeight,Ee=B("select",n),ce=B(),he=M??Q,{compactSize:ge,compactItemClassnames:Ce}=il(Ee,he),[Re,et]=j1("select",P,r),Ne=Zn(Ee),[ve,Te]=rce(Ee,Ne),Se=f.useMemo(()=>{const{mode:ze}=e;if(ze!=="combobox")return ze===i7?"combobox":ze},[e.mode]),Ie=Se==="multiple"||Se==="tags",Ue=mce(e.suffixIcon,e.showArrow),je=w??$??te,qe=fce(W||U),Ze=k||z,{status:Ye,hasFeedback:Be,isFormItemInput:Ke,feedbackIcon:Qe}=f.useContext(Po),ke=sm(Ye,S);let Oe;y!==void 0?Oe=y:Se==="combobox"?Oe=null:Oe=H?.("Select")||f.createElement(o7,{componentName:"Select"});const{suffixIcon:ct,itemIcon:Ot,removeIcon:mt,clearIcon:kt}=dce({...K,multiple:Ie,hasFeedback:Be,feedbackIcon:Qe,showSuffixIcon:Ue,componentName:"Select"}),yt=A===true?{clearIcon:kt}:A,Dt=Vn(K,["suffixIcon","itemIcon"]),ft=yr(ze=>g??ge??ze),ut=f.useContext(po),vt=b??ut,He={...e,variant:Re,status:ke,disabled:vt,size:ft},[Ge,be]=Yt([se,j],[de,G],{props:He},{popup:{_default:"root"}}),Me=Y(Ge.popup?.root,l,u,{[`${Ee}-dropdown-${he}`]:he==="rtl"},i,Te,Ne,ve),ye={...be.popup?.root,...N??I},me=Y({[`${Ee}-lg`]:ft==="large",[`${Ee}-sm`]:ft==="small",[`${Ee}-rtl`]:he==="rtl",[`${Ee}-${Re}`]:et,[`${Ee}-in-form-item`]:Ke},dc(Ee,ke,Be),Ce,ee,o,Ge.root,i,Te,Ne,ve),Le=f.useMemo(()=>m!==void 0?m:he==="rtl"?"bottomRight":"bottomLeft",[m,he]),[xe]=Zu("SelectLike",be.popup?.root?.zIndex??ye?.zIndex);return f.createElement(cA,{ref:t,virtual:J,classNames:Ge,styles:be,showSearch:re,...Dt,style:{...be.root,...oe,...T},popupMatchSelectWidth:je,transitionName:lc(ce,"slide-up",O),builtinPlacements:Yle(x,ne),listHeight:d,listItemHeight:ae,mode:Se,prefixCls:Ee,placement:Le,direction:he,prefix:V,suffixIcon:ct,menuItemSelectedIcon:Ot,removeIcon:mt,allowClear:yt,notFoundContent:Oe,className:me,getPopupContainer:s||X,popupClassName:Me,disabled:vt,popupStyle:{...be.popup?.root,...ye,zIndex:xe},maxCount:Ie?L:void 0,tagRender:Ie?D:void 0,popupRender:qe,onPopupVisibleChange:Ze})},xc=f.forwardRef(hce),pce=oA(xc,"popupAlign");xc.SECRET_COMBOBOX_MODE_DO_NOT_USE=i7;xc.Option=lA;xc.OptGroup=aA;xc._InternalPanelDoNotUseOrYouWillBeFired=pce;const G2=["xxxl","xxl","xl","lg","md","sm","xs"],gce=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)`}),vce=e=>{const t=e,n=[].concat(G2).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},bce=()=>{const[,e]=Qr(),t=gce(vce(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 s7(e=true,t={}){const n=f.useRef(t),[,r]=gz(),o=bce();return In(()=>{const i=o.subscribe(s=>{n.current=s,e&&r();});return ()=>o.unsubscribe(i)},[]),n.current}const q2=f.createContext({}),yce=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:$,lineWidth:w,lineType:M}=e,T=(A,P,N,I)=>({width:A,height:A,borderRadius:"50%",fontSize:P,[`&${n}-square`]:{borderRadius:I},[`&${n}-icon`]:{fontSize:N,[`> ${r}`]:{margin:0}}});return {[n]:{...hn(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${ie(w)} ${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,$)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}},Sce=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}}}},Cce=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}},a7=qt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Vt(e,{avatarBg:n,avatarColor:t});return [yce(r),Sce(r)]},Cce),l7=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,...$}=e,[w,M]=f.useState(1),[T,A]=f.useState(false),[P,N]=f.useState(true),I=f.useRef(null),O=f.useRef(null),D=Fr(t,I),{getPrefixCls:L,className:V,style:U}=Gt("avatar"),W=f.useContext(q2),z=()=>{if(!O.current||!I.current)return;const se=O.current.offsetWidth,le=I.current.offsetWidth;se!==0&&le!==0&&S*2<le&&M(le-S*2<se?(le-S*2)/se:1);};f.useEffect(()=>{A(true);},[]),f.useEffect(()=>{N(true),M(1);},[i]),f.useEffect(z,[S]);const k=()=>{x?.()!==false&&N(false);},G=yr(se=>o??W?.size??se??"medium"),j=Object.keys(Cn(G)?G||{}:{}).some(se=>G2.includes(se)),K=s7(j),X=f.useMemo(()=>{if(!Cn(G))return {};const se=G2.find(ae=>K[ae]),le=G[se];return le?{width:le,height:le,fontSize:le&&(l||b)?le/2:18}:{}},[K,G,l,b]),B=L("avatar",n),H=Zn(B),[Q,J]=a7(B,H),te=Y({[`${B}-lg`]:G==="large",[`${B}-sm`]:G==="small"}),ne=f.isValidElement(i),re=r||W?.shape||"circle",oe=Y(B,te,V,`${B}-${re}`,{[`${B}-image`]:ne||i&&P,[`${B}-icon`]:!!l},J,H,u,d,Q),de=Fo(G)?{width:G,height:G,fontSize:l?G/2:18}:{};let ee;if(typeof i=="string"&&P)ee=f.createElement("img",{src:i,draggable:g,srcSet:s,onError:k,alt:p,crossOrigin:y});else if(ne)ee=i;else if(l)ee=l;else if(T||w!==1){const se=`scale(${w})`,le={msTransform:se,WebkitTransform:se,transform:se};ee=f.createElement(Es,{onResize:z},f.createElement("span",{className:`${B}-string`,ref:O,style:le},b));}else ee=f.createElement("span",{className:`${B}-string`,style:{opacity:0},ref:O},b);return f.createElement("span",{...$,style:{...de,...X,...U,...m},className:oe,ref:D},ee)}),Bf=e=>e?typeof e=="function"?e():e:null,fA=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},Ui=[0,0],xce={left:{points:["cr","cl"],overflow:Xd,offset:[-4,0],targetOffset:Ui},right:{points:["cl","cr"],overflow:Xd,offset:[4,0],targetOffset:Ui},top:{points:["bc","tc"],overflow:Yd,offset:[0,-4],targetOffset:Ui},bottom:{points:["tc","bc"],overflow:Yd,offset:[0,4],targetOffset:Ui},topLeft:{points:["bl","tl"],overflow:Yd,offset:[0,-4],targetOffset:Ui},leftTop:{points:["tr","tl"],overflow:Xd,offset:[-4,0],targetOffset:Ui},topRight:{points:["br","tr"],overflow:Yd,offset:[0,-4],targetOffset:Ui},rightTop:{points:["tl","tr"],overflow:Xd,offset:[4,0],targetOffset:Ui},bottomRight:{points:["tr","br"],overflow:Yd,offset:[0,4],targetOffset:Ui},rightBottom:{points:["bl","br"],overflow:Xd,offset:[4,0],targetOffset:Ui},bottomLeft:{points:["tl","bl"],overflow:Yd,offset:[0,4],targetOffset:Ui},leftBottom:{points:["br","bl"],overflow:Xd,offset:[-4,0],targetOffset:Ui}};function K2(){return K2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},K2.apply(this,arguments)}const wce=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:$,showArrow:w=true,classNames:M,styles:T,...A}=e,P=ol($),N=f.useRef(null);f.useImperativeHandle(t,()=>N.current);const I={...A};"visible"in e&&(I.popupVisible=e.visible);const O=f.useMemo(()=>{if(!w)return  false;const L=w===true?{}:w;return {...L,className:Y(L.className,M?.arrow),style:{...L.style,...T?.arrow},content:L.content??S}},[w,M?.arrow,T?.arrow,S]),D=({open:L})=>{const V=f.Children.only(s),U={"aria-describedby":x&&L?P:void 0};return f.cloneElement(V,U)};return f.createElement(k1,K2({popupClassName:M?.root,prefixCls:i,popup:f.createElement(fA,{key:"content",prefixCls:i,id:P,classNames:M,styles:T},x),action:n,builtinPlacements:xce,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},I),D)});function mA(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,$=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),w=r*(Math.sqrt(2)-1),M=`polygon(${w}px 100%, 50% ${w}px, ${2*o-w}px 100%, ${w}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:$,arrowPath:T,arrowPolygon:M}}const $ce=(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 ${ie(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},c7=8;function U1(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return {arrowOffsetHorizontal:r,arrowOffsetVertical:n?c7:r}}function Ob(e,t){return e?t:{}}const hA=(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",...$ce(e,t,o),"&:before":{background:t}}],...Ob(!!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% - ${ie(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:true,value:s}}}}),...Ob(!!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% - ${ie(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:true,value:s}}}}),...Ob(!!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}}),...Ob(!!m.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:true,value:d},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}})}}};function Ece(e,t,n,r){if(r===false)return {adjustX:false,adjustY:false};const o=Cn(r)?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 pD={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"]}},Mce={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"]}},Tce=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function u7(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:s}=e,l=t/2,u={},d=U1({contentRadius:i,limitVerticalRadius:true});return Object.keys(pD).forEach(m=>{const g={...r&&Mce[m]||pD[m],offset:[0,0],dynamicInset:true};switch(u[m]=g,Tce.has(m)&&(g.autoArrow=false),m){case "top":case "topLeft":case "topRight":g.offset[1]=-l-o;break;case "bottom":case "bottomLeft":case "bottomRight":g.offset[1]=l+o;break;case "left":case "leftTop":case "leftBottom":g.offset[0]=-l-o;break;case "right":case "rightTop":case "rightBottom":g.offset[0]=l+o;break}if(r)switch(m){case "topLeft":case "bottomLeft":g.offset[0]=-d.arrowOffsetHorizontal-l;break;case "topRight":case "bottomRight":g.offset[0]=d.arrowOffsetHorizontal+l;break;case "leftTop":case "rightTop":g.offset[1]=-d.arrowOffsetHorizontal*2+l;break;case "leftBottom":case "rightBottom":g.offset[1]=d.arrowOffsetHorizontal*2-l;break}g.overflow=Ece(m,d,t,n),s&&(g.htmlRegion="visibleFirst");}),u}const Ace=q.createContext(false),W1=(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])},gD="50%",Rce=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"),$=t(s).add(b).add(g).equal(),M={minWidth:t(s).mul(2).add(b).equal(),minHeight:u,padding:`${ie(e.calc(m).div(2).equal())} ${ie(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",gD),`var(--arrow-y, ${gD})`].join(" ")};return [{[n]:{...hn(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,HT(e,true)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:$},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(s,c7)}},[`${n}-content`]:{position:"relative"},...I1(e,(A,{darkColor:P})=>({[`&${n}-${A}`]:{[`${n}-container`]:{backgroundColor:P},[`${n}-arrow`]:{[S("arrow-background-color")]:P}}})),"&-rtl":{direction:"rtl"}}},hA(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}`}}}]},Nce=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...U1({contentRadius:e.borderRadius,limitVerticalRadius:true}),...mA(Vt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),d7=(e,t,n=true)=>qt("Tooltip",o=>{const{borderRadius:i,colorTextLightSolid:s,colorBgSpotlight:l,maxWidth:u}=o,d=Vt(o,{tooltipMaxWidth:u,tooltipColor:s,tooltipBorderRadius:i,tooltipBg:l});return [Rce(d),Cg(o,"zoom-big-fast")]},Nce,{resetStyle:false,injectStyle:n})(e,t),Pce=ia.map(e=>`${e}-inverse`),Ice=["success","processing","error","default","warning"];function G1(e,t=true){return t?[].concat(Qt(Pce),Qt(ia)).includes(e):ia.includes(e)}function Oce(e){return Ice.includes(e)}const f7=(e,t,n)=>{const r=G1(n),[o]=nr(e,"tooltip"),i=Y({[`${t}-${n}`]:n&&r}),s={},l={},u=go(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}},Dce=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:s,classNames:l,styles:u}=e,{getPrefixCls:d}=f.useContext($t),m=d("tooltip",t),p=d(),g=Zn(m),[b,y]=d7(m,g),S=f7(p,m,i),x=S.arrowStyle,$=f.useMemo(()=>({container:{...s,...S.overlayStyle}}),[s,S.overlayStyle]),w={...e,placement:r},[M,T]=Yt([l],[$,u],{props:w}),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(fA,{...e,className:b,prefixCls:m,classNames:M,styles:T},o))},Lce=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:$,placement:w="top",mouseEnterDelay:M=.1,mouseLeaveDelay:T=.1,rootClassName:A,styles:P,classNames:N,onOpenChange:I,overlayInnerStyle:O,overlayStyle:D,overlayClassName:L,...V}=e,[,U]=Qr(),W=e["data-popover-inject"],{getPopupContainer:z,getPrefixCls:k,direction:G,...j}=Gt("tooltip"),{className:K,style:X,classNames:B,styles:H,arrow:Q,trigger:J}=W?{}:j,te=W1(u,Q),ne=te.show,re=b||J||"hover",oe=$||z,de=m??!!d,ee=f.useContext(Ace),se=f.useRef(null),le=()=>{se.current?.forceAlign();};f.useImperativeHandle(t,()=>({forceAlign:le,nativeElement:se.current?.nativeElement,popupElement:se.current?.popupElement}));const[ae,Ee]=mn(e.defaultOpen??false,e.open),ce=!p&&!g&&p!==0,he=yt=>{Ee(ce?false:yt),!ce&&I&&I(yt);},ge=f.useMemo(()=>y||u7({arrowPointAtCenter:te?.pointAtCenter??false,autoAdjustOverflow:S,arrowWidth:ne?U.sizePopupArrow:0,borderRadius:U.borderRadius,offset:U.marginXXS,visibleFirst:true}),[te,y,U,ne,S]),Ce=f.useMemo(()=>p===0?p:g||p||"",[g,p]),Re=f.createElement(uc,{space:true,form:true},typeof Ce=="function"?Ce():Ce),et={...e,trigger:re,builtinPlacements:ge,getPopupContainer:oe,destroyOnHidden:de},[Ne,ve]=Yt([B,N],[H,P],{props:et}),Te=k("tooltip",n),Se=k();let Ie=ae;(!("open"in e)&&ce||ee)&&(Ie=false);const Ue=f.isValidElement(s)&&!Rz(s)?s:f.createElement("span",null,s),je=Ue.props,qe=!je.className||typeof je.className=="string"?Y(je.className,r||`${Te}-open`):je.className,Ze=Zn(Te),[Ye,Be]=d7(Te,Ze,!W),Ke=f7(Se,Te,i),Qe=Ke.arrowStyle,ke=Y(Ze,Ye,Be),Oe=Y(L,{[`${Te}-rtl`]:G==="rtl"},Ke.className,A,ke,K,Ne.root),[ct,Ot]=Zu("Tooltip",V.zIndex),mt={...ve.container,...O,...Ke.overlayStyle},kt=f.createElement(wce,{unique:true,...V,zIndex:ct,showArrow:ne,placement:w,mouseEnterDelay:M,mouseLeaveDelay:T,prefixCls:Te,classNames:{root:Oe,container:Ne.container,arrow:Ne.arrow,uniqueContainer:Y(ke,Ne.container)},styles:{root:{...Qe,...ve.root,...X,...D},container:mt,uniqueContainer:mt,arrow:ve.arrow},ref:se,overlay:Re,visible:Ie,onVisibleChange:he,afterVisibleChange:l,arrowContent:f.createElement("span",{className:`${Te}-arrow-content`}),motion:{motionName:lc(Se,"zoom-big-fast",typeof x?.motionName=="string"?x?.motionName:void 0),motionDeadline:1e3},trigger:re,builtinPlacements:ge,getTooltipContainer:oe,destroyOnHidden:de},Ie?Yr(Ue,{className:qe}):Ue);return f.createElement(D1.Provider,{value:Ot},kt)}),wc=Lce;wc._InternalPanelDoNotUseOrYouWillBeFired=Dce;wc.UniqueProvider=Pz;const vD="50%",kce=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]=nr(x,"tooltip");return [{[t]:{...hn(e),position:"absolute",top:0,left:{_skip_check_:true,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",[$("valid-offset-x")]:w("arrow-offset-x","var(--arrow-x)"),transformOrigin:[w("valid-offset-x",vD),`var(--arrow-y, ${vD})`].join(" "),[$("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}}},hA(e,w("arrow-background-color")),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},_ce=e=>{const{componentCls:t,antCls:n}=e,[r]=nr(n,"tooltip");return {[t]:ia.map(o=>{const i=e[`${o}6`];return {[`&${t}-${o}`]:{[r("arrow-background-color")]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:"transparent"}}}})}},Bce=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,...mA(e),...U1({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}},m7=qt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Vt(e,{popoverBg:t,popoverColor:n});return [kce(r),_ce(r),Cg(r,"zoom-big")]},Bce,{resetStyle:false,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),h7=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))},zce=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=Bf(s),g=Bf(l),b={...e,placement:i},[y,S]=Yt([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(fA,{...e,className:t,prefixCls:n,classNames:y,styles:S},u||f.createElement(h7,{prefixCls:n,title:p,content:g,classNames:y,styles:S})))},p7=e=>{const{prefixCls:t,className:n,...r}=e,{getPrefixCls:o}=f.useContext($t),i=o("popover",t),[s,l]=m7(i);return f.createElement(zce,{...r,prefixCls:i,hashId:s,className:Y(n,l)})},Fce=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,...$}=e,{getPrefixCls:w,className:M,style:T,classNames:A,styles:P,arrow:N,trigger:I}=Gt("popover"),O=w("popover",n),[D,L]=m7(O),V=w(),U=W1(x,N),W=l||I||"hover",z={...e,placement:s,trigger:W,mouseEnterDelay:d,mouseLeaveDelay:m,overlayStyle:g,styles:b,classNames:y},[k,G]=Yt([A,y],[P,b],{props:z}),j=Y(i,D,L,M,k.root),[K,X]=mn(e.defaultOpen??false,e.open),B=J=>{X(J),p?.(J);},H=Bf(r),Q=Bf(o);return f.createElement(wc,{unique:false,arrow:U,placement:s,trigger:W,mouseEnterDelay:d,mouseLeaveDelay:m,...$,prefixCls:O,classNames:{root:j,container:k.container,arrow:k.arrow},styles:{root:{...G.root,...T,...g},container:G.container,arrow:G.arrow},ref:t,open:K,onOpenChange:B,overlay:H||Q?f.createElement(h7,{prefixCls:O,title:H,content:Q,classNames:k,styles:G}):null,motion:{motionName:lc(V,"zoom-big",typeof S?.motionName=="string"?S?.motionName:void 0)},"data-popover-inject":true},u)}),ks=Fce;ks._InternalPanelDoNotUseOrYouWillBeFired=p7;const bD=e=>{const{size:t,shape:n}=f.useContext(q2),r=f.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return f.createElement(q2.Provider,{value:r},e.children)},Hce=e=>{const{getPrefixCls:t,direction:n}=f.useContext($t),{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`,$=Zn(S),[w,M]=a7(S,$),T=Y(x,{[`${x}-rtl`]:n==="rtl"},M,$,o,i,w),A=si(b).map((I,O)=>Yr(I,{key:`avatar-key-${O}`})),P=y?.count||l,N=A.length;if(P&&P<N){const I=A.slice(0,P),O=A.slice(P,N),D=y?.style||u,L=y?.popover?.trigger||g||"hover",V=y?.popover?.placement||p||"top",U={content:O,...y?.popover,placement:V,trigger:L,rootClassName:Y(`${x}-popover`,y?.popover?.rootClassName)};return I.push(f.createElement(ks,{key:"avatar-popover-key",destroyOnHidden:true,...U},f.createElement(l7,{style:D},`+${N-P}`))),f.createElement(bD,{shape:m,size:d},f.createElement("div",{className:T,style:s},I))}return f.createElement(bD,{shape:m,size:d},f.createElement("div",{className:T,style:s},A))},Eu=l7;Eu.Group=Hce;var Vce={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 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 jce=(e,t)=>f.createElement(Qn,Y2({},e,{ref:t,icon:Vce})),Uce=f.forwardRef(jce),yD=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 Gce=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(yD,{...e,key:o,current:true})],g={transition:"none"};else {p=[];const b=o+10,y=[];for(let w=o;w<=b;w+=1)y.push(w);const S=u<i?1:-1,x=y.findIndex(w=>w%10===s);p=(S<0?y.slice(0,x+1):y.slice(x)).map((w,M)=>{const T=w%10;return f.createElement(yD,{...e,key:w,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)},qce=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($t),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)=>f.createElement(Gce,{prefixCls:b,count:Number(r),value:$,key:x.length-w})));}return s?.borderColor&&(y.style={...s,boxShadow:`0 0 0 1px ${s.borderColor} inset`}),m?Yr(m,x=>({className:Y(`${b}-custom-component`,x?.className,i)})):f.createElement(d,{...y,ref:t},S)}),Kce=new Ft("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Yce=new Ft("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Xce=new Ft("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Qce=new Ft("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Zce=new Ft("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Jce=new Ft("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),eue=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=I1(e,(x,{darkColor:$})=>({[`&${t} ${t}-color-${x}`]:{background:$,[`&:not(${t}-count)`]:{color:$},"a:hover &":{background:$}}}));return {[t]:{...hn(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:ie(m),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:b(m).div(2).equal(),boxShadow:`0 0 0 ${ie(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:ie(p),borderRadius:b(p).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${ie(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 ${ie(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:Jce,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:Kce,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:Yce,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Xce,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Qce,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Zce,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%)"}}}}},g7=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 Vt(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%)"})},v7=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}},tue=qt("Badge",e=>{const t=g7(e);return eue(t)},v7),nue=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:$,styles:w,showZero:M=false,...T}=e,{getPrefixCls:A,direction:P,className:N,style:I,classNames:O,styles:D}=Gt("badge"),L=A("badge",n),[V,U]=tue(L),W={...e,overflowCount:d,size:p,dot:m,showZero:M},[z,k]=Yt([O,$],[D,w],{props:W}),G=u>d?`${d}+`:u,j=G==="0"||G===0||s==="0"||s===0,K=u===null||j&&!M,X=(br(i)||br(l))&&K,B=br(i)||!j,H=m&&!j,Q=H?"":G,J=f.useMemo(()=>((!br(Q)||Q==="")&&(!br(s)||s==="")||j&&!M)&&!H,[Q,j,M,H,s]),te=f.useRef(u);J||(te.current=u);const ne=te.current,re=f.useRef(Q);J||(re.current=Q);const oe=re.current,de=f.useRef(H);J||(de.current=H);const ee=f.useMemo(()=>{if(!b)return {...I,...y};const Re=Number.parseInt(b[0],10);return {...{marginTop:b[1],insetInlineEnd:-Re},...I,...y}},[b,y,I]),se=g??(typeof ne=="string"||Fo(ne)?ne:void 0),le=!J&&(s===0?M:!!s&&s!==true),ae=le?f.createElement("span",{className:`${L}-status-text`},s):null,Ee=Cn(ne)?Yr(ne,Re=>({style:{...ee,...Re.style}})):void 0,ce=G1(l,false),he=Y(z.indicator,{[`${L}-status-dot`]:X,[`${L}-status-${i}`]:!!i,[`${L}-color-${l}`]:ce}),ge={};l&&!ce&&(ge.color=l,ge.background=l);const Ce=Y(L,{[`${L}-status`]:X,[`${L}-not-a-wrapper`]:!o,[`${L}-rtl`]:P==="rtl"},S,x,N,z.root,V,U);if(!o&&X&&(s||B||!K)){const Re=ee.color;return f.createElement("span",{ref:t,...T,className:Ce,style:{...k.root,...ee}},f.createElement("span",{className:he,style:{...k.indicator,...ge}}),le&&f.createElement("span",{style:{color:Re},className:`${L}-status-text`},s))}return f.createElement("span",{ref:t,...T,className:Ce,style:k.root},o,f.createElement(Io,{visible:!J,motionName:`${L}-zoom`,motionAppear:false,motionDeadline:1e3},({className:Re})=>{const et=A("scroll-number",r),Ne=de.current,ve=Y(z.indicator,{[`${L}-dot`]:Ne,[`${L}-count`]:!Ne,[`${L}-count-sm`]:p==="small",[`${L}-multiple-words`]:!Ne&&oe&&oe.toString().length>1,[`${L}-status-${i}`]:!!i,[`${L}-color-${l}`]:ce});let Te={...k.indicator,...ee};return l&&!ce&&(Te=Te||{},Te.background=l),f.createElement(qce,{prefixCls:et,show:!J,motionClassName:Re,className:ve,count:oe,title:se,style:Te,key:"scrollNumber"},Ee)}),ae)}),rue=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,s=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,u=I1(e,(d,{darkColor:m})=>({[`&${s}-color-${d}`]:{background:m,color:m}}));return {[l]:{position:"relative"},[s]:{...hn(e),position:"absolute",top:r,padding:`0 ${ie(e.paddingXS)}`,color:e.colorPrimary,lineHeight:ie(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:`${ie(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"}}}},oue=qt(["Badge","Ribbon"],e=>{const t=g7(e);return rue(t)},v7),iue=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}=Gt("ribbon"),$=p("ribbon",n),w=`${$}-wrapper`,[M,T]=oue($,w),A={...e,placement:l},[P,N]=Yt([S,m],[x,d],{props:A}),I=G1(o,false),O=Y($,`${$}-placement-${l}`,{[`${$}-rtl`]:g==="rtl",[`${$}-color-${o}`]:I},t,b,P.indicator),D={},L={};return o&&!I&&(D.background=o,L.color=o),f.createElement("div",{className:Y(w,u,M,T,P.root),style:N.root},i,f.createElement("div",{className:Y(O,M),style:{...D,...N.indicator,...y,...r}},f.createElement("span",{className:Y(`${$}-content`,P.content),style:N.content},s),f.createElement("div",{className:`${$}-corner`,style:L})))},Rg=nue;Rg.Ribbon=iue;var sue={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 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 aue=(e,t)=>f.createElement(Qn,X2({},e,{ref:t,icon:sue})),Lp=f.forwardRef(aue),{ESC:lue,TAB:cue}=st;function uue({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 lue:s();break;case cue:{let m=false;i.current||(m=l()),m?d.preventDefault():s();break}}};f.useEffect(()=>e?(window.addEventListener("keydown",u),r&&zt(l,3),()=>{window.removeEventListener("keydown",u),i.current=false;}):()=>{i.current=false;},[e]);}const due=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=Fr(t,Cc(i));return q.createElement(q.Fragment,null,r&&q.createElement("div",{className:`${o}-arrow`}),q.cloneElement(i,{ref:em(i)?s:void 0}))}),Qd={adjustX:1,adjustY:1},Zd=[0,0],fue={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 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 b7=q.forwardRef((e,t)=>{const{arrow:n=false,prefixCls:r="rc-dropdown",transitionName:o,animation:i,align:s,placement:l="bottomLeft",placements:u=fue,getPopupContainer:d,showAction:m,hideAction:p,overlayClassName:g,overlayStyle:b,visible:y,trigger:S=["hover"],autoFocus:x,overlay:$,children:w,onVisibleChange:M,...T}=e,[A,P]=q.useState(),N="visible"in e?y:A,I=i?`${r}-${i}`:o,O=q.useRef(null),D=q.useRef(null),L=q.useRef(null);q.useImperativeHandle(t,()=>O.current);const V=X=>{P(X),M?.(X);};uue({visible:N,triggerRef:L,onVisibleChange:V,autoFocus:x,overlayRef:D});const U=X=>{const{onOverlayClick:B}=e;P(false),B&&B(X);},W=()=>q.createElement(due,{ref:D,overlay:$,prefixCls:r,arrow:n}),z=()=>typeof $=="function"?W:W(),k=()=>{const{minOverlayWidthMatchTrigger:X,alignPoint:B}=e;return "minOverlayWidthMatchTrigger"in e?X:!B},G=()=>{const{openClassName:X}=e;return X!==void 0?X:`${r}-open`},j=q.cloneElement(w,{className:Y(w.props?.className,N&&G()),ref:em(w)?Fr(L,Cc(w)):void 0});let K=p;return !K&&S.indexOf("contextMenu")!==-1&&(K=["click"]),q.createElement(k1,Q2({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:I},popupVisible:N,stretch:k()?"minWidth":"",popup:z(),onOpenChange:V,onPopupClick:U,getPopupContainer:d}),j)}),y7=f.createContext(null);function S7(e,t){return `${e}-${t}`}function C7(e){const t=f.useContext(y7);return S7(t,e)}const Os=f.createContext(null);function mue(e,t){const n={...e};return Object.keys(t).forEach(r=>{const o=t[r];o!==void 0&&(n[r]=o);}),n}function kp({children:e,locked:t,...n}){const r=f.useContext(Os),o=Jf(()=>mue(r,n),[r,n],(i,s)=>!t&&(i[0]!==s[0]||!sc(i[1],s[1],true)));return f.createElement(Os.Provider,{value:o},e)}const hue=[],x7=f.createContext(null);function q1(){return f.useContext(x7)}const w7=f.createContext(hue);function am(e){const t=f.useContext(w7);return f.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const $7=f.createContext(null),pA=f.createContext({}),{LEFT:Z2,RIGHT:J2,UP:e3,DOWN:Ey,ENTER:My,ESC:E7,HOME:wh,END:$h}=st,SD=[e3,Ey,Z2,J2];function pue(e,t,n,r){const o="prev",i="next",s="children",l="parent";if(e==="inline"&&r===My)return {inlineTrigger:true};const u={[e3]:o,[Ey]:i},d={[Z2]:n?i:o,[J2]:n?o:i,[Ey]:s,[My]:s},m={[e3]:o,[Ey]:i,[My]:s,[E7]:l,[Z2]: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 gue(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function vue(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement;}return null}function gA(e,t){return ZT(e,true).filter(r=>t.has(r))}function CD(e,t,n,r=1){if(!e)return null;const o=gA(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 M0=(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 bue(e,t,n,r,o,i,s,l,u,d){const m=f.useRef(),p=f.useRef();p.current=t;const g=()=>{zt.cancel(m.current);};return f.useEffect(()=>()=>{g();},[]),b=>{const{which:y}=b;if([...SD,My,E7,wh,$h].includes(y)){const S=i();let x=M0(S,r);const{elements:$,key2element:w,element2key:M}=x,T=w.get(t),A=vue(T,$),P=M.get(A),N=pue(e,s(P,true).length===1,n,y);if(!N&&y!==wh&&y!==$h)return;(SD.includes(y)||[wh,$h].includes(y))&&b.preventDefault();const I=O=>{if(O){let D=O;const L=O.querySelector("a");L?.getAttribute("href")&&(D=L);const V=M.get(O);l(V),g(),m.current=zt(()=>{p.current===V&&D.focus();});}};if([wh,$h].includes(y)||N.sibling||!A){let O;!A||e==="inline"?O=o.current:O=gue(A);let D;const L=gA(O,$);y===wh?D=L[0]:y===$h?D=L[L.length-1]:D=CD(O,$,A,N.offset),I(D);}else if(N.inlineTrigger)u(P);else if(N.offset>0)u(P,true),g(),m.current=zt(()=>{x=M0(S,r);const O=A.getAttribute("aria-controls"),D=document.getElementById(O),L=CD(D,x.elements);I(L);},5);else if(N.offset<0){const O=s(P,true),D=O[O.length-2],L=w.get(D);u(D,false),I(L);}}d?.(b);}}function yue(e){Promise.resolve().then(e);}const vA="__RC_UTIL_PATH_SPLIT__",xD=e=>e.join(vA),Sue=e=>e.split(vA),t3="rc-menu-more";function Cue(){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 $=xD(x);n.current.set($,S),t.current.set(S,$),i.current+=1;const w=i.current;yue(()=>{w===i.current&&l();});},[]),d=f.useCallback((S,x)=>{const $=xD(x);n.current.delete($),t.current.delete(S);},[]),m=f.useCallback(S=>{o(S);},[]),p=f.useCallback((S,x)=>{const $=t.current.get(S)||"",w=Sue($);return x&&r.includes(w[0])&&w.unshift(t3),w},[r]),g=f.useCallback((S,x)=>S.filter($=>$!==void 0).some($=>p($,true).includes(x)),[p]),b=()=>{const S=[...t.current.keys()];return r.length&&S.push(t3),S},y=f.useCallback(S=>{const x=`${t.current.get(S)}${vA}`,$=new Set;return [...n.current.keys()].forEach(w=>{w.startsWith(x)&&$.add(n.current.get(w));}),$},[]);return f.useEffect(()=>()=>{s.current=true;},[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:m,isSubPathKey:g,getKeyPath:p,getKeys:b,getSubPathKeys:y}}function Gh(e){const t=f.useRef(e);t.current=e;const n=f.useCallback((...r)=>t.current?.(...r),[]);return e?n:void 0}function M7(e,t,n,r){const{activeKey:o,onActive:i,onInactive:s}=f.useContext(Os),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 T7(e){const{mode:t,rtl:n,inlineIndent:r}=f.useContext(Os);if(t!=="inline")return null;const o=e;return n?{paddingRight:o*r}:{paddingLeft:o*r}}function A7({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 T0({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 _p(){return _p=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},_p.apply(this,arguments)}class xue extends f.Component{render(){const{title:t,attribute:n,elementRef:r,...o}=this.props,i=Vn(o,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Pr(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f.createElement(Ga.Item,_p({},n,{title:typeof t=="string"?t:void 0},i,{ref:r}))}}const wue=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=C7(o),{prefixCls:$,onItemClick:w,disabled:M,overflowDisabled:T,itemIcon:A,selectedKeys:P,onActive:N}=f.useContext(Os),{_internalRenderMenuItem:I}=f.useContext(pA),O=`${$}-item`,D=f.useRef(),L=f.useRef(),V=M||s,U=nl(t,L),W=am(o),z=ne=>({key:o,keyPath:[...W].reverse(),item:D.current,domEvent:ne}),k=l||A,{active:G,...j}=M7(o,V,m,p),K=P.includes(o),X=T7(W.length),B=ne=>{if(V)return;const re=z(ne);g?.(T0(re)),w(re);},H=ne=>{if(b?.(ne),ne.which===st.ENTER){const re=z(ne);g?.(T0(re)),w(re);}},Q=ne=>{N(o),y?.(ne);},J={};e.role==="option"&&(J["aria-selected"]=K);let te=f.createElement(xue,_p({ref:D,elementRef:U,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":T&&x?null:x},Vn(S,["extra"]),j,J,{component:"li","aria-disabled":s,style:{...X,...n},className:Y(O,{[`${O}-active`]:G,[`${O}-selected`]:K,[`${O}-disabled`]:V},r),onClick:B,onKeyDown:H,onFocus:Q}),u,f.createElement(A7,{props:{...e,isSelected:K},icon:k}));return I&&(te=I(te,e,{selected:K})),te});function $ue(e,t){const{eventKey:n}=e,r=q1(),o=am(n);return f.useEffect(()=>{if(r)return r.registerPath(n,o),()=>{r.unregisterPath(n,o);}},[o]),r?null:f.createElement(wue,_p({},e,{ref:t}))}const Ng=f.forwardRef($ue);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 Eue=({className:e,children:t,...n},r)=>{const{prefixCls:o,mode:i,rtl:s}=f.useContext(Os);return f.createElement("ul",n3({className:Y(o,s&&`${o}-rtl`,`${o}-sub`,`${o}-${i==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":true,ref:r}),t)},R7=f.forwardRef(Eue);function bA(e,t){return si(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 Eo={adjustX:1,adjustY:1},Mue={topLeft:{points:["bl","tl"],overflow:Eo},topRight:{points:["br","tr"],overflow:Eo},bottomLeft:{points:["tl","bl"],overflow:Eo},bottomRight:{points:["tr","br"],overflow:Eo},leftTop:{points:["tr","tl"],overflow:Eo},leftBottom:{points:["br","bl"],overflow:Eo},rightTop:{points:["tl","tr"],overflow:Eo},rightBottom:{points:["bl","br"],overflow:Eo}},Tue={topLeft:{points:["bl","tl"],overflow:Eo},topRight:{points:["br","tr"],overflow:Eo},bottomLeft:{points:["tl","bl"],overflow:Eo},bottomRight:{points:["tr","br"],overflow:Eo},rightTop:{points:["tr","tl"],overflow:Eo},rightBottom:{points:["br","bl"],overflow:Eo},leftTop:{points:["tl","tr"],overflow:Eo},leftBottom:{points:["bl","br"],overflow:Eo}};function N7(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 Rue({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:$,motion:w,defaultMotions:M}=f.useContext(Os),[T,A]=f.useState(false),P=p?{...Tue,...y}:{...Mue,...y},N=Aue[u],I=N7(u,w,M),O=f.useRef(I);u!=="inline"&&(O.current=I);const D={...O.current,leavedClassName:`${e}-hidden`,removeOnLeave:false,motionAppear:true},L=f.useRef();return f.useEffect(()=>(L.current=zt(()=>{A(t);}),()=>{zt.cancel(L.current);}),[t]),f.createElement(k1,{prefixCls:e,popupClassName:Y(`${e}-popup`,{[`${e}-rtl`]:p},i,$),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:P,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 r3(){return r3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},r3.apply(this,arguments)}function Nue({id:e,open:t,keyPath:n,children:r}){const o="inline",{prefixCls:i,forceSubMenuRender:s,motion:l,defaultMotions:u,mode:d}=f.useContext(Os),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={...N7(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(kp,{mode:o,locked:!m.current},f.createElement(Io,r3({visible:b},y,{forceRender:s,removeOnLeave:false,leavedClassName:`${i}-hidden`}),({className:x,style:$})=>f.createElement(R7,{id:e,className:x,style:$},r)))}function Bp(){return Bp=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},Bp.apply(this,arguments)}const Pue=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:$,onMouseEnter:w,onMouseLeave:M,onTitleClick:T,onTitleMouseEnter:A,onTitleMouseLeave:P,popupRender:N,...I}=e,O=C7(l),{prefixCls:D,mode:L,openKeys:V,disabled:U,overflowDisabled:W,activeKey:z,selectedKeys:k,itemIcon:G,expandIcon:j,onItemClick:K,onOpenChange:X,onActive:B,popupRender:H}=f.useContext(Os),{_internalRenderSubMenuItem:Q}=f.useContext(pA),{isSubPathKey:J}=f.useContext($7),te=am(),ne=`${D}-submenu`,re=U||d,oe=f.useRef(),de=f.useRef(),ee=g??G,se=b??j,le=V.includes(l),ae=!W&&le,Ee=J(k,l),{active:ce,...he}=M7(l,re,A,P),[ge,Ce]=f.useState(false),Re=Oe=>{re||Ce(Oe);},et=Oe=>{Re(true),w?.({key:l,domEvent:Oe});},Ne=Oe=>{Re(false),M?.({key:l,domEvent:Oe});},ve=f.useMemo(()=>ce||(L!=="inline"?ge||J([z],l):false),[L,ce,z,ge,l,J]),Te=T7(te.length),Se=Oe=>{re||(T?.({key:l,domEvent:Oe}),L==="inline"&&X(l,!le));},Ie=Gh(Oe=>{$?.(T0(Oe)),K(Oe);}),Ue=Oe=>{L!=="inline"&&X(l,Oe);},je=()=>{B(l);},qe=O&&`${O}-popup`,Ze=f.useMemo(()=>f.createElement(A7,{icon:L!=="horizontal"?se:void 0,props:{...e,isOpen:ae,isSubMenu:true}},f.createElement("i",{className:`${ne}-arrow`})),[L,se,e,ae,ne]);let Ye=f.createElement("div",Bp({role:"menuitem",style:Te,className:`${ne}-title`,tabIndex:re?null:-1,ref:oe,title:typeof s=="string"?s:null,"data-menu-id":W&&O?null:O,"aria-expanded":ae,"aria-haspopup":true,"aria-controls":qe,"aria-disabled":re,onClick:Se,onFocus:je},he),s,Ze);const Be=f.useRef(L);L!=="inline"&&te.length>1?Be.current="vertical":Be.current=L;const Ke=Be.current,Qe=f.useMemo(()=>{const Oe=f.createElement(kp,{classNames:i,styles:o,mode:Ke==="horizontal"?"vertical":Ke},f.createElement(R7,{id:qe,ref:de},p)),ct=N||H;return ct?ct(Oe,{item:e,keys:te}):Oe},[N,H,te,qe,p,e,Ke]);if(!W){const Oe=Be.current;Ye=f.createElement(Rue,{mode:Oe,prefixCls:ne,visible:!m&&ae&&L!=="inline",popupClassName:y,popupOffset:S,popupStyle:x,popup:Qe,disabled:re,onVisibleChange:Ue},Ye);}let ke=f.createElement(Ga.Item,Bp({ref:t,role:"none"},I,{component:"li",style:n,className:Y(ne,`${ne}-${L}`,r,{[`${ne}-open`]:ae,[`${ne}-active`]:ve,[`${ne}-selected`]:Ee,[`${ne}-disabled`]:re}),onMouseEnter:et,onMouseLeave:Ne}),Ye,!W&&f.createElement(Nue,{id:qe,open:ae,keyPath:te},p));return Q&&(ke=Q(ke,e,{selected:Ee,active:ve,open:ae,disabled:re})),f.createElement(kp,{classNames:i,styles:o,onItemClick:Ie,mode:L==="horizontal"?"vertical":L,itemIcon:ee,expandIcon:se},ke)}),K1=f.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,o=am(n),i=bA(r,o),s=q1();f.useEffect(()=>{if(s)return s.registerPath(n,o),()=>{s.unregisterPath(n,o);}},[o]);let l;return s?l=i:l=f.createElement(Pue,Bp({ref:t},e),i),f.createElement(w7.Provider,{value:o},l)});function yA({className:e,style:t}){const{prefixCls:n}=f.useContext(Os);return q1()?null:f.createElement("li",{role:"separator",className:Y(`${n}-item-divider`,e),style:t})}function A0(){return A0=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},A0.apply(this,arguments)}const Iue=f.forwardRef((e,t)=>{const{className:n,title:r,eventKey:o,children:i,...s}=e,{prefixCls:l,classNames:u,styles:d}=f.useContext(Os),m=`${l}-item-group`;return f.createElement("li",A0({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))}),SA=f.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,o=am(n),i=bA(r,o);return q1()?i:f.createElement(Iue,A0({ref:t},Vn(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 o3(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}),o3(m,t,n)):f.createElement(i,uf({key:S},y,{title:d}),o3(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 wD(e,t,n,r,o){let i=e;const s={divider:yA,item:Ng,group:SA,submenu:K1,...r};return t&&(i=o3(t,s,o)),bA(i,n)}function i3(){return i3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},i3.apply(this,arguments)}const Zc=[],Oue=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:$=.1,subMenuCloseDelay:w=.1,forceSubMenuRender:M,defaultOpenKeys:T,openKeys:A,activeKey:P,defaultActiveFirst:N,selectable:I=true,multiple:O=false,defaultSelectedKeys:D,selectedKeys:L,onSelect:V,onDeselect:U,inlineIndent:W=24,motion:z,defaultMotions:k,triggerSubMenuAction:G="hover",builtinPlacements:j,itemIcon:K,expandIcon:X,overflowedIndicator:B="...",overflowedIndicatorPopupClassName:H,getPopupContainer:Q,onClick:J,onOpenChange:te,onKeyDown:ne,openAnimation:re,openTransitionName:oe,_internalRenderMenuItem:de,_internalRenderSubMenuItem:ee,_internalComponents:se,popupRender:le,...ae}=e,[Ee,ce]=f.useMemo(()=>[wD(m,d,Zc,se,n),wD(m,d,Zc,{},n)],[m,d,se]),[he,ge]=f.useState(false),Ce=f.useRef(),Re=ol(g?`rc-menu-uuid-${g}`:"rc-menu-uuid"),et=p==="rtl",[Ne,ve]=mn(T,A),Te=Ne||Zc,Se=(at,Ve=false)=>{function Xe(){ve(at),te?.(at);}Ve?Lo.flushSync(Xe):Xe();},[Ie,Ue]=f.useState(Te),je=f.useRef(false),[qe,Ze]=f.useMemo(()=>(b==="inline"||b==="vertical")&&y?["vertical",y]:[b,false],[b,y]),Ye=qe==="inline",[Be,Ke]=f.useState(qe),[Qe,ke]=f.useState(Ze);f.useEffect(()=>{Ke(qe),ke(Ze),je.current&&(Ye?ve(Ie):Se(Zc));},[qe,Ze]);const[Oe,ct]=f.useState(0),Ot=Oe>=Ee.length-1||Be!=="horizontal"||x;f.useEffect(()=>{Ye&&Ue(Te);},[Te]),f.useEffect(()=>(je.current=true,()=>{je.current=false;}),[]);const{registerPath:mt,unregisterPath:kt,refreshOverflowKeys:yt,isSubPathKey:Dt,getKeyPath:ft,getKeys:ut,getSubPathKeys:vt}=Cue(),He=f.useMemo(()=>({registerPath:mt,unregisterPath:kt}),[mt,kt]),Ge=f.useMemo(()=>({isSubPathKey:Dt}),[Dt]);f.useEffect(()=>{yt(Ot?Zc:Ee.slice(Oe+1).map(at=>at.key));},[Oe,Ot]);const[be,Me]=mn(P||N&&Ee[0]?.key,P),ye=Gh(at=>{Me(at);}),me=Gh(()=>{Me(void 0);});f.useImperativeHandle(t,()=>({list:Ce.current,focus:at=>{const Ve=ut(),{elements:Xe,key2element:Mt,element2key:wt}=M0(Ve,Re),Bt=gA(Ce.current,Xe);let tn;be&&Ve.includes(be)?tn=be:tn=Bt[0]?wt.get(Bt[0]):Ee.find(xn=>!xn.props.disabled)?.key;const nn=Mt.get(tn);tn&&nn&&nn?.focus?.(at);},findItem:({key:at})=>{const Ve=ut(),{key2element:Xe}=M0(Ve,Re);return Xe.get(at)||null}}));const[Le,xe]=mn(D||[],L),ze=f.useMemo(()=>Array.isArray(Le)?Le:Le==null?Zc:[Le],[Le]),tt=at=>{if(I){const{key:Ve}=at,Xe=ze.includes(Ve);let Mt;O?Xe?Mt=ze.filter(Bt=>Bt!==Ve):Mt=[...ze,Ve]:Mt=[Ve],xe(Mt);const wt={...at,selectedKeys:Mt};Xe?U?.(wt):V?.(wt);}!O&&Te.length&&Be!=="inline"&&Se(Zc);},it=Gh(at=>{J?.(T0(at)),tt(at);}),dt=Gh((at,Ve)=>{let Xe=Te.filter(Mt=>Mt!==at);if(Ve)Xe.push(at);else if(Be!=="inline"){const Mt=vt(at);Xe=Xe.filter(wt=>!Mt.has(wt));}sc(Te,Xe,true)||Se(Xe,true);}),_t=bue(Be,be,et,Re,Ce,ut,ft,Me,(at,Ve)=>{const Xe=Ve??!Te.includes(at);dt(at,Xe);},ne);f.useEffect(()=>{ge(true);},[]);const Nt=f.useMemo(()=>({_internalRenderMenuItem:de,_internalRenderSubMenuItem:ee}),[de,ee]),pn=Be!=="horizontal"||x?Ee:Ee.map((at,Ve)=>f.createElement(kp,{key:at.key,overflowDisabled:Ve>Oe,classNames:l,styles:s},at)),Wn=f.createElement(Ga,i3({id:g,ref:Ce,prefixCls:`${n}-overflow`,component:"ul",itemComponent:Ng,className:Y(n,`${n}-root`,`${n}-${Be}`,i,{[`${n}-inline-collapsed`]:Qe,[`${n}-rtl`]:et},r),dir:p,style:o,role:"menu",tabIndex:u,data:pn,renderRawItem:at=>at,renderRawRest:at=>{const Ve=at.length,Xe=Ve?Ee.slice(-Ve):null;return f.createElement(K1,{eventKey:t3,title:B,disabled:Ot,internalPopupClose:Ve===0,popupClassName:H},Xe)},maxCount:Be!=="horizontal"||x?Ga.INVALIDATE:Ga.RESPONSIVE,ssr:"full","data-menu-list":true,onVisibleChange:at=>{ct(at);},onKeyDown:_t},ae));return f.createElement(pA.Provider,{value:Nt},f.createElement(y7.Provider,{value:Re},f.createElement(kp,{prefixCls:n,rootClassName:r,classNames:l,styles:s,mode:Be,openKeys:Te,rtl:et,disabled:S,motion:he?z:null,defaultMotions:he?k:null,activeKey:be,onActive:ye,onInactive:me,selectedKeys:ze,inlineIndent:W,subMenuOpenDelay:$,subMenuCloseDelay:w,forceSubMenuRender:M,builtinPlacements:j,triggerSubMenuAction:G,getPopupContainer:Q,itemIcon:K,expandIcon:X,onItemClick:it,onOpenChange:dt,popupRender:le},f.createElement($7.Provider,{value:Ge},Wn),f.createElement("div",{style:{display:"none"},"aria-hidden":true},f.createElement(x7.Provider,{value:He},ce)))))}),lm=Oue;lm.Item=Ng;lm.SubMenu=K1;lm.ItemGroup=SA;lm.Divider=yA;const P7=f.createContext({});var Due={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 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 Lue=(e,t)=>f.createElement(Qn,s3({},e,{ref:t,icon:Due})),CA=f.forwardRef(Lue),R0=f.createContext({prefixCls:"",firstLevel:true,inlineCollapsed:false,styles:null,classNames:null}),I7=e=>{const{prefixCls:t,className:n,dashed:r,...o}=e,{getPrefixCls:i}=f.useContext($t),s=i("menu",t),l=Y({[`${s}-item-divider-dashed`]:!!r},n);return f.createElement(yA,{className:l,...o})},O7=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(R0),S=N=>{const I=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 I=="string"?f.createElement("div",{className:`${l}-inline-collapsed-noicon`},I.charAt(0)):O},{siderCollapsed:x}=f.useContext(P7);let $=o;typeof o>"u"?$=u?n:"":o===false&&($="");const w=p===false?void 0:p,M=w&&w.title!==void 0?w.title:$,T={...w??null,title:M};!x&&!g&&(T.title=null,T.open=false);const A=si(n).length;let P=f.createElement(Ng,{...Vn(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},Yr(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=w&&w.placement?w.placement:d==="rtl"?"left":"right",I=`${l}-inline-collapsed-tooltip`,O=L=>({...L,root:Y(I,L?.root)}),D=w&&typeof w.classNames=="function"?L=>{const V=w.classNames(L);return O(V)}:O(w?.classNames);P=f.createElement(wc,{...T,placement:N,classNames:D},P);}return P},N0=f.createContext(null),kue=f.forwardRef((e,t)=>{const{children:n,...r}=e,o=f.useContext(N0),i=f.useMemo(()=>({...o,...r}),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),s=cB(n),l=nl(t,s?Cc(n):null);return f.createElement(N0.Provider,{value:i},f.createElement(uc,{space:true},s?f.cloneElement(n,{ref:l}):n))}),_ue=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:`${ie(i)} ${s} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
        > ${t}-item-active,
        > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:["border-color","background-color"].map(u=>`${u} ${n}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Bue=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
    ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ie(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ie(t)})`}}}}),$D=e=>os(e),ED=(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:$,itemHoverColor:w,lineType:M,colorSplit:T,itemDisabledColor:A,dangerItemColor:P,dangerItemHoverColor:N,dangerItemSelectedColor:I,dangerItemActiveBg:O,dangerItemSelectedBg:D,popupBg:L,itemHoverBg:V,itemActiveBg:U,menuSubMenuBg:W,horizontalItemSelectedColor:z,horizontalItemSelectedBg:k,horizontalItemBorderRadius:G,horizontalItemHoverBg:j}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:{...$D(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`]:{...$D(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:w}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:w}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:V},"&:active":{backgroundColor:U}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:V},"&:active":{backgroundColor:U}}},[`${n}-item-danger`]:{color:P,[`&${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:I},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:d,[`&${n}-item-danger`]:{backgroundColor:D}},[`&${n}-submenu > ${n}`]:{backgroundColor:W},[`&${n}-popup > ${n}`]:{backgroundColor:L},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:L},[`&${n}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:g,marginTop:e.calc(g).mul(-1).equal(),marginBottom:0,borderRadius:G,"&::after":{position:"absolute",insetInline:x,bottom:0,borderBottom:`${ie(m)} solid transparent`,transition:`border-color ${b} ${y}`,content:'""'},"&:hover, &-active, &-open":{background:j,"&::after":{borderBottomWidth:m,borderBottomColor:z}},"&-selected":{color:z,backgroundColor:k,"&:hover":{backgroundColor:k},"&::after":{borderBottomWidth:m,borderBottomColor:z}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ie(g)} ${M} ${T}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:u},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ie(p)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(K=>`${K} ${$} ${S}`).join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:I}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(K=>`${K} ${$} ${y}`).join(",")}}}}}},MD=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:ie(n),paddingInline:d,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:u},[`> ${t}-item,
            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ie(n)},[`${t}-item-group-list ${t}-submenu-title,
            ${t}-submenu-title`]:{paddingInlineEnd:m}}},zue=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,$={height:r,lineHeight:ie(r),listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...MD(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...MD(e),boxShadow:y}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${ie(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`]:$,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:$}},{[`${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% - ${ie(e.calc(x).div(2).equal())} - ${ie(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:ie(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`]:{...sa,paddingInline:b}}}]},TD=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`]:{...Xu()},[`&${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"}}}},AD=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(${ie(e.calc(s).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ie(s)})`}}}}},Fue=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:$,groupTitleFontSize:w}=e;return [{"":{[n]:{...f0(),"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...hn(e),...f0(),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:`${ie(l)} ${ie(u)}`,fontSize:w,lineHeight:$,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"}},...TD(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${ie(e.calc(r).mul(2).equal())} ${ie(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,...TD(e),...AD(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:b},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${s}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:"100% 0"},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:"100% 100%"},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:"0 100%"},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:"0 0"},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...AD(e),[`&-inline-collapsed ${n}-submenu-arrow,
        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ie(S)})`},"&::after":{transform:`rotate(45deg) translateX(${ie(e.calc(S).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ie(e.calc(y).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ie(e.calc(S).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ie(S)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Hue=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:$,padding:w,fontSize:M,controlHeightSM:T,fontSizeLG:A,colorTextLightSolid:P,colorErrorHover:N}=e,I=e.activeBarWidth??0,O=e.activeBarBorderWidth??m,D=e.itemMarginInline??e.marginXXS,L=new vn(P).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:I,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:$,itemPaddingInline:w,horizontalLineHeight:`${y*1.15}px`,iconSize:M,iconMarginInlineEnd:T-M,collapsedIconSize:A,groupTitleFontSize:M,darkItemDisabledColor:new vn(P).setA(.25).toRgbString(),darkItemColor:L,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:P,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:L,darkItemHoverColor:P,darkDangerItemHoverColor:N,darkDangerItemSelectedColor:P,darkDangerItemActiveBg:n,itemWidth:I?`calc(100% + ${O}px)`:`calc(100% - ${D*2}px)`}},Vue=(e,t=e,n=true)=>qt("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:$,darkItemDisabledColor:w,darkDangerItemHoverColor:M,darkDangerItemSelectedColor:T,darkDangerItemActiveBg:A,popupBg:P,darkPopupBg:N}=o,I=o.calc(l).div(7).mul(5).equal(),O=Vt(o,{menuArrowSize:I,menuHorizontalHeight:o.calc(s).mul(1.15).equal(),menuArrowOffset:o.calc(I).mul(.25).equal(),menuSubMenuBg:i,calc:o.calc,popupBg:P}),D=Vt(O,{itemColor:u,itemHoverColor:$,groupTitleColor:x,itemSelectedColor:g,subMenuItemSelectedColor:g,itemBg:m,popupBg:N,subMenuItemBg:p,itemActiveBg:"transparent",itemSelectedBg:b,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:w,dangerItemColor:d,dangerItemHoverColor:M,dangerItemSelectedColor:T,dangerItemActiveBg:A,dangerItemSelectedBg:y,menuSubMenuBg:p,horizontalItemSelectedColor:g,horizontalItemSelectedBg:b});return [Fue(O),_ue(O),zue(O),ED(O,"light"),ED(D,"dark"),Bue(O),qz(O),cc(O,"slide-up"),cc(O,"slide-down"),Cg(O,"zoom-big")]},Hue,{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),D7=e=>{const{popupClassName:t,icon:n,title:r,theme:o}=e,i=f.useContext(R0),{prefixCls:s,inlineCollapsed:l,theme:u,classNames:d,styles:m}=i,p=am();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,Yr(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]=Zu("Menu");return f.createElement(R0.Provider,{value:b},f.createElement(K1,{...Vn(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 Hw(e){return e===null||e===false}const jue={item:O7,submenu:D7,divider:I7},Uue=f.forwardRef((e,t)=>{const n=f.useContext(N0),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:$,classNames:w,styles:M,...T}=e,{menu:A}=f.useContext($t),{getPrefixCls:P,getPopupContainer:N,direction:I,className:O,style:D,classNames:L,styles:V}=Gt("menu"),U=P(),W=Vn(T,["collapsedWidth"]);r.validator?.({mode:y});const z=At((...ee)=>{x?.(...ee),r.onClick?.();}),k=r.mode||y,G=S??r.selectable,j=p??g,K={...e,mode:k,inlineCollapsed:j,selectable:G,theme:l},[X,B]=Yt([L,w],[V,M],{props:K},{popup:{_default:"root"},subMenu:{_default:"item"}}),H={horizontal:{motionName:`${U}-slide-up`},inline:Uz(U),other:{motionName:`${U}-zoom-big`}},Q=P("menu",o||r.prefixCls),J=Zn(Q),[te,ne]=Vue(Q,J,!n),re=Y(`${Q}-${l}`,O,i),oe=f.useMemo(()=>{if(typeof u=="function"||Hw(u))return u||null;if(typeof r.expandIcon=="function"||Hw(r.expandIcon))return r.expandIcon||null;if(typeof A?.expandIcon=="function"||Hw(A?.expandIcon))return A?.expandIcon||null;const ee=u??r?.expandIcon??A?.expandIcon;return Yr(ee,{className:Y(`${Q}-submenu-expand-icon`,f.isValidElement(ee)?ee.props?.className:void 0)})},[u,r?.expandIcon,A?.expandIcon,Q]),de=f.useMemo(()=>({prefixCls:Q,inlineCollapsed:j||false,direction:I,firstLevel:true,theme:l,mode:k,disableMenuItemTitleTooltip:d,tooltip:m,classNames:X,styles:B}),[Q,j,I,d,l,k,X,B,m]);return f.createElement(N0.Provider,{value:null},f.createElement(R0.Provider,{value:de},f.createElement(lm,{getPopupContainer:N,overflowedIndicator:f.createElement(CA,null),overflowedIndicatorPopupClassName:Y(Q,`${Q}-${l}`,$),classNames:{list:X.list,listTitle:X.itemTitle},styles:{list:B.list,listTitle:B.itemTitle},mode:k,selectable:G,onClick:z,...W,inlineCollapsed:j,style:{...B.root,...D,...s},className:re,prefixCls:Q,direction:I,defaultMotions:H,expandIcon:oe,ref:t,rootClassName:Y(b,te,r.rootClassName,ne,J,X.root),_internalComponents:jue})))}),$c=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f.useContext(P7);return f.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{n.current?.focus(o);}})),f.createElement(Uue,{ref:n,...e,...r})});$c.Item=O7;$c.SubMenu=D7;$c.Divider=I7;$c.ItemGroup=SA;const Wue=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}}}}}},Gue=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)"}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{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:VT},[`&${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:UT},[`&${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:jT},[`&${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:WT}}},hA(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`]:{...hn(e),[n]:{padding:p,listStyleType:"none",backgroundColor:S,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...ai(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ie(d)} ${ie(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:`${ie(d)} ${ie(y)}`,color:e.colorText,fontWeight:"normal",fontSize:m,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${u}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...ai(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:S,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ie(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 ${ie(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}}}},[cc(e,"slide-up"),cc(e,"slide-down"),y0(e,"move-up"),y0(e,"move-down"),Cg(e,"zoom-big")]]},que=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...U1({contentRadius:e.borderRadiusLG,limitVerticalRadius:true}),...mA(e)}),Kue=qt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=Vt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return [Gue(i),Wue(i)]},que,{resetStyle:false}),Y1=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:$=true,placement:w="",transitionName:M,classNames:T,styles:A,destroyPopupOnHide:P,destroyOnHidden:N}=e,{getPrefixCls:I,direction:O,getPopupContainer:D,className:L,style:V,classNames:U,styles:W}=Gt("dropdown"),z={...e,mouseEnterDelay:S,mouseLeaveDelay:x,autoAdjustOverflow:$},[k,G]=Yt([U,T],[W,A],{props:z}),j={...V,...g,...G.root},K=u||l,X=f.useMemo(()=>{const Ne=I();return M!==void 0?M:w.includes("top")?`${Ne}-slide-down`:`${Ne}-slide-up`},[I,w,M]),B=f.useMemo(()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:O==="rtl"?"bottomRight":"bottomLeft",[w,O]),H=I("dropdown",r),Q=Zn(H),[J,te]=Kue(H,Q),[,ne]=Qr(),re=f.Children.only(Tne(o)?f.createElement("span",null,o):o),oe=Yr(re,{className:Y(`${H}-trigger`,{[`${H}-rtl`]:O==="rtl"},re.props.className),disabled:re.props.disabled??s}),de=s?[]:i,ee=!!de?.includes("contextMenu"),[se,le]=mn(false,b),ae=At(Ne=>{y?.(Ne,{source:"trigger"}),le(Ne);}),Ee=Y(m,p,J,te,Q,L,k.root,{[`${H}-rtl`]:O==="rtl"}),ce=u7({arrowPointAtCenter:Cn(n)&&n.pointAtCenter,autoAdjustOverflow:$,offset:ne.marginXXS,arrowWidth:n?ne.sizePopupArrow:0,borderRadius:ne.borderRadius}),he=At(()=>{t?.selectable&&t?.multiple||(y?.(false,{source:"menu"}),le(false));}),ge=()=>{const Ne=Vn(k,["root"]),ve=Vn(G,["root"]);let Te;return t?.items&&(Te=f.createElement($c,{...t,classNames:{...Ne,subMenu:{...Ne}},styles:{...ve,subMenu:{...ve}}})),K&&(Te=K(Te)),Te=f.Children.only(typeof Te=="string"?f.createElement("span",null,Te):Te),f.createElement(kue,{prefixCls:`${H}-menu`,rootClassName:Y(te,Q),expandIcon:f.createElement("span",{className:`${H}-menu-submenu-arrow`},O==="rtl"?f.createElement(Lp,{className:`${H}-menu-submenu-arrow-icon`}):f.createElement(kf,{className:`${H}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:false,onClick:he,validator:({mode:Se})=>{}},Te)},[Ce,Re]=Zu("Dropdown",j.zIndex);let et=f.createElement(b7,{alignPoint:ee,...Vn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:S,mouseLeaveDelay:x,visible:se,builtinPlacements:ce,arrow:!!n,overlayClassName:Ee,prefixCls:H,getPopupContainer:d||D,transitionName:X,trigger:de,overlay:ge,placement:B,onVisibleChange:ae,overlayStyle:{...j,zIndex:Ce},autoDestroy:N??P},oe);return Ce&&(et=f.createElement(D1.Provider,{value:Re},et)),et},Yue=oA(Y1,"align",void 0,"dropdown",e=>e),Xue=e=>f.createElement(Yue,{...e},f.createElement("span",null));Y1._InternalPanelDoNotUseOrYouWillBeFired=Xue;var Ty={exports:{}},Que=Ty.exports,RD;function Zue(){return RD||(RD=1,(function(e,t){(function(n,r){e.exports=r();})(Que,(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+)?$/,$=/\[([^\]]+)]|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,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var z=["th","st","nd","rd"],k=W%100;return "["+W+(z[(k-20)%10]||z[k]||z[0])+"]"}},M=function(W,z,k){var G=String(W);return !G||G.length>=z?W:""+Array(z+1-G.length).join(k)+W},T={s:M,z:function(W){var z=-W.utcOffset(),k=Math.abs(z),G=Math.floor(k/60),j=k%60;return (z<=0?"+":"-")+M(G,2,"0")+":"+M(j,2,"0")},m:function W(z,k){if(z.date()<k.date())return -W(k,z);var G=12*(k.year()-z.year())+(k.month()-z.month()),j=z.clone().add(G,p),K=k-j<0,X=z.clone().add(G+(K?-1:1),p);return +(-(G+(k-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",P={};P[A]=w;var N="$isDayjsObject",I=function(W){return W instanceof V||!(!W||!W[N])},O=function W(z,k,G){var j;if(!z)return A;if(typeof z=="string"){var K=z.toLowerCase();P[K]&&(j=K),k&&(P[K]=k,j=K);var X=z.split("-");if(!j&&X.length>1)return W(X[0])}else {var B=z.name;P[B]=z,j=B;}return !G&&j&&(A=j),j||!G&&A},D=function(W,z){if(I(W))return W.clone();var k=typeof z=="object"?z:{};return k.date=W,k.args=arguments,new V(k)},L=T;L.l=O,L.i=I,L.w=function(W,z){return D(W,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var V=(function(){function W(k){this.$L=O(k.locale,null,true),this.parse(k),this.$x=this.$x||k.x||{},this[N]=true;}var z=W.prototype;return z.parse=function(k){this.$d=(function(G){var j=G.date,K=G.utc;if(j===null)return new Date(NaN);if(L.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var X=j.match(x);if(X){var B=X[2]-1||0,H=(X[7]||"0").substring(0,3);return K?new Date(Date.UTC(X[1],B,X[3]||1,X[4]||0,X[5]||0,X[6]||0,H)):new Date(X[1],B,X[3]||1,X[4]||0,X[5]||0,X[6]||0,H)}}return new Date(j)})(k),this.init();},z.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds();},z.$utils=function(){return L},z.isValid=function(){return this.$d.toString()!==S},z.isSame=function(k,G){var j=D(k);return this.startOf(G)<=j&&j<=this.endOf(G)},z.isAfter=function(k,G){return D(k)<this.startOf(G)},z.isBefore=function(k,G){return this.endOf(G)<D(k)},z.$g=function(k,G,j){return L.u(k)?this[G]:this.set(j,k)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(k,G){var j=this,K=!!L.u(G)||G,X=L.p(k),B=function(de,ee){var se=L.w(j.$u?Date.UTC(j.$y,ee,de):new Date(j.$y,ee,de),j);return K?se:se.endOf(d)},H=function(de,ee){return L.w(j.toDate()[de].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?B(1,0):B(31,11);case p:return K?B(1,J):B(0,J+1);case m:var re=this.$locale().weekStart||0,oe=(Q<re?Q+7:Q)-re;return B(K?te-oe:te+(6-oe),J);case d:case y:return H(ne+"Hours",0);case u:return H(ne+"Minutes",1);case l:return H(ne+"Seconds",2);case s:return H(ne+"Milliseconds",3);default:return this.clone()}},z.endOf=function(k){return this.startOf(k,false)},z.$set=function(k,G){var j,K=L.p(k),X="set"+(this.$u?"UTC":""),B=(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],H=K===d?this.$D+(G-this.$W):G;if(K===p||K===b){var Q=this.clone().set(y,1);Q.$d[B](H),Q.init(),this.$d=Q.set(y,Math.min(this.$D,Q.daysInMonth())).$d;}else B&&this.$d[B](H);return this.init(),this},z.set=function(k,G){return this.clone().$set(k,G)},z.get=function(k){return this[L.p(k)]()},z.add=function(k,G){var j,K=this;k=Number(k);var X=L.p(G),B=function(J){var te=D(K);return L.w(te.date(te.date()+Math.round(J*k)),K)};if(X===p)return this.set(p,this.$M+k);if(X===b)return this.set(b,this.$y+k);if(X===d)return B(1);if(X===m)return B(7);var H=(j={},j[l]=r,j[u]=o,j[s]=n,j)[X]||1,Q=this.$d.getTime()+k*H;return L.w(Q,this)},z.subtract=function(k,G){return this.add(-1*k,G)},z.format=function(k){var G=this,j=this.$locale();if(!this.isValid())return j.invalidDate||S;var K=k||"YYYY-MM-DDTHH:mm:ssZ",X=L.z(this),B=this.$H,H=this.$m,Q=this.$M,J=j.weekdays,te=j.months,ne=j.meridiem,re=function(ee,se,le,ae){return ee&&(ee[se]||ee(G,K))||le[se].slice(0,ae)},oe=function(ee){return L.s(B%12||12,ee,"0")},de=ne||function(ee,se,le){var ae=ee<12?"AM":"PM";return le?ae.toLowerCase():ae};return K.replace($,(function(ee,se){return se||(function(le){switch(le){case "YY":return String(G.$y).slice(-2);case "YYYY":return L.s(G.$y,4,"0");case "M":return Q+1;case "MM":return L.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 L.s(G.$D,2,"0");case "d":return String(G.$W);case "dd":return re(j.weekdaysMin,G.$W,J,2);case "ddd":return re(j.weekdaysShort,G.$W,J,3);case "dddd":return J[G.$W];case "H":return String(B);case "HH":return L.s(B,2,"0");case "h":return oe(1);case "hh":return oe(2);case "a":return de(B,H,true);case "A":return de(B,H,false);case "m":return String(H);case "mm":return L.s(H,2,"0");case "s":return String(G.$s);case "ss":return L.s(G.$s,2,"0");case "SSS":return L.s(G.$ms,3,"0");case "Z":return X}return null})(ee)||X.replace(":","")}))},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(k,G,j){var K,X=this,B=L.p(G),H=D(k),Q=(H.utcOffset()-this.utcOffset())*r,J=this-H,te=function(){return L.m(X,H)};switch(B){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:L.a(K)},z.daysInMonth=function(){return this.endOf(p).$D},z.$locale=function(){return P[this.$L]},z.locale=function(k,G){if(!k)return this.$L;var j=this.clone(),K=O(k,G,true);return K&&(j.$L=K),j},z.clone=function(){return L.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},W})(),U=V.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,V,D),W.$i=true),D},D.locale=O,D.isDayjs=I,D.unix=function(W){return D(1e3*W)},D.en=P[A],D.Ls=P,D.p={},D}));})(Ty)),Ty.exports}var Jue=Zue();const Xn=Sc(Jue);function ede(e){return e===void 0||e===false?[]:Array.isArray(e)?e:[e]}function tde(e){return ede(e).join("_")}const L7=f.createContext(void 0),nde=L7.Provider,k7=f.createContext(void 0),rde=k7.Provider;function a3(){return a3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},a3.apply(this,arguments)}const _7=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]=mn(l,i);f.useImperativeHandle(t,()=>({focus:w=>{g.current?.focus(w);},blur:()=>{g.current?.blur();},input:g.current,nativeElement:b.current}));const x=Y(n,r,{[`${n}-checked`]:y,[`${n}-disabled`]:s}),$=w=>{s||("checked"in e||S(w.target.checked),m?.({target:{...e,type:u,checked:w.target.checked},stopPropagation(){w.stopPropagation();},preventDefault(){w.preventDefault();},nativeEvent:w.nativeEvent}));};return f.createElement("span",{className:x,title:d,style:o,ref:b},f.createElement("input",a3({},p,{className:`${n}-input`,ref:g,onChange:$,disabled:s,checked:!!y,type:u})))});function B7(e){const t=q.useRef(null),n=()=>{zt.cancel(t.current),t.current=null;};return [()=>{n(),t.current=zt(()=>{t.current=null;});},i=>{t.current&&(i.stopPropagation(),n()),e?.(i);}]}const ode=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:{...hn(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}}}}},ide=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:$,radioColor:w,radioBgColor:M}=e;return {[`${t}-wrapper`]:{...hn(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]:{...hn(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:`${ie(p)} ${$} ${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:w,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)`]:os(e)},[`&:hover:not(${t}-wrapper-disabled) ${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}}}},sde=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:$,buttonCheckedBg:w,buttonSolidCheckedColor:M,colorTextDisabled:T,colorBgContainerDisabled:A,buttonCheckedBgDisabled:P,buttonCheckedColorDisabled:N,colorPrimary:I,colorPrimaryHover:O,colorPrimaryActive:D,buttonSolidCheckedBg:L,buttonSolidCheckedHoverBg:V,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:ie(W(n).sub(W(o).mul(2)).equal()),background:m,border:`${ie(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:`${ie(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:ie(W(g).sub(W(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:$,borderEndStartRadius:$},"&:last-child":{borderStartEndRadius:$,borderEndEndRadius:$}},[`${r}-group-small &`]:{height:b,paddingInline:W(y).sub(o).equal(),paddingBlock:0,lineHeight:ie(W(b).sub(W(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},"&:hover":{position:"relative",color:I},"&:has(:focus-visible)":os(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:I,background:w,borderColor:I,"&::before":{backgroundColor:I},"&:first-child":{borderColor:I},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:D,borderColor:D,"&::before":{backgroundColor:D}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:M,background:L,borderColor:L,"&:hover":{color:M,background:V,borderColor:V},"&: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:P,borderColor:s,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},ade=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,$=t?x-S*2:x-(S+o)*2;return {radioSize:x,dotSize:$,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}},z7=qt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ie(n)} ${t}`,i=Vt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return [ode(i),ide(i),sde(i)]},ade,{unitless:{radioSize:true,dotSize:true}}),lde=(e,t)=>{const n=f.useContext(L7),r=f.useContext(k7),{getPrefixCls:o,direction:i,className:s,style:l,classNames:u,styles:d}=Gt("radio"),m=f.useRef(null),p=Fr(t,m),{isFormItemInput:g}=f.useContext(Po),b=H=>{e.onChange?.(H),n?.onChange?.(H);},{prefixCls:y,className:S,rootClassName:x,children:$,style:w,title:M,classNames:T,styles:A,...P}=e,N=o("radio",y),I=(n?.optionType||r)==="button",O=I?`${N}-button`:N,D=Zn(N),[L,V]=z7(N,D),U={...P},W=f.useContext(po);let z=U.checked;n&&(U.name=n.name,U.onChange=b,z=e.value===n.value,U.disabled=U.disabled??n.disabled),U.disabled=U.disabled??W;const k={...e,...U,checked:z},[G,j]=Yt([u,T],[d,A],{props:k}),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,L,V,D),[X,B]=B7(U.onClick);return f.createElement(Sg,{component:"Radio",disabled:U.disabled},f.createElement("label",{className:K,style:{...j.root,...l,...w},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:M,onClick:X},f.createElement(_7,{...U,checked:z,className:Y(G.icon,{[z1]:!I}),style:j.icon,type:"radio",prefixCls:O,ref:p,onClick:B}),$!==void 0?f.createElement("span",{className:Y(`${O}-label`,G.label),style:j.label},$):null))},P0=f.forwardRef(lde),cde=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f.useContext($t),{name:o}=f.useContext(Po),i=ol(tde(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:$=i,defaultValue:w,value:M,block:T=false,onChange:A,onMouseEnter:P,onMouseLeave:N,onFocus:I,onBlur:O,orientation:D,vertical:L,role:V="radiogroup"}=e,[U,W]=mn(w,M),z=f.useCallback(ne=>{const re=U,oe=ne.target.value;"value"in e||W(oe),oe!==re&&A?.(ne);},[U,W,A]),k=n("radio",s),G=`${k}-group`,j=Zn(k),[K,X]=z7(k,j);let B=g;d&&d.length>0&&(B=d.map(ne=>typeof ne=="string"||Fo(ne)?f.createElement(P0,{key:ne.toString(),prefixCls:k,disabled:p,value:ne,checked:U===ne},ne):f.createElement(P0,{key:`radio-group-value-options-${ne.value}`,prefixCls:k,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 H=yr(b),[,Q]=Qu(D,L),J=Y(G,`${G}-${m}`,{[`${G}-large`]:H==="large",[`${G}-small`]:H==="small",[`${G}-rtl`]:r==="rtl",[`${G}-block`]:T},l,u,K,X,j),te=f.useMemo(()=>({onChange:z,value:U,disabled:p,name:$,optionType:x,block:T}),[z,U,p,$,x,T]);return f.createElement("div",{...No(e,{aria:true,data:true}),role:V,className:Y(J,{[`${k}-group-vertical`]:Q}),style:y,onMouseEnter:P,onMouseLeave:N,onFocus:I,onBlur:O,id:S,ref:t},f.createElement(nde,{value:te},B))}),ude=f.memo(cde),dde=(e,t)=>{const{getPrefixCls:n}=f.useContext($t),{prefixCls:r,...o}=e,i=n("radio",r);return f.createElement(rde,{value:"button"},f.createElement(P0,{prefixCls:i,...o,type:"radio",ref:t}))},fde=f.forwardRef(dde),Rr=P0;Rr.Button=fde;Rr.Group=ude;Rr.__ANT_RADIO=true;function cm(e){return Vt(e,{inputAffixPadding:e.paddingXXS})}const um=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:$,colorWarningOutline:w,colorBgContainer:M,inputFontSize:T,inputFontSizeLG:A,inputFontSizeSM:P}=e,N=T||n,I=P||N,O=A||l,D=Math.round((t-N*r)/2*10)/10-o,L=Math.round((i-I*r)/2*10)/10-o,V=Math.ceil((s-O*u)/2*10)/10-o;return {paddingBlock:Math.max(D,0),paddingBlockSM:Math.max(L,0),paddingBlockLG:Math.max(V,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 ${$}`,warningActiveShadow:`0 0 0 ${S}px ${w}`,hoverBg:M,activeBg:M,inputFontSize:N,inputFontSizeLG:O,inputFontSizeSM:I}},mde=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),X1=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...mde(Vt(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),xA=(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}}),ND=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...xA(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),F7=(e,t)=>({"&-outlined":{...xA(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...X1(e)},...ND(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...ND(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),PD=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),hde=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...PD(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...PD(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...X1(e)}}}}),H7=(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}}},V7=(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}}),ID=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...V7(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),j7=(e,t)=>({"&-filled":{...V7(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...X1(e)},...ID(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...ID(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),OD=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),pde=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...OD(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...OD(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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),U7=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ie(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}}),DD=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...U7(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`}}),W7=(e,t)=>({"&-underlined":{...U7(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"},...DD(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...DD(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),G7=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),wA=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return {padding:`${ie(t)} ${ie(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},$A=e=>({padding:`${ie(e.paddingBlockSM)} ${ie(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Q1=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ie(e.paddingBlock)} ${ie(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...G7(e.colorTextPlaceholder),"&-lg":{...wA(e),...t.largeStyle},"&-sm":{...$A(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),gde=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`]:{...wA(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...$A(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 ${ie(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ie(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ie(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${ie(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${n}-cascader-picker`]:{margin:`-9px ${ie(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",...f0(),[`${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`]:{}}}}},vde=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]:{...hn(e),...Q1(e),...F7(e),...j7(e),...H7(e),...W7(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"}}}},bde=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},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...os(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ie(e.inputAffixPadding)}`}}}},yde=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]:{...Q1(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}},...bde(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}}}}},Sde=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return {[`${t}-group`]:{...hn(e),...gde(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}},...hde(e),...pde(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}}}}}},Cde=e=>{const{componentCls:t}=e;return {[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},q7=qt(["Input","Shared"],e=>{const t=Vt(e,cm(e));return [vde(t),yde(t)]},um,{resetFont:false}),K7=qt(["Input","Component"],e=>{const t=Vt(e,cm(e));return [Sde(t),Cde(t),om(t,{focus:true,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},um,{resetFont:false});var xde={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 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 wde=(e,t)=>f.createElement(Qn,l3({},e,{ref:t,icon:xde})),Y7=f.forwardRef(wde);var Eh={exports:{}},LD;function $de(){if(LD)return Eh.exports;LD=1,Eh.exports=r,Eh.exports.isMobile=r,Eh.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 Eh.exports}var Ede=$de();const Mde=Sc(Ede);let Vw;const Tde=()=>(typeof Vw>"u"&&(Vw=Mde()),Vw),EA=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(){zt.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=zt(()=>{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}},kD={width:0,height:0,left:0,top:0};function Rde(e,t,n){return f.useMemo(()=>{const r=new Map,o=t.get(e[0]?.key)||kD,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)||kD);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 _D(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 Nde=.1,BD=.01,Ay=20,zD=.995**Ay;function Pde(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($){const{screenX:w,screenY:M}=$.touches[0];r({x:w,y:M}),window.clearInterval(m.current);}function g($){if(!n)return;const{screenX:w,screenY:M}=$.touches[0];r({x:w,y:M});const T=w-n.x,A=M-n.y;t(T,A);const P=Date.now();i(P),l(P-o),d({x:T,y:A});}function b(){if(n&&(r(null),d(null),u)){const $=u.x/s,w=u.y/s,M=Math.abs($),T=Math.abs(w);if(Math.max(M,T)<Nde)return;let A=$,P=w;m.current=window.setInterval(()=>{if(Math.abs(A)<BD&&Math.abs(P)<BD){window.clearInterval(m.current);return}A*=zD,P*=zD,t(A*Ay,P*Ay);},Ay);}}const y=f.useRef();function S($){const{deltaX:w,deltaY:M}=$;let T=0;const A=Math.abs(w),P=Math.abs(M);A===P?T=y.current==="x"?w:M:A>P?(T=w,y.current="x"):(T=M,y.current="y"),t(-T,-T)&&$.preventDefault();}const x=f.useRef(null);x.current={onTouchStart:p,onTouchMove:g,onTouchEnd:b,onWheel:S},f.useEffect(()=>{function $(A){x.current.onTouchStart(A);}function w(A){x.current.onTouchMove(A);}function M(A){x.current.onTouchEnd(A);}function T(A){x.current.onWheel(A);}return document.addEventListener("touchmove",w,{passive:false}),document.addEventListener("touchend",M,{passive:true}),e.current.addEventListener("touchstart",$,{passive:true}),e.current.addEventListener("wheel",T,{passive:false}),()=>{document.removeEventListener("touchmove",w),document.removeEventListener("touchend",M);}},[]);}function X7(e){const[t,n]=f.useState(0),r=f.useRef(0),o=f.useRef();return o.current=e,py(()=>{o.current?.();},[t]),()=>{r.current===t&&(r.current+=1,n(r.current));}}function Ide(e){const t=f.useRef([]),[,n]=f.useState({}),r=f.useRef(typeof e=="function"?e():e),o=X7(()=>{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 FD={width:0,height:0,left:0,top:0,right:0};function Ode(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)||FD;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)||FD)[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 HD(e){let t;return e instanceof Map?(t={},e.forEach((n,r)=>{t[r]=n;})):t=e,JSON.stringify(t)}const Dde="TABS_DQ";function Q7(e){return String(e).replace(/"/g,Dde)}function MA(e,t,n,r){return !(!n||r||e===false||e===void 0&&(t===false||t===null))}const Z7=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||"+")}),VD=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 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 Lde=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:$}=e,[w,M]=f.useState(false),[T,A]=f.useState(null),{icon:P="More"}=l,N=`${r}-more-popup`,I=`${n}-dropdown`,O=T!==null?`${N}-${T}`:null,D=i?.dropdownAriaLabel;function L(j,K){j.preventDefault(),j.stopPropagation(),m.onEdit("remove",{key:K,event:j});}const V=f.createElement(lm,{onClick:({key:j,domEvent:K})=>{y(j,K),M(false);},prefixCls:`${I}-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:B,key:H,label:Q}=j,J=MA(K,B,m,X);return f.createElement(Ng,{key:H,id:`${N}-${H}`,role:"option","aria-controls":r&&`${r}-panel-${H}`,disabled:X},f.createElement("span",null,Q),J&&f.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:`${I}-menu-item-remove`,onClick:te=>{te.stopPropagation(),L(te,H);}},B||m.removeIcon||"×"))}));function U(j){const K=o.filter(H=>!H.disabled);let X=K.findIndex(H=>H.key===T)||0;const B=K.length;for(let H=0;H<B;H+=1){X=(X+j+B)%B;const Q=K[X];if(!Q.disabled){A(Q.key);return}}}function W(j){const{which:K}=j;if(!w){[st.DOWN,st.SPACE,st.ENTER].includes(K)&&(M(true),j.preventDefault());return}switch(K){case st.UP:U(-1),j.preventDefault();break;case st.DOWN:U(1),j.preventDefault();break;case st.ESC:M(false);break;case st.SPACE:case st.ENTER:T!==null&&y(T,j);break}}f.useEffect(()=>{const j=document.getElementById(O);j?.scrollIntoView&&j.scrollIntoView(false);},[O,T]),f.useEffect(()=>{w||A(null);},[w]);const z={marginInlineStart:p};o.length||(z.visibility="hidden",z.order=1);const k=Y(x,{[`${I}-rtl`]:g}),G=s?null:f.createElement(b7,c3({prefixCls:I,overlay:V,visible:o.length?w:false,onVisibleChange:M,overlayClassName:k,overlayStyle:$,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":w,onKeyDown:W},P));return f.createElement("div",{className:Y(`${n}-nav-operations`,d),style:u,ref:t},G,f.createElement(Z7,{prefixCls:n,locale:i,editable:m}))}),kde=f.memo(Lde,(e,t)=>t.tabMoving),_de=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:$,onMouseDown:w,onMouseUp:M,style:T,className:A,tabCount:P,currentPosition:N}=e,I=`${t}-tab`,O=MA(m,u,b,l);function D(z){l||y(z);}function L(z){z.preventDefault(),z.stopPropagation(),b.onEdit("remove",{key:i,event:z});}const V=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":Q7(i),className:Y(I,A,{[`${I}-with-remove`]:O,[`${I}-active`]:r,[`${I}-disabled`]:l,[`${I}-focus`]:o}),style:T,onClick:D},f.createElement("div",{ref:U,role:"tab","aria-selected":r,id:n&&`${n}-tab-${i}`,className:`${I}-btn`,"aria-controls":n&&`${n}-panel-${i}`,"aria-disabled":l,tabIndex:l?null:r?0:-1,onClick:z=>{z.stopPropagation(),D(z);},onKeyDown:$,onMouseDown:w,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 ${P}`),d&&f.createElement("span",{className:`${I}-icon`},d),s&&V),O&&f.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:r?0:-1,className:`${I}-remove`,onClick:z=>{z.stopPropagation(),L(z);}},u||b.removeIcon||"×"));return p?p(W):W};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 Bde=(e,t)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:o,offsetLeft:i}=e,{width:s,height:l,left:u,top:d}=e.getBoundingClientRect();return Math.abs(s-n)<1?[s,l,u-t.left,d-t.top]:[n,r,i,o]},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]},Db=(e,t)=>e[t?0:1],jD=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:$,styles:w}=e,{prefixCls:M,tabs:T}=f.useContext(EA),A=f.useRef(null),P=f.useRef(null),N=f.useRef(null),I=f.useRef(null),O=f.useRef(null),D=f.useRef(null),L=f.useRef(null),V=p==="top"||p==="bottom",[U,W]=_D(0,(me,Le)=>{V&&S&&S({direction:me>Le?"left":"right"});}),[z,k]=_D(0,(me,Le)=>{!V&&S&&S({direction:me>Le?"top":"bottom"});}),[G,j]=f.useState([0,0]),[K,X]=f.useState([0,0]),[B,H]=f.useState([0,0]),[Q,J]=f.useState([0,0]),[te,ne]=Ide(new Map),re=Rde(T,te,K[0]),oe=Db(G,V),de=Db(K,V),ee=Db(B,V),se=Db(Q,V),le=Math.floor(oe)<Math.floor(de+ee),ae=le?oe-se:oe-ee,Ee=`${M}-nav-operations-hidden`;let ce=0,he=0;V&&l?(ce=0,he=Math.max(0,de-ae)):(ce=Math.min(0,ae-de),he=0);function ge(me){return me<ce?ce:me>he?he:me}const Ce=f.useRef(null),[Re,et]=f.useState();function Ne(){et(Date.now());}function ve(){Ce.current&&clearTimeout(Ce.current);}Pde(I,(me,Le)=>{function xe(ze,tt){ze(it=>ge(it+tt));}return le?(V?xe(W,me):xe(k,Le),ve(),Ne(),true):false}),f.useEffect(()=>(ve(),Re&&(Ce.current=setTimeout(()=>{et(0);},100)),ve),[Re]);const[Te,Se]=Ode(re,ae,V?U:z,de,ee,se,{...e,tabs:T}),Ie=At((me=s)=>{const Le=re.get(me)||{width:0,height:0,left:0,right:0,top:0};if(V){let xe=U;l?Le.right<U?xe=Le.right:Le.right+Le.width>U+ae&&(xe=Le.right+Le.width-ae):Le.left<-U?xe=-Le.left:Le.left+Le.width>-U+ae&&(xe=-(Le.left+Le.width-ae)),k(0),W(ge(xe));}else {let xe=z;Le.top<-z?xe=-Le.top:Le.top+Le.height>-z+ae&&(xe=-(Le.top+Le.height-ae)),W(0),k(ge(xe));}}),[Ue,je]=f.useState(),[qe,Ze]=f.useState(false),Ye=T.filter(me=>!me.disabled).map(me=>me.key),Be=me=>{const Le=Ye.indexOf(Ue||s),xe=Ye.length,ze=(Le+me+xe)%xe,tt=Ye[ze];je(tt);},Ke=(me,Le)=>{const xe=Ye.indexOf(me),ze=T.find(it=>it.key===me);MA(ze?.closable,ze?.closeIcon,d,ze?.disabled)&&(Le.preventDefault(),Le.stopPropagation(),d.onEdit("remove",{key:me,event:Le}),xe===Ye.length-1?Be(-1):Be(1));},Qe=(me,Le)=>{Ze(true),Le.button===1&&Ke(me,Le);},ke=me=>{const{code:Le}=me,xe=l&&V,ze=Ye[0],tt=Ye[Ye.length-1];switch(Le){case "ArrowLeft":{V&&Be(xe?1:-1);break}case "ArrowRight":{V&&Be(xe?-1:1);break}case "ArrowUp":{me.preventDefault(),V||Be(-1);break}case "ArrowDown":{me.preventDefault(),V||Be(1);break}case "Home":{me.preventDefault(),je(ze);break}case "End":{me.preventDefault(),je(tt);break}case "Enter":case "Space":{me.preventDefault(),y(Ue??s,me);break}case "Backspace":case "Delete":{Ke(Ue,me);break}}},Oe={};V?Oe.marginInlineStart=g:Oe.marginTop=g;const ct=T.map((me,Le)=>{const{key:xe}=me;return f.createElement(_de,{id:o,prefixCls:M,key:xe,tab:me,className:$?.item,style:Le===0?w?.item:{...Oe,...w?.item},closable:me.closable,editable:d,active:xe===s,focus:xe===Ue,renderWrapper:b,removeAriaLabel:m?.removeAriaLabel,tabCount:Ye.length,currentPosition:Le+1,onClick:ze=>{y(xe,ze);},onKeyDown:ke,onFocus:()=>{qe||je(xe),Ie(xe),Ne(),I.current&&(l||(I.current.scrollLeft=0),I.current.scrollTop=0);},onBlur:()=>{je(void 0);},onMouseDown:ze=>Qe(xe,ze),onMouseUp:()=>{Ze(false);}})}),Ot=()=>ne(()=>{const me=new Map,Le=O.current?.getBoundingClientRect();return T.forEach(({key:xe})=>{const ze=O.current?.querySelector(`[data-node-key="${Q7(xe)}"]`);if(ze){const[tt,it,dt,Et]=Bde(ze,Le);me.set(xe,{width:tt,height:it,left:dt,top:Et});}}),me});f.useEffect(()=>{Ot();},[T.map(me=>me.key).join("_")]);const mt=X7(()=>{const me=Jd(A),Le=Jd(P),xe=Jd(N);j([me[0]-Le[0]-xe[0],me[1]-Le[1]-xe[1]]);const ze=Jd(L);H(ze);const tt=Jd(D);J(tt);const it=Jd(O);X([it[0]-ze[0],it[1]-ze[1]]),Ot();}),kt=T.slice(0,Te),yt=T.slice(Se+1),Dt=[...kt,...yt],ft=re.get(s),{style:ut}=Ade({activeTabOffset:ft,horizontal:V,indicator:x,rtl:l});f.useEffect(()=>{Ie();},[s,ce,he,HD(ft),HD(re),V]),f.useEffect(()=>{mt();},[l]);const vt=!!Dt.length,He=`${M}-nav-wrap`;let Ge,be,Me,ye;return V?l?(be=U>0,Ge=U!==he):(Ge=U<0,be=U!==ce):(Me=z<0,ye=z!==ce),f.createElement(Es,{onResize:mt},f.createElement("div",{ref:nl(t,A),role:"tablist","aria-orientation":V?"horizontal":"vertical",className:Y(`${M}-nav`,n,$?.header),style:{...w?.header,...r},onKeyDown:()=>{Ne();}},f.createElement(VD,{ref:P,position:"left",extra:u,prefixCls:M}),f.createElement(Es,{onResize:mt},f.createElement("div",{className:Y(He,{[`${He}-ping-left`]:Ge,[`${He}-ping-right`]:be,[`${He}-ping-top`]:Me,[`${He}-ping-bottom`]:ye}),ref:I},f.createElement(Es,{onResize:mt},f.createElement("div",{ref:O,className:`${M}-nav-list`,style:{transform:`translate(${U}px, ${z}px)`,transition:Re?"none":void 0}},ct,f.createElement(Z7,{ref:L,prefixCls:M,locale:m,editable:d,style:{...ct.length===0?void 0:Oe,visibility:vt?"hidden":null}}),f.createElement("div",{className:Y(`${M}-ink-bar`,$?.indicator,{[`${M}-ink-bar-animated`]:i.inkBar}),style:{...ut,...w?.indicator}}))))),f.createElement(kde,u3({},e,{removeAriaLabel:m?.removeAriaLabel,ref:D,prefixCls:M,tabs:Dt,className:!vt&&Ee,popupStyle:w?.popup,tabMoving:!!Re})),f.createElement(VD,{ref:N,position:"right",extra:u,prefixCls:M})))}),zde=({renderTabBar:e,...t})=>e?e(t,jD):f.createElement(jD,t),Fde=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 I0(){return I0=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},I0.apply(this,arguments)}const Hde=e=>{const{id:t,activeKey:n,animated:r,tabPosition:o,destroyOnHidden:i,contentStyle:s,contentClassName:l}=e,{prefixCls:u,tabs:d}=f.useContext(EA),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}=g,M=b===n;return f.createElement(Io,I0({key:b,visible:M,forceRender:y,removeOnLeave:!!(i??$),leavedClassName:`${p}-hidden`},r.tabPaneMotion),({style:T,className:A},P)=>f.createElement(Fde,I0({},w,{prefixCls:p,id:t,tabKey:b,animated:m,active:M,style:{...s,...S,...T},className:Y(l,x,A),ref:P})))})))};function Vde(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 ip(){return ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},ip.apply(this,arguments)}let UD=0;const jde=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:$,renderTabBar:w,onChange:M,onTabClick:T,onTabScroll:A,getPopupContainer:P,popupClassName:N,indicator:I,classNames:O,styles:D,...L}=e,V=f.useMemo(()=>(i||[]).filter(re=>re&&typeof re=="object"&&"key"in re),[i]),U=s==="rtl",W=Vde(m),[z,k]=f.useState(false);f.useEffect(()=>{k(Tde());},[]);const[G,j]=mn(u??V[0]?.key,l),[K,X]=f.useState(()=>V.findIndex(re=>re.key===G));f.useEffect(()=>{let re=V.findIndex(oe=>oe.key===G);re===-1&&(re=Math.max(0,Math.min(K,V.length-1)),j(V[re]?.key)),X(re);},[V.map(re=>re.key).join("_"),G,K]);const[B,H]=mn(null,n);f.useEffect(()=>{n||(H(`rc-tabs-${UD}`),UD+=1);},[]);function Q(re,oe){T?.(re,oe);const de=re!==G;j(re),de&&M?.(re);}const J={id:B,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:P,popupClassName:Y(N,O?.popup),indicator:I,styles:D,classNames:O},ne=f.useMemo(()=>({tabs:V,prefixCls:r}),[V,r]);return f.createElement(EA.Provider,{value:ne},f.createElement("div",ip({ref:t,id:n,className:Y(r,`${r}-${p}`,{[`${r}-mobile`]:z,[`${r}-editable`]:d,[`${r}-rtl`]:U},o)},L),f.createElement(zde,ip({},te,{renderTabBar:w})),f.createElement(Hde,ip({destroyOnHidden:$},J,{contentStyle:D?.content,contentClassName:O?.content,animated:W}))))}),Ude={motionAppear:false,motionEnter:true,motionLeave:true};function Wde(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,...Cn(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...Ude,motionName:lc(e,"switch")}),n}function Gde(e){return e.filter(t=>t)}function qde(e,t){if(e)return e.map(r=>({...r,destroyOnHidden:r.destroyOnHidden??r.destroyInactiveTabPane}));const n=si(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 Gde(n)}const Kde=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}`}}}}},[cc(e,"slide-up"),cc(e,"slide-down")]]},Yde=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:`${ie(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)`]:os(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:ie(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ie(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:true,value:`${ie(e.borderRadiusLG)} 0 0 ${ie(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 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:true,value:e.colorBgContainer}}}}}}},Xde=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:{...hn(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:`${ie(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":{...sa,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ie(e.paddingXXS)} ${ie(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"}}}}}}},Qde=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:`${ie(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:ie(u(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:true,value:`${ie(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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:true,value:e.paddingLG}}}}}},Zde=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 ${ie(e.borderRadius)} ${ie(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ie(e.borderRadius)} ${ie(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:true,value:`0 ${ie(e.borderRadius)} ${ie(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:true,value:`${ie(e.borderRadius)} 0 0 ${ie(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},Jde=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:s,itemSelectedColor:l,itemColor:u}=e,d=`${t}-tab`;return {[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:u,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:true,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:true,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...ai(e)},"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:l},[`&${d}-focus ${d}-btn:focus-visible`]:os(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}}}},efe=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"}}}}},tfe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:s,colorBorderSecondary:l}=e;return {[t]:{...hn(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:`${ie(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:s},...ai(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...Jde(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{...ai(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},nfe=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}},rfe=qt("Tabs",e=>{const t=Vt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ie(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ie(e.horizontalItemGutter)}`});return [Zde(t),efe(t),Qde(t),Xde(t),Yde(t),tfe(t),Kde(t)]},nfe),ofe=()=>null,ife=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:$,indicatorSize:w,indicator:M,classNames:T,styles:A,destroyInactiveTabPane:P,destroyOnHidden:N,tabPlacement:I,tabPosition:O,...D}=e,{prefixCls:L}=D,{getPrefixCls:V,direction:U,getPopupContainer:W,className:z,style:k,classNames:G,styles:j}=Gt("tabs"),{tabs:K}=f.useContext($t),X=V("tabs",L),B=Zn(X),[H,Q]=rfe(X,B),J=f.useRef(null);f.useImperativeHandle(t,()=>({nativeElement:J.current}));let te;n==="editable-card"&&(te={onEdit:(ce,{key:he,event:ge})=>{s?.(ce==="add"?ge:he,ce);},removeIcon:m??K?.removeIcon??f.createElement(rl,null),addIcon:(d??K?.addIcon)||f.createElement(Y7,null),showAdd:l!==true});const ne=V(),re=yr(i),oe=qde(S,y),de=Wde(X,x),ee={align:M?.align??K?.indicator?.align,size:M?.size??w??K?.indicator?.size??K?.indicatorSize},se=f.useMemo(()=>{const ce=I??O??void 0,he=U==="rtl";switch(ce){case "start":return he?"right":"left";case "end":return he?"left":"right";default:return ce}},[I,O,U]),le={...e,size:re,tabPlacement:se,items:oe},[ae,Ee]=Yt([G,T],[j,A],{props:le},{popup:{_default:"root"}});return f.createElement(jde,{ref:J,direction:U,getPopupContainer:W,...D,items:oe,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,ae.root,H,Q,B),classNames:{...ae,popup:Y(b,H,Q,B,ae.popup?.root)},styles:Ee,style:{...Ee.root,...k,...$},editable:te,more:{icon:K?.more?.icon??K?.moreIcon??p??f.createElement(CA,null),transitionName:`${ne}-slide-up`,...g},prefixCls:X,animated:de,indicator:ee,destroyOnHidden:N??P,tabPosition:se})}),TA=ife;TA.TabPane=ofe;function sfe(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 J7(e,t){if(e==null)return {};var n,r,o=sfe(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 afe(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 $=x||{},w=$.upcomingOnly,M=w===void 0?false:w;b(),p=!M;}function S(){for(var x=arguments.length,$=new Array(x),w=0;w<x;w++)$[w]=arguments[w];var M=this,T=Date.now()-g;if(p)return;function A(){g=Date.now(),t.apply(M,$);}function P(){m=void 0;}!l&&d&&!m&&A(),b(),d===void 0&&T>e?l?(g=Date.now(),i||(m=setTimeout(d?P:A,e))):A():i!==true&&(m=setTimeout(d?P:A,d===void 0?e-T:e));}return S.cancel=y,S}function lfe(e,t,n){var r={},o=r.atBegin,i=o===void 0?false:o;return afe(e,t,{debounceMode:i!==false})}const cfe=e=>{const{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,o=`${t}-wrapper`;return [{[`${t}-group`]:{...hn(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[o]:{...hn(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]:{...hn(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:`${ie(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,flex:"none",...Wa(),"&: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:`${ie(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}`,...Wa()},[`${t}-input`]:{position:"absolute",inset:`calc(-1 * (${r}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:os(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}`,...Wa()},[`&: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 ufe(e,t){const n=Vt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return cfe(n)}const eH=qt("Checkbox",(e,{prefixCls:t})=>[ufe(t,e)]),tH=q.createContext(null),dfe=(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:$,onChange:w,...M}=e,{getPrefixCls:T,direction:A,className:P,style:N,classNames:I,styles:O}=Gt("checkbox"),D=f.useContext(tH),{isFormItemInput:L}=f.useContext(Po),V=f.useContext(po),U=(D?.disabled||u)??V,[W,z]=mn($,x);let k=W;const G=At(le=>{z(le.target.checked),w?.(le),!l&&D?.toggleOption&&D.toggleOption({label:r,value:S});});D&&!l&&(k=D.value.includes(S));const j=f.useRef(null),K=nl(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),B=Zn(X),[H,Q]=eH(X,B),J={...M},te={...e,indeterminate:o,disabled:U,checked:k},[ne,re]=Yt([I,g],[O,b],{props:te}),oe=Y(`${X}-wrapper`,{[`${X}-rtl`]:A==="rtl",[`${X}-wrapper-checked`]:k,[`${X}-wrapper-disabled`]:U,[`${X}-wrapper-in-form-item`]:L},P,m,ne.root,d,Q,B,H),de=Y(ne.icon,{[`${X}-indeterminate`]:o},z1,H),[ee,se]=B7(J.onClick);return f.createElement(Sg,{component:"Checkbox",disabled:U},f.createElement("label",{className:oe,style:{...re.root,...N,...p},onMouseEnter:i,onMouseLeave:s,onClick:ee},f.createElement(_7,{...J,name:!l&&D?D.name:y,checked:k,onClick:se,onChange:G,prefixCls:X,className:de,style:re.icon,disabled:U,ref:K,value:S}),br(r)&&f.createElement("span",{className:Y(`${X}-label`,ne.label),style:re.label},r)))},nH=f.forwardRef(dfe),ffe=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($t),[y,S]=f.useState(p.value||n||[]),[x,$]=f.useState([]);f.useEffect(()=>{"value"in p&&S(p.value||[]);},[p.value]);const w=f.useMemo(()=>o.map(z=>typeof z=="string"||Fo(z)?{label:z,value:z}:z),[o]),M=z=>{$(k=>k.filter(G=>G!==z));},T=z=>{$(k=>[].concat(Qt(k),[z]));},A=z=>{const k=y.indexOf(z.value),G=Qt(y);k===-1?G.push(z.value):G.splice(k,1),"value"in p||S(G),d?.(G.filter(j=>x.includes(j)).sort((j,K)=>{const X=w.findIndex(H=>H.value===j),B=w.findIndex(H=>H.value===K);return X-B}));},P=g("checkbox",i),N=`${P}-group`,I=Zn(P),[O,D]=eH(P,I),L=Vn(p,["value","disabled"]),V=o.length?w.map(z=>f.createElement(nH,{prefixCls:P,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,I,O);return f.createElement("div",{className:W,style:u,role:m,...L,ref:t},f.createElement(tH.Provider,{value:U},V))}),Oi=nH;Oi.Group=ffe;Oi.__ANT_CHECKBOX=true;const mfe=e=>{const{componentCls:t}=e;return {[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},hfe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:s,verticalMarginInline:l}=e,u=`${t}-rail`;return {[t]:{...hn(e),borderBlockStart:`${ie(o)} solid ${r}`,[u]:{borderBlockStart:`${ie(o)} solid ${r}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ie(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ie(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${ie(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:`${ie(o)} 0 0`,[u]:{borderBlockStart:`${ie(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:`${ie(o)} 0 0`,[u]:{borderBlockStart:`${ie(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}}}}},pfe=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),gfe=qt("Divider",e=>{const t=Vt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return [hfe(t),mfe(t)]},pfe,{unitless:{orientationMargin:true}}),vfe=["left","right","center","start","end"],fc=e=>{const{getPrefixCls:t,direction:n,className:r,style:o,classNames:i,styles:s}=Gt("divider"),{prefixCls:l,type:u,orientation:d,vertical:m,titlePlacement:p,orientationMargin:g,className:b,rootClassName:y,children:S,dashed:x,variant:$="solid",plain:w,style:M,size:T,classNames:A,styles:P,...N}=e,I=t("divider",l),O=`${I}-rail`,[D,L]=gfe(I),V=yr(T),U=!!S,W=vfe.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]),k=z==="start"&&g!=null,G=z==="end"&&g!=null,[j,K]=Qu(d,m,u),X={...e,orientation:j,titlePlacement:z,size:V},[B,H]=Yt([i,A],[s,P],{props:X}),Q=Y(I,r,D,L,`${I}-${j}`,{[`${I}-with-text`]:U,[`${I}-with-text-${z}`]:U,[`${I}-dashed`]:!!x,[`${I}-${$}`]:$!=="solid",[`${I}-plain`]:!!w,[`${I}-rtl`]:n==="rtl",[`${I}-no-default-orientation-margin-start`]:k,[`${I}-no-default-orientation-margin-end`]:G,[`${I}-md`]:V==="medium"||V==="middle",[`${I}-sm`]:V==="small",[O]:!S,[B.rail]:B.rail&&!S},b,y,B.root),J=f.useMemo(()=>Fo(g)?g:/^\d+$/.test(g)?Number(g):g,[g]),te={marginInlineStart:k?J:void 0,marginInlineEnd:G?J:void 0};return f.createElement("div",{className:Q,style:{...o,...H.root,...S?{}:H.rail,...M},...N,role:"separator"},S&&!K&&f.createElement(f.Fragment,null,f.createElement("div",{className:Y(O,`${O}-start`,B.rail),style:H.rail}),f.createElement("span",{className:Y(`${I}-inner-text`,B.content),style:{...te,...H.content}},S),f.createElement("div",{className:Y(O,`${O}-end`,B.rail),style:H.rail})))},WD=(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}},Us=e=>e!==void 0?`${e}px`:void 0;function bfe(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 I=o(N),O=n.current?.querySelectorAll(`.${t}-item`)[I];return O?.offsetParent&&O},[y,S]=f.useState(null),[x,$]=f.useState(null);In(()=>{if(p!==r){const N=b(p),I=b(r),O=WD(N,d),D=WD(I,d);g(r),S(O),$(D),N&&I?s():l();}},[r]);const w=f.useMemo(()=>Us(d?y?.top??0:u==="rtl"?-y?.right:y?.left),[d,u,y]),M=f.useMemo(()=>Us(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)"},P=()=>{S(null),$(null),l();};return !y||!x?null:f.createElement(Io,{visible:true,motionName:i,motionAppear:true,onAppearStart:T,onAppearActive:A,onVisibleChanged:P},({className:N,style:I},O)=>{const D={...I,"--thumb-start-left":w,"--thumb-start-width":Us(y?.width),"--thumb-active-left":M,"--thumb-active-width":Us(x?.width),"--thumb-start-top":w,"--thumb-start-height":Us(y?.height),"--thumb-active-top":M,"--thumb-active-height":Us(x?.height)},L={ref:Fr(m,O),style:D,className:Y(`${t}-thumb`,N)};return f.createElement("div",L)})}function yfe(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}function Sfe(e){return e.map(t=>{if(typeof t=="object"&&t!==null){const n=yfe(t);return {...t,title:n}}return {label:t?.toString(),title:t?.toString(),value:t}})}const Cfe=({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:$,itemRender:w=M=>M})=>{const M=A=>{s||g(A,m);},T=f.createElement("label",{className:Y(t,{[`${e}-item-disabled`]:s}),style:n,onMouseDown:$},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 w(T,{item:i})},xfe=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,...$}=e,w=f.useRef(null),M=f.useMemo(()=>Fr(w,t),[w,t]),T=f.useMemo(()=>Sfe(i),[i]),[A,P]=mn(l??T[0]?.value,u),[N,I]=f.useState(false),O=(H,Q)=>{P(Q),m?.(Q);},D=Vn($,["children"]),[L,V]=f.useState(false),[U,W]=f.useState(false),z=()=>{W(true);},k=()=>{W(false);},G=()=>{V(false);},j=H=>{H.key==="Tab"&&V(true);},K=H=>{const Q=T.findIndex(re=>re.value===A),J=T.length,te=(Q+H+J)%J,ne=T[te];ne&&(P(ne.value),m?.(ne.value));},X=H=>{switch(H.key){case "ArrowLeft":case "ArrowUp":K(-1);break;case "ArrowRight":case "ArrowDown":K(1);break}},B=H=>{const{value:Q,disabled:J}=H;return f.createElement(Cfe,ur({},H,{name:d,data:H,itemRender:x,key:Q,prefixCls:n,className:Y(H.className,`${n}-item`,y?.item,{[`${n}-item-selected`]:Q===A&&!N,[`${n}-item-focused`]:U&&L&&Q===A}),style:b?.item,classNames:y,styles:b,checked:Q===A,onChange:O,onFocus:z,onBlur:k,onKeyDown:X,onKeyUp:j,onMouseDown:G,disabled:!!s||!!J}))};return f.createElement("div",ur({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(bfe,{vertical:o,prefixCls:n,value:A,containerRef:w,motionName:`${n}-${S}`,direction:r,getValueIndex:H=>T.findIndex(Q=>Q.value===H),onMotionStart:()=>{I(true);},onMotionEnd:()=>{I(false);}}),T.map(B)))}),wfe=xfe;function GD(e,t){return {[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}const qD=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),$fe={overflow:"hidden",...sa},Efe=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),l=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return {[t]:{...hn(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${o}`,...ai(e),[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${ie(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":{...qD(e),color:e.itemSelectedColor},"&-focused":os(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:ie(i),padding:`0 ${ie(e.segmentedPaddingHorizontal)}`,...$fe},"&-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`]:{...qD(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${ie(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:ie(s),padding:`0 ${ie(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:l,lineHeight:ie(l),padding:`0 ${ie(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...GD(`&-disabled ${t}-item`,e),...GD(`${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}}}}},Mfe=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}},Tfe=qt("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Vt(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return Efe(r)},Mfe);function Afe(e){return Cn(e)&&!!e?.icon}const Rfe=f.forwardRef((e,t)=>{const n=ol(),{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:$,direction:w,className:M,style:T,classNames:A,styles:P}=Gt("segmented"),N={...e,options:l,size:u,shape:g},[I,O]=Yt([A,S],[P,y],{props:N}),D=$("segmented",r),[L,V]=Tfe(D),U=yr(u),W=f.useMemo(()=>l.map(K=>{if(Afe(K)){const{icon:X,label:B,...H}=K;return {...H,label:f.createElement(f.Fragment,null,f.createElement("span",{className:Y(`${D}-item-icon`,I.icon),style:O.icon},X),B&&f.createElement("span",null,B))}}return K}),[l,D,I.icon,O.icon]),[,z]=Qu(p,m),k=Y(o,i,M,I.root,{[`${D}-block`]:s,[`${D}-sm`]:U==="small",[`${D}-lg`]:U==="large",[`${D}-vertical`]:z,[`${D}-shape-${g}`]:g==="round"},L,V),G={...O.root,...T,...d},j=(K,{item:X})=>{if(!X.tooltip)return K;const B=Cn(X.tooltip)?X.tooltip:{title:X.tooltip};return f.createElement(wc,{...B},K)};return f.createElement(wfe,{...x,name:b,className:k,style:G,classNames:I,styles:O,itemRender:j,options:W,ref:t,prefixCls:D,direction:w,vertical:z})}),rH=Rfe,oH=q.createContext({}),iH=q.createContext({}),sH=({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=go(s);l.cleared=true,n(l);}};return q.createElement("div",{className:Y(`${e}-clear`,r),style:o,onClick:i})},aH="hex",lH="rgb",cH="hsb";var Nfe={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 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 Pfe=(e,t)=>f.createElement(Qn,d3({},e,{ref:t,icon:Nfe})),Ife=f.forwardRef(Pfe);var Ofe={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 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 Dfe=(e,t)=>f.createElement(Qn,f3({},e,{ref:t,icon:Ofe})),Lfe=f.forwardRef(Dfe);function m3(){return typeof BigInt=="function"}function uH(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Mu(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 AA(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function gu(e){var t=String(e);if(AA(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(".")&&RA(t)?t.length-t.indexOf(".")-1:0}function Z1(e){var t=String(e);if(AA(e)){if(e>Number.MAX_SAFE_INTEGER)return String(m3()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(m3()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(gu(t));}return Mu(t).fullStr}function RA(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 kfe=(function(){function e(t){if(cs(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),uH(t)){this.empty=true;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=true;return}var n=t;if(AA(n)&&(n=Number(n)),n=typeof n=="string"?n:Z1(n),RA(n)){var r=Mu(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 us(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=Mu(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()?"":Mu("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),_fe=(function(){function e(t){if(cs(this,e),Ct(this,"origin",""),Ct(this,"number",void 0),Ct(this,"empty",void 0),uH(t)){this.empty=true;return}this.origin=String(t),this.number=Number(t);}return us(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(gu(this.number),gu(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(gu(this.number),gu(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()?"":Z1(this.number):this.origin}}]),e})();function gs(e){return m3()?new kfe(e):new _fe(e)}function Ry(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:false;if(e==="")return "";var o=Mu(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=gs(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-m));return Ry(p.toString(),t,n,r)}return n===0?d:"".concat(d).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return u===".0"?d:"".concat(d).concat(u)}function Bfe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get(n,r){if(t[r])return t[r];const o=n[r];return typeof o=="function"?o.bind(n):o}}):e}function zfe(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 Ffe=200,Hfe=600;function KD({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,Ffe);}u.current=setTimeout(x,Hfe);};f.useEffect(()=>()=>{m(),d.current.forEach(S=>{zt.cancel(S);});},[]);const g=`${e}-action`,b=Y(g,`${g}-${t}`,{[`${g}-${t}-disabled`]:r},o),y=()=>d.current.push(zt(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 YD(e){const t=typeof e=="number"?Z1(e):Mu(e).fullStr;return t.includes(".")?Mu(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Vfe=(()=>{const e=f.useRef(0),t=()=>{zt.cancel(e.current);};return f.useEffect(()=>t,[]),n=>{t(),e.current=zt(()=>{n();});}});function sp(){return sp=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},sp.apply(this,arguments)}const XD=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),QD=e=>{const t=gs(e);return t.isInvalidate()?null:t},jfe=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:$,changeOnWheel:w=false,controls:M=true,prefix:T,suffix:A,stringMode:P,parser:N,formatter:I,precision:O,decimalSeparator:D,onChange:L,onInput:V,onPressEnter:U,onStep:W,onMouseDown:z,onClick:k,onMouseUp:G,onMouseLeave:j,onMouseMove:K,onMouseEnter:X,onMouseOut:B,changeOnBlur:H=true,...Q}=e,[J,te]=f.useState(false),ne=f.useRef(false),re=f.useRef(false),oe=f.useRef(false),de=f.useRef(null),ee=f.useRef(null);f.useImperativeHandle(t,()=>Bfe(ee.current,{focus:He=>{JT(ee.current,He);},blur:()=>{ee.current?.blur();},nativeElement:de.current}));const[se,le]=f.useState(()=>gs(g??p));function ae(He){g===void 0&&le(He);}const Ee=f.useCallback((He,Ge)=>{if(!Ge)return O>=0?O:Math.max(gu(He),gu(m))},[O,m]),ce=f.useCallback(He=>{const Ge=String(He);if(N)return N(Ge);let be=Ge;return D&&(be=be.replace(D,".")),be.replace(/[^\w.-]+/g,"")},[N,D]),he=f.useRef(""),ge=f.useCallback((He,Ge)=>{if(I)return I(He,{userTyping:Ge,input:String(he.current)});let be=typeof He=="number"?Z1(He):He;if(!Ge){const Me=Ee(be,Ge);RA(be)&&(D||Me>=0)&&(be=Ry(be,D||".",Me));}return be},[I,Ee,D]),[Ce,Re]=f.useState(()=>{const He=p??g;return se.isInvalidate()&&["string","number"].includes(typeof He)?Number.isNaN(He)?"":He:ge(se.toString(),false)});he.current=Ce;function et(He,Ge){Re(ge(He.isInvalidate()?He.toString(false):He.toString(!Ge),Ge));}const Ne=f.useMemo(()=>QD(d),[d,O]),ve=f.useMemo(()=>QD(u),[u,O]),Te=f.useMemo(()=>!Ne||!se||se.isInvalidate()?false:Ne.lessEquals(se),[Ne,se]),Se=f.useMemo(()=>!ve||!se||se.isInvalidate()?false:se.lessEquals(ve),[ve,se]),[Ie,Ue]=zfe(ee.current,J),je=He=>Ne&&!He.lessEquals(Ne)?Ne:ve&&!ve.lessEquals(He)?ve:null,qe=He=>!je(He),Ze=(He,Ge)=>{let be=He,Me=qe(be)||be.isEmpty();if(!be.isEmpty()&&!Ge&&(be=je(be)||be,Me=true),!y&&!b&&Me){const ye=be.toString(),me=Ee(ye,Ge);return me>=0&&(be=gs(Ry(ye,".",me)),qe(be)||(be=gs(Ry(ye,".",me,true)))),be.equals(se)||(ae(be),L?.(be.isEmpty()?null:XD(P,be)),g===void 0&&et(be,Ge)),be}return se},Ye=Vfe(),Be=He=>{if(Ie(),he.current=He,Re(He),!re.current){const Ge=ce(He),be=gs(Ge);be.isNaN()||Ze(be,true);}V?.(He),Ye(()=>{let Ge=He;N||(Ge=He.replace(/。/g,".")),Ge!==He&&Be(Ge);});},Ke=()=>{re.current=true;},Qe=()=>{re.current=false,Be(ee.current.value);},ke=He=>{Be(He.target.value);},Oe=At((He,Ge)=>{if(He&&Te||!He&&Se)return;ne.current=false;let be=gs(oe.current?YD(m):m);He||(be=be.negate());const Me=(se||gs(0)).add(be.toString()),ye=Ze(Me,false);W?.(XD(P,ye),{offset:oe.current?YD(m):m,type:He?"up":"down",emitter:Ge}),ee.current?.focus();}),ct=He=>{const Ge=gs(ce(Ce));let be;Ge.isNaN()?be=Ze(se,He):be=Ze(Ge,He),g!==void 0?et(se,false):be.isNaN()||et(be,false);},Ot=()=>{ne.current=true;},mt=He=>{const{key:Ge,shiftKey:be}=He;ne.current=true,oe.current=be,Ge==="Enter"&&(re.current||(ne.current=false),ct(false),U?.(He)),$!==false&&!re.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ge)&&(Oe(Ge==="Up"||Ge==="ArrowUp","keyboard"),He.preventDefault());},kt=()=>{ne.current=false,oe.current=false;};f.useEffect(()=>{if(w&&J){const He=be=>{Oe(be.deltaY<0,"wheel"),be.preventDefault();},Ge=ee.current;if(Ge)return Ge.addEventListener("wheel",He,{passive:false}),()=>Ge.removeEventListener("wheel",He)}});const yt=()=>{H&&ct(false),te(false),ne.current=false;},Dt=He=>{ee.current&&He.target!==ee.current&&(ee.current.focus(),He.preventDefault()),z?.(He);};py(()=>{se.isInvalidate()||et(se,false);},[O,I]),py(()=>{const He=gs(g);le(He);const Ge=gs(ce(Ce));(!He.equals(Ge)||!ne.current||I)&&et(He,ne.current);},[g]),py(()=>{I&&Ue();},[Ce]);const ft={prefixCls:r,onStep:Oe,className:s?.action,style:l?.action},ut=f.createElement(KD,sp({},ft,{action:"up",disabled:Te}),S),vt=f.createElement(KD,sp({},ft,{action:"down",disabled:Se}),x);return f.createElement("div",{ref:de,className:Y(r,`${r}-mode-${n}`,o,s?.root,{[`${r}-focused`]:J,[`${r}-disabled`]:b,[`${r}-readonly`]:y,[`${r}-not-a-number`]:se.isNaN(),[`${r}-out-of-range`]:!se.isInvalidate()&&!qe(se)}),style:{...l?.root,...i},onMouseDown:Dt,onMouseUp:G,onMouseLeave:j,onMouseMove:K,onMouseEnter:X,onMouseOut:B,onClick:k,onFocus:()=>{te(true);},onBlur:yt,onKeyDown:mt,onKeyUp:kt,onCompositionStart:Ke,onCompositionEnd:Qe,onBeforeInput:Ot},n==="spinner"&&M&&vt,T!==void 0&&f.createElement("div",{className:Y(`${r}-prefix`,s?.prefix),style:l?.prefix},T),f.createElement("input",sp({autoComplete:"off",role:"spinbutton","aria-valuemin":u,"aria-valuemax":d,"aria-valuenow":se.isInvalidate()?null:se.toString(),step:m,ref:ee,className:Y(`${r}-input`,s?.input),style:l?.input,value:Ce,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,vt))}),Ufe=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,whiteSpace:"nowrap",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}}]}},Wfe=qt(["Space","Addon"],e=>[Ufe(e),om(e,{focus:false})]),dH=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($t),g=m("space-addon",i),[b,y]=Wfe(g),{compactItemClassnames:S,compactSize:x}=il(g,p),$=dc(g,u),w=Y(g,b,S,y,`${g}-variant-${s}`,$,{[`${g}-${x}`]:x,[`${g}-disabled`]:l},n);return q.createElement("div",{ref:t,className:w,style:o,...d},r)}),Gfe=e=>{const t=e.handleVisible??"auto",n=e.controlHeightSM-e.lineWidth*2;return {...um(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new vn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:t===true?1:0,handleVisibleWidth:t===true?n:0}},qfe=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,colorTextDisabled:b,motionDurationMid:y,handleHoverColor:S,handleOpacity:x,paddingInline:$,paddingBlock:w,handleBg:M,handleActiveBg:T,inputAffixPadding:A,borderRadiusSM:P,controlWidth:N,handleBorderColor:I,filledHandleBg:O,lineHeightLG:D,antCls:L}=e,V=`${ie(n)} ${r} ${I}`,[U,W]=nr(L,"input-number");return [{[t]:{...hn(e),...Q1(e),[U("input-padding-block")]:ie(w),[U("input-padding-inline")]:ie($),display:"inline-flex",width:N,margin:0,paddingBlock:0,borderRadius:o,...F7(e,{[`${t}-actions`]:{background:M,[`${t}-action-down`]:{borderBlockStart:V}}}),...j7(e,{[`${t}-actions`]:{background:O,[`${t}-action-down`]:{borderBlockStart:V}},"&:focus-within":{[`${t}-actions`]:{background:M}}}),...W7(e,{[`${t}-actions`]:{background:M,[`${t}-action-down`]:{borderBlockStart:V}}}),...H7(e),[`&${t}-borderless`]:{paddingBlock:0,[U("input-padding-block")]:ie(e.calc(w).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[U("input-padding-block")]:ie(e.calc(d).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[U("input-padding-block")]:ie(e.calc(m).add(n).equal())},"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:l}},[`${t}-input`]:{...hn(e),width:"100%",paddingBlock:W("input-padding-block"),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:0,outline:0,transition:`all ${y} linear`,appearance:"textfield",fontSize:"inherit",lineHeight:"inherit",...G7(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`]:{...Xu(),userSelect:"none",overflow:"hidden",fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",transition:`all ${y} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:T},[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{color:S},[`&${t}-action-up-disabled, &${t}-action-down-disabled`]:{cursor:"not-allowed",color:b}},"&-mode-input":{overflow:"hidden",[`${t}-actions`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:x,height:"100%",borderRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${y}`,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:V,[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{height:"60%"}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:"none"}}},[`&${t}-mode-spinner`]:{padding:0,width:"auto",[`${t}-action`]:{flex:"none",paddingInline:W("input-padding-inline"),"&-up":{borderInlineStart:V},"&-down":{borderInlineEnd:V}},[`${t}-input`]:{textAlign:"center",paddingInline:W("input-padding-inline")}}}},{[t]:{"&-lg":{[U("input-padding-block")]:ie(m),[U("input-padding-inline")]:ie(p),paddingBlock:0,fontSize:s,lineHeight:D},"&-sm":{[U("input-padding-block")]:ie(d),[U("input-padding-inline")]:ie(u),paddingBlock:0,fontSize:i,borderRadius:P}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:"flex",flex:"none",alignItems:"center",alignSelf:"center",pointerEvents:"none"},[`${t}-prefix`]:{marginInlineEnd:A},[`${t}-suffix`]:{height:"100%",marginInlineStart:A,transition:`margin ${y}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},Kfe=e=>{const{componentCls:t,antCls:n}=e;return {[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},Yfe=qt("InputNumber",e=>{const t=Vt(e,cm(e));return [qfe(t),Kfe(t),om(t)]},Gfe,{unitless:{handleOpacity:true},resetFont:false}),Xfe=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:$,classNames:w,styles:M,mode:T,...A}=e,{direction:P,className:N,style:I,styles:O,classNames:D}=Gt("inputNumber"),L=f.useContext(po),V=i??L,U=f.useMemo(()=>!y||V||g?false:y,[y,V,g]),{compactSize:W,compactItemClassnames:z}=il(s,P);let k=T==="spinner"?f.createElement(Y7,null):f.createElement(Lfe,null),G=T==="spinner"?f.createElement(Ife,null):f.createElement(uA,null);const j=typeof U=="boolean"?U:void 0;Cn(U)&&(k=U.upIcon||k,G=U.downIcon||G);const{hasFeedback:K,isFormItemInput:X,feedbackIcon:B}=f.useContext(Po),H=yr(de=>o??W??de),[Q,J]=j1("inputNumber",S,p),te=K&&f.createElement(f.Fragment,null,B),ne={...e,size:H,disabled:V,controls:U},[re,oe]=Yt([D,w],[O,M],{props:ne});return f.createElement(jfe,{ref:n,mode:T,disabled:V,className:Y(x,r,re.root,N,z,dc(s,b,K),{[`${s}-${Q}`]:J,[`${s}-lg`]:H==="large",[`${s}-sm`]:H==="small",[`${s}-rtl`]:P==="rtl",[`${s}-in-form-item`]:X,[`${s}-without-controls`]:!U}),style:{...oe.root,...I,...$},upHandler:k,downHandler:G,prefixCls:s,readOnly:g,controls:j,prefix:d,suffix:te||m,classNames:re,styles:oe,...A})}),fH=f.forwardRef((e,t)=>{const{addonBefore:n,addonAfter:r,prefixCls:o,className:i,status:s,rootClassName:l,...u}=e,{getPrefixCls:d}=Gt("inputNumber"),m=d("input-number",o),{status:p}=f.useContext(Po),g=sm(p,s),b=Zn(m),[y,S]=Yfe(m,b),x=n||r,$=f.createElement(Xfe,{ref:t,...u,prefixCls:m,status:g,className:Y(S,b,y,i),rootClassName:x?void 0:l});if(x){const w=A=>A?f.createElement(dH,{className:Y(`${m}-addon`,S,y),variant:e.variant,disabled:e.disabled,status:g},f.createElement(uc,{form:true},A)):null,M=w(n),T=w(r);return f.createElement(zT,{rootClassName:l},M,$,T)}return $}),Tu=fH,Qfe=e=>f.createElement(Vo,{theme:{components:{InputNumber:{handleVisible:true}}}},f.createElement(fH,{...e}));Tu._InternalPanelDoNotUseOrYouWillBeFired=Qfe;const Au=({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(Tu,{className:Y(l,i),min:t,max:n,value:m,formatter:s,size:"small",onChange:p=>{d(p||0),o?.(p);}})},Zfe=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-alpha-input`,[o,i]=f.useState(()=>go(t||"#000")),s=t||o,l=u=>{const d=s.toHsb();d.a=(u||0)/100;const m=go(d);i(m),n?.(m);};return q.createElement(Au,{value:KT(s),prefixCls:e,formatter:u=>`${u}%`,className:r,onChange:l})};function Jfe(e){return !!(e.addonBefore||e.addonAfter)}function eme(e){return !!(e.prefix||e.suffix||e.allowClear)}function ZD(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 O0(e,t,n,r){if(!n)return;let o=t;if(t.type==="click"){o=ZD(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=ZD(t,e,r),n(o);return}n(o);}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 mH=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:$,hidden:w,classes:M,classNames:T,dataAttrs:A,styles:P,components:N,onClear:I}=e,O=r??n,D=N?.affixWrapper||"span",L=N?.groupWrapper||"span",V=N?.wrapper||"span",U=N?.groupAddon||"span",W=f.useRef(null),z=K=>{W.current?.contains(K.target)&&y?.();},k=eme(e);let G=f.cloneElement(O,{value:x,className:Y(O.props?.className,!k&&T?.variant)||null});const j=f.useRef(null);if(q.useImperativeHandle(t,()=>({nativeElement:j.current||W.current})),k){let K=null;if(S){const 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=>{$?.(ne),I?.();},onMouseDown:ne=>ne.preventDefault(),className:Y(J,{[`${J}-hidden`]:!Q,[`${J}-has-suffix`]:!!s})},te);}const X=`${o}-affix-wrapper`,B=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),H=(s||S)&&q.createElement("span",{className:Y(`${o}-suffix`,T?.suffix),style:P?.suffix},K,s);G=q.createElement(D,h3({className:B,style:P?.affixWrapper,onClick:z},A?.affixWrapper,{ref:W}),i&&q.createElement("span",{className:Y(`${o}-prefix`,T?.prefix),style:P?.prefix},i),G,H);}if(Jfe(e)){const K=`${o}-group`,X=`${K}-addon`,B=`${K}-wrapper`,H=Y(`${o}-wrapper`,K,M?.wrapper,T?.wrapper),Q=Y(B,{[`${B}-disabled`]:p},M?.group,T?.groupWrapper);G=q.createElement(L,{className:Q,ref:j},q.createElement(V,{className:H},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:w})});function hH(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 D0(){return D0=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},D0.apply(this,arguments)}const tme=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:$="text",classes:w,classNames:M,styles:T,onCompositionStart:A,onCompositionEnd:P,...N}=e,[I,O]=f.useState(false),D=f.useRef(false),L=f.useRef(false),V=f.useRef(null),U=f.useRef(null),W=ce=>{V.current&&JT(V.current,ce);},[z,k]=mn(e.defaultValue,e.value),G=z==null?"":String(z),[j,K]=f.useState(null),X=hH(x,S),B=X.max||b,H=X.strategy(G),Q=!!B&&H>B;f.useImperativeHandle(t,()=>({focus:W,blur:()=>{V.current?.blur();},setSelectionRange:(ce,he,ge)=>{V.current?.setSelectionRange(ce,he,ge);},select:()=>{V.current?.select();},input:V.current,nativeElement:U.current?.nativeElement||V.current})),f.useEffect(()=>{L.current&&(L.current=false),O(ce=>ce&&m?false:ce);},[m]);const J=(ce,he,ge)=>{let Ce=he;if(!D.current&&X.exceedFormatter&&X.max&&X.strategy(he)>X.max)Ce=X.exceedFormatter(he,{max:X.max}),he!==Ce&&K([V.current?.selectionStart||0,V.current?.selectionEnd||0]);else if(ge.source==="compositionEnd")return;k(Ce),V.current&&O0(V.current,ce,r,Ce);};f.useEffect(()=>{j&&V.current?.setSelectionRange(...j);},[j]);const te=ce=>{J(ce,ce.target.value,{source:"change"});},ne=ce=>{D.current=false,J(ce,ce.currentTarget.value,{source:"compositionEnd"}),P?.(ce);},re=ce=>{s&&ce.key==="Enter"&&!L.current&&!ce.nativeEvent.isComposing&&(L.current=true,s(ce)),l?.(ce);},oe=ce=>{ce.key==="Enter"&&(L.current=false),u?.(ce);},de=ce=>{O(true),o?.(ce);},ee=ce=>{L.current&&(L.current=false),O(false),i?.(ce);},se=ce=>{k(""),W(),V.current&&O0(V.current,ce,r);},le=Q&&`${d}-out-of-range`,ae=()=>{const ce=Vn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return q.createElement("input",D0({autoComplete:n},ce,{onChange:te,onFocus:de,onBlur:ee,onKeyDown:re,onKeyUp:oe,className:Y(d,{[`${d}-disabled`]:m},M?.input),style:T?.input,ref:V,size:p,type:$,onCompositionStart:he=>{D.current=true,A?.(he);},onCompositionEnd:ne}))},Ee=()=>{const ce=Number(B)>0;if(y||X.show){const he=X.showFormatter?X.showFormatter({value:G,count:H,maxLength:B}):`${H}${ce?` / ${B}`:""}`;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}},he),y)}return null};return q.createElement(mH,D0({},N,{prefixCls:d,className:Y(g,le),handleReset:se,value:G,focused:I,triggerFocus:W,suffix:Ee(),disabled:m,classes:w,classNames:M,styles:T,ref:U}),ae())}),pH=e=>{let t;return Cn(e)&&e?.clearIcon?t=e:e&&(t={clearIcon:q.createElement(vg,null)}),t};function gH(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 nme(e){return !!(e.prefix||e.suffix||e.allowClear||e.showCount)}const dm=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:$,classNames:w,variant:M,...T}=e,{getPrefixCls:A,direction:P,allowClear:N,autoComplete:I,className:O,style:D,classNames:L,styles:V}=Gt("input"),U=A("input",n),W=f.useRef(null),z=Zn(U),[k,G]=q7(U,x);K7(U,z);const{compactSize:j,compactItemClassnames:K}=il(U,P),X=yr(Re=>i??j??Re),B=q.useContext(po),H=s??B,Q={...e,size:X,disabled:H},[J,te]=Yt([L,w],[V,S],{props:Q}),{status:ne,hasFeedback:re,feedbackIcon:oe}=f.useContext(Po),de=sm(ne,o),ee=nme(e)||!!re;f.useRef(ee);const se=gH(W,true),le=Re=>{se(),l?.(Re);},ae=Re=>{se(),u?.(Re);},Ee=Re=>{se(),$?.(Re);},ce=(re||d)&&q.createElement(q.Fragment,null,d,re&&oe),he=pH(m??N),[ge,Ce]=j1("input",M,r);return q.createElement(tme,{ref:Fr(t,W),prefixCls:U,autoComplete:I,...T,disabled:H,onBlur:le,onFocus:ae,style:{...te.root,...D,...y},styles:te,suffix:ce,allowClear:he,className:Y(b,x,G,z,K,O,J.root),onChange:Ee,addonBefore:g&&q.createElement(uc,{form:true,space:true},g),addonAfter:p&&q.createElement(uc,{form:true,space:true},p),classNames:{...J,input:Y({[`${U}-sm`]:X==="small",[`${U}-lg`]:X==="large",[`${U}-rtl`]:P==="rtl"},J.input,k),variant:Y({[`${U}-${ge}`]:Ce},dc(U,de)),affixWrapper:Y({[`${U}-affix-wrapper-sm`]:X==="small",[`${U}-affix-wrapper-lg`]:X==="large",[`${U}-affix-wrapper-rtl`]:P==="rtl"},k),wrapper:Y({[`${U}-group-rtl`]:P==="rtl"},k),groupWrapper:Y({[`${U}-group-wrapper-sm`]:X==="small",[`${U}-group-wrapper-lg`]:X==="large",[`${U}-group-wrapper-rtl`]:P==="rtl",[`${U}-group-wrapper-${ge}`]:Ce},dc(`${U}-group-wrapper`,de,re),k)}})}),rme=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,ome=e=>rme.test(`#${e}`),ime=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hex-input`,[o,i]=f.useState(()=>t?jh(t.toHexString()):void 0);f.useEffect(()=>{t&&i(jh(t.toHexString()));},[t]);const s=l=>{const u=l.target.value;i(jh(u)),ome(jh(u,true))&&n?.(go(u));};return q.createElement(dm,{className:r,value:o,prefix:"#",onChange:s,size:"small"})},sme=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hsb-input`,[o,i]=f.useState(()=>go(t||"#000")),s=t||o,l=(u,d)=>{const m=s.toHsb();m[d]=d==="h"?u:(u||0)/100;const p=go(m);i(p),n?.(p);};return q.createElement("div",{className:r},q.createElement(Au,{max:360,min:0,value:Number(s.toHsb().h),prefixCls:e,className:r,formatter:u=>wy(u||0).toString(),onChange:u=>l(Number(u),"h")}),q.createElement(Au,{max:100,min:0,value:Number(s.toHsb().s)*100,prefixCls:e,className:r,formatter:u=>`${wy(u||0)}%`,onChange:u=>l(Number(u),"s")}),q.createElement(Au,{max:100,min:0,value:Number(s.toHsb().b)*100,prefixCls:e,className:r,formatter:u=>`${wy(u||0)}%`,onChange:u=>l(Number(u),"b")}))},ame=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-rgb-input`,[o,i]=f.useState(()=>go(t||"#000")),s=t||o,l=(u,d)=>{const m=s.toRgb();m[d]=u||0;const p=go(m);i(p),n?.(p);};return q.createElement("div",{className:r},q.createElement(Au,{max:255,min:0,value:Number(s.toRgb().r),prefixCls:e,className:r,onChange:u=>l(Number(u),"r")}),q.createElement(Au,{max:255,min:0,value:Number(s.toRgb().g),prefixCls:e,className:r,onChange:u=>l(Number(u),"g")}),q.createElement(Au,{max:255,min:0,value:Number(s.toRgb().b),prefixCls:e,className:r,onChange:u=>l(Number(u),"b")}))},lme=[aH,cH,lH].map(e=>({value:e,label:e.toUpperCase()})),cme=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:i,onChange:s,disabledFormat:l}=e,[u,d]=mn(aH,n),m=`${t}-input`,p=b=>{d(b),i?.(b);},g=f.useMemo(()=>{const b={value:r,prefixCls:t,onChange:s};switch(u){case cH:return q.createElement(sme,{...b});case lH:return q.createElement(ame,{...b});default:return q.createElement(ime,{...b})}},[u,t,r,s]);return q.createElement("div",{className:`${m}-container`},!l&&q.createElement(xc,{value:u,variant:"borderless",getPopupContainer:b=>b,popupMatchSelectWidth:68,placement:"bottomRight",onChange:p,className:`${t}-format-select`,size:"small",options:lme}),q.createElement("div",{className:m},g),!o&&q.createElement(Zfe,{prefixCls:t,value:r,onChange:s}))};function p3(e,t,n){return (e-t)/(n-t)}function NA(e,t,n,r){const o=p3(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 uu(e,t){return Array.isArray(e)?e[t]:e}const ed=f.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:true,styles:{},classNames:{}}),vH=f.createContext({});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 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:$,direction:w,disabled:M,keyboard:T,range:A,tabIndex:P,ariaLabelForHandle:N,ariaLabelledByForHandle:I,ariaRequired:O,ariaValueTextFormatterForHandle:D,styles:L,classNames:V}=f.useContext(ed),U=`${n}-handle`,W=H=>{M||i(H,o);},z=H=>{b?.(H,o);},k=H=>{y(H,o);},G=H=>{if(!M&&T){let Q=null;switch(H.which||H.keyCode){case st.LEFT:Q=w==="ltr"||w==="btt"?-1:1;break;case st.RIGHT:Q=w==="ltr"||w==="btt"?1:-1;break;case st.UP:Q=w!=="ttb"?1:-1;break;case st.DOWN:Q=w!=="ttb"?-1:1;break;case st.HOME:Q="min";break;case st.END:Q="max";break;case st.PAGE_UP:Q=2;break;case st.PAGE_DOWN:Q=-2;break;case st.BACKSPACE:case st.DELETE:s?.(o);break}Q!==null&&(H.preventDefault(),p(Q,o));}},j=H=>{switch(H.which||H.keyCode){case st.LEFT:case st.RIGHT:case st.UP:case st.DOWN:case st.HOME:case st.END:case st.PAGE_UP:case st.PAGE_DOWN:g?.();break}},K=NA(w,r,x,$);let X={};o!==null&&(X={tabIndex:M?null:uu(P,o),role:"slider","aria-valuemin":x,"aria-valuemax":$,"aria-valuenow":r,"aria-disabled":M,"aria-label":uu(N,o),"aria-labelledby":uu(I,o),"aria-required":uu(O,o),"aria-valuetext":uu(D,o)?.(r),"aria-orientation":w==="ltr"||w==="rtl"?"horizontal":"vertical",onMouseDown:W,onTouchStart:W,onFocus:z,onMouseEnter:k,onKeyDown:G,onKeyUp:j});let B=f.createElement("div",g3({ref:t,className:Y(U,{[`${U}-${o+1}`]:o!==null&&A,[`${U}-dragging`]:d,[`${U}-dragging-delete`]:m},V.handle),style:{...K,...l,...L.handle}},X,S));return u&&(B=u(B,{index:o,prefixCls:n,value:r,dragging:d,draggingDelete:m})),B});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 ume=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,$]=f.useState(-1),w=P=>{$(P),S(true);},M=(P,N)=>{w(N),p?.(P);},T=(P,N)=>{w(N);};f.useImperativeHandle(t,()=>({focus:P=>{b.current[P]?.focus();},hideHelp:()=>{Lo.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((P,N)=>{const I=d===N;return f.createElement(JD,L0({ref:O=>{O?b.current[N]=O:delete b.current[N];},dragging:I,draggingDelete:I&&m,style:uu(r,N),key:N,value:P,valueIndex:N},A))}),u&&y&&f.createElement(JD,L0({key:"a11y"},A,{value:s[x],valueIndex:null,dragging:d!==-1,draggingDelete:m,render:u,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":true})))}),dme=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(ed),g=`${t}-text`,b=NA(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)},fme=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(dme,{key:i,prefixCls:o,style:s,value:i,onClick:r},l))):null},mme=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(ed),p=`${t}-dot`,g=u&&d<=n&&n<=m;let b={...NA(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})},hme=e=>{const{prefixCls:t,marks:n,dots:r,style:o,activeStyle:i}=e,{min:s,max:l,step:u}=f.useContext(ed),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(mme,{prefixCls:t,key:m,value:m,style:o,activeStyle:i})))},e8=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(ed),y=`${t}-track`,S=p3(r,d,m),x=p3(o,d,m),$=T=>{!p&&s&&s(T,-1);},w={};switch(u){case "rtl":w.right=`${S*100}%`,w.width=`${x*100-S*100}%`;break;case "btt":w.bottom=`${S*100}%`,w.height=`${x*100-S*100}%`;break;case "ttb":w.top=`${S*100}%`,w.height=`${x*100-S*100}%`;break;default:w.left=`${S*100}%`,w.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:{...w,...n},onMouseDown:$,onTouchStart:$})},pme=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(ed),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(e8,{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(e8,{index:S,prefixCls:t,style:{...uu(n,S),...d.track},start:b,end:y,key:S,onStartMove:i})))},gme=130;function t8(e){const t="targetTouches"in e?e.targetTouches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function vme(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]=f.useState(n),[M,T]=f.useState(n),A=f.useRef(null),P=f.useRef(null),N=f.useRef(null),{onDragStart:I,onDragChange:O}=f.useContext(vH);In(()=>{b===-1&&w(n);},[n,b]),f.useEffect(()=>()=>{document.removeEventListener("mousemove",A.current),document.removeEventListener("mouseup",P.current),N.current&&(N.current.removeEventListener("touchmove",A.current),N.current.removeEventListener("touchend",P.current));},[]);const D=(W,z,k)=>{z!==void 0&&g(z),w(W);let G=W;k&&(G=W.filter((j,K)=>K!==b)),s(G),O&&O({rawValues:W,deleteIndex:k?b:-1,draggingIndex:b,draggingValue:z});},L=At((W,z,k)=>{if(W===-1){const G=M[0],j=M[M.length-1],K=r-G,X=o-j;let B=z*(o-r);B=Math.max(B,K),B=Math.min(B,X),B=i(G+B)-G;const Q=M.map(J=>J+B);D(Q);}else {const G=(o-r)*z,j=[...$];j[W]=M[W];const K=u(j,G,W,"dist");D(K.values,K.value,k);}}),V=(W,z,k)=>{W.stopPropagation();const G=k||n,j=G[z];y(z),g(j),T(G),w(G),x(false);const{pageX:K,pageY:X}=t8(W);let B=false;I&&I({rawValues:G,draggingIndex:z,draggingValue:j});const H=J=>{J.preventDefault();const{pageX:te,pageY:ne}=t8(J),re=te-K,oe=ne-X,{width:de,height:ee}=e.current.getBoundingClientRect();let se,le;switch(t){case "btt":se=-oe/ee,le=re;break;case "ttb":se=oe/ee,le=re;break;case "rtl":se=-re/de,le=oe;break;default:se=re/de,le=oe;}B=d?Math.abs(le)>gme&&m<$.length:false,x(B),L(z,se,B);},Q=J=>{J.preventDefault(),document.removeEventListener("mouseup",Q),document.removeEventListener("mousemove",H),N.current&&(N.current.removeEventListener("touchmove",A.current),N.current.removeEventListener("touchend",P.current)),A.current=null,P.current=null,N.current=null,l(B),y(-1),x(false);};document.addEventListener("mouseup",Q),document.addEventListener("mousemove",H),W.currentTarget.addEventListener("touchend",Q),W.currentTarget.addEventListener("touchmove",H),A.current=H,P.current=Q,N.current=W.currentTarget;},U=f.useMemo(()=>{const W=[...n].sort((K,X)=>K-X),z=[...$].sort((K,X)=>K-X),k={};z.forEach(K=>{k[K]=(k[K]||0)+1;}),W.forEach(K=>{k[K]=(k[K]||0)-1;});const G=d?1:0;return Object.values(k).reduce((K,X)=>K+Math.abs(X),0)<=G?$:n},[n,$,d]);return [b,p,S,U,V]}function bme(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=w=>(String(w).split(".")[1]||"").length,x=Math.max(S(n),S(t),S(e)),$=Number(y.toFixed(x));return e<=$&&$<=t?$:null}return null},[n,e,t,s]),u=f.useCallback(b=>{const y=s(b),S=r.map(w=>w.value);n!==null&&S.push(l(b)),S.push(e,t);let x=S[0],$=t-e;return S.forEach(w=>{const M=Math.abs(y-w);M<=$&&(x=w,$=M);}),x},[e,t,r,n,s,l]),d=(b,y,S,x="unit")=>{if(typeof y=="number"){let $;const w=b[S],M=w+y;let T=[];r.forEach(I=>{T.push(I.value);}),T.push(e,t),T.push(l(w));const A=y>0?1:-1;x==="unit"?T.push(l(w+A*n)):T.push(l(M)),T=T.filter(I=>I!==null).filter(I=>y<0?I<=w:I>=w),x==="unit"&&(T=T.filter(I=>I!==w));const P=x==="unit"?w:M;$=T[0];let N=Math.abs($-P);if(T.forEach(I=>{const O=Math.abs(I-P);O<N&&($=I,N=O);}),$===void 0)return y<0?e:t;if(x==="dist")return $;if(Math.abs(y)>1){const I=[...b];return I[S]=$,d(I,y-A,S,x)}return $}else {if(y==="min")return e;if(y==="max")return t}},m=(b,y,S,x="unit")=>{const $=b[S],w=d(b,y,S,x);return {value:w,changed:w!==$}},p=b=>i===null&&b===0||typeof i=="number"&&b<i;return [u,(b,y,S,x="unit")=>{const $=b.map(u),w=$[S],M=d($,y,S,x);if($[S]=M,o===false){const T=i||0;S>0&&$[S-1]!==w&&($[S]=Math.max($[S],$[S-1]+T)),S<$.length-1&&$[S+1]!==w&&($[S]=Math.min($[S],$[S+1]-T));}else if(typeof i=="number"||i===null){for(let T=S+1;T<$.length;T+=1){let A=true;for(;p($[T]-$[T-1])&&A;)({value:$[T],changed:A}=m($,1,T));}for(let T=S;T>0;T-=1){let A=true;for(;p($[T]-$[T-1])&&A;)({value:$[T-1],changed:A}=m($,-1,T-1));}for(let T=$.length-1;T>0;T-=1){let A=true;for(;p($[T]-$[T-1])&&A;)({value:$[T-1],changed:A}=m($,-1,T-1));}for(let T=0;T<$.length-1;T+=1){let A=true;for(;p($[T+1]-$[T])&&A;)({value:$[T+1],changed:A}=m($,1,T+1));}}return {value:$[S],values:$}}]}function yme(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 Sme=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:$,range:w,count:M,onChange:T,onBeforeChange:A,onAfterChange:P,onChangeComplete:N,allowCross:I=true,pushable:O=false,reverse:D,vertical:L,included:V=true,startPoint:U,trackStyle:W,handleStyle:z,railStyle:k,dotStyle:G,activeDotStyle:j,marks:K,dots:X,handleRender:B,activeHandleRender:H,track:Q,tabIndex:J=0,ariaLabelForHandle:te,ariaLabelledByForHandle:ne,ariaRequired:re,ariaValueTextFormatterForHandle:oe}=e,de=f.useRef(null),ee=f.useRef(null),se=f.useMemo(()=>L?D?"ttb":"btt":D?"rtl":"ltr",[D,L]),[le,ae,Ee,ce,he]=yme(w),ge=f.useMemo(()=>isFinite(b)?b:0,[b]),Ce=f.useMemo(()=>isFinite(y)?y:100,[y]),Re=f.useMemo(()=>S!==null&&S<=0?1:S,[S]),et=f.useMemo(()=>typeof O=="boolean"?O?Re:false:O>=0?O:false,[O,Re]),Ne=f.useMemo(()=>Object.keys(K||{}).map(Me=>{const ye=K[Me],me={value:Number(Me)};return ye&&typeof ye=="object"&&!f.isValidElement(ye)&&("label"in ye||"style"in ye)?(me.style=ye.style,me.label=ye.label):me.label=ye,me}).filter(({label:Me})=>Me||typeof Me=="number").sort((Me,ye)=>Me.value-ye.value),[K]),[ve,Te]=bme(ge,Ce,Re,Ne,I,et),[Se,Ie]=mn($,x),Ue=f.useMemo(()=>{const Me=Se==null?[]:Array.isArray(Se)?Se:[Se],[ye=ge]=Me;let me=Se===null?[]:[ye];if(le){if(me=[...Me],M||Se===void 0){const Le=M>=0?M+1:2;for(me=me.slice(0,Le);me.length<Le;)me.push(me[me.length-1]??ge);}me.sort((Le,xe)=>Le-xe);}return me.forEach((Le,xe)=>{me[xe]=ve(Le);}),me},[Se,le,ge,M,ve]),je=Me=>le?Me:Me[0],qe=At(Me=>{const ye=[...Me].sort((me,Le)=>me-Le);T&&!sc(ye,Ue,true)&&T(je(ye)),Ie(ye);}),Ze=At(Me=>{Me&&de.current.hideHelp();const ye=je(Ue);P?.(ye),Pr(!P,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),N?.(ye);}),Ye=Me=>{if(u||!ae||Ue.length<=ce)return;const ye=[...Ue];ye.splice(Me,1),A?.(je(ye)),qe(ye);const me=Math.max(0,Me-1);de.current.hideHelp(),de.current.focus(me);},[Be,Ke,Qe,ke,Oe]=vme(ee,se,Ue,ge,Ce,ve,qe,Ze,Te,ae,ce),ct=(Me,ye)=>{if(!u){const me=[...Ue];let Le=0,xe=0,ze=Ce-ge;Ue.forEach((dt,Et)=>{const _t=Math.abs(Me-dt);_t<=ze&&(ze=_t,Le=Et),dt<Me&&(xe=Et);});let tt=Le;ae&&ze!==0&&(!he||Ue.length<he)?(me.splice(xe+1,0,Me),tt=xe+1):me[Le]=Me,le&&!Ue.length&&M===void 0&&me.push(Me);const it=je(me);A?.(it),qe(me),ye?(document.activeElement?.blur?.(),de.current.focus(tt),Oe(ye,tt,me)):(P?.(it),Pr(!P,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),N?.(it));}},Ot=Me=>{Me.preventDefault();const{width:ye,height:me,left:Le,top:xe,bottom:ze,right:tt}=ee.current.getBoundingClientRect(),{clientX:it,clientY:dt}=Me;let Et;switch(se){case "btt":Et=(ze-dt)/me;break;case "ttb":Et=(dt-xe)/me;break;case "rtl":Et=(tt-it)/ye;break;default:Et=(it-Le)/ye;}const _t=ge+Et*(Ce-ge);ct(ve(_t),Me);},[mt,kt]=f.useState(null),yt=(Me,ye)=>{if(!u){const me=Te(Ue,Me,ye);A?.(je(Ue)),qe(me.values),kt(me.value);}};f.useEffect(()=>{if(mt!==null){const Me=Ue.indexOf(mt);Me>=0&&de.current.focus(Me);}kt(null);},[mt]);const Dt=f.useMemo(()=>Ee&&Re===null?false:Ee,[Ee,Re]),ft=At((Me,ye)=>{Oe(Me,ye),A?.(je(Ue));}),ut=Be!==-1;f.useEffect(()=>{if(!ut){const Me=Ue.lastIndexOf(Ke);de.current.focus(Me);}},[ut]);const vt=f.useMemo(()=>[...ke].sort((Me,ye)=>Me-ye),[ke]),[He,Ge]=f.useMemo(()=>le?[vt[0],vt[vt.length-1]]:[ge,vt[0]],[vt,le,ge]);f.useImperativeHandle(t,()=>({focus:()=>{de.current.focus(0);},blur:()=>{const{activeElement:Me}=document;ee.current?.contains(Me)&&Me?.blur();}})),f.useEffect(()=>{m&&de.current.focus(0);},[]);const be=f.useMemo(()=>({min:ge,max:Ce,direction:se,disabled:u,keyboard:d,step:Re,included:V,includedStart:He,includedEnd:Ge,range:le,tabIndex:J,ariaLabelForHandle:te,ariaLabelledByForHandle:ne,ariaRequired:re,ariaValueTextFormatterForHandle:oe,styles:s||{},classNames:i||{}}),[ge,Ce,se,u,d,Re,V,He,Ge,le,J,te,ne,re,oe,s,i]);return f.createElement(ed.Provider,{value:be},f.createElement("div",{ref:ee,className:Y(n,r,{[`${n}-disabled`]:u,[`${n}-vertical`]:L,[`${n}-horizontal`]:!L,[`${n}-with-marks`]:Ne.length}),style:o,onMouseDown:Ot,id:l},f.createElement("div",{className:Y(`${n}-rail`,i?.rail),style:{...k,...s?.rail}}),Q!==false&&f.createElement(pme,{prefixCls:n,style:W,values:Ue,startPoint:U,onStartMove:Dt?ft:void 0}),f.createElement(hme,{prefixCls:n,marks:Ne,dots:X,style:G,activeStyle:j}),f.createElement(ume,{ref:de,prefixCls:n,style:z,values:ke,draggingIndex:Be,draggingDelete:Qe,onStartMove:ft,onOffsetChange:yt,onFocus:p,onBlur:g,handleRender:B,activeHandleRender:H,onChangeComplete:Ze,onDelete:ae?Ye:void 0}),f.createElement(fme,{prefixCls:n,marks:Ne,onClick:ct})))}),bH=f.createContext({}),n8=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(){zt.cancel(l.current),l.current=null;}function d(){l.current=zt(()=>{i.current?.forceAlign(),l.current=null;});}return f.useEffect(()=>(s?d():u(),u),[s,e.title,o]),f.createElement(wc,{ref:Fr(i,t),...e,open:s})}),Cme=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]:{...hn(e),position:"relative",height:r,margin:`${ie(s)} ${ie(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ie(i)} ${ie(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 ${ie(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 ${ie(y)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:["inset-inline-start","inset-block-start","width","height","box-shadow","outline"].map($=>`${$} ${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 ${ie(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:`${ie(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 ${ie(y)} ${u}`,insetInlineStart:0,insetBlockStart:0},[`
          ${t}-mark-text,
          ${t}-dot
        `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-container`]:{minWidth:"unset"}}}},yH=(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:`${ie(y)} 0`,transform:`translateY(${ie(l(y).mul(-1).equal())})`}:{borderWidth:`0 ${ie(y)}`,transform:`translateX(${ie(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()}}},xme=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:{...yH(e,true),[`&${t}-with-marks`]:{marginBottom:n}}}},wme=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:{...yH(e,false),height:"100%"}}},$me=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 vn(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 vn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},Eme=qt("Slider",e=>{const t=Vt(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 [Cme(t),xme(t),wme(t)]},$me);function jw(){const[e,t]=f.useState(false),n=f.useRef(null),r=()=>{zt.cancel(n.current);},o=i=>{r(),i?t(i):n.current=zt(()=>{t(i);});};return f.useEffect(()=>r,[]),[e,o]}function Mme(e){return e||e===null?e:t=>Fo(t)?t.toString():""}const PA=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]=Qu(b,g),{getPrefixCls:x,direction:$,className:w,style:M,classNames:T,styles:A,getPopupContainer:P}=Gt("slider"),N=q.useContext(po),I=l??N,O={...e,disabled:I,vertical:S},[D,L]=Yt([T,m],[A,p],{props:O}),{handleRender:V,direction:U}=q.useContext(bH),z=(U||$)==="rtl",[k,G]=jw(),[j,K]=jw(),X={...u},{open:B,placement:H,getPopupContainer:Q,prefixCls:J,formatter:te}=X,ne=B,re=(k||j)&&ne!==false,oe=Mme(te),[de,ee]=jw(),se=Ne=>{d?.(Ne),ee(false);},le=(Ne,ve)=>Ne||(ve?z?"left":"right":"top"),ae=x("slider",n),[Ee,ce]=Eme(ae),he=Y(o,w,D.root,i,{[`${ae}-rtl`]:z,[`${ae}-lock`]:de},Ee,ce);z&&!S&&(y.reverse=!y.reverse),q.useEffect(()=>{const Ne=()=>{zt(()=>{K(false);},1);};return document.addEventListener("mouseup",Ne),()=>{document.removeEventListener("mouseup",Ne);}},[]);const ge=r&&!ne,Ce=V||((Ne,ve)=>{const{index:Te}=ve,Se=Ne.props;function Ie(Ze,Ye,Be){Be&&y[Ze]?.(Ye),Se[Ze]?.(Ye);}const Ue={...Se,onMouseEnter:Ze=>{G(true),Ie("onMouseEnter",Ze);},onMouseLeave:Ze=>{G(false),Ie("onMouseLeave",Ze);},onMouseDown:Ze=>{K(true),ee(true),Ie("onMouseDown",Ze);},onFocus:Ze=>{K(true),y.onFocus?.(Ze),Ie("onFocus",Ze,true);},onBlur:Ze=>{K(false),y.onBlur?.(Ze),Ie("onBlur",Ze,true);}},je=q.cloneElement(Ne,Ue),qe=(!!ne||re)&&oe!==null;return ge?je:q.createElement(n8,{...X,prefixCls:x("tooltip",J),title:oe?oe(ve.value):"",value:ve.value,open:qe,placement:le(H,S),key:Te,classNames:{root:`${ae}-tooltip`},getPopupContainer:Q||P},je)}),Re=ge?(Ne,ve)=>{const Te=q.cloneElement(Ne,{style:{...Ne.props.style,visibility:"hidden"}});return q.createElement(n8,{...X,prefixCls:x("tooltip",J),title:oe?oe(ve.value):"",open:oe!==null&&re,placement:le(H,S),key:"tooltip",classNames:{root:`${ae}-tooltip`},getPopupContainer:Q||P,draggingDelete:ve.draggingDelete},Te)}:void 0,et={...L.root,...M,...s};return q.createElement(Sme,{...y,classNames:D,styles:L,step:y.step,range:r,className:he,style:et,disabled:I,vertical:S,ref:t,prefixCls:ae,handleRender:Ce,activeHandleRender:Re,onChangeComplete:se})}),SH=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(P=>`${P.color} ${P.percent}%`).join(", ")})`,[n]),S=f.useMemo(()=>!o||!r?null:r==="alpha"?o.toRgbString():`hsl(${o.toHsb().h}, 100%, 50%)`,[o,r]),x=At(d),$=At(m),w=f.useMemo(()=>({onDragStart:x,onDragChange:$}),[]),M=At((A,P)=>{const{onFocus:N,style:I,className:O,onKeyDown:D}=A.props,L={...I};return r==="gradient"&&(L.background=rF(n,P.value)),f.cloneElement(A,{onFocus:V=>{u?.(P.index),N?.(V);},style:L,className:Y(O,{[`${t}-slider-handle-active`]:l===P.index}),onKeyDown:V=>{(V.key==="Delete"||V.key==="Backspace")&&p&&p(P.index),D?.(V);}})}),T=f.useMemo(()=>({direction:"ltr",handleRender:M}),[]);return f.createElement(bH.Provider,{value:T},f.createElement(vH.Provider,{value:w},f.createElement(PA,{...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`}})))},Tme=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,o=s=>n(s[0]),i=s=>r(s[0]);return f.createElement(SH,{...e,value:[t],onChange:o,onChangeComplete:i})};function r8(e){return Qt(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($=>({percent:$.percent,color:$.color.toRgbString()})),[u]),p=f.useMemo(()=>m.map($=>$.percent),[m]),g=f.useRef(m),b=({rawValues:$,draggingIndex:w,draggingValue:M})=>{if($.length>m.length){const T=rF(m,M),A=Qt(m);A.splice(w,0,{percent:M,color:T}),g.current=A;}else g.current=m;l(true),r(new ei(r8(g.current)),true);},y=({deleteIndex:$,draggingIndex:w,draggingValue:M})=>{let T=Qt(g.current);$!==-1?T.splice($,1):(T[w]={...T[w],percent:M},T=r8(T)),r(new ei(T),true);},S=$=>{const w=Qt(m);w.splice($,1);const M=new ei(w);r(M),o(M);},x=$=>{o(new ei(m)),s>=$.length&&i($.length-1),l(false);};return d?f.createElement(SH,{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},Rme=f.memo(Ame),Nme={slider:Tme},o8=()=>{const e=f.useContext(oH),{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 ei("")},{percent:100,color:new ei("")}]:s.getColors(),[s]),S=!s.isGradient(),[x,$]=q.useState(s);In(()=>{S||$(y[p]?.color);},[S,y,g,p]);const w=q.useMemo(()=>S?s:g?x:y[p]?.color,[y,s,p,S,x,g]),[M,T]=q.useState(w),[A,P]=gz(),N=M?.equals(w)?w:M;In(()=>{T(w);},[A,w?.toHexString()]);const I=(W,z)=>{let k=go(W);if(s.cleared){const j=k.toRgb();if(!j.r&&!j.g&&!j.b&&z){const{type:K,value:X=0}=z;k=new ei({h:K==="hue"?X:0,s:1,b:1,a:K==="alpha"?X/100:1});}else k=$y(k);}if(t==="single")return k;const G=Qt(y);return G[p]={...G[p],color:k},new ei(G)},O=(W,z,k)=>{const G=I(W,k);T(G.isGradient()?G.getColors()[p].color:G),u(G,z);},D=(W,z)=>{m(I(W,z)),P();},L=W=>{u(I(W));};let V=null;const U=r.length>1;return (i||U)&&(V=q.createElement("div",{className:`${o}-operation`},U&&q.createElement(rH,{size:"small",options:r,value:t,onChange:n}),q.createElement(sH,{prefixCls:o,value:s,onChange:W=>{u(W),d?.();},...b}))),q.createElement(q.Fragment,null,V,q.createElement(Rme,{...e,colors:y}),q.createElement(zoe,{prefixCls:o,value:N?.toHsb(),disabledAlpha:l,onChange:(W,z)=>{O(W,true,z);},onChangeComplete:(W,z)=>{D(W,z);},components:Nme}),q.createElement(cme,{value:w,onChange:L,prefixCls:o,disabledAlpha:l,...b}))},i8=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=f.useContext(iH);return Array.isArray(n)?q.createElement(iie,{value:t,presets:n,prefixCls:e,onChange:r}):null},Pme=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:$,onGradientDragging:w,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:$,onGradientDragging:w,disabledFormat:M}),[t,o,i,s,l,u,d,m,p,g,b,y,S,x,$,w,M]),P=q.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:i}),[t,o,n,i]),N=q.createElement("div",{className:`${T}-content`},q.createElement(o8,null),Array.isArray(n)&&q.createElement(fc,null),q.createElement(i8,null));return q.createElement(oH.Provider,{value:A},q.createElement(iH.Provider,{value:P},q.createElement("div",{className:T},typeof r=="function"?r(N,{components:{Picker:o8,Presets:i8}}):N)))},Ime=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`,[$]=Ho("ColorPicker"),w=q.useMemo(()=>{if(!p)return "";if(typeof p=="function")return p(n);if(n.cleared)return $.transparent;if(n.isGradient())return n.getColors().map((P,N)=>{const I=g!==-1&&g!==N;return q.createElement("span",{key:N,className:Y(x,I&&`${x}-inactive`)},P.color.toRgbString()," ",P.percent,"%")});const T=n.toHexString().toUpperCase(),A=KT(n);switch(s){case "rgb":return n.toRgbString();case "hsb":return n.toHsbString();default:return A<100?`${T.slice(0,7)},${A}%`:T}},[n,s,p,g,$.transparent,x]),M=f.useMemo(()=>n.cleared?q.createElement(sH,{prefixCls:r,className:d.body,style:m.body}):q.createElement(GT,{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},...No(b)},M,p&&q.createElement("div",{className:Y(S,d.description),style:m.description},w))});function Ome(e,t,n){const[r]=Ho("ColorPicker"),[o,i]=mn(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=(M,T)=>{x.has(M)&&$.push({label:T,value:M});};return w("single",r.singleColor),w("gradient",r.gradientColor),[$,x]},[n,r.singleColor,r.gradientColor]),[m,p]=f.useState(null),g=At(S=>{p(S),i(S);}),b=f.useMemo(()=>{const S=go(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 CH=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:`${e} ${e}`}),s8=(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",...CH("50%",e.colorFillSecondary),[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${ie(i)} ${s}`,borderRadius:"inherit"}}}},Dme=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 ${ie(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:ie(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 ${ie(p)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:ie(e.calc(u).sub(e.calc(y).mul(2)).equal())},[`${n}-input-prefix`]:{color:g}}}}}},Lme=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:`${ie(u)} solid ${s}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`}}},kme=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:`${ie(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:`${ie(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:`${ie(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}}}},_me=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`]:[CH(ie(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:`${ie(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}}}},v3=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${ie(e.controlOutlineWidth)} ${n}`,outline:0}),Bme=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},a8=(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:`${ie(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}}}},zme=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`]:{...v3(e,n,s)}},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:{...v3(e,r,l)}}}},Fme=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:ie(i)}}}},Hme=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:$,lineWidth:w,colorBorder:M,paddingXXS:T,fontSize:A,colorPrimaryHover:P,controlOutline:N}=e;return [{[n]:{[`${n}-inner`]:{"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${ie(g)} 0 ${ie(p)}`}},[`${n}-panel`]:{...Lme(e)},..._me(e),...s8(e,$),...Dme(e),...kme(e),...a8(e,x,{marginInlineStart:"auto"}),[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:p}},"&-trigger":{minWidth:b,minHeight:b,borderRadius:m,border:`${ie(w)} solid ${M}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:s,padding:e.calc(T).sub(w).equal(),[`${n}-trigger-text`]:{marginInlineStart:p,marginInlineEnd:e.calc(p).sub(e.calc(T).sub(w)).equal(),fontSize:A,color:u,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:P},[`&${n}-trigger-active`]:{...v3(e,o,N)},"&-disabled":{color:l,background:d,cursor:"not-allowed","&:hover":{borderColor:S},[`${n}-trigger-text`]:{color:l}},...a8(e,y),...s8(e,y),...zme(e),...Fme(e)},...Bme(e)}},om(e,{focusElCls:`${n}-trigger-active`})]},Vme=qt("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=Vt(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 Hme(o)}),IA=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:$,size:w,rootClassName:M,prefixCls:T,styles:A,classNames:P,disabledAlpha:N=false,onFormatChange:I,onChange:O,onClear:D,onOpenChange:L,onChangeComplete:V,getPopupContainer:U,autoAdjustOverflow:W=true,destroyTooltipOnHide:z,destroyOnHidden:k,disabledFormat:G,...j}=e,{getPrefixCls:K,direction:X,className:B,style:H,classNames:Q,styles:J,arrow:te}=Gt("colorPicker"),ne=f.useContext(po),re=p??ne,oe=K("color-picker",T),de=W1(b,te),{compactSize:ee,compactItemClassnames:se}=il(oe,X),le=yr(Me=>w??ee??Me),ae={...e,trigger:d,allowClear:s,autoAdjustOverflow:W,disabledAlpha:N,arrow:de,placement:g,disabled:re,size:le},[Ee,ce]=Yt([Q,P],[J,A],{props:ae},{popup:{_default:"root"}}),[he,ge]=mn(false,m),Ce=!re&&he,[Re,et]=mn(i,o),Ne=Me=>{et(Me),Re!==Me&&I?.(Me);},ve=Me=>{(!Me||!re)&&(ge(Me),L?.(Me));},[Te,Se,Ie,Ue,je]=Ome(r,n,t),qe=f.useMemo(()=>KT(Te)<100,[Te]),[Ze,Ye]=q.useState(null),Be=Me=>{if(V){let ye=go(Me);N&&qe&&(ye=$y(Me)),V(ye);}},Ke=(Me,ye)=>{let me=go(Me);N&&qe&&(me=$y(me)),Se(me),Ye(null),O&&O(me,me.toCssString()),ye||Be(me);},[Qe,ke]=q.useState(0),[Oe,ct]=q.useState(false),Ot=Me=>{if(Ue(Me),Me==="single"&&Te.isGradient())ke(0),Ke(new ei(Te.getColors()[0].color)),Ye(Te);else if(Me==="gradient"&&!Te.isGradient()){const ye=qe?$y(Te):Te;Ke(new ei(Ze||[{percent:0,color:ye},{percent:100,color:ye}]));}},{status:mt}=q.useContext(Po),kt=Zn(oe),[yt,Dt]=Vme(oe,kt),ft={[`${oe}-rtl`]:X},ut=Y(M,Dt,kt,ft),vt=Y(dc(oe,mt),{[`${oe}-sm`]:le==="small",[`${oe}-lg`]:le==="large"},se,B,ut,$,yt),He=Y(oe,ut,Ee.popup?.root),Ge={open:Ce,trigger:d,placement:g,arrow:de,rootClassName:M,getPopupContainer:U,autoAdjustOverflow:W,destroyOnHidden:k??!!z},be={...H,...x};return q.createElement(ks,{classNames:{root:He},styles:{root:ce.popup?.root,container:A?.popupOverlayInner},onOpenChange:ve,content:q.createElement(uc,{form:true},q.createElement(Pme,{mode:Ie,onModeChange:Ot,modeOptions:je,prefixCls:oe,value:Te,allowClear:s,disabled:re,disabledAlpha:N,presets:l,panelRender:y,format:Re,onFormatChange:Ne,onChange:Ke,onChangeComplete:Be,onClear:D,activeIndex:Qe,onActive:ke,gradientDragging:Oe,onGradientDragging:ct,disabledFormat:G})),...Ge},u||q.createElement(Ime,{activeIndex:Ce?Qe:-1,open:Ce,className:vt,style:be,classNames:Ee,styles:ce,prefixCls:oe,disabled:re,showText:S,format:Re,...j,color:Te}))},jme=oA(IA,void 0,e=>({...e,placement:"bottom",autoAdjustOverflow:false}),"color-picker",e=>e);IA._InternalPanelDoNotUseOrYouWillBeFired=jme;function k0(e){return ["small","middle","medium","large"].includes(e)}function l8(e){return e?Fo(e):false}const xH=q.createContext({latestIndex:0}),Ume=xH.Provider,Wme=e=>{const{className:t,prefix:n,index:r,children:o,separator:i,style:s,classNames:l,styles:u}=e,{latestIndex:d}=f.useContext(xH);return br(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},Gme=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"}}}},qme=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}}}},Kme=qt("Space",e=>{const t=Vt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [Gme(t),qme(t)]},()=>({}),{resetStyle:false}),Yme=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,size:o,className:i,style:s,classNames:l,styles:u}=Gt("space"),{size:d=o??"small",align:m,className:p,rootClassName:g,children:b,direction:y,orientation:S,prefixCls:x,split:$,separator:w,style:M,vertical:T,wrap:A=false,classNames:P,styles:N,...I}=e,[O,D]=Array.isArray(d)?d:[d,d],L=k0(D),V=k0(O),U=l8(D),W=l8(O),z=si(b,{keepEmpty:true}),[k,G]=Qu(S,T,y),j=m===void 0&&!G?"center":m,K=w??$,X=n("space",x),[B,H]=Kme(X),Q={...e,size:d,orientation:k,align:j},[J,te]=Yt([l,P],[u,N],{props:Q}),ne=Y(X,i,B,`${X}-${k}`,{[`${X}-rtl`]:r==="rtl",[`${X}-align-${j}`]:j,[`${X}-gap-row-${D}`]:L,[`${X}-gap-col-${O}`]:V},p,g,H,J.root),re=Y(`${X}-item`,J.item),oe=z.map((se,le)=>{const ae=se?.key||`${re}-${le}`;return f.createElement(Wme,{prefix:X,classNames:J,styles:te,className:re,key:ae,index:le,separator:K,style:te.item},se)}),de=f.useMemo(()=>({latestIndex:z.reduce((le,ae,Ee)=>br(ae)?Ee:le,0)}),[z]);if(z.length===0)return null;const ee={};return A&&(ee.flexWrap="wrap"),!V&&W&&(ee.columnGap=O),!L&&U&&(ee.rowGap=D),f.createElement("div",{ref:t,className:ne,style:{...ee,...te.root,...s,...M},...I},f.createElement(Ume,{value:de},oe))}),kr=Yme;kr.Compact=zT;kr.Addon=dH;const wH=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=f.useContext($t),{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:$,open:w,onOpenChange:M,placement:T,getPopupContainer:A,href:P,icon:N=f.createElement(CA,null),title:I,buttonsRender:O=ee=>ee,mouseEnterDelay:D,mouseLeaveDelay:L,overlayClassName:V,overlayStyle:U,destroyOnHidden:W,destroyPopupOnHide:z,dropdownRender:k,popupRender:G,...j}=e,K=n("dropdown",o),X=`${K}-button`,H={menu:b,arrow:y,autoFocus:S,align:$,disabled:l,trigger:l?[]:x,onOpenChange:M,getPopupContainer:A||t,mouseEnterDelay:D,mouseLeaveDelay:L,classNames:{root:V},styles:{root:U},destroyOnHidden:W,popupRender:G||k},{compactSize:Q,compactItemClassnames:J}=il(K,r),te=Y(X,J,g);"destroyPopupOnHide"in e&&(H.destroyPopupOnHide=z),"open"in e&&(H.open=w),"placement"in e?H.placement=T:H.placement=r==="rtl"?"bottomLeft":"bottomRight";const ne=f.createElement(lt,{type:i,danger:s,disabled:l,loading:u,onClick:d,htmlType:m,href:P,title:I},p),re=f.createElement(lt,{type:i,danger:s,icon:N}),[oe,de]=O([ne,re]);return f.createElement(kr.Compact,{className:te,size:Q,block:true,...j},oe,f.createElement(Y1,{...H},de))};wH.__ANT_BUTTON=true;const Ec=Y1;Ec.Button=wH;const $H=["wrap","nowrap","wrap-reverse"],EH=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],MH=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Xme=(e,t)=>{const n=t.wrap===true?"wrap":t.wrap;return {[`${e}-wrap-${n}`]:n&&$H.includes(n)}},Qme=(e,t)=>{const n={};return MH.forEach(r=>{n[`${e}-align-${r}`]=t.align===r;}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},Zme=(e,t)=>{const n={};return EH.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r;}),n},Jme=(e,t)=>Y({...Xme(e,t),...Qme(e,t),...Zme(e,t)}),ehe=e=>{const{componentCls:t}=e;return {[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},the=e=>{const{componentCls:t}=e;return {[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},nhe=e=>{const{componentCls:t}=e,n={};return $H.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r};}),n},rhe=e=>{const{componentCls:t}=e,n={};return MH.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r};}),n},ohe=e=>{const{componentCls:t}=e,n={};return EH.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r};}),n},ihe=()=>({}),she=qt("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=Vt(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return [ehe(o),the(o),nhe(o),rhe(o),ohe(o)]},ihe,{resetStyle:false}),ahe=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($t),x=S("flex",n),[$,w]=she(x),[,M]=Qu(d,u??b?.vertical),T=Y(o,r,b?.className,x,$,w,Jme(x,{...e,vertical:M}),{[`${x}-rtl`]:y==="rtl",[`${x}-gap-${l}`]:k0(l),[`${x}-vertical`]:M}),A={...b?.style,...i};return br(s)&&(A.flex=s),br(l)&&!k0(l)&&(A.gap=l),q.createElement(m,{ref:t,className:T,style:A,...Vn(g,["justify","wrap","align"])},p)}),_0=q.createContext(null);var lhe={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 b3(){return b3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},b3.apply(this,arguments)}const che=(e,t)=>f.createElement(Qn,b3({},e,{ref:t,icon:lhe})),TH=f.forwardRef(che),uhe=(e,t)=>br(e)?Cn(e)&&!f.isValidElement(e)?{...t,...e}:{...t,title:e}:null,dhe=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")]:ie(n)},{flexDirection:"column",margin:0,padding:`${ie(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}}}]}},fhe=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,${ie(r)})`,[l("list-trigger-offset")]:`calc(${ie(r)} + ${ie(o)})`},{...hn(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(${ie(r)} * -1))`,top:u("list-trigger-offset")}},"&-left":{[s]:{[l("list-transform-start")]:`translate(${ie(r)}, 0)`,right:u("list-trigger-offset")}},"&-right":{[s]:{[l("list-transform-start")]:`translate(calc(${ie(r)} * -1), 0)`,left:u("list-trigger-offset")}}}]}},mhe=()=>({}),AH=qt("FloatButton",e=>{const{controlHeightLG:t,marginXXL:n,marginLG:r,fontSizeIcon:o,calc:i}=e,s=Vt(e,{floatButtonIconSize:i(o).mul(1.5).equal(),floatButtonSize:t,floatButtonInsetBlockEnd:n,floatButtonInsetInlineEnd:r});return [dhe(s),fhe(s),HT(e)]},mhe,{order:-998}),J1="float-btn",hhe=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:$}=q.useContext($t),w=q.useContext(_0),M=x(J1,n),T=Zn(M),{shape:A,individual:P,classNames:N,styles:I}=w||{},O=A||l,D=P??true,L=m??d,V={...e,type:s,shape:O},[U,W]=AH(M,T),z=q.useMemo(()=>({icon:`${M}-icon`,content:`${M}-content`}),[M]),[k,G]=Yt([z,N,b],[I,y],{props:V}),j=!L&&!u?q.createElement(TH,null):u,[K]=Zu("FloatButton",i?.zIndex),X={...i,zIndex:K},B=Vn(g,["title","children","status","text"]),H="badge"in e&&q.createElement(Rg,{...B,className:Y(B.className,`${M}-badge`,{[`${M}-badge-dot`]:B.dot})}),Q=uhe(p);let J=q.createElement(lt,{...S,ref:t,className:Y(U,W,T,M,r,o,`${M}-${s}`,`${M}-${O}`,{[`${M}-rtl`]:$==="rtl",[`${M}-individual`]:D,[`${M}-icon-only`]:!L}),classNames:k,styles:G,style:X,shape:O,type:s,size:"large",icon:j,_skipSemantic:true},L,H);return Q&&(J=q.createElement(wc,{...Q},J)),J}),td=hhe,phe=q.createElement(Uce,null),RH=q.forwardRef((e,t)=>{const{backTopIcon:n}=Gt("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??phe,[y,S]=f.useState(l===0),x=q.useRef(null);q.useImperativeHandle(t,()=>({nativeElement:x.current}));const $=()=>x.current?.ownerDocument||window,w=tee(D=>{const L=bz(D.target);S(L>=l);});f.useEffect(()=>{const L=(d||$)();return w({target:L}),L?.addEventListener("scroll",w),()=>{w.cancel(),L?.removeEventListener("scroll",w);}},[d]);const M=D=>{Bne(0,{getContainer:d||$,duration:p}),m?.(D);},{getPrefixCls:T}=f.useContext($t),A=T(J1,r),P=T(),I=f.useContext(_0)?.shape||s,O={prefixCls:A,icon:b,type:i,shape:I,...g};return q.createElement(Io,{visible:y,motionName:`${P}-fade`},({className:D},L)=>q.createElement(td,{ref:Fr(x,L),...O,onClick:M,className:Y(o,D)}))}),NH=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(TH,null),closeIcon:p,trigger:g,children:b,onOpenChange:y,open:S,onClick:x,...$}=e,{direction:w,getPrefixCls:M,closeIcon:T,classNames:A,styles:P,className:N,style:I}=Gt("floatButtonGroup"),O=p??T??q.createElement(rl,null),D=M(J1,t),L=Zn(D),[V,U]=AH(D,L),W=`${D}-group`,z=g&&["click","hover"].includes(g),[k]=Zu("FloatButton",r?.zIndex),G=q.useRef(null),j=["top","left","right","bottom"].includes(d)?d:"top",[K,X]=mn(false,S),B=g==="hover",H=g==="click",Q=At(he=>{K!==he&&(X(he),y?.(he));}),J=()=>{B&&Q(true);},te=()=>{B&&Q(false);},ne=he=>{H&&Q(!K),x?.(he);};q.useEffect(()=>{if(H){const he=ge=>{G.current?.contains(ge.target)||Q(false);};return document.addEventListener("click",he,{capture:true}),()=>document.removeEventListener("click",he,{capture:true})}},[H]);const re=l==="circle",oe={...e,shape:l,type:u,placement:j},[de,ee]=Yt([A,o],[P,i],{props:oe}),se=q.useMemo(()=>({shape:l,individual:re,classNames:{root:de.item,icon:de.itemIcon,content:de.itemContent},styles:{root:ee.item,icon:ee.itemIcon,content:ee.itemContent}}),[l,re,de,ee]),le=q.useMemo(()=>({...se,individual:true,classNames:{root:de.trigger,icon:de.triggerIcon,content:de.triggerContent},styles:{root:ee.trigger,icon:ee.triggerIcon,content:ee.triggerContent}}),[se,de,ee]);let ae;const Ee=`${W}-list`,ce=he=>{const ge=j==="top"||j==="bottom",Ce={className:Y(Ee,de.list,he),style:ee.list};return re?ae=q.createElement(ahe,{vertical:ge,...Ce},b):ae=q.createElement(kr.Compact,{vertical:ge,...Ce},b),ae};return q.createElement(_0.Provider,{value:se},q.createElement("div",{className:Y(W,V,U,L,N,de.root,n,s,{[`${W}-rtl`]:w==="rtl",[`${W}-individual`]:re,[`${W}-${j}`]:z,[`${W}-menu-mode`]:z}),style:{...I,zIndex:k,...ee.root,...r},ref:G,onMouseEnter:J,onMouseLeave:te},z?q.createElement(Io,{visible:K,motionName:`${Ee}-motion`},({className:he})=>ce(he)):ce(),z&&q.createElement(_0.Provider,{value:le},q.createElement(td,{type:u,icon:K?O:m,"aria-label":e["aria-label"],className:`${W}-trigger`,onClick:ne,...$}))))},c8=({backTop:e,...t})=>e?f.createElement(RH,{...t,visibilityHeight:0}):f.createElement(td,{...t}),ghe=({className:e,items:t,classNames:n,styles:r,prefixCls:o,...i})=>{const{getPrefixCls:s}=f.useContext($t),u=`${s(J1,o)}-pure`;return t?f.createElement(NH,{className:Y(e,u),classNames:n,styles:r,...i},t.map((d,m)=>f.createElement(c8,{key:m,...d}))):f.createElement(c8,{className:Y(e,u),classNames:n,styles:r,...i})};td.BackTop=RH;td.Group=NH;td._InternalPanelDoNotUseOrYouWillBeFired=ghe;const vhe=e=>{const{getPrefixCls:t,direction:n}=f.useContext($t),{prefixCls:r,className:o}=e,i=t("input-group",r),s=t("input"),[l,u]=K7(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(Po),p=f.useMemo(()=>({...m,isFormItemInput:false}),[m]);return f.createElement(Po.Provider,{value:p},f.createElement(kr.Compact,{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},bhe=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,"&::selection":{color:"transparent"}},[`${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}}}},yhe=qt(["Input","OTP"],e=>{const t=Vt(e,cm(e));return bhe(t)},um),She=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($t),p=m("otp"),g=typeof l=="string"?l:r,b=f.useRef(null);f.useImperativeHandle(t,()=>b.current);const y=w=>{o(s,w.target.value);},S=()=>{zt(()=>{const w=b.current?.input;document.activeElement===w&&w&&w.select();});},x=w=>{u?.(w),S();},$=w=>{const{key:M,ctrlKey:T,metaKey:A}=w;M==="ArrowLeft"?i(s-1):M==="ArrowRight"?i(s+1):M==="z"&&(T||A)?w.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(dm,{"aria-label":`OTP Input ${s+1}`,type:l===true?"password":"text",...d,ref:b,value:r,onInput:y,onFocus:x,onKeyDown:$,onMouseDown:S,onMouseUp:S,className:Y(n,{[`${p}-mask-input`]:l})}))});function Lb(e){return (e||"").split("")}const Che=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},xhe=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:$,onFocus:w,inputMode:M,classNames:T,styles:A,className:P,style:N,...I}=e,{classNames:O,styles:D,getPrefixCls:L,direction:V,style:U,className:W}=Gt("otp"),z=L("otp",n),k={...e,length:r},[G,j]=Yt([O,T],[D,A],{props:k}),K=No(I,{aria:true,data:true,attr:true}),[X,B]=yhe(z),H=yr(ge=>o??ge),Q=f.useContext(Po),J=sm(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 ge=0;ge<r;ge+=1)re.current[ge]?.blur();},nativeElement:ne.current}));const oe=ge=>u?u(ge):ge,[de,ee]=f.useState(()=>Lb(oe(i||"")));f.useEffect(()=>{s!==void 0&&ee(Lb(s));},[s]);const se=At(ge=>{ee(ge),$&&$(ge),l&&ge.length===r&&ge.every(Ce=>Ce)&&ge.some((Ce,Re)=>de[Re]!==Ce)&&l(ge.join(""));}),le=At((ge,Ce)=>{let Re=Qt(de);for(let Ne=0;Ne<ge;Ne+=1)Re[Ne]||(Re[Ne]="");Ce.length<=1?Re[ge]=Ce:Re=Re.slice(0,ge).concat(Lb(Ce)),Re=Re.slice(0,r);for(let Ne=Re.length-1;Ne>=0&&!Re[Ne];Ne-=1)Re.pop();const et=oe(Re.map(Ne=>Ne||" ").join(""));return Re=Lb(et).map((Ne,ve)=>Ne===" "&&!Re[ve]?Re[ve]:Ne),Re}),ae=(ge,Ce)=>{const Re=le(ge,Ce),et=Math.min(ge+Ce.length,r-1);et!==ge&&Re[ge]!==void 0&&re.current[et]?.focus(),se(Re);},Ee=ge=>{re.current[ge]?.focus();},ce=(ge,Ce)=>{for(let Re=0;Re<Ce;Re+=1)if(!re.current[Re]?.input?.value){re.current[Re]?.focus();break}w?.(ge);},he={variant:m,disabled:p,status:J,mask:y,type:S,inputMode:M,autoComplete:x};return f.createElement("div",{...K,ref:ne,className:Y(P,z,{[`${z}-sm`]:H==="small",[`${z}-lg`]:H==="large",[`${z}-rtl`]:V==="rtl"},B,X,W,G.root),style:{...j.root,...U,...N},role:"group"},f.createElement(Po.Provider,{value:te},Array.from({length:r}).map((ge,Ce)=>{const Re=`otp-${Ce}`,et=de[Ce]||"";return f.createElement(f.Fragment,{key:Re},f.createElement(She,{ref:Ne=>{re.current[Ce]=Ne;},index:Ce,size:H,htmlSize:1,className:Y(G.input,`${z}-input`),style:j.input,onChange:ae,value:et,onActiveChange:Ee,autoFocus:Ce===0&&b,onFocus:Ne=>ce(Ne,Ce),...he}),Ce<r-1&&f.createElement(Che,{separator:d,index:Ce,prefixCls:z,className:Y(G.separator),style:j.separator}))})))});var whe={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 y3(){return y3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},y3.apply(this,arguments)}const $he=(e,t)=>f.createElement(Qn,y3({},e,{ref:t,icon:whe})),Ehe=f.forwardRef($he);var Mhe={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 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 The=(e,t)=>f.createElement(Qn,S3({},e,{ref:t,icon:Mhe})),Ahe=f.forwardRef(The),Rhe=e=>e?f.createElement(Ahe,null):f.createElement(Ehe,null),Nhe={click:"onClick",hover:"onMouseOver"},Phe=f.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=true,iconRender:i=Rhe,suffix:s}=e,l=f.useContext(po),u=n??l,d=Cn(o)&&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=gH(g),y=()=>{if(u)return;m&&b();const L=!m;p(L),Cn(o)&&o.onVisibleChange?.(L);},S=L=>{const V=Nhe[r]||"",U=i(m),W={[V]:y,className:`${L}-icon`,key:"passwordIcon",onMouseDown:z=>{z.preventDefault();},onMouseUp:z=>{z.preventDefault();}};return f.cloneElement(f.isValidElement(U)?U:f.createElement("span",null,U),W)},{className:x,prefixCls:$,inputPrefixCls:w,size:M,...T}=e,{getPrefixCls:A}=f.useContext($t),P=A("input",w),N=A("input-password",$),I=o&&S(N),O=Y(N,x,{[`${N}-${M}`]:!!M}),D={...Vn(T,["suffix","iconRender","visibilityToggle"]),type:m?"text":"password",className:O,prefixCls:P,suffix:f.createElement(f.Fragment,null,I,s)};return M&&(D.size=M),f.createElement(dm,{ref:Fr(t,g),...D})}),Ihe=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}}}}}}},Ohe=qt(["Input","Search"],Ihe),Dhe=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:$,styles:w,hidden:M,...T}=e,{direction:A,getPrefixCls:P,classNames:N,styles:I}=Gt("inputSearch"),O={...e,enterButton:l},[D,L]=Yt([N,$],[I,w],{props:O},{button:{_default:"root"}}),V=f.useRef(false),U=P("input-search",n),W=P("input",r),[z,k]=Ohe(U),{compactSize:G}=il(U,A),j=yr(ce=>i??G??ce),K=f.useRef(null),X=ce=>{ce?.target&&ce.type==="click"&&p&&p(ce.target.value,ce,{source:"clear"}),g?.(ce);},B=ce=>{document.activeElement===K.current?.input&&ce.preventDefault();},H=ce=>{p&&p(K.current?.input?.value,ce,{source:"input"});},Q=ce=>{V.current||d||(x?.(ce),H(ce));},J=typeof l=="boolean"?f.createElement(dA,null):null,te=`${U}-btn`,ne=Y(te,{[`${te}-${S}`]:S});let re;const oe=l||{},de=oe.type&&oe.type.__ANT_BUTTON===true;de||oe.type==="button"?re=Yr(oe,{onMouseDown:B,onClick:ce=>{oe?.props?.onClick?.(ce),H(ce);},key:"enterButton",...de?{className:ne,size:j}:{}}):re=f.createElement(lt,{classNames:D.button,styles:L.button,className:ne,color:l?"primary":"default",size:j,disabled:m,key:"enterButton",onMouseDown:B,onClick:H,loading:d,icon:J,variant:S==="borderless"||S==="filled"||S==="underlined"?"text":l?"solid":void 0},l),u&&(re=[re,Yr(u,{key:"addonAfter"})]);const ee=Y(U,k,{[`${U}-rtl`]:A==="rtl",[`${U}-${j}`]:!!j,[`${U}-with-button`]:!!l},o,z,D.root),se=ce=>{V.current=true,b?.(ce);},le=ce=>{V.current=false,y?.(ce);},ae=No(T,{data:true}),Ee=Vn({...T,classNames:Vn(D,["button","root"]),styles:Vn(L,["button","root"]),prefixCls:W,type:"search",size:j,variant:S,onPressEnter:Q,onCompositionStart:se,onCompositionEnd:le,onChange:X,disabled:m},Object.keys(ae));return f.createElement(zT,{className:ee,style:{...s,...L.root},...ae,hidden:M},f.createElement(dm,{ref:Fr(K,t),...Ee}),re)}),Lhe=`
  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;
`,khe=["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"],Uw={};let yi;function _he(e,t=false){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Uw[n])return Uw[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:khe.map(d=>`${d}:${r.getPropertyValue(d)}`).join(";"),paddingSize:i,borderSize:s,boxSizing:o};return t&&n&&(Uw[n]=u),u}function Bhe(e,t=false,n=null,r=null){yi||(yi=document.createElement("textarea"),yi.setAttribute("tab-index","-1"),yi.setAttribute("aria-hidden","true"),yi.setAttribute("name","hiddenTextarea"),document.body.appendChild(yi)),e.getAttribute("wrap")?yi.setAttribute("wrap",e.getAttribute("wrap")):yi.removeAttribute("wrap");const{paddingSize:o,borderSize:i,boxSizing:s,sizingStyle:l}=_he(e,t);yi.setAttribute("style",`${l};${Lhe}`),yi.value=e.value||e.placeholder||"";let u,d,m,p=yi.scrollHeight;if(s==="border-box"?p+=i:s==="content-box"&&(p-=o),n!==null||r!==null){yi.value=" ";const b=yi.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 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 Ww=0,Gw=1,qw=2,zhe=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]=mn(r,o),S=b??"",x=z=>{y(z.target.value),m?.(z);},$=f.useRef();f.useImperativeHandle(t,()=>({textArea:$.current}));const[w,M]=f.useMemo(()=>i&&typeof i=="object"?[i.minRows,i.maxRows]:[],[i]),T=!!i,[A,P]=f.useState(qw),[N,I]=f.useState(),O=()=>{P(Ww);};In(()=>{T&&O();},[o,w,M,T]),In(()=>{if(A===Ww)P(Gw);else if(A===Gw){const z=Bhe($.current,false,w,M);P(qw),I(z);}},[A]);const D=f.useRef(),L=()=>{zt.cancel(D.current);},V=z=>{A===qw&&(s?.(z),i&&(L(),D.current=zt(()=>{O();})));};f.useEffect(()=>L,[]);const W={...u,...T?N:null};return (A===Ww||A===Gw)&&(W.overflowY="hidden",W.overflowX="hidden"),f.createElement(Es,{onResize:V,disabled:!(i||s)},f.createElement("textarea",C3({},g,{ref:$,style:W,className:Y(n,l,{[`${n}-disabled`]:d}),disabled:d,value:S,onChange:x})))});function x3(){return x3=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},x3.apply(this,arguments)}const Fhe=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:$,styles:w,onResize:M,onClear:T,onPressEnter:A,readOnly:P,autoSize:N,onKeyDown:I,...O},D)=>{const[L,V]=mn(e,t),U=L==null?"":String(L),[W,z]=q.useState(false),k=q.useRef(false),[G,j]=q.useState(null),K=f.useRef(null),X=f.useRef(null),B=()=>X.current?.textArea,H=()=>{B().focus();};f.useImperativeHandle(D,()=>({resizableTextArea:X.current,focus:H,blur:()=>{B().blur();},nativeElement:K.current?.nativeElement||B()})),f.useEffect(()=>{z(ve=>!S&&ve);},[S]);const[Q,J]=q.useState(null);q.useEffect(()=>{Q&&B().setSelectionRange(...Q);},[Q]);const te=hH(g,p),ne=te.max??s,re=Number(ne)>0,oe=te.strategy(U),de=!!ne&&oe>ne,ee=(ve,Te)=>{let Se=Te;!k.current&&te.exceedFormatter&&te.max&&te.strategy(Te)>te.max&&(Se=te.exceedFormatter(Te,{max:te.max}),Te!==Se&&J([B().selectionStart||0,B().selectionEnd||0])),V(Se),O0(ve.currentTarget,ve,o,Se);},se=ve=>{k.current=true,l?.(ve);},le=ve=>{k.current=false,ee(ve,ve.currentTarget.value),u?.(ve);},ae=ve=>{ee(ve,ve.target.value);},Ee=ve=>{ve.key==="Enter"&&A&&!ve.nativeEvent.isComposing&&A(ve),I?.(ve);},ce=ve=>{z(true),n?.(ve);},he=ve=>{z(false),r?.(ve);},ge=ve=>{V(""),H(),O0(B(),ve,o);};let Ce=d,Re;te.show&&(te.showFormatter?Re=te.showFormatter({value:U,count:oe,maxLength:ne}):Re=`${oe}${re?` / ${ne}`:""}`,Ce=q.createElement(q.Fragment,null,Ce,q.createElement("span",{className:Y(`${m}-data-count`,$?.count),style:w?.count},Re)));const et=ve=>{M?.(ve),B()?.style.height&&j(true);},Ne=!N&&!p&&!i;return q.createElement(mH,{ref:K,value:U,allowClear:i,handleReset:ge,suffix:Ce,prefixCls:m,classNames:{...$,affixWrapper:Y($?.affixWrapper,{[`${m}-show-count`]:p,[`${m}-textarea-allow-clear`]:i})},disabled:S,focused:W,className:Y(b,de&&`${m}-out-of-range`),style:{...y,...G&&!Ne?{height:"auto"}:{}},dataAttrs:{affixWrapper:{"data-count":typeof Re=="string"?Re:void 0}},hidden:x,readOnly:P,onClear:T},q.createElement(zhe,x3({},O,{autoSize:N,maxLength:s,onKeyDown:Ee,onChange:ae,onFocus:ce,onBlur:he,onCompositionStart:se,onCompositionEnd:le,className:Y($?.textarea),style:{resize:y?.resize,...w?.textarea},disabled:S,prefixCls:m,onResize:et,ref:X,readOnly:P})))}),Hhe=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}}}}}},Vhe=qt(["Input","TextArea"],e=>{const t=Vt(e,cm(e));return Hhe(t)},um,{resetFont:false}),jhe=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,...$}=e,{getPrefixCls:w,direction:M,allowClear:T,autoComplete:A,className:P,style:N,classNames:I,styles:O}=Gt("textArea"),D=f.useContext(po),L=i??D,{status:V,hasFeedback:U,feedbackIcon:W}=f.useContext(Po),z=sm(V,s),[k,G]=Yt([I,u],[O,g],{props:e}),j=f.useRef(null);f.useImperativeHandle(t,()=>({resizableTextArea:j.current?.resizableTextArea,focus:ce=>{JT(j.current?.resizableTextArea?.textArea,ce);},blur:()=>j.current?.blur(),nativeElement:j.current?.nativeElement||null}));const K=w("input",n),X=Zn(K),[B,H]=q7(K,d);Vhe(K,X);const{compactSize:Q,compactItemClassnames:J}=il(K,M),te=yr(ce=>o??Q??ce),[ne,re]=j1("textArea",b,r),oe=pH(l??T),[de,ee]=f.useState(false),[se,le]=f.useState(false),ae=ce=>{ee(true),S?.(ce);const he=()=>{ee(false),document.removeEventListener("mouseup",he);};document.addEventListener("mouseup",he);},Ee=ce=>{if(x?.(ce),de&&typeof getComputedStyle=="function"){const he=j.current?.nativeElement?.querySelector("textarea");he&&getComputedStyle(he).resize==="both"&&le(true);}};return f.createElement(Fhe,{autoComplete:A,...$,style:{...G.root,...N,...p},styles:G,disabled:L,allowClear:oe,className:Y(H,X,m,d,J,P,k.root,{[`${K}-textarea-affix-wrapper-resize-dirty`]:se}),classNames:{...k,textarea:Y({[`${K}-sm`]:te==="small",[`${K}-lg`]:te==="large"},B,k.textarea,de&&`${K}-mouse-active`),variant:Y({[`${K}-${ne}`]:re},dc(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},B)},prefixCls:K,suffix:U&&f.createElement("span",{className:`${K}-textarea-suffix`},W),showCount:y,ref:j,onResize:Ee,onMouseDown:ae})}),is=dm;is.Group=vhe;is.Search=Dhe;is.TextArea=jhe;is.Password=Phe;is.OTP=xhe;var Uhe={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 w3(){return w3=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},w3.apply(this,arguments)}const Whe=(e,t)=>f.createElement(Qn,w3({},e,{ref:t,icon:Uhe})),u8=f.forwardRef(Whe);var Ghe={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 $3(){return $3=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},$3.apply(this,arguments)}const qhe=(e,t)=>f.createElement(Qn,$3({},e,{ref:t,icon:Ghe})),d8=f.forwardRef(qhe),Khe={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:"页码"},Yhe=[10,20,50,100],Xhe=e=>{const{pageSizeOptions:t=Yhe,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:I=>`${I} ${n.items_per_page}`,x=I=>{const O=I.target.value;/^\d*$/.test(O)&&b(O);},$=I=>{i||g===""||(b(""),!(I.relatedTarget&&(I.relatedTarget.className.includes(`${l}-item-link`)||I.relatedTarget.className.includes(`${l}-item`)))&&s?.(y));},w=I=>{g!==""&&(I.keyCode===st.ENTER||I.type==="click")&&(b(""),s?.(y));},M=()=>t.some(I=>I.toString()===o.toString())?t:t.concat([o]).sort((I,O)=>{const D=Number.isNaN(Number(I))?0:Number(I),L=Number.isNaN(Number(O))?0:Number(O);return D-L}),T=`${l}-options`;if(!m&&!s)return null;let A=null,P=null,N=null;return m&&p&&(A=p({disabled:u,size:o,onSizeChange:I=>{r?.(Number(I));},"aria-label":n.page_size,className:`${T}-size-changer`,options:M().map(I=>({label:S(I),value:I}))})),s&&(i&&(N=typeof i=="boolean"?q.createElement("button",{type:"button",onClick:w,onKeyUp:w,disabled:u,className:`${T}-quick-jumper-button`},n.jump_to_confirm):q.createElement("span",{onClick:w,onKeyUp:w},i)),P=q.createElement("div",{className:`${T}-quick-jumper`},n.jump_to,q.createElement("input",{disabled:u,type:"text",value:g,onChange:x,onKeyUp:w,onBlur:$,"aria-label":n.page}),n.page,N)),q.createElement("li",{className:T},A,P)},Mh=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 Wl(){return Wl=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},Wl.apply(this,arguments)}const Qhe=(e,t,n)=>n;function f8(){}function m8(e){const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Jc(e,t,n){const r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}const Zhe=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=f8,hideOnSinglePage:g,align:b,showPrevNextJumpers:y=true,showQuickJumper:S,showLessItems:x,showTitle:$=true,onShowSizeChange:w=f8,locale:M=Khe,style:T,totalBoundaryShowSizeChanger:A=50,disabled:P,simple:N,showTotal:I,showSizeChanger:O=u>A,sizeChangerRender:D,pageSizeOptions:L,itemRender:V=Qhe,jumpPrevIcon:U,jumpNextIcon:W,prevIcon:z,nextIcon:k}=e,G=q.useRef(null),[j,K]=mn(m,d),[X,B]=mn(l,s),H=Math.max(1,Math.min(X,Jc(void 0,j,u))),[Q,J]=q.useState(H);f.useEffect(()=>{J(H);},[H]);const te=Math.max(1,H-(x?3:5)),ne=Math.min(Jc(void 0,j,u),H+(x?3:5));function re(be,Me){let ye=be||q.createElement("button",{type:"button","aria-label":Me,className:`${t}-item-link`});return typeof be=="function"&&(ye=q.createElement(be,e)),ye}function oe(be){const Me=be.target.value,ye=Jc(void 0,j,u);let me;return Me===""?me=Me:Number.isNaN(Number(Me))?me=Q:Me>=ye?me=ye:me=Number(Me),me}function de(be){return m8(be)&&be!==H&&m8(u)&&u>0}const ee=u>j?S:false;function se(be){(be.keyCode===st.UP||be.keyCode===st.DOWN)&&be.preventDefault();}function le(be){const Me=oe(be);switch(Me!==Q&&J(Me),be.keyCode){case st.ENTER:ce(Me);break;case st.UP:ce(Me-1);break;case st.DOWN:ce(Me+1);break}}function ae(be){ce(oe(be));}function Ee(be){const Me=Jc(be,j,u),ye=H>Me&&Me!==0?Me:H;K(be),J(ye),w?.(H,be),B(ye),p?.(ye,be);}function ce(be){if(de(be)&&!P){const Me=Jc(void 0,j,u);let ye=be;return be>Me?ye=Me:be<1&&(ye=1),ye!==Q&&J(ye),B(ye),p?.(ye,j),ye}return H}const he=H>1,ge=H<Jc(void 0,j,u);function Ce(){he&&ce(H-1);}function Re(){ge&&ce(H+1);}function et(){ce(te);}function Ne(){ce(ne);}function ve(be,Me,...ye){(be.key==="Enter"||be.charCode===st.ENTER||be.keyCode===st.ENTER)&&Me(...ye);}function Te(be){ve(be,Ce);}function Se(be){ve(be,Re);}function Ie(be){ve(be,et);}function Ue(be){ve(be,Ne);}function je(be){const Me=V(be,"prev",re(z,"prev page"));return q.isValidElement(Me)?q.cloneElement(Me,{disabled:!he}):Me}function qe(be){const Me=V(be,"next",re(k,"next page"));return q.isValidElement(Me)?q.cloneElement(Me,{disabled:!ge}):Me}function Ze(be){(be.type==="click"||be.keyCode===st.ENTER)&&ce(Q);}let Ye=null;const Be=No(e,{aria:true,data:true}),Ke=I&&q.createElement("li",{className:`${t}-total-text`},I(u,[u===0?0:(H-1)*j+1,H*j>u?u:H*j]));let Qe=null;const ke=Jc(void 0,j,u);if(g&&u<=j)return null;const Oe=[],ct={rootPrefixCls:t,onClick:ce,onKeyPress:ve,showTitle:$,itemRender:V,page:-1,className:o?.item,style:i?.item},Ot=H-1>0?H-1:0,mt=H+1<ke?H+1:ke,kt=S&&S.goButton,yt=typeof N=="object"?N.readOnly:!N;let Dt=kt,ft=null;N&&(kt&&(typeof kt=="boolean"?Dt=q.createElement("button",{type:"button",onClick:Ze,onKeyUp:Ze},M.jump_to_confirm):Dt=q.createElement("span",{onClick:Ze,onKeyUp:Ze},kt),Dt=q.createElement("li",{title:$?`${M.jump_to}${H}/${ke}`:null,className:`${t}-simple-pager`},Dt)),ft=q.createElement("li",{title:$?`${H}/${ke}`:null,className:Y(`${t}-simple-pager`,o?.item),style:i?.item},yt?Q:q.createElement("input",{type:"text","aria-label":M.jump_to,value:Q,disabled:P,onKeyDown:se,onKeyUp:le,onChange:le,onBlur:ae,size:3}),q.createElement("span",{className:`${t}-slash`},"/"),ke));const ut=x?1:2;if(ke<=3+ut*2){ke||Oe.push(q.createElement(Mh,Wl({},ct,{key:"noPager",page:1,className:`${t}-item-disabled`})));for(let be=1;be<=ke;be+=1)Oe.push(q.createElement(Mh,Wl({},ct,{key:be,page:be,active:H===be})));}else {const be=x?M.prev_3:M.prev_5,Me=x?M.next_3:M.next_5,ye=V(te,"jump-prev",re(U,"prev page")),me=V(ne,"jump-next",re(W,"next page"));y&&(Ye=ye?q.createElement("li",{title:$?be:null,key:"prev",onClick:et,tabIndex:0,onKeyDown:Ie,className:Y(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!U})},ye):null,Qe=me?q.createElement("li",{title:$?Me:null,key:"next",onClick:Ne,tabIndex:0,onKeyDown:Ue,className:Y(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!W})},me):null);let Le=Math.max(1,H-ut),xe=Math.min(H+ut,ke);H-1<=ut&&(xe=1+ut*2),ke-H<=ut&&(Le=ke-ut*2);for(let ze=Le;ze<=xe;ze+=1)Oe.push(q.createElement(Mh,Wl({},ct,{key:ze,page:ze,active:H===ze})));if(H-1>=ut*2&&H!==3&&(Oe[0]=q.cloneElement(Oe[0],{className:Y(`${t}-item-after-jump-prev`,Oe[0].props.className)}),Oe.unshift(Ye)),ke-H>=ut*2&&H!==ke-2){const ze=Oe[Oe.length-1];Oe[Oe.length-1]=q.cloneElement(ze,{className:Y(`${t}-item-before-jump-next`,ze.props.className)}),Oe.push(Qe);}Le!==1&&Oe.unshift(q.createElement(Mh,Wl({},ct,{key:1,page:1}))),xe!==ke&&Oe.push(q.createElement(Mh,Wl({},ct,{key:ke,page:ke})));}let vt=je(Ot);if(vt){const be=!he||!ke;vt=q.createElement("li",{title:$?M.prev_page:null,onClick:Ce,tabIndex:be?null:0,onKeyDown:Te,className:Y(`${t}-prev`,o?.item,{[`${t}-disabled`]:be}),style:i?.item,"aria-disabled":be},vt);}let He=qe(mt);if(He){let be,Me;N?(be=!ge,Me=he?0:null):(be=!ge||!ke,Me=be?null:0),He=q.createElement("li",{title:$?M.next_page:null,onClick:Re,tabIndex:Me,onKeyDown:Se,className:Y(`${t}-next`,o?.item,{[`${t}-disabled`]:be}),style:i?.item,"aria-disabled":be},He);}const Ge=Y(t,r,{[`${t}-start`]:b==="start",[`${t}-center`]:b==="center",[`${t}-end`]:b==="end",[`${t}-simple`]:N,[`${t}-disabled`]:P});return q.createElement("ul",Wl({className:Ge,style:T,ref:G},Be),Ke,vt,N?ft:Oe,He,q.createElement(Xhe,{locale:M,rootPrefixCls:t,disabled:P,selectPrefixCls:n,changeSize:Ee,pageSize:j,pageSizeOptions:L,quickGo:ee?ce:null,goButton:Dt,showSizeChanger:O,sizeChangerRender:D}))},Jhe=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}}}}},epe=e=>{const{componentCls:t}=e;return {[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...$A(e),width:e.paginationMiniQuickJumperInputWidth}}}}},tpe=e=>{const{componentCls:t}=e;return {[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...wA(e)}}}}},npe=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 ${ie(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${ie(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:`${ie(e.inputOutlineOffset)} 0 ${ie(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}}}}}},rpe=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:`${ie(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:{...Q1(e),...xA(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...X1(e)},width:e.quickJumperInputWidth,height:r("item-size-actual"),boxSizing:"border-box",margin:0,marginInlineStart:r("item-spacing-actual"),marginInlineEnd:r("item-spacing-actual")}}}}},ope=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:ie(e.calc(r("item-size-actual")).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${ie(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ie(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}}}}},ipe=e=>{const{componentCls:t,antCls:n}=e,[r,o]=nr(n,"pagination");return {[t]:{[r("item-size-actual")]:ie(e.itemSize),[r("item-spacing-actual")]:ie(e.marginXS),"&-small":{[r("item-size-actual")]:ie(e.itemSizeSM),[r("item-spacing-actual")]:ie(e.marginXXS)},"&-large":{[r("item-size-actual")]:ie(e.itemSizeLG),[r("item-spacing-actual")]:ie(e.marginSM)},...hn(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:ie(e.calc(o("item-size-actual")).sub(2).equal()),verticalAlign:"middle"},...ope(e),...rpe(e),...npe(e),...epe(e),...tpe(e),...Jhe(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"}}},spe=e=>{const{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...ai(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...os(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:os(e)}}}},PH=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,...um(e)}),IH=e=>Vt(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"},cm(e)),ape=qt("Pagination",e=>{const t=IH(e);return [ipe(t),spe(t)]},PH),lpe=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:`${ie(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}}}}},cpe=nm(["Pagination","bordered"],e=>{const t=IH(e);return lpe(t)},PH);function h8(e){return f.useMemo(()=>typeof e=="boolean"?[e,{}]:Cn(e)?[true,e]:[void 0,void 0],[e])}const upe=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}=s7(d),[,$]=Qr(),{getPrefixCls:w,direction:M,showSizeChanger:T,className:A,style:P,classNames:N,styles:I,totalBoundaryShowSizeChanger:O}=Gt("pagination"),D=w("pagination",n),[L,V]=ape(D),U=yr(l),W=U==="small"||!!(x&&!U&&d),z={...e,size:U},[k,G]=Yt([N,y],[I,b],{props:z}),[j]=Ho("Pagination",dz),K={...j,...u},[X,B]=h8(m),[H,Q]=h8(T),J=X??H,te=B??Q,ne=p||xc,re=f.useMemo(()=>g?g.map(Number):void 0,[g]),oe=ae=>{const{disabled:Ee,size:ce,onSizeChange:he,"aria-label":ge,className:Ce,options:Re}=ae,{className:et,onChange:Ne}=te||{},ve=Re.find(Te=>String(Te.value)===String(ce))?.value;return f.createElement(ne,{disabled:Ee,showSearch:true,popupMatchSelectWidth:false,getPopupContainer:Te=>Te.parentNode,"aria-label":ge,options:Re,...te,value:ve,onChange:(Te,Se)=>{he?.(Te),Ne?.(Te,Se);},size:U,className:Y(Ce,et)})},de=f.useMemo(()=>{const ae=f.createElement("span",{className:`${D}-item-ellipsis`},"•••"),Ee=f.createElement("button",{className:`${D}-item-link`,type:"button",tabIndex:-1},M==="rtl"?f.createElement(kf,null):f.createElement(Lp,null)),ce=f.createElement("button",{className:`${D}-item-link`,type:"button",tabIndex:-1},M==="rtl"?f.createElement(Lp,null):f.createElement(kf,null)),he=f.createElement("a",{className:`${D}-item-link`},f.createElement("div",{className:`${D}-item-container`},M==="rtl"?f.createElement(d8,{className:`${D}-item-link-icon`}):f.createElement(u8,{className:`${D}-item-link-icon`}),ae)),ge=f.createElement("a",{className:`${D}-item-link`},f.createElement("div",{className:`${D}-item-container`},M==="rtl"?f.createElement(u8,{className:`${D}-item-link-icon`}):f.createElement(d8,{className:`${D}-item-link-icon`}),ae));return {prevIcon:Ee,nextIcon:ce,jumpPrevIcon:he,jumpNextIcon:ge}},[M,D]),ee=w("select",r),se=Y({[`${D}-${t}`]:!!t,[`${D}-${U}`]:U,[`${D}-mini`]:W,[`${D}-rtl`]:M==="rtl",[`${D}-bordered`]:$.wireframe},A,o,i,k.root,L,V),le={...G.root,...P,...s};return f.createElement(f.Fragment,null,$.wireframe&&f.createElement(cpe,{prefixCls:D}),f.createElement(Zhe,{...de,...S,styles:G,classNames:k,style:le,prefixCls:D,selectPrefixCls:ee,className:se,locale:K,pageSizeOptions:re,showSizeChanger:J,totalBoundaryShowSizeChanger:S.totalBoundaryShowSizeChanger??O,sizeChangerRender:oe}))},B0=100,OH=B0/5,DH=B0/2-OH/2,Kw=DH*2*Math.PI,p8=50,g8=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return f.createElement("circle",{className:Y(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:DH,cx:p8,cy:p8,strokeWidth:OH,style:n})},dpe=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[i,s]=f.useState(false);In(()=>{e!==0&&s(true);},[e!==0]);const l=Math.max(Math.min(e,100),0);if(!i)return null;const u={strokeDashoffset:`${Kw/4}`,strokeDasharray:`${Kw*l/100} ${Kw*(100-l)/100}`};return f.createElement("span",{className:Y(r,`${n}-progress`,{[o]:l<=0})},f.createElement("svg",{viewBox:`0 0 ${B0} ${B0}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},f.createElement(g8,{dotClassName:n,hasCircleCls:true}),f.createElement(g8,{dotClassName:n,style:u})))};function fpe(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(dpe,{prefixCls:t,percent:n}))}function mpe(e){const{prefixCls:t,indicator:n,percent:r,className:o,style:i}=e,s=`${t}-dot`;return n&&f.isValidElement(n)?Yr(n,l=>({className:Y(l.className,s,o),style:{...l.style,...i},percent:r})):f.createElement(fpe,{prefixCls:t,percent:r,className:o,style:i})}const hpe=new Ft("antSpinMove",{to:{opacity:1}}),ppe=new Ft("antRotate",{to:{transform:"rotate(405deg)"}}),gpe=e=>{const{componentCls:t}=e,n=`${t}-section`;return {[t]:{...hn(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}}}}}},vpe=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:ppe,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:hpe,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}}}}},bpe=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}}}},ype=e=>{const{controlHeightLG:t,controlHeight:n}=e;return {contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},Spe=qt("Spin",e=>{const t=Vt(e,{spinDotDefault:e.colorTextDescription});return [gpe(t),vpe(t),bpe(t)]},ype),Cpe=200,v8=[[30,.05],[70,.03],[96,.01]];function xpe(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<v8.length;u+=1){const[d,m]=v8[u];if(s<=d)return s+l*m}return s});},Cpe)),()=>{o.current&&(clearInterval(o.current),o.current=null);}),[i,e]),i?n:t}let LH;function wpe(e,t){return !!e&&!!t&&!Number.isNaN(Number(t))}const eS=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,...$}=e,{getPrefixCls:w,direction:M,indicator:T,className:A,style:P,classNames:N,styles:I}=Gt("spin"),O=w("spin",t),[D,L]=Spe(O),[V,U]=f.useState(()=>n&&!wpe(n,r)),W=xpe(V,y);f.useEffect(()=>{if(n){const J=lfe(r,()=>{U(true);});return J(),()=>{J?.cancel?.();}}U(false);},[r,n]);const z=yr(J=>s??J),k=u??l,G={...e,size:z,spinning:V,tip:k,description:k,fullscreen:g,children:p,percent:W},[j,K]=Yt([N,S],[I,x],{props:G}),X=b??T??LH,B=typeof p<"u",H=B||g,Q=f.createElement(f.Fragment,null,f.createElement(mpe,{className:Y(j.indicator),style:K.indicator,prefixCls:O,indicator:X,percent:W}),k&&f.createElement("div",{className:Y(`${O}-description`,j.tip,j.description),style:{...K.tip,...K.description}},k));return f.createElement("div",{className:Y(O,{[`${O}-sm`]:z==="small",[`${O}-lg`]:z==="large",[`${O}-spinning`]:V,[`${O}-rtl`]:M==="rtl",[`${O}-fullscreen`]:g},i,j.root,g&&j.mask,H?d:[`${O}-section`,j.section],A,o,D,L),style:{...K.root,...H?{}:K.section,...g?K.mask:{},...P,...m},"aria-live":"polite","aria-busy":V,...$},V&&(H?f.createElement("div",{className:Y(`${O}-section`,j.section),style:K.section},Q):Q),B&&f.createElement("div",{className:Y(`${O}-container`,j.container),style:K.container},p))};eS.setDefaultIndicator=e=>{LH=e;};let iu=null,vu=e=>e(),zp=[],Fp={};function b8(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Fp,i=e?.()||document.body;return {getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const $pe=q.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=f.useContext($t),i=Fp.prefixCls||o("message"),s=f.useContext(w0),[l,u]=Hz({...n,prefixCls:i,...s.message});return q.useImperativeHandle(t,()=>{const d={...l};return Object.keys(d).forEach(m=>{d[m]=(...p)=>(r(),l[m].apply(l,p));}),{instance:d,sync:r}}),u}),Epe=q.forwardRef((e,t)=>{const[n,r]=q.useState(b8),o=()=>{r(b8);};q.useEffect(o,[]);const i=kT(),s=i.getRootPrefixCls(),l=i.getIconPrefixCls(),u=i.getTheme(),d=q.createElement($pe,{ref:t,sync:o,messageConfig:n});return q.createElement(Vo,{prefixCls:s,iconPrefixCls:l,theme:u},i.holderRender?i.holderRender(d):d)}),tS=()=>{if(!iu){const e=document.createDocumentFragment(),t={fragment:e};iu=t,vu(()=>{B1(q.createElement(Epe,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,tS());});}}),e);});return}iu.instance&&(zp.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case "open":{vu(()=>{const r=iu.instance.open({...Fp,...e.config});r?.then(e.resolve),e.setCloseFn(r);});break}case "destroy":vu(()=>{iu?.instance.destroy(e.key);});break;default:vu(()=>{var r;const o=(r=iu.instance)[t].apply(r,Qt(e.args));o?.then(e.resolve),e.setCloseFn(o);});}}),zp=[]);};function Mpe(e){Fp={...Fp,...e},vu(()=>{iu?.sync?.();});}function Tpe(e){const t=BT(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i;}};return zp.push(o),()=>{r?vu(()=>{r();}):o.skipped=true;}});return tS(),t}function Ape(e,t){const n=BT(r=>{let o;const i={type:e,args:t,resolve:r,setCloseFn:s=>{o=s;}};return zp.push(i),()=>{o?vu(()=>{o();}):i.skipped=true;}});return tS(),n}const Rpe=e=>{zp.push({type:"destroy",key:e}),tS();},Npe=["success","info","warning","error","loading"],Ppe={open:Tpe,destroy:Rpe,config:Mpe,useMessage:Vz,_InternalPanelDoNotUseOrYouWillBeFired:Ire},OA=Ppe;Npe.forEach(e=>{OA[e]=(...t)=>Ape(e,t);});const Ipe=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($t),{className:b,style:y,classNames:S,styles:x}=Gt("modal"),$=g(),w=t||g("modal"),M=Zn($),[T,A]=CF(w,M),[P,N]=Yt([S,d],[x,m],{props:e}),I=`${w}-confirm`;let O={};return i?O={closable:o??false,title:"",footer:"",children:f.createElement(wF,{...e,prefixCls:w,confirmPrefixCls:I,rootPrefixCls:$,content:l})}:O={closable:o??true,title:s,footer:u!==null&&f.createElement(vF,{...e}),children:l},f.createElement(lF,{prefixCls:w,className:Y(T,`${w}-pure-panel`,i&&I,i&&`${I}-${i}`,n,b,A,M,P.root),style:{...y,...N.root},...p,closeIcon:gF(w,r),closable:o,classNames:P,styles:N,...O})},Ope=HF(Ipe);function kH(e){return Mg(TF(e))}const _s=xF;_s.useModal=IF;_s.info=function(t){return Mg(AF(t))};_s.success=function(t){return Mg(RF(t))};_s.error=function(t){return Mg(NF(t))};_s.warning=kH;_s.warn=kH;_s.confirm=function(t){return Mg(PF(t))};_s.destroyAll=function(){for(;pu.length;){const t=pu.pop();t&&t();}};_s.config=pae;_s._InternalPanelDoNotUseOrYouWillBeFired=Ope;let nf=null,Ny=e=>e(),z0=[],Hp={};function y8(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:s}=Hp,l=e?.()||document.body;return {getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:s}}const Dpe=q.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=f.useContext($t),i=Hp.prefixCls||o("notification"),s=f.useContext(w0),[l,u]=BF({...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}),Lpe=q.forwardRef((e,t)=>{const[n,r]=q.useState(y8),o=()=>{r(y8);};q.useEffect(o,[]);const i=kT(),s=i.getRootPrefixCls(),l=i.getIconPrefixCls(),u=i.getTheme(),d=q.createElement(Dpe,{ref:t,sync:o,notificationConfig:n});return q.createElement(Vo,{prefixCls:s,iconPrefixCls:l,theme:u},i.holderRender?i.holderRender(d):d)}),DA=()=>{if(!nf){const e=document.createDocumentFragment(),t={fragment:e};nf=t,Ny(()=>{B1(q.createElement(Lpe,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,DA());});}}),e);});return}nf.instance&&(z0.forEach(e=>{switch(e.type){case "open":{Ny(()=>{nf.instance.open({...Hp,...e.config});});break}case "destroy":Ny(()=>{nf?.instance?.destroy(e.key);});break}}),z0=[]);};function kpe(e){Hp={...Hp,...e},Ny(()=>{nf?.sync?.();});}function _H(e){z0.push({type:"open",config:e}),DA();}const _pe=e=>{z0.push({type:"destroy",key:e}),DA();},Bpe=["success","info","warning","error"],zpe={open:_H,destroy:_pe,config:kpe,useNotification:zF,_InternalPanelDoNotUseOrYouWillBeFired:Aae},BH=zpe;Bpe.forEach(e=>{BH[e]=t=>_H({...t,type:e});});const Fpe=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}}}}},Hpe=e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},zH=qt("Popconfirm",Fpe,Hpe,{resetStyle:false}),FH=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:s,okText:l,okType:u="primary",icon:d=f.createElement(bg,null),showCancel:m=true,close:p,onConfirm:g,onCancel:b,onPopupClick:y,classNames:S,styles:x}=e,{getPrefixCls:$}=f.useContext($t),[w]=Ho("Popconfirm",Ps.Popconfirm),M=Bf(o),T=Bf(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(lt,{onClick:b,size:"small",...r},s||w?.cancelText),f.createElement(QT,{buttonProps:{size:"small",...FT(u),...n},actionFn:g,close:p,prefixCls:$("btn"),quitOnNullishReturnValue:true,emitEvent:true},l||w?.okText)))},Vpe=e=>{const{prefixCls:t,placement:n,className:r,style:o,...i}=e,{getPrefixCls:s}=f.useContext($t),l=s("popconfirm",t);return zH(l),f.createElement(p7,{placement:n,className:Y(l,r),style:o,content:f.createElement(FH,{prefixCls:l,...i})})},jpe=f.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o,okType:i="primary",icon:s=f.createElement(bg,null),children:l,overlayClassName:u,onOpenChange:d,overlayStyle:m,styles:p,arrow:g,classNames:b,...y}=e,{getPrefixCls:S,className:x,style:$,classNames:w,styles:M,arrow:T,trigger:A}=Gt("popconfirm"),[P,N]=mn(e.defaultOpen??false,e.open),I=W1(g,T),O=o||A||"click",D=X=>{N(X),d?.(X);},L=()=>{D(false);},V=X=>e.onConfirm?.call(void 0,X),U=X=>{D(false),e.onCancel?.call(void 0,X);},W=X=>{const{disabled:B=false}=e;B||D(X);},z=S("popconfirm",n),k={...e,placement:r,trigger:O,okType:i,overlayStyle:m,styles:p,classNames:b},[G,j]=Yt([w,b],[M,p],{props:k}),K=Y(z,x,u,G.root);return zH(z),f.createElement(ks,{arrow:I,...Vn(y,["title"]),trigger:O,placement:r,onOpenChange:W,open:P,ref:t,classNames:{root:K,container:G.container,arrow:G.arrow},styles:{root:{...$,...j.root,...m},container:j.container,arrow:j.arrow},content:f.createElement(FH,{okType:i,icon:s,...e,prefixCls:z,close:L,onConfirm:V,onCancel:U,classNames:G,styles:j}),"data-popover-inject":true},l)}),Vp=jpe;Vp._InternalPanelDoNotUseOrYouWillBeFired=Vpe;function df(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=fT(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 fm,Pg;function Qo(e,t,n){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1);}function Da(e,t){return (e>>>t&1)!=0}function Si(e){if(!e)throw new Error("Assertion error")}var ea=(function(){function e(t,n){cs(this,e),Ct(this,"modeBits",void 0),Ct(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n;}return us(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e})();fm=ea;Ct(ea,"NUMERIC",new fm(1,[10,12,14]));Ct(ea,"ALPHANUMERIC",new fm(2,[9,11,13]));Ct(ea,"BYTE",new fm(4,[8,16,16]));Ct(ea,"KANJI",new fm(8,[8,10,12]));Ct(ea,"ECI",new fm(7,[0,0,0]));var Zi=us(function e(t,n){cs(this,e),Ct(this,"ordinal",void 0),Ct(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n;});Pg=Zi;Ct(Zi,"LOW",new Pg(0,1));Ct(Zi,"MEDIUM",new Pg(1,0));Ct(Zi,"QUARTILE",new Pg(2,3));Ct(Zi,"HIGH",new Pg(3,2));var Ru=(function(){function e(t,n,r){if(cs(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 us(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;Qo(s,8,r);}}catch(l){o.e(l);}finally{o.f();}return new e(ea.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],o=0;o<n.length;){var i=Math.min(n.length-o,3);Qo(parseInt(n.substring(o,o+i),10),i*3+1,r),o+=i;}return new e(ea.NUMERIC,n.length,r)}},{key:"makeAlphanumeric",value:function(n){if(!e.isAlphanumeric(n))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r=[],o;for(o=0;o+2<=n.length;o+=2){var i=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(o))*45;i+=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(o+1)),Qo(i,11,r);}return o<n.length&&Qo(e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(o)),6,r),new e(ea.ALPHANUMERIC,n.length,r)}},{key:"makeSegments",value:function(n){return n==""?[]:e.isNumeric(n)?[e.makeNumeric(n)]:e.isAlphanumeric(n)?[e.makeAlphanumeric(n)]:[e.makeBytes(e.toUtf8ByteArray(n))]}},{key:"makeEci",value:function(n){var r=[];if(n<0)throw new RangeError("ECI assignment value out of range");if(n<128)Qo(n,8,r);else if(n<16384)Qo(2,2,r),Qo(n,14,r);else if(n<1e6)Qo(6,3,r),Qo(n,21,r);else throw new RangeError("ECI assignment value out of range");return new e(ea.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(Ru,"NUMERIC_REGEX",/^[0-9]*$/);Ct(Ru,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/);Ct(Ru,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var sl=(function(){function e(t,n,r,o){cs(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);}Si(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[];}return us(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;Si(s>>>15==0);for(var l=0;l<=5;l++)this.setFunctionModule(8,l,Da(s,l));this.setFunctionModule(8,7,Da(s,6)),this.setFunctionModule(8,8,Da(s,7)),this.setFunctionModule(7,8,Da(s,8));for(var u=9;u<15;u++)this.setFunctionModule(14-u,8,Da(s,u));for(var d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,Da(s,d));for(var m=8;m<15;m++)this.setFunctionModule(8,this.size-15+m,Da(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;Si(o>>>18==0);for(var i=0;i<18;i++){var s=Da(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=[],$=function(T){m.forEach(function(A,P){(T!=d-s||P>=u)&&x.push(A[T]);});},w=0;w<m[0].length;w++)$(w);return Si(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]=Da(n[r>>>3],7-(r&7)),r++);}}Si(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,$=df(this.modules),w;try{for($.s();!(w=$.n()).done;){var M=w.value;x=M.reduce(function(P,N){return P+(N?1:0)},x);}}catch(P){$.e(P);}finally{$.f();}var T=this.size*this.size,A=Math.ceil(Math.abs(x*20-T*10)/T)-1;return Si(0<=A&&A<=9),n+=A*e.PENALTY_N4,Si(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];Si(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=Ru.makeSegments(n);return e.encodeSegments(o,r)}},{key:"encodeBinary",value:function(n,r){var o=Ru.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=Ru.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=[Zi.MEDIUM,Zi.QUARTILE,Zi.HIGH];b<y.length;b++){var S=y[b];l&&d<=e.getNumDataCodewords(u,S)*8&&(g=S);}var x=[],$=df(n),w;try{for($.s();!(w=$.n()).done;){var M=w.value;Qo(M.mode.modeBits,4,x),Qo(M.numChars,M.mode.numCharCountBits(u),x);var T=df(M.getData()),A;try{for(T.s();!(A=T.n()).done;){var P=A.value;x.push(P);}}catch(D){T.e(D);}finally{T.f();}}}catch(D){$.e(D);}finally{$.f();}Si(x.length==d);var N=e.getNumDataCodewords(u,g)*8;Si(x.length<=N),Qo(0,Math.min(4,N-x.length),x),Qo(0,(8-x.length%8)%8,x),Si(x.length%8==0);for(var I=236;x.length<N;I^=253)Qo(I,8,x);for(var O=[];O.length*8<x.length;)O.push(0);return x.forEach(function(D,L){O[L>>>3]|=D<<7-(L&7);}),new e(u,g,O,s)}},{key:"getNumRawDataModules",value:function(n){if(n<e.MIN_VERSION||n>e.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var o=Math.floor(n/7)+2;r-=(25*o-10)*o-55,n>=7&&(r-=36);}return Si(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 Si(o>>>8==0),o}}]),e})();Ct(sl,"MIN_VERSION",1);Ct(sl,"MAX_VERSION",40);Ct(sl,"PENALTY_N1",3);Ct(sl,"PENALTY_N2",3);Ct(sl,"PENALTY_N3",40);Ct(sl,"PENALTY_N4",10);Ct(sl,"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(sl,"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 Upe={L:Zi.LOW,M:Zi.MEDIUM,Q:Zi.QUARTILE,H:Zi.HIGH},HH=128,VH="L",jH="#FFFFFF",UH="#000000",WH=false,GH=1,Wpe=4,Gpe=0,qpe=.1,qH=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("")},KH=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})})},Kpe=function(t,n,r,o){if(o==null)return null;var i=t.length+r*2,s=Math.floor(n*qpe),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),$=Math.ceil(d+p-S);b={x:y,y:S,w:x,h:$};}var w=o.crossOrigin;return {x:m,y:p,h:d,w:u,excavation:b,opacity:g,crossOrigin:w}},Ype=function(t,n){return n!=null?Math.max(Math.floor(n),0):t?Wpe:Gpe},Xpe=(function(){try{new Path2D().addPath(new Path2D);}catch{return  false}return  true})(),YH=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,Qt(Ru.makeSegments(y))),b},[]);return sl.encodeSegments(g,Upe[r],o,void 0,void 0,d)},[n,r,o,d]);return q.useMemo(function(){var p=m.getModules(),g=Ype(i,s),b=p.length+g*2,y=Kpe(p,u,g,l);return {cells:p,margin:g,numCells:b,calculatedImageSettings:y,qrcode:m}},[m,u,l,i,s])},Qpe=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings","boostLevel"],Zpe=q.forwardRef(function(e,t){var n=e.value,r=e.size,o=r===void 0?HH:r,i=e.level,s=i===void 0?VH:i,l=e.bgColor,u=l===void 0?jH:l,d=e.fgColor,m=d===void 0?UH:d,p=e.includeMargin,g=p===void 0?WH:p,b=e.minVersion,y=b===void 0?GH:b,S=e.marginSize,x=e.style,$=e.imageSettings,w=e.boostLevel,M=J7(e,Qpe),T=$?.src,A=q.useRef(null),P=q.useRef(null),N=q.useCallback(function(j){A.current=j,typeof t=="function"?t(j):t&&(t.current=j);},[t]),I=q.useState(false),O=CT(I,2),D=O[1],L=YH({value:n,level:s,minVersion:y,includeMargin:g,marginSize:S,imageSettings:$,size:o,boostLevel:w}),V=L.margin,U=L.cells,W=L.numCells,z=L.calculatedImageSettings;q.useEffect(function(){if(A.current){var j=A.current,K=j.getContext("2d");if(!K)return;var X=U,B=P.current,H=z!=null&&B!==null&&B.complete&&B.naturalHeight!==0&&B.naturalWidth!==0;H&&z.excavation!=null&&(X=KH(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,Xpe?K.fill(new Path2D(qH(X,V))):U.forEach(function(te,ne){te.forEach(function(re,oe){re&&K.fillRect(oe+V,ne+V,1,1);});}),z&&(K.globalAlpha=z.opacity),H&&K.drawImage(B,z.x+V,z.y+V,z.w,z.h);}}),q.useEffect(function(){D(false);},[T]);var k=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:P,crossOrigin:z?.crossOrigin})),q.createElement(q.Fragment,null,q.createElement("canvas",ur({style:k,height:o,width:o,ref:N,role:"img"},M)),G)}),Jpe=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings","boostLevel"],ege=q.forwardRef(function(e,t){var n=e.value,r=e.size,o=r===void 0?HH:r,i=e.level,s=i===void 0?VH:i,l=e.bgColor,u=l===void 0?jH:l,d=e.fgColor,m=d===void 0?UH:d,p=e.includeMargin,g=p===void 0?WH:p,b=e.minVersion,y=b===void 0?GH:b,S=e.title,x=e.marginSize,$=e.imageSettings,w=e.boostLevel,M=J7(e,Jpe),T=YH({value:n,level:s,minVersion:y,includeMargin:g,marginSize:x,imageSettings:$,size:o,boostLevel:w}),A=T.margin,P=T.cells,N=T.numCells,I=T.calculatedImageSettings,O=P,D=null;$!=null&&I!=null&&(I.excavation!=null&&(O=KH(P,I.excavation)),D=q.createElement("image",{href:$.src,height:I.h,width:I.w,x:I.x+A,y:I.y+A,preserveAspectRatio:"none",opacity:I.opacity,crossOrigin:I.crossOrigin}));var L=qH(O,A);return q.createElement("svg",ur({height:o,width:o,viewBox:"0 0 ".concat(N," ").concat(N),ref:t,role:"img"},M),!!S&&q.createElement("title",null,S),q.createElement("path",{fill:u,d:"M0,0 h".concat(N,"v").concat(N,"H0z"),shapeRendering:"crispEdges"}),q.createElement("path",{fill:m,d:L,shapeRendering:"crispEdges"}),D)}),tge={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 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 nge=(e,t)=>f.createElement(Qn,E3({},e,{ref:t,icon:tge})),rge=f.forwardRef(nge),oge=q.createElement(eS,null);function ige({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(lt,{type:"link",icon:q.createElement(rge,null),onClick:n},t?.refresh)),s=q.createElement("p",{className:`${e}-scanned`},t?.scanned),l={expired:i,loading:oge,scanned:s};return (r??(m=>l[m.status]))({status:o,locale:t,onRefresh:n})}const sge=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o}=e;return {[t]:{...hn(e),display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${ie(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}}},age=e=>({QRCodeCoverBackgroundColor:new vn(e.colorBgContainer).setA(.96).toRgbString()}),lge=qt("QRCode",e=>{const t=Vt(e,{QRCodeTextColor:e.colorText});return sge(t)},age),cge=e=>{const[,t]=Qr(),{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:$,statusRender:w,classNames:M,styles:T,boostLevel:A,...P}=e,{getPrefixCls:N,className:I,style:O,classNames:D,styles:L}=Gt("qrcode"),V={...e,bgColor:x,type:r,size:i,status:d,bordered:m,errorLevel:u},[U,W]=Yt([D,M],[L,T],{props:V}),z=N("qrcode",S),[k,G]=lge(z),j={src:o,x:void 0,y:void 0,height:Fo(s)?s:s?.height??40,width:Fo(s)?s:s?.width??40,excavate:true,crossOrigin:"anonymous"},K=No(P,true),X=Vn(P,Object.keys(K)),B={value:n,size:i,level:u,bgColor:x,fgColor:l,style:{width:g?.width,height:g?.height},imageSettings:o?j:void 0,marginSize:$,boostLevel:A,...K},[H]=Ho("QRCode");if(!n)return null;const Q=Y(z,b,y,k,G,I,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(ige,{prefixCls:z,locale:H,status:d,onRefresh:p,statusRender:w})),r==="canvas"?q.createElement(Zpe,{...B}):q.createElement(ege,{...B}))};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 XH=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]=mn(r??false,n);function $(A,P){let N=S;return o||(N=A,x(N),d?.(N,P)),N}function w(A){A.which===st.LEFT?$(false,A):A.which===st.RIGHT&&$(true,A),m?.(A);}function M(A){const P=$(!S,A);u?.(P,A);}const T=Y(e,t,{[`${e}-checked`]:S,[`${e}-disabled`]:o});return f.createElement("button",M3({},b,{type:"button",role:"switch","aria-checked":S,disabled:o,className:T,ref:y,onKeyDown:w,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)))});XH.displayName="Switch";const uge=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:s,handleSizeSM:l,calc:u}=e,d=`${t}-inner`,m=ie(u(l).add(u(r).mul(2)).equal()),p=ie(u(s).mul(2).equal());return {[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:ie(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% - ${ie(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()}}}}}}},dge=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}}}},fge=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`,...Wa(),"&::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:'""',...Wa()}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${ie(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}}}}},mge=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:s,switchDuration:l,calc:u}=e,d=`${t}-inner`,m=ie(u(s).add(u(r).mul(2)).equal()),p=ie(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(", "),...Wa(),[`${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(", "),...Wa()},[`${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()}}}}}},hge=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return {[t]:{...hn(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:ie(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",...Wa(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...ai(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}}}},pge=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 vn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:u/2,innerMaxMargin:u+l+l*2,innerMinMarginSM:d/2,innerMaxMarginSM:d+l+l*2}},gge=qt("Switch",e=>{const t=Vt(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 [hge(t),mge(t),fge(t),dge(t),uge(t)]},pge),vge=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]=mn(p??g??false,d??m),{getPrefixCls:M,direction:T,className:A,style:P,classNames:N,styles:I}=Gt("switch"),O=f.useContext(po),D=(o??O)||i,L=M("switch",n),[V,U]=gge(L),W=yr(r),z={...e,size:W,disabled:D},[k,G]=Yt([N,S],[I,y],{props:z}),j=f.createElement("div",{className:Y(`${L}-handle`,k.indicator),style:G.indicator},i&&f.createElement(_1,{className:`${L}-loading-icon`})),K=Y(A,{[`${L}-small`]:W==="small",[`${L}-loading`]:i,[`${L}-rtl`]:T==="rtl"},s,l,k.root,V,U),X={...G.root,...P,...u},B=(...H)=>{w(H[0]),b?.(...H);};return f.createElement(Sg,{component:"Switch",disabled:D},f.createElement(XH,{...x,classNames:k,styles:G,checked:$,onChange:B,prefixCls:L,className:K,style:X,disabled:D,ref:t,loadingIcon:j}))}),QH=vge;QH.__ANT_SWITCH=true;const bge=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]:{...hn(e),display:"inline-block",height:"auto",paddingInline:s,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${ie(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}}}}},LA=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Vt(e,{tagFontSize:o,tagLineHeight:ie(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},kA=e=>{const t=YT(new ei(e.colorBgSolid),"#fff")?"#000":"#fff";return {defaultBg:new vn(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},_A=qt("Tag",e=>{const t=LA(e);return bge(t)},kA),ZH=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($t),y=f.useContext(po),S=m??y,x=A=>{S||(u?.(!i),d?.(A));},$=g("tag",n),[w,M]=_A($),T=Y($,`${$}-checkable`,{[`${$}-checkable-checked`]:i,[`${$}-checkable-disabled`]:S},b?.className,o,w,M);return f.createElement("span",{...p,ref:t,style:{...r,...b?.style},className:T,onClick:x},l,f.createElement("span",null,s))}),yge=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:$,className:w,style:M,classNames:T,styles:A}=Gt("tag"),P=x("tag",r),N=`${P}-checkable-group`,I=Zn(P),[O,D]=_A(P,I),[L,V]=Yt([T,l],[A,u],{props:e}),U=f.useMemo(()=>Array.isArray(m)?m.map(K=>Cn(K)?K:{value:K,label:K}):[],[m]),[W,z]=mn(g,p),k=(K,X)=>{let B=null;if(y){const H=W||[];B=K?[].concat(Qt(H),[X.value]):H.filter(Q=>Q!==X.value);}else B=K?X.value:null;z(B),b?.(B);},G=q.useRef(null);f.useImperativeHandle(t,()=>({nativeElement:G.current}));const j=No(S,{aria:true,data:true});return q.createElement("div",{...j,className:Y(N,w,o,{[`${N}-disabled`]:d,[`${N}-rtl`]:$==="rtl"},O,D,i,L.root),style:{...M,...V.root,...s},id:n,ref:G},U.map(K=>q.createElement(ZH,{key:K.value,className:Y(`${N}-item`,L.item),style:V.item,checked:y?(W||[]).includes(K.value):W===K.value,onChange:X=>k(X,K),disabled:d},K.label)))});function Sge(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=G1(n),d=Oce(n),m={};if(!u&&!d&&l)if(s==="solid")m.backgroundColor=n;else {const p=new vn(l).toHsl();p.l=.95,m.backgroundColor=new vn(p).toHexString(),m.color=n,s==="outlined"&&(m.borderColor=n);}return [s,l,u,d,m]},[n,r,o,t])}const Cge=e=>I1(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}}})),xge=nm(["Tag","preset"],e=>{const t=LA(e);return Cge(t)},kA);function wge(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const kb=(e,t,n)=>{const r=wge(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}`]}}}},$ge=nm(["Tag","status"],e=>{const t=LA(e);return [kb(t,"success","Success"),kb(t,"processing","Info"),kb(t,"error","Error"),kb(t,"warning","Warning")]},kA),Ege=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:s,icon:l,color:u,variant:d,onClose:m,bordered:p,disabled:g,href:b,target:y,styles:S,classNames:x,...$}=e,{getPrefixCls:w,direction:M,className:T,variant:A,style:P,classNames:N,styles:I}=Gt("tag"),[O,D,L,V,U]=Sge(e,A),W=L||V,z=f.useContext(po),k=g??z,{tag:G}=f.useContext($t),[j,K]=f.useState(true),X=Vn($,["closeIcon","closable"]),B={...e,color:D,variant:O,disabled:k},[H,Q]=Yt([N,x],[I,S],{props:B}),J=f.useMemo(()=>{let he={...Q.root,...P,...i};return k||(he={...U,...he}),he},[Q.root,P,i,U,k]),te=w("tag",n),[ne,re]=_A(te),oe=Y(te,T,H.root,`${te}-${O}`,{[`${te}-${D}`]:W,[`${te}-hidden`]:!j,[`${te}-rtl`]:M==="rtl",[`${te}-disabled`]:k},r,o,ne,re),de=he=>{k||(he.stopPropagation(),m?.(he),!he.defaultPrevented&&K(false));},[,ee]=IT(ac(e),ac(G),{closable:false,closeIconRender:he=>{const ge=f.createElement("span",{className:`${te}-close-icon`,onClick:de},he);return Nz(he,ge,Ce=>({onClick:Re=>{Ce?.onClick?.(Re),de(Re);},className:Y(Ce?.className,`${te}-close-icon`)}))}}),se=typeof $.onClick=="function"||s&&s.type==="a",le=Yr(l,{className:Y(f.isValidElement(l)?l.props?.className:void 0,H.icon),style:Q.icon}),ae=le?f.createElement(f.Fragment,null,le,s&&f.createElement("span",{className:H.content,style:Q.content},s)):s,Ee=b?"a":"span",ce=f.createElement(Ee,{...X,ref:t,className:oe,style:J,href:k?void 0:b,target:y,onClick:k?void 0:X.onClick,...b&&k?{"aria-disabled":true}:{}},ae,ee,L&&f.createElement(xge,{key:"preset",prefixCls:te}),V&&f.createElement($ge,{key:"status",prefixCls:te}));return se?f.createElement(Sg,{component:"Tag"},ce):ce}),Ts=Ege;Ts.CheckableTag=ZH;Ts.CheckableTagGroup=yge;const Mge=e=>{const t=e?.algorithm?u0(e.algorithm):$T,n={...Df,...e?.token};return EB(n,{override:e?.token},t,qB)};function Tge(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??P1(e),r=n.fontSizeSM,o=n.controlHeight-4;return {...n,...Tge(t??e),...GB(r),controlHeight:o,...WB({...n,controlHeight:o})}},Wi=(e,t)=>new vn(e).setA(t).toRgbString(),eu=(e,t)=>new vn(e).lighten(t).toHexString(),S8=e=>{const t=gg(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]}},Rge=(e,t,n)=>{const r=e||"#000",o=t||"#fff";return {colorBgBase:r,colorTextBase:o,colorShadow:n||"rgba(255, 255, 255, 0.2)",colorText:Wi(o,.85),colorTextSecondary:Wi(o,.65),colorTextTertiary:Wi(o,.45),colorTextQuaternary:Wi(o,.25),colorFill:Wi(o,.18),colorFillSecondary:Wi(o,.12),colorFillTertiary:Wi(o,.08),colorFillQuaternary:Wi(o,.04),colorBgSolid:Wi(o,.95),colorBgSolidHover:Wi(o,1),colorBgSolidActive:Wi(o,.9),colorBgElevated:eu(r,12),colorBgContainer:eu(r,8),colorBgLayout:eu(r,0),colorBgSpotlight:eu(r,26),colorBgBlur:Wi(o,.04),colorBorder:eu(r,26),colorBorderDisabled:eu(r,26),colorBorderSecondary:eu(r,19)}},Nge=(e,t)=>{const n=Object.keys(wT).map(s=>{const l=gg(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??P1(e),o=UB(e,{generateColorPalettes:S8,generateNeutralColorPalettes:Rge}),i=ia.reduce((s,l)=>{const u=e[l];if(u){const d=S8(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 Pge(){const[e,t,n,r]=Qr();return {theme:e,token:t,hashId:n,cssVar:r}}const F0={defaultSeed:Ip.token,useToken:Pge,defaultAlgorithm:P1,darkAlgorithm:Nge,compactAlgorithm:Age,getDesignToken:Mge,defaultConfig:Ip,_internalContext:ET},H0=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},Ige=e=>{const t=new Map;return e.forEach(({disabled:n,key:r},o)=>{n&&t.set(r,o);}),t};function Oge(e,t){const n=e==="right";return t!=="rtl"?n?q.createElement(kf,null):q.createElement(Lp,null):n?q.createElement(Lp,null):q.createElement(kf,null)}const C8=({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=Oge(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(lt,{type:"primary",size:"small",disabled:l||!p,onClick:b=>m?.(b),icon:g},d)},JH=e=>{const{className:t,style:n,oneWay:r,actions:o,...i}=e;return q.createElement("div",{className:t,style:n},q.createElement(C8,{type:"right",actions:o,...i}),!r&&q.createElement(C8,{type:"left",actions:o,...i}),o.slice(r?1:2))},Dge=(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=H0(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)]},Lge=[];function _b(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function x8(e){return Array.from(e).join(";")}function kge(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]=mn(Lge,n),l=f.useMemo(()=>_b(i,r),[i,r]),u=f.useMemo(()=>_b(i,o),[i,o]);f.useEffect(()=>{s([].concat(Qt(_b(i,r)),Qt(_b(i,o))));},[x8(r),x8(o)]);const d=At(p=>{s([].concat(Qt(p),Qt(u)));}),m=At(p=>{s([].concat(Qt(l),Qt(p)));});return [l,u,d,m]}const eV=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(dm,{placeholder:t,className:r,value:n,onChange:l,disabled:o,allowClear:true,prefix:f.createElement(dA,null)})};var _ge={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 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 Bge=(e,t)=>f.createElement(Qn,T3({},e,{ref:t,icon:_ge})),zge=f.forwardRef(Bge),Fge=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"||Fo(o))&&(y=String(o));const[S]=Ho("Transfer",Ps.Transfer),x={className:b,style:r.item,title:y},$=f.createElement("span",{className:Y(`${t}-content-item-text`,n.itemContent),style:r.itemContent},i);return p?f.createElement("li",{...x},$,f.createElement("button",{type:"button",disabled:g,className:`${t}-content-item-remove`,"aria-label":S?.remove,onClick:()=>m?.(s)},f.createElement(zge,null))):(x.onClick=g?void 0:w=>d(s,w),f.createElement("li",{...x},f.createElement(Oi,{className:Y(`${t}-checkbox`,n.itemIcon),style:r.itemIcon,checked:l,disabled:g}),$))},Hge=f.memo(Fge),Vge=["handleFilter","handleClear","checkedKeys"],jge=e=>({...{simple:true,showSizeChanger:false,showLessItems:false},...e}),Uge=(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(()=>{if(!d)return null;const I=Cn(d)?d:{};return jge(I)},[d]),[x,$]=mn(10,S?.pageSize);f.useEffect(()=>{if(S){const I=Math.ceil(i.length/x);y(Math.min(b,I));}},[i,S,x]);const w=(I,O)=>{p(I.key,!s.includes(I.key),O);},M=I=>{g?.([I.key]);},T=I=>{y(I);},A=(I,O)=>{y(I),$(O);},P=f.useMemo(()=>S?i.slice((b-1)*x,b*x):i,[b,i,S,x]);f.useImperativeHandle(t,()=>({items:P}));const N=S?f.createElement(upe,{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},(P||[]).map(({renderedEl:I,renderedText:O,item:D})=>f.createElement(Hge,{key:D.key,prefixCls:n,classNames:r,styles:o,item:D,renderedText:O,renderedEl:I,showRemove:u,onClick:w,onRemove:M,checked:s.includes(D.key),disabled:l}))),N)},Wge=f.forwardRef(Uge),Gge=()=>null;function qge(e){return !!(e&&!q.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Th(e){return e.filter(t=>!t.disabled).map(t=>t.key)}function Kge(e,t){for(const n of [e,t.title,t.key])if(typeof n=="string"||Fo(n))return String(n);return ""}const Yge=e=>e!==void 0,Xge=e=>Cn(e)?{...e,defaultValue:e.defaultValue||""}:{defaultValue:"",placeholder:""},A3=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:$,showSelectAll:w=true,showRemove:M,pagination:T,direction:A,itemsUnit:P,itemUnit:N,selectAllLabel:I,selectionsIcon:O,footer:D,renderList:L,onItemSelectAll:V,onItemRemove:U,handleFilter:W,handleClear:z,filterOption:k,render:G=Gge}=e,j=`${t}-section`,K=`${t}-list`,X=Xge(d),[B,H]=f.useState(X.defaultValue),Q=f.useRef({}),J=ve=>{H(ve.target.value),W(ve);},te=()=>{H(""),z();},ne=(ve,Te)=>typeof k=="function"?k(B,Te,A):ve.includes(B),re=ve=>{let Te=L?L({...ve,onItemSelect:(Ie,Ue)=>ve.onItemSelect(Ie,Ue)}):null;const Se=!!Te;return Se||(Te=q.createElement(Wge,{ref:Q,...ve,prefixCls:K})),{customize:Se,bodyContent:Te}},oe=ve=>{const Te=G(ve),Se=qge(Te),Ie=Se?Te.label:Te,Ue=Se?Te.value:Kge(Te,ve);return {item:ve,renderedEl:Ie,renderedText:Ue}},de=f.useMemo(()=>Array.isArray(p)?p[A==="left"?0:1]:p,[p,A]),[ee,se]=f.useMemo(()=>{const ve=[],Te=[];return i.forEach(Se=>{const Ie=oe(Se);B&&!ne(Ie.renderedText,Se)||(ve.push(Se),Te.push(Ie));}),[ve,Te]},[i,B]),le=f.useMemo(()=>ee.filter(ve=>l.includes(ve.key)&&!ve.disabled),[l,ee]),ae=f.useMemo(()=>{if(le.length===0)return "none";const ve=H0(l);return ee.every(Te=>ve.has(Te.key)||!!Te.disabled)?"all":"part"},[le.length,l,ee]),Ee=()=>{const ve=d?q.createElement("div",{className:`${K}-body-search-wrapper`},q.createElement(eV,{prefixCls:`${K}-search`,onChange:J,handleClear:te,placeholder:X.placeholder||m,value:B,disabled:u})):null,{customize:Te,bodyContent:Se}=re({...Vn(e,Vge),filteredItems:ee,filteredRenderItems:se,selectedKeys:l,classNames:r,styles:o});let Ie;return Te?Ie=q.createElement("div",{className:`${K}-body-customize-wrapper`},Se):Ie=ee.length?Se:q.createElement("div",{className:`${K}-body-not-found`},de),q.createElement("div",{className:Y(`${K}-body`,{[`${K}-body-with-search`]:d},r.body),style:o.body},ve,Ie)},ce=q.createElement(Oi,{disabled:i.filter(ve=>!ve.disabled).length===0||u,checked:ae==="all",indeterminate:ae==="part",className:`${K}-checkbox`,onChange:()=>{V?.(ee.filter(ve=>!ve.disabled).map(({key:ve})=>ve),ae!=="all");}}),he=(ve,Te)=>{if(I)return typeof I=="function"?I({selectedCount:ve,totalCount:Te}):I;const Se=Te>1?P:N;return q.createElement(q.Fragment,null,(ve>0?`${ve}/`:"")+Te," ",Se)},ge=D&&(D.length<2?D(e):D(e,{direction:A})),Ce=ge?q.createElement("div",{className:Y(`${K}-footer`,r.footer),style:o.footer},ge):null,Re=!M&&!T&&ce;let et;M?et=[T?{key:"removeCurrent",label:$,onClick(){const ve=Th((Q.current?.items||[]).map(Te=>Te.item));U?.(ve);}}:null,{key:"removeAll",label:x,onClick(){U?.(Th(ee));}}].filter(Boolean):et=[{key:"selectAll",label:ae==="all"?b:g,onClick(){const ve=Th(ee);V?.(ve,ve.length!==l.length);}},T?{key:"selectCurrent",label:y,onClick(){const ve=Q.current?.items||[];V?.(Th(ve.map(Te=>Te.item)),true);}}:null,{key:"selectInvert",label:S,onClick(){const ve=Th((Q.current?.items||[]).map(Ie=>Ie.item)),Te=new Set(l),Se=new Set(Te);ve.forEach(Ie=>{Te.has(Ie)?Se.delete(Ie):Se.add(Ie);}),V?.(Qt(Se),"replace");}}];const Ne=q.createElement(Ec,{className:`${K}-header-dropdown`,menu:{items:et},disabled:u},Yge(O)?O:q.createElement(uA,null));return q.createElement("div",{className:Y(j,r.section,{[`${j}-with-pagination`]:!!T,[`${j}-with-footer`]:!!ge}),style:{...n,...o.section}},q.createElement("div",{className:Y(`${K}-header`,r.header),style:o.header},w?q.createElement(q.Fragment,null,Re,Ne):null,q.createElement("span",{className:`${K}-header-selected`},he(le.length,ee.length)),q.createElement("span",{className:Y(`${K}-header-title`,r.title),style:o.title},s)),Ee(),Ce)},Qge=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"}}}},w8=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-section`]:{borderColor:t,[`${n}-list-search:not([disabled])`]:{borderColor:r}}}},Zge=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:{...w8(e,e.colorError)},[`${t}-status-warning`]:{...w8(e,e.colorWarning)}}},Jge=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:$,lineType:w,antCls:M,iconCls:T,motionDurationSlow:A,controlItemBgHover:P,borderRadiusLG:N,colorBgContainer:I,colorText:O,controlItemBgActiveHover:D}=e,L=ie(e.calc(N).sub(o).equal());return {display:"flex",flexDirection:"column",width:b,height:g,border:`${ie(o)} ${w} ${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:`${ie(e.calc(l).sub(o).equal())} ${ie($)} ${ie(l)}`,color:O,background:I,borderBottom:`${ie(o)} ${w} ${r}`,borderRadius:`${ie(N)} ${ie(N)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":{...sa,flex:"0 1 auto",textAlign:"end",marginInlineStart:"auto"},"&-dropdown":{...Xu(),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:$}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${L} ${L}`,"&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${ie(u)} ${ie($)}`,transition:`all ${A}`,"> *:not(:last-child)":{marginInlineEnd:x},"> *":{flex:"none"},"&-text":{...sa,flex:"auto"},"&-remove":{...Rte(e),color:n,"&:hover, &:focus":{color:p},"&:disabled":{color:m,cursor:"not-allowed"}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:P,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:`${ie(o)} ${w} ${r}`,[`${M}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:m,textAlign:"center"},"&-footer":{borderTop:`${ie(o)} ${w} ${r}`},"&-checkbox":{lineHeight:1}}}},eve=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:o,marginXXS:i,fontSizeIcon:s,colorBgContainerDisabled:l}=e;return {[r]:{...hn(e),position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-section`]:{background:l}},[`${r}-section`]:Jge(e),[`${r}-actions`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${ie(o)}`,verticalAlign:"middle",gap:i,[`${t}-btn ${n}`]:{fontSize:s}}}}},tve=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},nve=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)}},rve=qt("Transfer",e=>{const t=Vt(e);return [eve(t),Qge(t),Zge(t),tve(t)]},nve),nS=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:$,showSearch:w=false,showSelectAll:M,oneWay:T,pagination:A,status:P,selectionsIcon:N,filterOption:I,render:O,footer:D,children:L,rowKey:V,onScroll:U,onChange:W,onSearch:z,onSelectChange:k}=e,{getPrefixCls:G,renderEmpty:j,direction:K,className:X,style:B,classNames:H,styles:Q,selectionsIcon:J}=Gt("transfer"),te=f.useContext(po),ne=$??te,re={...e,disabled:ne},oe=G("transfer",t),[de,ee]=rve(oe),se=m||d||[],le=K==="rtl",[ae,Ee,ce]=Dge(p,V,g),[he,ge,Ce,Re]=kge(Ee,ce,b),[et,Ne]=aO(Ve=>Ve.key),[ve,Te]=aO(Ve=>Ve.key),Se=f.useCallback((Ve,Xe)=>{if(Ve==="left"){const Mt=typeof Xe=="function"?Xe(he||[]):Xe;Ce(Mt);}else {const Mt=typeof Xe=="function"?Xe(ge||[]):Xe;Re(Mt);}},[he,ge]),Ie=(Ve,Xe)=>{(Ve==="left"?Ne:Te)(Xe);},Ue=f.useCallback((Ve,Xe)=>{Ve==="left"?k?.(Xe,ge):k?.(he,Xe);},[he,ge]),je=Ve=>x??Ve.titles??[],qe=Ve=>{U?.("left",Ve);},Ze=Ve=>{U?.("right",Ve);},Ye=Ve=>{const Xe=Ve==="right"?he:ge,Mt=Ige(ae),wt=Xe.filter(xn=>!Mt.has(xn)),Bt=H0(wt),tn=Ve==="right"?wt.concat(g):g.filter(xn=>!Bt.has(xn)),nn=Ve==="right"?"left":"right";Se(nn,[]),Ue(nn,[]),W?.(tn,Ve,wt);},Be=()=>{Ye("left"),Ie("left",null);},Ke=()=>{Ye("right"),Ie("right",null);},Qe=(Ve,Xe,Mt)=>{Se(Ve,wt=>{let Bt=[];if(Mt==="replace")Bt=Xe;else if(Mt)Bt=Array.from(new Set([].concat(Qt(wt),Qt(Xe))));else {const tn=H0(Xe);Bt=wt.filter(nn=>!tn.has(nn));}return Ue(Ve,Bt),Bt}),Ie(Ve,null);},ke=(Ve,Xe)=>Qe("left",Ve,Xe),Oe=(Ve,Xe)=>Qe("right",Ve,Xe),ct=Ve=>z?.("left",Ve.target.value),Ot=Ve=>z?.("right",Ve.target.value),mt=()=>z?.("left",""),kt=()=>z?.("right",""),yt=(Ve,Xe,Mt,wt,Bt)=>{Xe.has(Mt)&&(Xe.delete(Mt),Ie(Ve,null)),wt&&(Xe.add(Mt),Ie(Ve,Bt));},Dt=(Ve,Xe,Mt,wt)=>{(Ve==="left"?et:ve)(wt,Xe,Mt);},ft=(Ve,Xe,Mt,wt)=>{const Bt=Ve==="left",tn=Bt?he:ge,nn=new Set(tn),xn=(Bt?Ee:ce).filter(Jr=>!Jr.disabled),fr=xn.findIndex(Jr=>Jr.key===Xe);wt&&tn.length>0?Dt(Ve,xn,nn,fr):yt(Ve,nn,Xe,Mt,fr);const bn=Array.from(nn);Ue(Ve,bn),e.selectedKeys||Se(Ve,bn);},ut=(Ve,Xe,Mt)=>{ft("left",Ve,Xe,Mt?.shiftKey);},vt=(Ve,Xe,Mt)=>ft("right",Ve,Xe,Mt?.shiftKey),He=Ve=>{Se("right",[]),W?.(g.filter(Xe=>!Ve.includes(Xe)),"left",Qt(Ve));},Ge=Ve=>typeof l=="function"?l({direction:Ve}):l||{},be=f.useContext(Po),{hasFeedback:Me,status:ye}=be,me=Ve=>({...Ve,notFoundContent:j?.("Transfer")||q.createElement(o7,{componentName:"Transfer"}),...S}),Le=sm(ye,P),xe=!L&&A,ze=ce.filter(Ve=>ge.includes(Ve.key)&&!Ve.disabled).length>0,tt=Ee.filter(Ve=>he.includes(Ve.key)&&!Ve.disabled).length>0,[it,dt]=Yt([H,o],[Q,i],{props:re}),Et=Y(oe,{[`${oe}-disabled`]:ne,[`${oe}-customize-list`]:!!L,[`${oe}-rtl`]:le},dc(oe,Le,Me),X,n,r,de,ee,it.root),[_t]=Ho("Transfer",Ps.Transfer),Nt=me(_t),[pn,Wn]=je(Nt),at=N??J;return q.createElement("div",{className:Et,style:{...B,...dt.root,...s}},q.createElement(A3,{prefixCls:oe,style:Ge("left"),classNames:it,styles:dt,titleText:pn,dataSource:Ee,filterOption:I,checkedKeys:he,handleFilter:ct,handleClear:mt,onItemSelect:ut,onItemSelectAll:ke,render:O,showSearch:w,renderList:L,footer:D,onScroll:qe,disabled:ne,direction:le?"right":"left",showSelectAll:M,selectAllLabel:y[0],pagination:xe,selectionsIcon:at,...Nt}),q.createElement(JH,{className:Y(`${oe}-actions`,it.actions),rightActive:tt,moveToRight:Ke,leftActive:ze,actions:se,moveToLeft:Be,style:{...u,...dt.actions},disabled:ne,direction:K,oneWay:T}),q.createElement(A3,{prefixCls:oe,style:Ge("right"),classNames:it,styles:dt,titleText:Wn,dataSource:ce,filterOption:I,checkedKeys:ge,handleFilter:Ot,handleClear:kt,onItemSelect:vt,onItemSelectAll:Oe,onItemRemove:He,render:O,showSearch:w,renderList:L,footer:D,onScroll:Ze,disabled:ne,direction:le?"left":"right",showSelectAll:M,selectAllLabel:y[1],showRemove:T,pagination:xe,selectionsIcon:at,...Nt}))};nS.List=A3;nS.Search=eV;nS.Operation=JH;const{proxyStateMap:ove}=eT(),ive=e=>ove.has(e),R3=new Set;iZ("createHandler",e=>(...t)=>{const n=e(...t),r=n.get||((o,i,s)=>Reflect.get(o,i,s));return n.get=(o,i,s)=>{for(const l of R3)l(o,i,s);return r(o,i,s)},n});const Yw=[],sve=e=>{Yw.length?Yw[Yw.length-1].add(e):e();};function ave(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=F4(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=da(u,()=>sve(o),true);t.set(u,d);}},s=()=>{n.clear();const u=(d,m,p)=>{if(!ive(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,F4(b)]);};R3.add(u);try{e();}finally{R3.delete(u),i();}};return s(),()=>{for(const u of t.values())u();t.clear(),n.clear();}}function lve(e,t){const n=ave(e);return ()=>{n();}}function zf(e,t,n){return e<t?t:e>n?n:e}function cve(e){return e.value}var BA=class tV{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 tV(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=cve(n);try{return await t(r)}finally{this.idleState.set(n,true),setTimeout(()=>this.replenish(n));}}};async function aa(e,t,n){if(!e.length)return [];n=Math.min(n,e.length);const r=BA.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 zA(e){const t=BA.fromConcurrency(e,"pLimit");return function(r,...o){return t.dispatch(()=>r(...o))}}var uve=dve;function dve(e,t){const n=BA.fromConcurrency(t,"createLimitedVersionOfFn");return function(...o){return n.dispatch(()=>e(...o))}}function FA(e,t,n,r){let o=e[t];return da(e,()=>{const i=e[t];Object.is(o,i)||n(o=i);},r)}const{proxyStateMap:fve,snapCache:mve}=eT(),Bb=e=>fve.has(e);function nV(e){const t=[];let n=0;const r=new Map,o=new WeakMap,i=()=>{const d=mve.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 Bb(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(!Bb(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(!Bb(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(!Bb(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=_n(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:hve,snapCache:pve}=eT(),zb=e=>typeof e=="object"?_n({x:e}).x:e,Fb=e=>hve.has(e);function Or(e){const t=[],n=new Map;let r=0;const o=new WeakMap,i=()=>{const x=pve.get(y),$=x?.[1];if($&&!o.has($)){const w=new Map(n);o.set($,w);}},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 $=zb(x);n.set($,r),t[r++]=$;}}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 $=[];return x.forEach(w=>$.push(w)),$}throw new TypeError("Expected an iterable")};function m(x){this.epoch;const $=Or(d(x)),w=Or();for(const M of this.values())$.has(M)&&w.add(M);return Or(w)}function p(x){this.epoch;const $=Or(d(x)),w=Or();for(const M of this.values())w.add(M);for(const M of $.values())w.add(M);return Or(w)}function g(x){this.epoch;const $=Or(d(x)),w=Or();for(const M of this.values())$.has(M)||w.add(M);return Or(w)}function b(x){this.epoch;const $=Or(d(x)),w=Or();for(const M of this.values())$.has(M)||w.add(M);for(const M of $.values())this.has(M)||w.add(M);return Or(w)}const y={data:t,index:r,epoch:0,get size(){return Fb(this)||i(),n.size},has(x){const $=s(this),w=zb(x);return this.epoch,$.has(w)},add(x){if(!Fb(this))throw new Error("Cannot perform mutations on a snapshot");const $=zb(x);return n.has($)||(n.set($,this.index),this.data[this.index++]=$,this.epoch++),this},delete(x){if(!Fb(this))throw new Error("Cannot perform mutations on a snapshot");const $=zb(x),w=n.get($);return w===void 0?false:(delete this.data[w],n.delete($),this.epoch++,true)},clear(){if(!Fb(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(w=>{x(this.data[w],this.data[w],this);});},*values(){this.epoch;const x=s(this);for(const $ of x.values())yield this.data[$];},keys(){return this.epoch,this.values()},*entries(){this.epoch;const x=s(this);for(const $ of x.values()){const w=this.data[$];yield [w,w];}},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 $ of this.values())if(!x.has($))return  false;return  true},isSupersetOf(x){this.epoch;const $=d(x);for(const w of $)if(!this.has(w))return  false;return  true},isDisjointFrom(x){this.epoch;for(const $ of this.values())if(x.has($))return  false;return  true}},S=_n(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 rV=typeof GM_info<"u"&&GM_info.scriptHandler==="Userscripts";function wi(e,t=true){if(e.startsWith("/")&&(e=location.origin+e),rV){GM.openInTab(e,!t);return}GM.openInTab(e,{active:t,insert:true,setParent:true});}function HA({storageKey:e,onUpdate:t,setPersist:n}){if(typeof GM_addValueChangeListener>"u")return;const r=zA(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 Mc(e){const t=_n({value:e()});function n(){return pt(t).value}function r(){return t.value}function o(){return t.value=e()}const i=ua(o,100,{edges:["leading","trailing"]});return {state:t,use:n,get:r,update:o,updateThrottled:i}}function oV(e,t,n){let r=zu(Br(e),t);da(e,()=>{const o=Br(e),i=zu(o,t);ti(r,i)||n(o),r=i;});}function rS(e,t){t.startsWith(Mo)||(t=`${Xr}:${t}`);const n=Object.keys(e),[r,o]=ic(()=>{const s=localStorage.getItem(t);if(!s)return;const l=JSON.parse(s);return zu(l,n)});r&&zo("failed to load from localStorage key=",t,"error=",r);const i=_n({...e,...o});return setTimeout(()=>{da(i,()=>{const s=Br(i);localStorage.setItem(t,JSON.stringify(s));});}),i}async function VA(e,t){async function n(){const o=Object.keys(e);return zu(await GM.getValue(t)||{},o)}const r=_n({...e,...await n()});return setTimeout(()=>{const o=zA(1);da(r,()=>o(async()=>{const i=await n(),s=OQ(i,Br(r));GM.setValue(t,s);}));}),r}async function iV(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(){da(n,()=>{o&&GM.setValue(e,Array.from(Br(n)));}),HA({storageKey:e,setPersist:s=>o=s,onUpdate:r});}return {set:n,replaceAllWith:r}}async function jA(e,t){const r=nV(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(){da(r,()=>{if(!i)return;let l=Array.from(Br(r));t&&(l=t(l)),GM.setValue(e,l);}),HA({storageKey:e,setPersist:l=>i=l,onUpdate:o});}return {map:r,replaceAllWith:o}}const gve=()=>document.querySelector(".bili-header__bar"),UA=Mc(sV);function sV(){const e=gve();return !!(e&&window.getComputedStyle(e).display==="none")}const ju=Mc(function(){if(!sV())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}),WA=Mc(function(){const t=document.documentElement.style.getPropertyValue("--navbar-bounds-padding");return !t||!/^\d+%$/.test(t)?void 0:100-zf(Number(t.replace("%","")),2,10)*2});function vve(){const e=WA.use(),{pureRecommend:t,grid:{useCustomGrid:n}}=jt();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 Ig=Mc(function(){return window.getComputedStyle(document.documentElement).getPropertyValue("--theme-color")}),aV=`${Xr}:evolved-theme-color-hex`;lve(()=>{const e=Ig.get();e&&localStorage.setItem(aV,e);});function lV(){return localStorage.getItem(aV)||Qf.Pink}function bve(){UA.updateThrottled(),ju.updateThrottled(),WA.updateThrottled(),Ig.updateThrottled();}const cV=new MutationObserver(()=>bve());cV.observe(document.documentElement,{attributes:true,attributeFilter:["style"]});cV.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(Ig.updateThrottled,1e3);},{capture:true,passive:true});const uV={maxCount:5,top:ju.get()-4};OA.config(uV);function yve(){const e=ju.use();return C(Tg,{message:{...uV,top:e-4},children:C(Sve,{})})}let Hb,Rt=OA,Ji=BH,GA=_s;function Sve(){return Hb=Tg.useApp(),Rt=Hb.message,Ji=Hb.notification,GA=Hb.modal,null}function Ei(e){return e.filter(Boolean).filter(t=>t.test===void 0?true:typeof t.test=="boolean"?t.test:t.test()).map(t=>x9(t,["test"]))}const Cve=({title:e,titleId:t,...n},r)=>_("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"})]}),xve=f.forwardRef(Cve);function mm(e){return t=>e({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",...t})}const wve=mm(e=>C("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",...e,children:C("path",{d:"M427 116L263 545q-7 19 4.5 35.5T299 597h115L308 872q-7 18 3 31t26 15.5q16 2.5 29-12.5l386-451q10-12 9-26t-11-24q-10-10-25-10H607l172-249q9-13 6.5-27T773 95q-10-10-26-10H471q-15 0-27 8.5T427 116z"})})),$ve=mm(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"})})),Eve=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),qA=f.forwardRef(Eve),Mve=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),Tve=f.forwardRef(Mve),Ave=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),Rve=f.forwardRef(Ave),Nve=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),Pve=f.forwardRef(Nve),Ive=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),Ove=f.forwardRef(Ive),Dve=({title:e,titleId:t,...n},r)=>_("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"})]}),Lve=f.forwardRef(Dve),kve=({title:e,titleId:t,...n},r)=>_("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"})]}),_ve=f.forwardRef(kve),Bve=({title:e,titleId:t,...n},r)=>_("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"})]}),zve=f.forwardRef(Bve),Fve=({title:e,titleId:t,...n},r)=>_("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"})]}),Hve=f.forwardRef(Fve),Vve=({title:e,titleId:t,...n},r)=>_("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"})]}),jve=f.forwardRef(Vve),Uve=({title:e,titleId:t,...n},r)=>_("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:"M5.205 1.494a.75.75 0 0 0-1.41 0l-2 5.5a.75.75 0 1 0 1.41.512L3.389 7h2.222l.184.506a.75.75 0 1 0 1.41-.512zM3.935 5.5L4.5 3.945L5.066 5.5zM2 9.75A.75.75 0 0 1 2.75 9h3.5a.75.75 0 0 1 .592 1.21L4.284 13.5h1.967a.75.75 0 0 1 0 1.5h-3.5a.75.75 0 0 1-.592-1.21l2.559-3.29H2.75A.75.75 0 0 1 2 9.75M12.25 1a.75.75 0 0 1 .75.75v10.69l.72-.72a.75.75 0 1 1 1.06 1.06l-2 2a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 1 1 1.06-1.06l.72.72V1.75a.75.75 0 0 1 .75-.75"})]}),Wve=f.forwardRef(Uve),Gve=({title:e,titleId:t,...n},r)=>_("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 1.75A.75.75 0 0 1 2.75 1h3.5a.75.75 0 0 1 .592 1.21L4.284 5.5H6.25a.75.75 0 1 1 0 1.5h-3.5a.75.75 0 0 1-.592-1.21L4.717 2.5H2.75A.75.75 0 0 1 2 1.75m3.205 6.744a.75.75 0 0 0-1.41 0l-2 5.5a.75.75 0 1 0 1.41.512L3.39 14h2.222l.184.506a.75.75 0 1 0 1.41-.513zM3.935 12.5l.565-1.556l.566 1.556zM12.25 1a.75.75 0 0 1 .75.75v10.69l.72-.72a.75.75 0 1 1 1.06 1.06l-2 2a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 1 1 1.06-1.06l.72.72V1.75a.75.75 0 0 1 .75-.75"})]}),qve=f.forwardRef(Gve),Kve=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),Yve=f.forwardRef(Kve),Xve=({title:e,titleId:t,...n},r)=>_("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"})]}),Qve=f.forwardRef(Xve),Zve=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),Jve=f.forwardRef(Zve),ebe=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),tbe=f.forwardRef(ebe),nbe=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),rbe=f.forwardRef(nbe),obe=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),ibe=f.forwardRef(obe),sbe=({title:e,titleId:t,...n},r)=>_("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"})]}),abe=f.forwardRef(sbe),lbe=({title:e,titleId:t,...n},r)=>_("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"})]}),cbe=f.forwardRef(lbe),ube=({title:e,titleId:t,...n},r)=>_("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"})]}),dbe=f.forwardRef(ube),fbe=({title:e,titleId:t,...n},r)=>_("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,_("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"})}),_("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})})]})]}),mbe=f.forwardRef(fbe),hbe=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),pbe=f.forwardRef(hbe),gbe=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),dV=f.forwardRef(gbe),vbe=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),bbe=f.forwardRef(vbe),ybe=({title:e,titleId:t,...n},r)=>_("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"})]}),Sbe=f.forwardRef(ybe),Cbe=({title:e,titleId:t,...n},r)=>_("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"})]}),fV=f.forwardRef(Cbe),xbe=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),wbe=f.forwardRef(xbe),$be=({title:e,titleId:t,...n},r)=>_("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($be),KA=f.createContext({});function oS(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const Mbe=typeof window<"u",mV=Mbe?f.useLayoutEffect:f.useEffect,iS=f.createContext(null);function YA(e,t){e.indexOf(t)===-1&&e.push(t);}function Ff(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1);}const la=(e,t,n)=>n>t?t:n<e?e:n;let XA=()=>{};const mc={},hV=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function pV(e){return typeof e=="object"&&e!==null}const gV=e=>/^0[^.\s]+$/u.test(e);function vV(e){let t;return ()=>(t===void 0&&(t=e()),t)}const ns=e=>e,Tbe=(e,t)=>n=>t(e(n)),Og=(...e)=>e.reduce(Tbe),Hf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class QA{constructor(){this.subscriptions=[];}add(t){return YA(this.subscriptions,t),()=>Ff(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 ri=e=>e*1e3,es=e=>e/1e3;function bV(e,t){return t?e*(1e3/t):0}const Abe=(e,t,n)=>{const r=t-e;return ((n-e)%r+r)%r+e},yV=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Rbe=1e-7,Nbe=12;function Pbe(e,t,n,r,o){let i,s,l=0;do s=t+(n-t)/2,i=yV(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Rbe&&++l<Nbe);return s}function Dg(e,t,n,r){if(e===t&&n===r)return ns;const o=i=>Pbe(i,0,1,e,n);return i=>i===0||i===1?i:yV(o(i),t,r)}const SV=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,CV=e=>t=>1-e(1-t),xV=Dg(.33,1.53,.69,.99),ZA=CV(xV),wV=SV(ZA),$V=e=>e>=1?1:(e*=2)<1?.5*ZA(e):.5*(2-Math.pow(2,-10*(e-1))),JA=e=>1-Math.sin(Math.acos(e)),EV=CV(JA),MV=SV(JA),Ibe=Dg(.42,0,1,1),Obe=Dg(0,0,.58,1),TV=Dg(.42,0,.58,1),AV=e=>Array.isArray(e)&&typeof e[0]!="number";function RV(e,t){return AV(e)?e[Abe(0,e.length,t)]:e}const NV=e=>Array.isArray(e)&&typeof e[0]=="number",Dbe={linear:ns,easeIn:Ibe,easeInOut:TV,easeOut:Obe,circIn:JA,circInOut:MV,circOut:EV,backIn:ZA,backInOut:wV,backOut:xV,anticipate:$V},Lbe=e=>typeof e=="string",$8=e=>{if(NV(e)){XA(e.length===4);const[t,n,r,o]=e;return Dg(t,n,r,o)}else if(Lbe(e))return Dbe[e];return e},Vb=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function kbe(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 _be=40;function PV(e,t){let n=false,r=true;const o={delta:0,timestamp:0,isProcessing:false},i=()=>n=true,s=Vb.reduce((M,T)=>(M[T]=kbe(i),M),{}),{setup:l,read:u,resolveKeyframes:d,preUpdate:m,update:p,preRender:g,render:b,postRender:y}=s,S=()=>{const M=mc.useManualTiming,T=M?o.timestamp:performance.now();n=false,M||(o.delta=r?1e3/60:Math.max(Math.min(T-o.timestamp,_be),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:Vb.reduce((M,T)=>{const A=s[T];return M[T]=(P,N=false,I=false)=>(n||x(),A.schedule(P,N,I)),M},{}),cancel:M=>{for(let T=0;T<Vb.length;T++)s[Vb[T]].cancel(M);},state:o,steps:s}}const{schedule:Un,cancel:hc,state:ao,steps:Xw}=PV(typeof requestAnimationFrame<"u"?requestAnimationFrame:ns,true);let Py;function Bbe(){Py=void 0;}const ko={now:()=>(Py===void 0&&ko.set(ao.isProcessing||mc.useManualTiming?ao.timestamp:performance.now()),Py),set:e=>{Py=e,queueMicrotask(Bbe);}},IV=e=>t=>typeof t=="string"&&t.startsWith(e),OV=IV("--"),zbe=IV("var(--"),eR=e=>zbe(e)?Fbe.test(e.split("/*")[0].trim()):false,Fbe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function E8(e){return typeof e!="string"?false:e.split("/*")[0].includes("var(--")}const hm={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},jp={...hm,transform:e=>la(0,1,e)},jb={...hm,default:1},ap=e=>Math.round(e*1e5)/1e5,tR=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Hbe(e){return e==null}const Vbe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,nR=(e,t)=>n=>!!(typeof n=="string"&&Vbe.test(n)&&n.startsWith(e)||t&&!Hbe(n)&&Object.prototype.hasOwnProperty.call(n,t)),DV=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,l]=r.match(tR);return {[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},jbe=e=>la(0,255,e),Qw={...hm,transform:e=>Math.round(jbe(e))},bu={test:nR("rgb","red"),parse:DV("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qw.transform(e)+", "+Qw.transform(t)+", "+Qw.transform(n)+", "+ap(jp.transform(r))+")"};function Ube(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 N3={test:nR("#"),parse:Ube,transform:bu.transform},Lg=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vl=Lg("deg"),oa=Lg("%"),bt=Lg("px"),Wbe=Lg("vh"),Gbe=Lg("vw"),M8={...oa,parse:e=>oa.parse(e)/100,transform:e=>oa.transform(e*100)},ff={test:nR("hsl","hue"),parse:DV("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+oa.transform(ap(t))+", "+oa.transform(ap(n))+", "+ap(jp.transform(r))+")"},Er={test:e=>bu.test(e)||N3.test(e)||ff.test(e),parse:e=>bu.test(e)?bu.parse(e):ff.test(e)?ff.parse(e):N3.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?bu.transform(e):ff.transform(e),getAnimatableNone:e=>{const t=Er.parse(e);return t.alpha=0,Er.transform(t)}},qbe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Kbe(e){return isNaN(e)&&typeof e=="string"&&(e.match(tR)?.length||0)+(e.match(qbe)?.length||0)>0}const LV="number",kV="color",Ybe="var",Xbe="var(",T8="${}",Qbe=/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 Vf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const l=t.replace(Qbe,u=>(Er.test(u)?(r.color.push(i),o.push(kV),n.push(Er.parse(u))):u.startsWith(Xbe)?(r.var.push(i),o.push(Ybe),n.push(u)):(r.number.push(i),o.push(LV),n.push(parseFloat(u))),++i,T8)).split(T8);return {values:n,split:l,indexes:r,types:o}}function Zbe(e){return Vf(e).values}function _V({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===LV?o+=ap(r[i]):s===kV?o+=Er.transform(r[i]):o+=r[i];}return o}}function Jbe(e){return _V(Vf(e))}const eye=e=>typeof e=="number"?0:Er.test(e)?Er.getAnimatableNone(e):e,tye=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:eye(e);function nye(e){const t=Vf(e);return _V(t)(t.values.map((r,o)=>tye(r,t.split[o])))}const As={test:Kbe,parse:Zbe,createTransformer:Jbe,getAnimatableNone:nye};function Zw(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 rye({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=Zw(u,l,e+1/3),i=Zw(u,l,e),s=Zw(u,l,e-1/3);}return {red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function V0(e,t){return n=>n>0?t:e}const Gn=(e,t,n)=>e+(t-e)*n,Jw=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},oye=[N3,bu,ff],iye=e=>oye.find(t=>t.test(e));function A8(e){const t=iye(e);if(!t)return  false;let n=t.parse(e);return t===ff&&(n=rye(n)),n}const R8=(e,t)=>{const n=A8(e),r=A8(t);if(!n||!r)return V0(e,t);const o={...n};return i=>(o.red=Jw(n.red,r.red,i),o.green=Jw(n.green,r.green,i),o.blue=Jw(n.blue,r.blue,i),o.alpha=Gn(n.alpha,r.alpha,i),bu.transform(o))},P3=new Set(["none","hidden"]);function sye(e,t){return P3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function aye(e,t){return n=>Gn(e,t,n)}function rR(e){return typeof e=="number"?aye:typeof e=="string"?eR(e)?V0:Er.test(e)?R8:uye:Array.isArray(e)?BV:typeof e=="object"?Er.test(e)?R8:lye:V0}function BV(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>rR(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function lye(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=rR(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function cye(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 uye=(e,t)=>{const n=As.createTransformer(t),r=Vf(e),o=Vf(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?P3.has(e)&&!o.values.length||P3.has(t)&&!r.values.length?sye(e,t):Og(BV(cye(r,o),o.values),n):V0(e,t)};function zV(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Gn(e,t,n):rR(e)(e,t)}const dye=e=>{const t=({timestamp:n})=>e(n);return {start:(n=true)=>Un.update(t,n),stop:()=>hc(t),now:()=>ao.isProcessing?ao.timestamp:ko.now()}},FV=(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)})`},j0=2e4;function oR(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<j0;)t+=n,r=e.next(t);return t>=j0?1/0:t}function HV(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(oR(r),j0);return {type:"keyframes",ease:i=>r.next(o*i).value/t,duration:es(o)}}const cr={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 I3(e,t){return e*Math.sqrt(1-t*t)}const fye=12;function mye(e,t,n){let r=n;for(let o=1;o<fye;o++)r=r-e(r)/t(r);return r}const e$=.001;function hye({duration:e=cr.duration,bounce:t=cr.bounce,velocity:n=cr.velocity,mass:r=cr.mass}){let o,i,s=1-t;s=la(cr.minDamping,cr.maxDamping,s),e=la(cr.minDuration,cr.maxDuration,es(e)),s<1?(o=d=>{const m=d*s,p=m*e,g=m-n,b=I3(d,s),y=Math.exp(-p);return e$-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=I3(Math.pow(d,2),s);return (-o(d)+e$>0?-1:1)*((g-b)*y)/S}):(o=d=>{const m=Math.exp(-d*e),p=(d-n)*e+1;return -e$+m*p},i=d=>{const m=Math.exp(-d*e),p=(n-d)*(e*e);return m*p});const l=5/e,u=mye(o,i,l);if(e=ri(e),isNaN(u))return {stiffness:cr.stiffness,damping:cr.damping,duration:e};{const d=Math.pow(u,2)*r;return {stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const pye=["duration","bounce"],gye=["stiffness","damping","mass"];function N8(e,t){return t.some(n=>e[n]!==void 0)}function vye(e){let t={velocity:cr.velocity,stiffness:cr.stiffness,damping:cr.damping,mass:cr.mass,isResolvedFromDuration:false,...e};if(!N8(e,gye)&&N8(e,pye))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*la(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:cr.mass,stiffness:o,damping:i};}else {const n=hye({...e,velocity:0});t={...t,...n,mass:cr.mass},t.isResolvedFromDuration=true;}return t}function Up(e=cr.visualDuration,t=cr.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}=vye({...n,velocity:-es(n.velocity||0)}),y=g||0,S=d/(2*Math.sqrt(u*m)),x=s-i,$=es(Math.sqrt(u/m)),w=Math.abs(x)<5;r||(r=w?cr.restSpeed.granular:cr.restSpeed.default),o||(o=w?cr.restDelta.granular:cr.restDelta.default);let M,T,A,P,N,I;if(S<1)A=I3($,S),P=(y+S*$*x)/A,M=D=>{const L=Math.exp(-S*$*D);return s-L*(P*Math.sin(A*D)+x*Math.cos(A*D))},N=S*$*P+x*A,I=S*$*x-P*A,T=D=>Math.exp(-S*$*D)*(N*Math.sin(A*D)+I*Math.cos(A*D));else if(S===1){M=L=>s-Math.exp(-$*L)*(x+(y+$*x)*L);const D=y+$*x;T=L=>Math.exp(-$*L)*($*D*L-y);}else {const D=$*Math.sqrt(S*S-1);M=W=>{const z=Math.exp(-S*$*W),k=Math.min(D*W,300);return s-z*((y+S*$*x)*Math.sinh(k)+D*x*Math.cosh(k))/D};const L=(y+S*$*x)/D,V=S*$*L-x*D,U=S*$*x-L*D;T=W=>{const z=Math.exp(-S*$*W),k=Math.min(D*W,300);return z*(V*Math.sinh(k)+U*Math.cosh(k))};}const O={calculatedDuration:b&&p||null,velocity:D=>ri(T(D)),next:D=>{if(!b&&S<1){const V=Math.exp(-S*$*D),U=Math.sin(A*D),W=Math.cos(A*D),z=s-V*(P*U+x*W),k=ri(V*(N*U+I*W));return l.done=Math.abs(k)<=r&&Math.abs(s-z)<=o,l.value=l.done?s:z,l}const L=M(D);if(b)l.done=D>=p;else {const V=ri(T(D));l.done=Math.abs(V)<=r&&Math.abs(s-L)<=o;}return l.value=l.done?s:L,l},toString:()=>{const D=Math.min(oR(O),j0),L=FV(V=>O.next(D*V).value,D,30);return D+"ms "+L},toTransition:()=>{}};return O}Up.applyToOptions=e=>{const t=HV(e,100,Up);return e.ease=t.ease,e.duration=ri(t.duration),e.type="keyframes",e};const bye=5;function VV(e,t,n){const r=Math.max(t-bye,0);return bV(n-e(r),t-r)}function O3({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=I=>l!==void 0&&I<l||u!==void 0&&I>u,y=I=>l===void 0?u:u===void 0||Math.abs(l-I)<Math.abs(u-I)?l:u;let S=n*t;const x=p+S,$=s===void 0?x:s(x);$!==x&&(S=$-p);const w=I=>-S*Math.exp(-I/r),M=I=>$+w(I),T=I=>{const O=w(I),D=M(I);g.done=Math.abs(O)<=d,g.value=g.done?$:D;};let A,P;const N=I=>{b(g.value)&&(A=I,P=Up({keyframes:[g.value,y(g.value)],velocity:VV(M,I,g.value),damping:o,stiffness:i,restDelta:d,restSpeed:m}));};return N(0),{calculatedDuration:null,next:I=>{let O=false;return !P&&A===void 0&&(O=true,T(I),N(I)),A!==void 0&&I>=A?P.next(I-A):(!O&&T(I),g)}}}function yye(e,t,n){const r=[],o=n||mc.mix||zV,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]||ns:t;l=Og(u,l);}r.push(l);}return r}function Sye(e,t,{clamp:n=true,ease:r,mixer:o}={}){const i=e.length;if(XA(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=yye(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=Hf(e[p],e[p+1],m);return l[p](g)};return n?m=>d(la(e[0],e[i-1],m)):d}function jV(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Hf(0,t,r);e.push(Gn(n,1,o));}}function UV(e){const t=[0];return jV(t,e.length-1),t}function Cye(e,t){return e.map(n=>n*t)}function xye(e,t){return e.map(()=>t||TV).splice(0,e.length-1)}function lp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=AV(r)?r.map($8):$8(r),i={done:false,value:t[0]},s=Cye(n&&n.length===t.length?n:UV(t),e),l=Sye(s,t,{ease:Array.isArray(o)?o:xye(t,o)});return {calculatedDuration:e,next:u=>(i.value=l(u),i.done=u>=e,i)}}const wye=e=>e!==null;function sS(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(wye),l=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return !l||r===void 0?i[l]:r}const $ye={decay:O3,inertia:O3,tween:lp,keyframes:lp,spring:Up};function WV(e){typeof e.type=="string"&&(e.type=$ye[e.type]);}class iR{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 U0 extends iR{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!==ko.now()&&this.tick(ko.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;WV(t);const{type:n=lp,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:l}=t;const u=n||lp;u!==lp&&typeof l[0]!="number"&&(this.mixKeyframes=Og(Eye,zV(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=oR(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 $=this.currentTime-d*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?$<0:$>o;this.currentTime=Math.max($,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let M=this.currentTime,T=r;if(p){const I=Math.min(this.currentTime,o)/l;let O=Math.floor(I),D=I%1;!D&&I>=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=la(0,1,D)*l;}let A;w?(this.delayState.value=m[0],A=this.delayState):A=T.next(M),i&&!w&&(A.value=i(A.value));let{done:P}=A;!w&&u!==null&&(P=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return N&&y!==O3&&(A.value=sS(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 es(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+es(t)}get time(){return es(this.currentTime)}set time(t){t=ri(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 VV(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(ko.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=es(this.currentTime));}play(){if(this.isStopped)return;const{driver:t=dye,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(ko.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 Mye(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1]);}const yu=e=>e*180/Math.PI,D3=e=>{const t=yu(Math.atan2(e[1],e[0]));return L3(t)},Tye={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:D3,rotateZ:D3,skewX:e=>yu(Math.atan(e[1])),skewY:e=>yu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},L3=e=>(e=e%360,e<0&&(e+=360),e),P8=D3,I8=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),O8=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Aye={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:I8,scaleY:O8,scale:e=>(I8(e)+O8(e))/2,rotateX:e=>L3(yu(Math.atan2(e[6],e[5]))),rotateY:e=>L3(yu(Math.atan2(-e[2],e[0]))),rotateZ:P8,rotate:P8,skewX:e=>yu(Math.atan(e[4])),skewY:e=>yu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function k3(e){return e.includes("scale")?1:0}function _3(e,t){if(!e||e==="none")return k3(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Aye,o=n;else {const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Tye,o=l;}if(!o)return k3(t);const i=r[t],s=o[1].split(",").map(Nye);return typeof i=="function"?i(s):s[i]}const Rye=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return _3(n,t)};function Nye(e){return parseFloat(e.trim())}const pm=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gm=new Set(pm),D8=e=>e===hm||e===bt,Pye=new Set(["x","y","z"]),Iye=pm.filter(e=>!Pye.has(e));function Oye(e){const t=[];return Iye.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0));}),t}const Zl={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})=>_3(t,"x"),y:(e,{transform:t})=>_3(t,"y")};Zl.translateX=Zl.x;Zl.translateY=Zl.y;const Nu=new Set;let B3=false,z3=false,F3=false;function GV(){if(z3){const e=Array.from(Nu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Oye(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);});}z3=false,B3=false,Nu.forEach(e=>e.complete(F3)),Nu.clear();}function qV(){Nu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(z3=true);});}function Dye(){F3=true,qV(),GV(),F3=false;}class sR{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?(Nu.add(this),B3||(B3=true,Un.read(qV),Un.resolveKeyframes(GV))):(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]);}Mye(t);}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=false){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Nu.delete(this);}cancel(){this.state==="scheduled"&&(Nu.delete(this),this.state="pending");}resume(){this.state==="pending"&&this.scheduleResolve();}}const Lye=e=>e.startsWith("--");function KV(e,t,n){Lye(t)?e.style.setProperty(t,n):e.style[t]=n;}const kye={};function YV(e,t){const n=vV(e);return ()=>kye[t]??n()}const _ye=YV(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),XV=YV(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"});}catch{return  false}return  true},"linearEasing"),qh=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,L8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qh([0,.65,.55,1]),circOut:qh([.55,0,1,.45]),backIn:qh([.31,.01,.66,-0.59]),backOut:qh([.33,1.53,.69,.99])};function QV(e,t){if(e)return typeof e=="function"?XV()?FV(e,t):"ease-out":NV(e)?qh(e):Array.isArray(e)?e.map(n=>QV(n,t)||L8.easeOut):L8[e]}function Bye(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=QV(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 aR(e){return typeof e=="function"&&"applyToOptions"in e}function zye({type:e,...t}){return aR(e)&&XV()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class ZV extends iR{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,XA(typeof t.type!="string");const d=zye(t);this.animation=Bye(n,r,o,d,i),d.autoplay===false&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const m=sS(o,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(m),KV(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 es(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+es(t)}get time(){return es(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ri(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&&_ye()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),ns):o(this)}}const JV={anticipate:$V,backInOut:wV,circInOut:MV};function Fye(e){return e in JV}function Hye(e){typeof e.ease=="string"&&Fye(e.ease)&&(e.ease=JV[e.ease]);}const t$=10;class Vye extends ZV{constructor(t){Hye(t),WV(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 U0({...s,autoplay:false}),u=Math.max(t$,ko.now()-this.startTime),d=la(0,t$,u-t$),m=l.sample(u).value,{name:p}=this.options;i&&p&&KV(i,p,m),n.setWithVelocity(l.sample(Math.max(0,u-d)).value,m,d),l.stop();}}const k8=(e,t)=>t==="zIndex"?false:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(As.test(e)||e==="0")&&!e.startsWith("url("));function jye(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 Uye(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=k8(o,t),l=k8(i,t);return !s||!l?false:jye(e)||(n==="spring"||aR(n))&&r}function H3(e){e.duration=0,e.type="keyframes";}const ej=new Set(["opacity","clipPath","filter","transform"]),Wye=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Gye(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Wye.test(e[t]))return  true;return  false}const qye=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Kye=vV(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Yye(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 Kye()&&n&&(ej.has(n)||qye.has(n)&&Gye(l))&&(n!=="transform"||!m)&&!d&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const Xye=40;class Qye extends iR{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=ko.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||sR;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=ko.now();let p=true;Uye(t,i,s,l)||(p=false,(mc.instantAnimations||!u)&&m?.(sS(t,r,n)),t[0]=t[t.length-1],H3(r),r.repeat=0);const b={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Xye?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=p&&!d&&Yye(b),S=b.motionValue?.owner?.current;let x;if(y)try{x=new Vye({...b,element:S});}catch{x=new U0(b);}else x=new U0(b);x.finished.then(()=>{this.notifyFinished();}).catch(ns),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(),Dye()),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 Zye{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 _8(this.animations,"duration")}get iterationDuration(){return _8(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 _8(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 Jye extends Zye{then(t,n){return this.finished.finally(t).then(()=>{})}}function tj(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 e0e=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function t0e(e){const t=e0e.exec(e);if(!t)return [,];const[,n,r,o]=t;return [`--${n??r}`,o]}function nj(e,t,n=1){const[r,o]=t0e(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return hV(s)?parseFloat(s):s}return eR(o)?nj(o,t,n+1):o}const n0e={type:"spring",stiffness:500,damping:25,restSpeed:10},r0e=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),o0e={type:"keyframes",duration:.8},i0e={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},s0e=(e,{keyframes:t})=>t.length>2?o0e:gm.has(e)?e.startsWith("scale")?r0e(t[1]):n0e:i0e;function rj(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return {...t,...r}}return e}function lR(e,t){const n=e?.[t]??e?.default??e;return n!==e?rj(n,e):n}const a0e=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function l0e(e){for(const t in e)if(!a0e.has(t))return  true;return  false}const cR=(e,t,n,r={},o,i)=>s=>{const l=lR(r,e)||{},u=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-ri(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};l0e(l)||Object.assign(m,s0e(e,m)),m.duration&&(m.duration=ri(m.duration)),m.repeatDelay&&(m.repeatDelay=ri(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let p=false;if((m.type===false||m.duration===0&&!m.repeatDelay)&&(H3(m),m.delay===0&&(p=true)),(mc.instantAnimations||mc.skipAnimations||o?.shouldSkipAnimations)&&(p=true,H3(m),m.delay=0),m.allowFlatten=!l.type&&!l.ease,p&&!i&&t.get()!==void 0){const g=sS(m.keyframes,l);if(g!==void 0){Un.update(()=>{m.onUpdate(g),m.onComplete();});return}}return l.isSync?new U0(m):new Qye(m)};function B8(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity();}),t}function uR(e,t,n,r){if(typeof t=="function"){const[o,i]=B8(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]=B8(r);t=t(n!==void 0?n:e.custom,o,i);}return t}function Pu(e,t,n){const r=e.getProps();return uR(r,t,n!==void 0?n:r.custom,e)}const oj=new Set(["width","height","top","left","right","bottom",...pm]),z8=30,c0e=e=>!isNaN(parseFloat(e));class u0e{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=ko.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=ko.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=c0e(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 QA);const r=this.events[t].add(n);return t==="change"?()=>{r(),Un.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=ko.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>z8)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,z8);return bV(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 Uu(e,t){return new u0e(e,t)}const V3=e=>Array.isArray(e);function d0e(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Uu(n));}function f0e(e){return V3(e)?e[e.length-1]||0:e}function m0e(e,t){const n=Pu(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const l=f0e(i[s]);d0e(e,s,l);}}const _r=e=>!!(e&&e.getVelocity);function h0e(e){return !!(_r(e)&&e.add)}function j3(e,t){const n=e.getValue("willChange");if(h0e(n))return n.add(t);if(!n&&mc.WillChange){const r=new mc.WillChange("auto");e.addValue("willChange",r),r.add(t);}}function dR(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const p0e="framerAppearId",ij="data-"+dR(p0e);function sj(e){return e.props[ij]}function g0e({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==true;return t[n]=false,r}function fR(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i,transitionEnd:s,...l}=t;const u=e.getDefaultTransition();i=i?rj(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&&g0e(p,g))continue;const S={delay:n,...lR(i||{},g)},x=b.get();if(x!==void 0&&!b.isAnimating()&&!Array.isArray(y)&&y===x&&!S.velocity){Un.update(()=>b.set(y));continue}let $=false;if(window.MotionHandoffAnimation){const T=sj(e);if(T){const A=window.MotionHandoffAnimation(T,g,Un);A!==null&&(S.startTime=A,$=true);}}j3(e,g);const w=d??e.shouldReduceMotion;b.start(cR(g,b,y,w&&oj.has(g)?{type:false}:S,e,$));const M=b.animation;M&&m.push(M);}if(s){const g=()=>Un.update(()=>{s&&m0e(e,s);});m.length?Promise.all(m).then(g):g();}return m}function U3(e,t,n={}){const r=Pu(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(fR(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:m,staggerDirection:p}=o;return v0e(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 v0e(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(U3(u,t,{...s,delay:n+(typeof r=="function"?0:r)+tj(e.variantChildren,u,r,o,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(l)}function b0e(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>U3(e,i,n));r=Promise.all(o);}else if(typeof t=="string")r=U3(e,t,n);else {const o=typeof t=="function"?Pu(e,t,n.custom):t;r=Promise.all(fR(e,o,n));}return r.then(()=>{e.notify("AnimationComplete",t);})}const y0e={test:e=>e==="auto",parse:e=>e},aj=e=>t=>t.test(e),lj=[hm,bt,oa,Vl,Gbe,Wbe,y0e],F8=e=>lj.find(aj(e));function S0e(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gV(e):true}const C0e=new Set(["brightness","contrast","saturate","opacity"]);function x0e(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(tR)||[];if(!r)return e;const o=n.replace(r,"");let i=C0e.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const w0e=/\b([a-z-]*)\(.*?\)/gu,W3={...As,getAnimatableNone:e=>{const t=e.match(w0e);return t?t.map(x0e).join(" "):e}},G3={...As,getAnimatableNone:e=>{const t=As.parse(e);return As.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},H8={...hm,transform:Math.round},$0e={rotate:Vl,rotateX:Vl,rotateY:Vl,rotateZ:Vl,scale:jb,scaleX:jb,scaleY:jb,scaleZ:jb,skew:Vl,skewX:Vl,skewY:Vl,distance:bt,translateX:bt,translateY:bt,translateZ:bt,x:bt,y:bt,z:bt,perspective:bt,transformPerspective:bt,opacity:jp,originX:M8,originY:M8,originZ:bt},mR={borderWidth:bt,borderTopWidth:bt,borderRightWidth:bt,borderBottomWidth:bt,borderLeftWidth:bt,borderRadius:bt,borderTopLeftRadius:bt,borderTopRightRadius:bt,borderBottomRightRadius:bt,borderBottomLeftRadius:bt,width:bt,maxWidth:bt,height:bt,maxHeight:bt,top:bt,right:bt,bottom:bt,left:bt,inset:bt,insetBlock:bt,insetBlockStart:bt,insetBlockEnd:bt,insetInline:bt,insetInlineStart:bt,insetInlineEnd:bt,padding:bt,paddingTop:bt,paddingRight:bt,paddingBottom:bt,paddingLeft:bt,paddingBlock:bt,paddingBlockStart:bt,paddingBlockEnd:bt,paddingInline:bt,paddingInlineStart:bt,paddingInlineEnd:bt,margin:bt,marginTop:bt,marginRight:bt,marginBottom:bt,marginLeft:bt,marginBlock:bt,marginBlockStart:bt,marginBlockEnd:bt,marginInline:bt,marginInlineStart:bt,marginInlineEnd:bt,fontSize:bt,backgroundPositionX:bt,backgroundPositionY:bt,...$0e,zIndex:H8,fillOpacity:jp,strokeOpacity:jp,numOctaves:H8},E0e={...mR,color:Er,backgroundColor:Er,outlineColor:Er,fill:Er,stroke:Er,borderColor:Er,borderTopColor:Er,borderRightColor:Er,borderBottomColor:Er,borderLeftColor:Er,filter:W3,WebkitFilter:W3,mask:G3,WebkitMask:G3},cj=e=>E0e[e],M0e=new Set([W3,G3]);function uj(e,t){let n=cj(e);return M0e.has(n)||(n=As),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const T0e=new Set(["auto","none","0"]);function A0e(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!T0e.has(i)&&Vf(i).values.length&&(o=e[r]),r++;}if(o&&n)for(const i of t)e[i]=uj(n,o);}class R0e extends sR{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(),eR(p))){const g=nj(p,n.current);g!==void 0&&(t[m]=g),m===t.length-1&&(this.finalKeyframe=p);}}if(this.resolveNoneKeyframes(),!oj.has(r)||t.length!==2)return;const[o,i]=t,s=F8(o),l=F8(i),u=E8(o),d=E8(i);if(u!==d&&Zl[r]){this.needsMeasurement=true;return}if(s!==l)if(D8(s)&&D8(l))for(let m=0;m<t.length;m++){const p=t[m];typeof p=="string"&&(t[m]=parseFloat(p));}else Zl[r]&&(this.needsMeasurement=true);}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||S0e(t[o]))&&r.push(o);r.length&&A0e(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=Zl[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]=Zl[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 hR(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 dj=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Iy(e){return pV(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:pR}=PV(queueMicrotask,false),vs={x:false,y:false};function fj(){return vs.x||vs.y}function N0e(e){return e==="x"||e==="y"?vs[e]?null:(vs[e]=true,()=>{vs[e]=false;}):vs.x||vs.y?null:(vs.x=vs.y=true,()=>{vs.x=vs.y=false;})}function mj(e,t){const n=hR(e),r=new AbortController,o={passive:true,...t,signal:r.signal};return [n,o,()=>r.abort()]}function P0e(e){return !(e.pointerType==="touch"||fj())}function I0e(e,t,n={}){const[r,o,i]=mj(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(!P0e(x))return;u=false;const $=t(s,x);typeof $=="function"&&(d=$,s.addEventListener("pointerleave",y,o));};s.addEventListener("pointerenter",S,o),s.addEventListener("pointerdown",b,o);}),i}const hj=(e,t)=>t?e===t?true:hj(e,t.parentElement):false,gR=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==false,O0e=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function D0e(e){return O0e.has(e.tagName)||e.isContentEditable===true}const L0e=new Set(["INPUT","SELECT","TEXTAREA"]);function k0e(e){return L0e.has(e.tagName)||e.isContentEditable===true}const Oy=new WeakSet;function V8(e){return t=>{t.key==="Enter"&&e(t);}}function n$(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:true,bubbles:true}));}const _0e=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=V8(()=>{if(Oy.has(n))return;n$(n,"down");const o=V8(()=>{n$(n,"up");}),i=()=>n$(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 j8(e){return gR(e)&&!fj()}const U8=new WeakSet;function B0e(e,t,n={}){const[r,o,i]=mj(e,n),s=l=>{const u=l.currentTarget;if(!j8(l)||U8.has(l))return;Oy.add(u),n.stopPropagation&&U8.add(l);const d=t(u,l),m=(b,y)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",g),Oy.has(u)&&Oy.delete(u),j8(b)&&typeof d=="function"&&d(b,{success:y});},p=b=>{m(b,u===window||u===document||n.useGlobalTarget||hj(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),Iy(l)&&(l.addEventListener("focus",d=>_0e(d,o)),!D0e(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0));}),i}function aS(e){return pV(e)&&"ownerSVGElement"in e}const Dy=new WeakMap;let Ly;const pj=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:aS(r)&&"getBBox"in r?r.getBBox()[t]:r[n],z0e=pj("inline","width","offsetWidth"),F0e=pj("block","height","offsetHeight");function H0e({target:e,borderBoxSize:t}){Dy.get(e)?.forEach(n=>{n(e,{get width(){return z0e(e,t)},get height(){return F0e(e,t)}});});}function V0e(e){e.forEach(H0e);}function j0e(){typeof ResizeObserver>"u"||(Ly=new ResizeObserver(V0e));}function U0e(e,t){Ly||j0e();const n=hR(e);return n.forEach(r=>{let o=Dy.get(r);o||(o=new Set,Dy.set(r,o)),o.add(t),Ly?.observe(r);}),()=>{n.forEach(r=>{const o=Dy.get(r);o?.delete(t),o?.size||Ly?.unobserve(r);});}}const ky=new Set;let mf;function W0e(){mf=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ky.forEach(t=>t(e));},window.addEventListener("resize",mf);}function G0e(e){return ky.add(e),mf||W0e(),()=>{ky.delete(e),!ky.size&&typeof mf=="function"&&(window.removeEventListener("resize",mf),mf=void 0);}}function W8(e,t){return typeof e=="function"?G0e(e):U0e(e,t)}function gj(e){return aS(e)&&e.tagName==="svg"}const q0e=[...lj,Er,As],K0e=e=>q0e.find(aj(e)),G8=()=>({translate:0,scale:1,origin:0,originPoint:0}),hf=()=>({x:G8(),y:G8()}),q8=()=>({min:0,max:0}),$r=()=>({x:q8(),y:q8()}),Wp=new WeakMap;function lS(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Gp(e){return typeof e=="string"||Array.isArray(e)}const vR=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bR=["initial",...vR];function cS(e){return lS(e.animate)||bR.some(t=>Gp(e[t]))}function vj(e){return !!(cS(e)||e.variants)}function Y0e(e,t,n){for(const r in t){const o=t[r],i=n[r];if(_r(o))e.addValue(r,o);else if(_r(i))e.addValue(r,Uu(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,Uu(s!==void 0?s:o,{owner:e}));}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const W0={current:null},yR={current:false},X0e=typeof window<"u";function bj(){if(yR.current=true,!!X0e)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>W0.current=e.matches;e.addEventListener("change",t),t();}else W0.current=false;}const K8=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let G0={};function yj(e){G0=e;}function Q0e(){return G0}class Sj{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=sR,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=ko.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,Un.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=cS(n),this.isVariantNode=vj(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&&_r(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,Wp.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:(yR.current||bj(),this.shouldReduceMotion=W0.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(),hc(this.notifyUpdate),hc(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&&ej.has(t)&&this.current instanceof HTMLElement){const{factory:s,keyframes:l,times:u,ease:d,duration:m}=n.accelerate,p=new ZV({element:this.current,name:t,keyframes:l,times:u,ease:d,duration:ri(m)}),g=s(p);this.valueSubscriptions.set(t,()=>{g(),p.cancel();});return}const r=gm.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Un.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 G0){const n=G0[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):$r()}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<K8.length;r++){const o=K8[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=Y0e(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=Uu(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"&&(hV(r)||gV(r))?r=parseFloat(r):!K0e(r)&&As.test(n)&&(r=uj(t,n)),this.setBaseTarget(t,_r(r)?r.get():r)),_r(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=uR(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&&!_r(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 QA),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n);}scheduleRenderMicrotask(){pR.render(this.render);}}class Cj extends Sj{constructor(){super(...arguments),this.KeyframeResolver=R0e;}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;_r(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`);}));}}class Tc{constructor(t){this.isMounted=false,this.node=t;}update(){}}function xj({top:e,left:t,right:n,bottom:r}){return {x:{min:t,max:n},y:{min:e,max:r}}}function Z0e({x:e,y:t}){return {top:t.min,right:e.max,bottom:t.max,left:e.min}}function J0e(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 r$(e){return e===void 0||e===1}function q3({scale:e,scaleX:t,scaleY:n}){return !r$(e)||!r$(t)||!r$(n)}function su(e){return q3(e)||wj(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function wj(e){return Y8(e.x)||Y8(e.y)}function Y8(e){return e&&e!=="0%"}function q0(e,t,n){const r=e-n,o=t*r;return n+o}function X8(e,t,n,r,o){return o!==void 0&&(e=q0(e,o,r)),q0(e,n,r)+t}function K3(e,t=0,n=1,r,o){e.min=X8(e.min,t,n,r,o),e.max=X8(e.max,t,n,r,o);}function $j(e,{x:t,y:n}){K3(e.x,t.translate,t.scale,t.originPoint),K3(e.y,n.translate,n.scale,n.originPoint);}const Q8=.999999999999,Z8=1.0000000000001;function e1e(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&&(Qs(e.x,-i.scroll.offset.x),Qs(e.y,-i.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,$j(e,s)),r&&su(i.latestValues)&&_y(e,i.latestValues,i.layout?.layoutBox));}t.x<Z8&&t.x>Q8&&(t.x=1),t.y<Z8&&t.y>Q8&&(t.y=1);}function Qs(e,t){e.min+=t,e.max+=t;}function J8(e,t,n,r,o=.5){const i=Gn(e.min,e.max,o);K3(e,t,n,i,r);}function eL(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function _y(e,t,n){const r=n??e;J8(e.x,eL(t.x,r.x),t.scaleX,t.scale,t.originX),J8(e.y,eL(t.y,r.y),t.scaleY,t.scale,t.originY);}function Ej(e,t){return xj(J0e(e.getBoundingClientRect(),t))}function t1e(e,t,n){const r=Ej(e,n),{scroll:o}=t;return o&&(Qs(r.x,o.offset.x),Qs(r.y,o.offset.y)),r}const n1e={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},r1e=pm.length;function o1e(e,t,n){let r="",o=true;for(let i=0;i<r1e;i++){const s=pm[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=dj(l,mR[s]);if(!u){o=false;const m=n1e[s]||s;r+=`${m}(${d}) `;}n&&(t[s]=d);}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function SR(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(gm.has(u)){s=true;continue}else if(OV(u)){o[u]=d;continue}else {const m=dj(d,mR[u]);u.startsWith("origin")?(l=true,i[u]=m):r[u]=m;}}if(t.transform||(s||n?r.transform=o1e(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 Mj(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 tL(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ah={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(bt.test(e))e=parseFloat(e);else return e;const n=tL(e,t.target.x),r=tL(e,t.target.y);return `${n}% ${r}%`}},i1e={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=As.parse(e);if(o.length>5)return r;const i=As.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=Gn(l,u,.5);return typeof o[2+s]=="number"&&(o[2+s]/=d),typeof o[3+s]=="number"&&(o[3+s]/=d),i(o)}},Y3={borderRadius:{...Ah,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ah,borderTopRightRadius:Ah,borderBottomLeftRadius:Ah,borderBottomRightRadius:Ah,boxShadow:i1e};function Tj(e,{layout:t,layoutId:n}){return gm.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Y3[e]||e==="opacity")}function CR(e,t,n){const r=e.style,o=t?.style,i={};if(!r)return i;for(const s in r)(_r(r[s])||o&&_r(o[s])||Tj(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}function s1e(e){return window.getComputedStyle(e)}class Aj extends Cj{constructor(){super(...arguments),this.type="html",this.renderInstance=Mj;}readValueFromInstance(t,n){if(gm.has(n))return this.projection?.isProjecting?k3(n):Rye(t,n);{const r=s1e(t),o=(OV(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ej(t,n)}build(t,n,r){SR(t,n,r.transformTemplate);}scrapeMotionValuesFromProps(t,n,r){return CR(t,n,r)}}function a1e(e,t){return e in t}class l1e extends Sj{constructor(){super(...arguments),this.type="object";}readValueFromInstance(t,n){if(a1e(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 $r()}build(t,n){Object.assign(t.output,n);}renderInstance(t,{output:n}){Object.assign(t,n);}sortInstanceNodePosition(){return 0}}const c1e={offset:"stroke-dashoffset",array:"stroke-dasharray"},u1e={offset:"strokeDashoffset",array:"strokeDasharray"};function d1e(e,t,n=1,r=0,o=true){e.pathLength=1;const i=o?c1e:u1e;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`;}const f1e=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Rj(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...l},u,d,m){if(SR(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 f1e)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&&d1e(p,o,i,s,false);}const Nj=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 m1e(e,t,n,r){Mj(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Nj.has(o)?o:dR(o),t.attrs[o]);}function Ij(e,t,n){const r=CR(e,t,n);for(const o in e)if(_r(e[o])||_r(t[o])){const i=pm.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o];}return r}class Oj extends Cj{constructor(){super(...arguments),this.type="svg",this.isSVGTag=false,this.measureInstanceViewportBox=$r;}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gm.has(n)){const r=cj(n);return r&&r.default||0}return n=Nj.has(n)?n:dR(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ij(t,n,r)}build(t,n,r){Rj(t,n,this.isSVGTag,r.transformTemplate,r.style);}renderInstance(t,n,r,o){m1e(t,n,r,o);}mount(t){this.isSVGTag=Pj(t.tagName),super.mount(t);}}const h1e=bR.length;function Dj(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Dj(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<h1e;n++){const r=bR[n],o=e.props[r];(Gp(o)||o===false)&&(t[r]=o);}return t}function Lj(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 p1e=[...vR].reverse(),g1e=vR.length;function v1e(e){return t=>Promise.all(t.map(({animation:n,options:r})=>b0e(e,n,r)))}function b1e(e){let t=v1e(e),n=nL(),r=true,o=false;const i=d=>(m,p)=>{const g=Pu(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=Dj(e.parent)||{},g=[],b=new Set;let y={},S=1/0;for(let $=0;$<g1e;$++){const w=p1e[$],M=n[w],T=m[w]!==void 0?m[w]:p[w],A=Gp(T),P=w===d?M.isActive:null;P===false&&(S=$);let N=T===p[w]&&T!==m[w]&&A;if(N&&(r||o)&&e.manuallyAnimateOnMount&&(N=false),M.protectedKeys={...y},!M.isActive&&P===null||!T&&!M.prevProp||lS(T)||typeof T=="boolean")continue;if(w==="exit"&&M.isActive&&P!==true){M.prevResolvedValues&&(y={...y,...M.prevResolvedValues});continue}const I=y1e(M.prevProp,T);let O=I||w===d&&M.isActive&&!N&&A||$>S&&A,D=false;const L=Array.isArray(T)?T:[T];let V=L.reduce(i(w),{});P===false&&(V={});const{prevResolvedValues:U={}}=M,W={...U,...V},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=V[j],X=U[j];if(y.hasOwnProperty(j))continue;let B=false;V3(K)&&V3(X)?B=!Lj(K,X):B=K!==X,B?K!=null?z(j):b.add(j):K!==void 0&&b.has(j)?z(j):M.protectedKeys[j]=true;}M.prevProp=T,M.prevResolvedValues=V,M.isActive&&(y={...y,...V}),(r||o)&&e.blockInitialAnimation&&(O=false);const k=N&&I;O&&(!k||D)&&g.push(...L.map(j=>{const K={type:w};if(typeof j=="string"&&(r||o)&&!k&&e.manuallyAnimateOnMount&&e.parent){const{parent:X}=e,B=Pu(X,j);if(X.enteringChildren&&B){const{delayChildren:H}=B.transition||{};K.delay=tj(X.enteringChildren,e,H);}}return {animation:j,options:K}}));}if(b.size){const $={};if(typeof m.initial!="boolean"){const w=Pu(e,Array.isArray(m.initial)?m.initial[0]:m.initial);w&&w.transition&&($.transition=w.transition);}b.forEach(w=>{const M=e.getBaseTarget(w),T=e.getValue(w);T&&(T.liveStyle=true),$[w]=M??null;}),g.push({animation:$});}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=nL(),o=true;}}}function y1e(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Lj(t,e):false}function tu(e=false){return {isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nL(){return {animate:tu(true),whileInView:tu(),whileHover:tu(),whileTap:tu(),whileDrag:tu(),whileFocus:tu(),exit:tu()}}function X3(e,t){e.min=t.min,e.max=t.max;}function hs(e,t){X3(e.x,t.x),X3(e.y,t.y);}function rL(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin;}const kj=1e-4,S1e=1-kj,C1e=1+kj,_j=.01,x1e=0-_j,w1e=0+_j;function _o(e){return e.max-e.min}function $1e(e,t,n){return Math.abs(e-t)<=n}function oL(e,t,n,r=.5){e.origin=r,e.originPoint=Gn(t.min,t.max,e.origin),e.scale=_o(n)/_o(t),e.translate=Gn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=S1e&&e.scale<=C1e||isNaN(e.scale))&&(e.scale=1),(e.translate>=x1e&&e.translate<=w1e||isNaN(e.translate))&&(e.translate=0);}function cp(e,t,n,r){oL(e.x,t.x,n.x,r?r.originX:void 0),oL(e.y,t.y,n.y,r?r.originY:void 0);}function iL(e,t,n,r=0){const o=r?Gn(n.min,n.max,r):n.min;e.min=o+t.min,e.max=e.min+_o(t);}function E1e(e,t,n,r){iL(e.x,t.x,n.x,r?.x),iL(e.y,t.y,n.y,r?.y);}function sL(e,t,n,r=0){const o=r?Gn(n.min,n.max,r):n.min;e.min=t.min-o,e.max=e.min+_o(t);}function K0(e,t,n,r){sL(e.x,t.x,n.x,r?.x),sL(e.y,t.y,n.y,r?.y);}function aL(e,t,n,r,o){return e-=t,e=q0(e,1/n,r),o!==void 0&&(e=q0(e,1/o,r)),e}function M1e(e,t=0,n=1,r=.5,o,i=e,s=e){if(oa.test(t)&&(t=parseFloat(t),t=Gn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=Gn(i.min,i.max,r);e===i&&(l-=t),e.min=aL(e.min,t,n,l,o),e.max=aL(e.max,t,n,l,o);}function lL(e,t,[n,r,o],i,s){M1e(e,t[n],t[r],t[o],t.scale,i,s);}const T1e=["x","scaleX","originX"],A1e=["y","scaleY","originY"];function cL(e,t,n,r){lL(e.x,t,T1e,n?n.x:void 0,r?r.x:void 0),lL(e.y,t,A1e,n?n.y:void 0,r?r.y:void 0);}function uL(e){return e.translate===0&&e.scale===1}function Bj(e){return uL(e.x)&&uL(e.y)}function dL(e,t){return e.min===t.min&&e.max===t.max}function R1e(e,t){return dL(e.x,t.x)&&dL(e.y,t.y)}function fL(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function zj(e,t){return fL(e.x,t.x)&&fL(e.y,t.y)}function mL(e){return _o(e.x)/_o(e.y)}function hL(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Gs(e){return [e("x"),e("y")]}function N1e(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 Fj=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],P1e=Fj.length,pL=e=>typeof e=="string"?parseFloat(e):e,gL=e=>typeof e=="number"||bt.test(e);function I1e(e,t,n,r,o,i){o?(e.opacity=Gn(0,n.opacity??1,O1e(r)),e.opacityExit=Gn(t.opacity??1,0,D1e(r))):i&&(e.opacity=Gn(t.opacity??1,n.opacity??1,r));for(let s=0;s<P1e;s++){const l=Fj[s];let u=vL(t,l),d=vL(n,l);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||gL(u)===gL(d)?(e[l]=Math.max(Gn(pL(u),pL(d),r),0),(oa.test(d)||oa.test(u))&&(e[l]+="%")):e[l]=d;}(t.rotate||n.rotate)&&(e.rotate=Gn(t.rotate||0,n.rotate||0,r));}function vL(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const O1e=Hj(0,.5,EV),D1e=Hj(.5,.95,ns);function Hj(e,t,n){return r=>r<e?0:r>t?1:n(Hf(e,t,r))}function Vj(e,t,n){const r=_r(e)?e:Uu(e);return r.start(cR("",r,t,n)),r.animation}function qp(e,t,n,r={passive:true}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const L1e=(e,t)=>e.depth-t.depth;class k1e{constructor(){this.children=[],this.isDirty=false;}add(t){YA(this.children,t),this.isDirty=true;}remove(t){Ff(this.children,t),this.isDirty=true;}forEach(t){this.isDirty&&this.children.sort(L1e),this.isDirty=false,this.children.forEach(t);}}function _1e(e,t){const n=ko.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(hc(r),e(i-t));};return Un.setup(r,true),()=>hc(r)}function By(e){return _r(e)?e.get():e}class B1e{constructor(){this.members=[];}add(t){YA(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&&(Ff(this.members,r),r.unmount());}t.scheduleRender();}remove(t){if(Ff(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 zy={hasAnimatedSinceResize:true,hasEverUpdated:false},o$=["","X","Y","Z"],z1e=1e3;let F1e=0;function i$(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0));}function jj(e){if(e.hasCheckedOptimisedAppear=true,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=sj(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Un,!(o||i));}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&jj(r);}function Uj({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},l=t?.()){this.id=F1e++,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(j1e),this.nodes.forEach(Y1e),this.nodes.forEach(X1e),this.nodes.forEach(U1e);},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 k1e);}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new QA),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=aS(s)&&!gj(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;Un.read(()=>{p=window.innerWidth;}),e(s,()=>{const b=window.innerWidth;b!==p&&(p=b,this.root.updateBlockedByResize=true,m&&m(),m=_1e(g,250),zy.hasAnimatedSinceResize&&(zy.hasAnimatedSinceResize=false,this.nodes.forEach(SL)));});}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()||tSe,{onLayoutAnimationStart:S,onLayoutAnimationComplete:x}=d.getProps(),$=!this.targetLayout||!zj(this.targetLayout,b),w=!p&&g;if(this.options.layoutRoot||this.resumeFrom||w||p&&($||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const M={...lR(y,"layout"),onPlay:S,onComplete:x};(d.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=false),this.startAnimation(M),this.setAnimationOrigin(m,w);}else p||SL(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(),hc(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(Q1e),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&&jj(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(G1e),this.nodes.forEach(bL);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(yL);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=false,this.nodes.forEach(q1e),this.nodes.forEach(K1e),this.nodes.forEach(H1e),this.nodes.forEach(V1e)):this.nodes.forEach(yL),this.clearAllSnapshots();const l=ko.now();ao.delta=la(0,1e3/60,l-ao.timestamp),ao.timestamp=l,ao.isProcessing=true,Xw.update.process(ao),Xw.preRender.process(ao),Xw.render.process(ao),ao.isProcessing=false;}didUpdate(){this.updateScheduled||(this.updateScheduled=true,pR.read(this.scheduleUpdate));}clearAllSnapshots(){this.nodes.forEach(W1e),this.sharedNodes.forEach(Z1e);}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=true,Un.preRender(this.updateProjection,false,true));}scheduleCheckAfterUnmount(){Un.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=$r()),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&&!Bj(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,m=d!==this.prevTransformTemplateValue;s&&this.instance&&(l||su(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)),nSe(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return $r();const l=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rSe))){const{scroll:d}=this.root;d&&(Qs(l.x,d.offset.x),Qs(l.y,d.offset.y));}return l}removeElementScroll(s){const l=$r();if(hs(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&&hs(l,s),Qs(l.x,m.offset.x),Qs(l.y,m.offset.y));}return l}applyTransform(s,l=false,u){const d=u||$r();hs(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&&(Qs(d.x,-p.scroll.offset.x),Qs(d.y,-p.scroll.offset.y)),su(p.latestValues)&&_y(d,p.latestValues,p.layout?.layoutBox);}return su(this.latestValues)&&_y(d,this.latestValues,this.layout?.layoutBox),d}removeTransform(s){const l=$r();hs(l,s);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!su(d.latestValues))continue;let m;d.instance&&(q3(d.latestValues)&&d.updateSnapshot(),m=$r(),hs(m,d.measurePageBox())),cL(l,d.latestValues,d.snapshot?.layoutBox,m);}return su(this.latestValues)&&cL(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!==ao.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=ao.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=$r(),this.targetWithTransforms=$r()),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):hs(this.target,this.layout.layoutBox),$j(this.target,this.targetDelta)):hs(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||q3(this.parent.latestValues)||wj(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=$r(),this.relativeTargetOrigin=$r(),K0(this.relativeTargetOrigin,l,u,this.options.layoutAnchor||void 0),hs(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===ao.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;hs(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,g=this.treeScale.y;e1e(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=$r());const{target:b}=s;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(rL(this.prevProjectionDelta.x,this.projectionDelta.x),rL(this.prevProjectionDelta.y,this.projectionDelta.y)),cp(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==g||!hL(this.projectionDelta.x,this.prevProjectionDelta.x)||!hL(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=$r(),b=u?u.source:void 0,y=this.layout?this.layout.source:void 0,S=b!==y,x=this.getStack(),$=!x||x.members.length<=1,w=!!(S&&!$&&this.options.crossfade===true&&!this.path.some(eSe));this.animationProgress=0;let M;this.mixTargetDelta=T=>{const A=T/1e3;CL(p.x,s.x,A),CL(p.y,s.y,A),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(K0(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),J1e(this.relativeTarget,this.relativeTargetOrigin,g,A),M&&R1e(this.relativeTarget,M)&&(this.isProjectionDirty=false),M||(M=$r()),hs(M,this.relativeTarget)),S&&(this.animationValues=m,I1e(m,d,this.latestValues,A,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&&(hc(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Un.update(()=>{zy.hasAnimatedSinceResize=true,this.motionValue||(this.motionValue=Uu(0)),this.motionValue.jump(0,false),this.currentAnimation=Vj(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(z1e),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&&Wj(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||$r();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;}hs(l,u),_y(l,m),cp(this.projectionDeltaWithTransform,this.layoutCorrected,l,m);}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new B1e),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&&i$("z",s,d,this.animationValues);for(let m=0;m<o$.length;m++)i$(`rotate${o$[m]}`,s,d,this.animationValues),i$(`skew${o$[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=By(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=By(l?.pointerEvents)||""),this.hasProjected&&!su(this.latestValues)&&(s.transform=u?u({},""):"none",this.hasProjected=false);return}s.visibility="";const m=d.animationValues||d.latestValues;this.applyTransformsToTarget();let p=N1e(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 Y3){if(m[y]===void 0)continue;const{correct:S,applyTo:x,isCSSVariable:$}=Y3[y],w=p==="none"?m[y]:S(m[y],d);if(x){const M=x.length;for(let T=0;T<M;T++)s[x[T]]=w;}else $?this.options.visualElement.renderState.vars[y]=w:s[y]=w;}this.options.layoutId&&(s.pointerEvents=d===this?By(l?.pointerEvents)||"":"none");}clearSnapshot(){this.resumeFrom=this.snapshot=void 0;}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(bL),this.root.sharedNodes.clear();}}}function H1e(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")Gs(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";X3(i?t.measuredBox[m]:t.layoutBox[m],n[m]);}else Wj(o,t.layoutBox,n)&&Gs(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();cp(s,n,t.layoutBox);const l=hf();i?cp(l,e.applyTransform(r,true),t.measuredBox):cp(l,n,t.layoutBox);const u=!Bj(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=$r();K0(y,t.layoutBox,p.layoutBox,b);const S=$r();K0(S,n,g.layoutBox,b),zj(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 j1e(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 U1e(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=false;}function W1e(e){e.clearSnapshot();}function bL(e){e.clearMeasurements();}function G1e(e){e.isLayoutDirty=true,e.updateLayout();}function yL(e){e.isLayoutDirty=false;}function q1e(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=true);}function K1e(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform();}function SL(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=true;}function Y1e(e){e.resolveTargetDelta();}function X1e(e){e.calcProjection();}function Q1e(e){e.resetSkewAndRotation();}function Z1e(e){e.removeLeadSnapshot();}function CL(e,t,n){e.translate=Gn(t.translate,0,n),e.scale=Gn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint;}function xL(e,t,n,r){e.min=Gn(t.min,n.min,r),e.max=Gn(t.max,n.max,r);}function J1e(e,t,n,r){xL(e.x,t.x,n.x,r),xL(e.y,t.y,n.y,r);}function eSe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const tSe={duration:.45,ease:[.4,0,.1,1]},wL=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$L=wL("applewebkit/")&&!wL("chrome/")?Math.round:ns;function EL(e){e.min=$L(e.min),e.max=$L(e.max);}function nSe(e){EL(e.x),EL(e.y);}function Wj(e,t,n){return e==="position"||e==="preserve-aspect"&&!$1e(mL(t),mL(n),.2)}function rSe(e){return e!==e.root&&e.scroll?.wasRoot}const oSe=Uj({attachResizeListener:(e,t)=>qp(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>true}),s$={current:void 0},Gj=Uj({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!s$.current){const e=new oSe({});e.mount(window),e.setOptions({layoutScroll:true}),s$.current=e;}return s$.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none";},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),uS=f.createContext({transformPagePoint:e=>e,isStatic:false,reducedMotion:"never"});function ML(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t);}function iSe(...e){return t=>{let n=false;const r=e.map(o=>{const i=ML(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():ML(e[o],null);}}}}function sSe(...e){return f.useCallback(iSe(...e),e)}class aSe extends f.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Iy(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==false){const r=n.offsetParent,o=Iy(r)&&r.offsetWidth||0,i=Iy(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 lSe({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(uS),m=e.props?.ref??e?.ref,p=sSe(l,m);return f.useInsertionEffect(()=>{const{width:g,height:b,top:y,left:S,right:x,bottom:$}=u.current;if(t||i===false||!l.current||!g||!b)return;const w=n==="left"?`left: ${S}`:`right: ${x}`,M=r==="bottom"?`bottom: ${$}`:`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;
            ${w}px !important;
            ${M}px !important;
          }
        `),()=>{l.current?.removeAttribute("data-motion-pop-id"),A.contains(T)&&A.removeChild(T);}},[t]),ni.jsx(aSe,{isPresent:t,childRef:l,sizeRef:u,pop:i,children:i===false?e:f.cloneElement(e,{ref:p})})}const cSe=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:l,anchorY:u,root:d})=>{const m=oS(uSe),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=ni.jsx(lSe,{pop:s==="popLayout",isPresent:n,anchorX:l,anchorY:u,root:d,children:e}),ni.jsx(iS.Provider,{value:b,children:e})};function uSe(){return new Map}function qj(e=true){const t=f.useContext(iS);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 Ub=e=>e.key||"";function TL(e){const t=[];return f.Children.forEach(e,n=>{f.isValidElement(n)&&t.push(n);}),t}const dSe=({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]=qj(s),g=f.useMemo(()=>TL(e),[e]),b=s&&!m?[]:g.map(Ub),y=f.useRef(true),S=f.useRef(g),x=oS(()=>new Map),$=f.useRef(new Set),[w,M]=f.useState(g),[T,A]=f.useState(g);mV(()=>{y.current=false,S.current=g;for(let I=0;I<T.length;I++){const O=Ub(T[I]);b.includes(O)?(x.delete(O),$.current.delete(O)):x.get(O)!==true&&x.set(O,false);}},[T,b.length,b.join("-")]);const P=[];if(g!==w){let I=[...g];for(let O=0;O<T.length;O++){const D=T[O],L=Ub(D);b.includes(L)||(I.splice(O,0,D),P.push(D));}return i==="wait"&&P.length&&(I=P),A(TL(I)),M(g),null}const{forceRender:N}=f.useContext(KA);return ni.jsx(ni.Fragment,{children:T.map(I=>{const O=Ub(I),D=s&&!m?false:g===T||b.includes(O),L=()=>{if($.current.has(O))return;if(x.has(O))$.current.add(O),x.set(O,true);else return;let V=true;x.forEach(U=>{U||(V=false);}),V&&(N?.(),A(S.current),s&&p?.(),r&&r());};return ni.jsx(cSe,{isPresent:D,initial:!y.current||n?void 0:false,custom:t,presenceAffectsLayout:o,mode:i,root:d,onExitComplete:D?void 0:L,anchorX:l,anchorY:u,children:I},O)})})},Kj=f.createContext({strict:false}),AL={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 RL=false;function fSe(){if(RL)return;const e={};for(const t in AL)e[t]={isEnabled:n=>AL[t].some(r=>!!n[r])};yj(e),RL=true;}function Yj(){return fSe(),Q0e()}function mSe(e){const t=Yj();for(const n in e)t[n]={...t[n],...e[n]};yj(t);}const hSe=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 Y0(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||hSe.has(e)}let Xj=e=>!Y0(e);function pSe(e){typeof e=="function"&&(Xj=t=>t.startsWith("on")?!Y0(t):e(t));}try{pSe(require("@emotion/is-prop-valid").default);}catch{}function gSe(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||_r(e[o])||(Xj(o)||n===true&&Y0(o)||!t&&!Y0(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const dS=f.createContext({});function vSe(e,t){if(cS(e)){const{initial:n,animate:r}=e;return {initial:n===false||Gp(n)?n:void 0,animate:Gp(r)?r:void 0}}return e.inherit!==false?t:{}}function bSe(e){const{initial:t,animate:n}=vSe(e,f.useContext(dS));return f.useMemo(()=>({initial:t,animate:n}),[NL(t),NL(n)])}function NL(e){return Array.isArray(e)?e.join(" "):e}const xR=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qj(e,t,n){for(const r in t)!_r(t[r])&&!Tj(r,n)&&(e[r]=t[r]);}function ySe({transformTemplate:e},t){return f.useMemo(()=>{const n=xR();return SR(n,t,e),Object.assign({},n.vars,n.style)},[t])}function SSe(e,t){const n=e.style||{},r={};return Qj(r,n,e),Object.assign(r,ySe(e,t)),r}function CSe(e,t){const n={},r=SSe(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 Zj=()=>({...xR(),attrs:{}});function xSe(e,t,n,r){const o=f.useMemo(()=>{const i=Zj();return Rj(i,t,Pj(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Qj(i,e.style,e),o.style={...i,...o.style};}return o}const wSe=["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 wR(e){return typeof e!="string"||e.includes("-")?false:!!(wSe.indexOf(e)>-1||/[A-Z]/u.test(e))}function $Se(e,t,n,{latestValues:r},o,i=false,s){const u=(s??wR(e)?xSe:CSe)(t,r,o,e),d=gSe(t,typeof e=="string",i),m=e!==f.Fragment?{...d,...u,ref:n}:{},{children:p}=t,g=f.useMemo(()=>_r(p)?p.get():p,[p]);return f.createElement(e,{...m,children:g})}function ESe({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return {latestValues:MSe(n,r,o,e),renderState:t()}}function MSe(e,t,n,r){const o={},i=r(e,{});for(const g in i)o[g]=By(i[g]);let{initial:s,animate:l}=e;const u=cS(e),d=vj(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"&&!lS(p)){const g=Array.isArray(p)?p:[p];for(let b=0;b<g.length;b++){const y=uR(e,g[b]);if(y){const{transitionEnd:S,transition:x,...$}=y;for(const w in $){let M=$[w];if(Array.isArray(M)){const T=m?M.length-1:0;M=M[T];}M!==null&&(o[w]=M);}for(const w in S)o[w]=S[w];}}}return o}const Jj=e=>(t,n)=>{const r=f.useContext(dS),o=f.useContext(iS),i=()=>ESe(e,t,r,o);return n?i():oS(i)},TSe=Jj({scrapeMotionValuesFromProps:CR,createRenderState:xR}),ASe=Jj({scrapeMotionValuesFromProps:Ij,createRenderState:Zj}),RSe=Symbol.for("motionComponentSymbol");function NSe(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 eU=f.createContext({});function rf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function PSe(e,t,n,r,o,i){const{visualElement:s}=f.useContext(dS),l=f.useContext(Kj),u=f.useContext(iS),d=f.useContext(uS),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(eU);y&&!y.projection&&o&&(y.type==="html"||y.type==="svg")&&ISe(g.current,n,o,S);const x=f.useRef(false);f.useInsertionEffect(()=>{y&&x.current&&y.update(n,u);});const $=n[ij],w=f.useRef(!!$&&typeof window<"u"&&!window.MotionHandoffIsComplete?.($)&&window.MotionHasOptimisedAnimation?.($));return mV(()=>{b.current=true,y&&(x.current=true,window.MotionIsMounted=true,y.updateFeatures(),y.scheduleRenderMicrotask(),w.current&&y.animationState&&y.animationState.animateChanges());}),f.useEffect(()=>{y&&(!w.current&&y.animationState&&y.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.($);}),w.current=false),y.enteringChildren=void 0);}),y}function ISe(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:tU(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 tU(e){if(e)return e.options.allowProjection!==false?e.projection:tU(e.parent)}function a$(e,{forwardMotionProps:t=false,type:n}={},r,o){r&&mSe(r);const i=n?n==="svg":wR(e),s=i?ASe:TSe;function l(d,m){let p;const g={...f.useContext(uS),...d,layoutId:OSe(d)},{isStatic:b}=g,y=bSe(d),S=s(d,b);if(!b&&typeof window<"u"){DSe();const x=LSe(g);p=x.MeasureLayout,y.visualElement=PSe(e,S,g,o,x.ProjectionNode,i);}return ni.jsxs(dS.Provider,{value:y,children:[p&&y.visualElement?ni.jsx(p,{visualElement:y.visualElement,...g}):null,$Se(e,d,NSe(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[RSe]=e,u}function OSe({layoutId:e}){const t=f.useContext(KA).id;return t&&e!==void 0?t+"-"+e:e}function DSe(e,t){f.useContext(Kj).strict;}function LSe(e){const t=Yj(),{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 kSe(e,t){if(typeof Proxy>"u")return a$;const n=new Map,r=(i,s)=>a$(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,a$(s,void 0,e,t)),n.get(s))})}const _Se=(e,t)=>t.isSVG??wR(e)?new Oj(t):new Aj(t,{allowProjection:e!==f.Fragment});class BSe extends Tc{constructor(t){super(t),t.animationState||(t.animationState=b1e(t));}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();lS(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 zSe=0;class FSe extends Tc{constructor(){super(...arguments),this.id=zSe++,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=Pu(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 HSe={animation:{Feature:BSe},exit:{Feature:FSe}};function kg(e){return {point:{x:e.pageX,y:e.pageY}}}const VSe=e=>t=>gR(t)&&e(t,kg(t));function up(e,t,n,r){return qp(e,t,VSe(n),r)}const nU=({current:e})=>e?e.ownerDocument.defaultView:null,PL=(e,t)=>Math.abs(e-t);function jSe(e,t){const n=PL(e.x,t.x),r=PL(e.y,t.y);return Math.sqrt(n**2+r**2)}const IL=new Set(["auto","scroll"]);class rU{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=Wb(this.lastRawMoveEventInfo,this.transformPagePoint));const b=l$(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,S=jSe(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!S)return;const{point:x}=b,{timestamp:$}=ao;this.history.push({...x,timestamp:$});const{onStart:w,onMove:M}=this.handlers;y||(w&&w(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,b);},this.handlePointerMove=(b,y)=>{this.lastMoveEvent=b,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=Wb(y,this.transformPagePoint),Un.update(this.updatePoint,true);},this.handlePointerUp=(b,y)=>{this.end();const{onEnd:S,onSessionEnd:x,resumeAnimation:$}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&$&&$(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=l$(b.type==="pointercancel"?this.lastMoveEventInfo:Wb(y,this.transformPagePoint),this.history);this.startEvent&&S&&S(b,w),x&&x(b,w);},!gR(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const u=kg(t),d=Wb(u,this.transformPagePoint),{point:m}=d,{timestamp:p}=ao;this.history=[{...m,timestamp:p}];const{onSessionStart:g}=n;g&&g(t,l$(d,this.history)),this.removeListeners=Og(up(this.contextWindow,"pointermove",this.handlePointerMove),up(this.contextWindow,"pointerup",this.handlePointerUp),up(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l);}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(IL.has(r.overflowX)||IL.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),Un.update(this.updatePoint,true));}updateHandlers(t){this.handlers=t;}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),hc(this.updatePoint);}}function Wb(e,t){return t?{point:t(e.point)}:e}function OL(e,t){return {x:e.x-t.x,y:e.y-t.y}}function l$({point:e},t){return {point:e,delta:OL(e,oU(t)),offset:OL(e,USe(t)),velocity:WSe(t,.1)}}function USe(e){return e[0]}function oU(e){return e[e.length-1]}function WSe(e,t){if(e.length<2)return {x:0,y:0};let n=e.length-1,r=null;const o=oU(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ri(t)));)n--;if(!r)return {x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>ri(t)*2&&(r=e[1]);const i=es(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 GSe(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Gn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Gn(n,e,r.max):Math.min(e,n)),e}function DL(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 qSe(e,{top:t,left:n,bottom:r,right:o}){return {x:DL(e.x,n,o),y:DL(e.y,t,r)}}function LL(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 KSe(e,t){return {x:LL(e.x,t.x),y:LL(e.y,t.y)}}function YSe(e,t){let n=.5;const r=_o(e),o=_o(t);return o>r?n=Hf(t.min,t.max-r,e.min):r>o&&(n=Hf(e.min,e.max-o,t.min)),la(0,1,n)}function XSe(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 Q3=.35;function QSe(e=Q3){return e===false?e=0:e===true&&(e=Q3),{x:kL(e,"left","right"),y:kL(e,"top","bottom")}}function kL(e,t,n){return {min:_L(e,t),max:_L(e,n)}}function _L(e,t){return typeof e=="number"?e:e[t]||0}const ZSe=new WeakMap;class JSe{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=$r(),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(kg(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=N0e(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),Gs($=>{let w=this.getAxisMotionValue($).get()||0;if(oa.test(w)){const{projection:M}=this.visualElement;if(M&&M.layout){const T=M.layout.layoutBox[$];T&&(w=_o(T)*(parseFloat(w)/100));}}this.originPoint[$]=w;}),S&&Un.update(()=>S(p,g),false,true),j3(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:$}=g;if(y&&this.currentDirection===null){this.currentDirection=tCe($),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",g.point,$),this.updateAxis("y",g.point,$),this.visualElement.render(),x&&Un.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 rU(t,{onSessionStart:i,onStart:s,onMove:l,onSessionEnd:u,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:nU(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&&Un.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||!Gb(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=GSe(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=qSe(r.layoutBox,t):this.constraints=false,this.elastic=QSe(n),o!==this.constraints&&!rf(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Gs(i=>{this.constraints!==false&&this.getAxisMotionValue(i)&&(this.constraints[i]=XSe(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=t1e(r,o.root,this.visualElement.getTransformPagePoint());let s=KSe(o.layout.layoutBox,i);if(n){const l=n(Z0e(s));this.hasMutatedConstraints=!!l,l&&(s=xj(l));}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},d=Gs(m=>{if(!Gb(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 j3(this.visualElement,t),r.start(cR(t,r,0,n,this.visualElement,false))}stopAnimation(){Gs(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){Gs(n=>{const{drag:r}=this.getProps();if(!Gb(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]-Gn(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};Gs(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==false){const u=l.get();o[s]=YSe({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(),Gs(s=>{if(!Gb(s,t,null))return;const l=this.getAxisMotionValue(s),{min:u,max:d}=this.constraints[s];l.set(Gn(u,d,o[s]));}),this.visualElement.render();}addListeners(){if(!this.visualElement.current)return;ZSe.set(this.visualElement,this);const t=this.visualElement.current,n=up(t,"pointerdown",d=>{const{drag:m,dragListener:p=true}=this.getProps(),g=d.target,b=g!==t&&k0e(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=eCe(t,d.current,()=>this.scalePositionWithinConstraints())));},{projection:i}=this.visualElement,s=i.addEventListener("measure",o);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Un.read(o);const l=qp(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:m})=>{this.isDragging&&m&&(Gs(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=Q3,dragMomentum:l=true}=t;return {...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:l}}}function BL(e){let t=true;return ()=>{if(t){t=false;return}e();}}function eCe(e,t,n){const r=W8(e,BL(n)),o=W8(t,BL(n));return ()=>{r(),o();}}function Gb(e,t,n){return (t===true||t===e)&&(n===null||n===e)}function tCe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class nCe extends Tc{constructor(t){super(t),this.removeGroupControls=ns,this.removeListeners=ns,this.controls=new JSe(t);}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ns;}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 c$=e=>(t,n)=>{e&&Un.update(()=>e(t,n),false,true);};class rCe extends Tc{constructor(){super(...arguments),this.removePointerDownListener=ns;}onPointerDown(t){this.session=new rU(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nU(this.node)});}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return {onSessionStart:c$(t),onStart:c$(n),onMove:c$(r),onEnd:(i,s)=>{delete this.session,o&&Un.postRender(()=>o(i,s));}}}mount(){this.removePointerDownListener=up(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 u$=false;class oCe 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),u$&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove();}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),zy.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}),u$=true,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Un.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(),pR.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove();}));}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;u$=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 iU(e){const[t,n]=qj(),r=f.useContext(KA);return ni.jsx(oCe,{...e,layoutGroup:r,switchLayoutGroup:f.useContext(eU),isPresent:t,safeToRemove:n})}const iCe={pan:{Feature:rCe},drag:{Feature:nCe,ProjectionNode:Gj,MeasureLayout:iU}};function zL(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&&Un.postRender(()=>i(t,kg(t)));}class sCe extends Tc{mount(){const{current:t}=this.node;t&&(this.unmount=I0e(t,(n,r)=>(zL(this.node,r,"Start"),o=>zL(this.node,o,"End"))));}unmount(){}}class aCe extends Tc{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=Og(qp(this.node.current,"focus",()=>this.onFocus()),qp(this.node.current,"blur",()=>this.onBlur()));}unmount(){}}function FL(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&&Un.postRender(()=>i(t,kg(t)));}class lCe extends Tc{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=B0e(t,(o,i)=>(FL(this.node,i,"Start"),(s,{success:l})=>FL(this.node,s,l?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:r?.tap===false});}unmount(){}}const Z3=new WeakMap,d$=new WeakMap,cCe=e=>{const t=Z3.get(e.target);t&&t(e);},uCe=e=>{e.forEach(cCe);};function dCe({root:e,...t}){const n=e||document;d$.has(n)||d$.set(n,{});const r=d$.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(uCe,{root:e,...t})),r[o]}function fCe(e,t,n){const r=dCe(t);return Z3.set(e,n),r.observe(e),()=>{Z3.delete(e),r.unobserve(e);}}const mCe={some:0,all:1};class hCe extends Tc{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:mCe[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=fCe(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(pCe(t,n))&&this.startObserver();}unmount(){this.stopObserver?.(),this.hasEnteredView=false,this.isInView=false;}}function pCe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const gCe={inView:{Feature:hCe},tap:{Feature:lCe},focus:{Feature:aCe},hover:{Feature:sCe}},vCe={layout:{ProjectionNode:Gj,MeasureLayout:iU}},bCe={...HSe,...gCe,...iCe,...vCe},$R=kSe(bCe,_Se);function yCe(e){return f.useEffect(()=>()=>e(),[])}function SCe(){!yR.current&&bj();const[e]=f.useState(W0.current);return e}function CCe(){const e=SCe(),{reducedMotion:t}=f.useContext(uS);return t==="never"?false:t==="always"?true:e}function ER(e){return typeof e=="object"&&!Array.isArray(e)}function sU(e,t,n,r){return e==null?[]:typeof e=="string"&&ER(t)?hR(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(o=>o!=null):[e]}function xCe(e,t,n){return e*(t+1)}function HL(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 wCe(e,t,n){for(let r=0;r<e.length;r++){const o=e[r];o.at>t&&o.at<n&&(Ff(e,o),r--);}}function $Ce(e,t,n,r,o,i){wCe(e,o,i);for(let s=0;s<t.length;s++)e.push({value:t[s],at:Gn(o,i,r[s]),easing:RV(n,s)});}function ECe(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1);}function MCe(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const TCe="easeInOut";function ACe(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,HL(p,y.at,m,d));continue}let[S,x,$={}]=y;$.at!==void 0&&(p=HL(p,$.at,m,d));let w=0;const M=(T,A,P,N=0,I=0)=>{const O=RCe(T),{delay:D=0,times:L=UV(O),type:V=t.type||"keyframes",repeat:U,repeatType:W,repeatDelay:z=0,...k}=A;let{ease:G=t.ease||"easeOut",duration:j}=A;const K=typeof D=="function"?D(N,I):D,X=O.length,B=aR(V)?V:o?.[V||"keyframes"];if(X<=2&&B){let te=100;if(X===2&&ICe(O)){const oe=O[1]-O[0];te=Math.abs(oe);}const ne={...t,...k};j!==void 0&&(ne.duration=ri(j));const re=HV(ne,te,B);G=re.ease,j=re.duration;}j??(j=i);const H=p+K;L.length===1&&L[0]===0&&(L[1]=1);const Q=L.length-O.length;if(Q>0&&jV(L,Q),O.length===1&&O.unshift(null),U){j=xCe(j,U);const te=[...O],ne=[...L];G=Array.isArray(G)?[...G]:[G];const re=[...G];for(let oe=0;oe<U;oe++){O.push(...te);for(let de=0;de<te.length;de++)L.push(ne[de]+(oe+1)),G.push(de===0?"linear":RV(re,de-1));}ECe(L,U);}const J=H+j;$Ce(P,O,G,L,H,J),w=Math.max(K+j,w),g=Math.max(J,g);};if(_r(S)){const T=VL(S,l);M(x,$,jL("default",T));}else {const T=sU(S,x,r,u),A=T.length;for(let P=0;P<A;P++){x=x,$=$;const N=T[P],I=VL(N,l);for(const O in x)M(x[O],NCe($,O),jL(O,I),P,A);}}m=p,p+=w;}return l.forEach((b,y)=>{for(const S in b){const x=b[S];x.sort(MCe);const $=[],w=[],M=[];for(let N=0;N<x.length;N++){const{at:I,value:O,easing:D}=x[N];$.push(O),w.push(Hf(0,g,I)),M.push(D||"easeOut");}w[0]!==0&&(w.unshift(0),$.unshift($[0]),M.unshift(TCe)),w[w.length-1]!==1&&(w.push(1),$.push(null)),s.has(y)||s.set(y,{keyframes:{},transition:{}});const T=s.get(y);T.keyframes[S]=$;const{type:A,...P}=t;T.transition[S]={...P,duration:g,ease:M,times:w,...n};}}),s}function VL(e,t){return !t.has(e)&&t.set(e,{}),t.get(e)}function jL(e,t){return t[e]||(t[e]=[]),t[e]}function RCe(e){return Array.isArray(e)?e:[e]}function NCe(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const PCe=e=>typeof e=="number",ICe=e=>e.every(PCe);function OCe(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=aS(e)&&!gj(e)?new Oj(t):new Aj(t);n.mount(e),Wp.set(e,n);}function DCe(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new l1e(t);n.mount(e),Wp.set(e,n);}function LCe(e,t){return _r(e)||typeof e=="number"||typeof e=="string"&&!ER(t)}function aU(e,t,n,r){const o=[];if(LCe(e,t))o.push(Vj(e,ER(t)&&t.default||t,n&&(n.default||n)));else {if(e==null)return o;const i=sU(e,t,r),s=i.length;for(let l=0;l<s;l++){const u=i[l],d=u instanceof Element?OCe:DCe;Wp.has(u)||d(u);const m=Wp.get(u),p={...n};"delay"in p&&typeof p.delay=="function"&&(p.delay=p.delay(l,s)),o.push(...fR(m,{...t,transition:p},{}));}}return o}function kCe(e,t,n){const r=[],o=e.map(s=>{if(Array.isArray(s)&&typeof s[0]=="function"){const l=s[0],u=Uu(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 ACe(o,t,n,{spring:Up}).forEach(({keyframes:s,transition:l},u)=>{r.push(...aU(u,s,l));}),r}function _Ce(e){return Array.isArray(e)&&e.some(Array.isArray)}function lU(e={}){const{scope:t,reduceMotion:n}=e;function r(o,i,s){let l=[],u;if(_Ce(o)){const{onComplete:m,...p}=i||{};typeof m=="function"&&(u=m),l=kCe(o,n!==void 0?{reduceMotion:n,...p}:p,t);}else {const{onComplete:m,...p}=s||{};typeof m=="function"&&(u=m),l=aU(o,i,n!==void 0?{reduceMotion:n,...p}:p,t);}const d=new Jye(l);return u&&d.finished.then(u),t&&(t.animations.push(d),d.finished.then(()=>{Ff(t.animations,d);})),d}return r}lU();function BCe(){const e=oS(()=>({current:null,animations:[]})),t=CCe()??void 0,n=f.useMemo(()=>lU({scope:e,reduceMotion:t}),[e,t]);return yCe(()=>{e.animations.forEach(r=>r.stop()),e.animations.length=0;}),[e,n]}function Kp({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($R.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 cU=Tve,MR=Rve,_g=Pve,Bg=Ove,To=Lve,J3=_ve,eM=zve,uU=Hve,tM=jve,zCe=Wve,FCe=qve,dU=Yve,HCe=Qve,fU=xve,VCe=Jve,jCe=tbe,UCe=rbe,WCe=ibe,X0=$ve,Wu=abe,GCe=cbe,qCe=dbe,Q0=mbe,nM=pbe,TR=dV,Iu=bbe,mU=qA,vm=Sbe,KCe=fV,AR=wbe,YCe="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 RR({active:e=false,...t}){return e?C("img",{...t,src:YCe}):C(Ebe,{...t})}const NR=mm(e=>_("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"})]})),hU=lQ(),PR=hU.os.name?.toLowerCase()==="mac os",XCe=hU.browser.name||"",IR=e=>new RegExp(String.raw`\b${e}\b`,"i").test(XCe),zg=IR("safari");IR("firefox");IR("edge");const QCe=({title:e,titleId:t,...n},r)=>_("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"})]}),ZCe=f.forwardRef(QCe),JCe=({title:e,titleId:t,...n},r)=>_("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"})]}),exe=f.forwardRef(JCe),txe=({title:e,titleId:t,...n},r)=>_("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,_("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})]})]}),nxe=f.forwardRef(txe),rxe=({title:e,titleId:t,...n},r)=>_("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"})]}),oxe=f.forwardRef(rxe),UL="0";function Ou(e,t){GM.setClipboard(e),Rt.success(`已复制: ${e}`,t);}var pc=(e=>(e.PlayerScreenMode=`${Q4}-player-screen-mode`,e.ForceAutoPlay=`${Q4}-force-auto-play`,e))(pc||{}),Kl=(e=>(e.Normal="normal",e.Wide="wide",e.WebFullscreen="web",e.Fullscreen="full",e))(Kl||{}),OR=(e=>(e.ON="on",e.OFF="off",e))(OR||{}),lr=(e=>(e.Normal="Normal",e.CurrentPage="CurrentPage",e.NormalWebFullscreen="NormalWebFullscreen",e.Popup="Popup",e.Background="Background",e.Iina="Iina",e))(lr||{});const WL=Object.entries(lr).reduce((e,[t,n])=>({...e,[n]:`LinkOpenMode.${t}`}),{}),Ci={Normal:{icon:C(To,{className:"size-16px"}),label:"打开",desc:"默认在新标签页中打开"},CurrentPage:{icon:C(ZCe,{className:"size-16px"}),label:"当前页中打开",desc:"不打开新标签页, 使用当前标签页打开, 适用于将网站作为应用安装场景"},NormalWebFullscreen:{icon:C(exe,{className:"size-15px"}),label:"打开-网页全屏",desc:C(De,{children:"默认在新标签页中打开, 打开后自动网页全屏"})},Popup:{icon:C(nxe,{className:"size-15px"}),label:"小窗打开",desc:_(De,{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(oxe,{className:"size-15px"}),label:"后台打开"},Iina:{icon:C(Bg,{className:"size-15px"}),label:"在 IINA 中打开",enabled:PR,desc:C(De,{children:C("a",{href:"https://github.com/magicdawn/Bilibili-Gate/blob/main/notes/iina.md",target:"_blank",children:"macOS IINA 设置教程"})})}};function ixe(){return new ho}const pU=ixe(),rM={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"}},sxe="z-2",axe="z-3",lxe="z-4",cxe="z-5",uxe="z-6";var rt=(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))(rt||{}),gr=(e=>(e.PopularGeneral="popular-general",e.PopularWeekly="popular-weekly",e.Rank="ranking",e))(gr||{}),Je=(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))(Je||{}),Kr=(e=>(e.NormalGrid="grid",e.List="list",e.TwoColumnGrid="two-column-grid",e.CenterEmptyGrid="center-empty-grid",e))(Kr||{}),Du=(e=>(e.Center="center",e.Left="left",e.Right="right",e))(Du||{}),jf=(e=>(e.Left="left",e.Right="right",e))(jf||{}),Zs=(e=>(e[e.Offline=0]="Offline",e[e.Streaming=1]="Streaming",e[e.Rolling=2]="Rolling",e))(Zs||{}),Ao=(e=>(e.AddTimeDesc="add-time-desc",e.AddTimeAsc="add-time-asc",e.Shuffle="shuffle",e))(Ao||{});function gU(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)&&gU(o,i,n);}return [...new Set(n)]}function vU(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(...vU(o,i)));}return [...new Set(n)]}function dxe(e){const t=gU(e),n=vU(e);return t.filter(r=>!n.includes(r))}const bU=C(qA,{className:"text-gate-primary [.ant-spin_.ant-spin-dot&]:size-25px"}),yU="flex items-center gap-x-1 [&.ant-btn:not(:disabled):focus-visible]:outline-0";function GL(e){if(/^z-\d+$/.test(e))return Number.parseInt(e.slice(2))}const fxe="z-1001",mxe="z-10004",hxe="z-10005",qL="z-11000",pxe="z-11200",gxe="z-11300",vxe="z-90000",KL={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",vxe),singleLine:"text-center"};function On(e,t=2e3,n=document.body){const r=document.createElement("div");r.textContent=e;const o=!e.includes(`
`)&&!e.includes("<br");r.className=Y(Ls,KL.default,o&&KL.singleLine),n.appendChild(r),setTimeout(()=>r.remove(),t);}var f$,YL;function bxe(){if(YL)return f$;YL=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;f$=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 f$}var yxe=bxe();const Zr=Sc(yxe);function li(e,t){return ((...n)=>n.length>=2?t(n[0],n[1]):r=>t(r,n[0]))}const Sxe=e=>e instanceof Error?{name:e.name,message:e.message,stack:e.stack}:e,Cxe=e=>e instanceof Error&&"_tag"in e&&typeof e._tag=="string",DR=Object.assign(e=>()=>{class t extends Error{_tag=e;static is(r){return r instanceof t}constructor(r){let o=r&&"message"in r&&typeof r.message=="string"?r.message:void 0,i=r&&"cause"in r?r.cause:void 0;if(super(o,i===void 0?void 0:{cause:i}),r&&Object.assign(this,r),Object.setPrototypeOf(this,new.target.prototype),this.name=e,i instanceof Error&&i.stack){let s=i.stack.replace(/\n/g,`
  `);this.stack=`${this.stack}
Caused by: ${s}`;}}toJSON(){return {...this,_tag:this._tag,name:this.name,message:this.message,cause:Sxe(this.cause),stack:this.stack}}}return t},{is:Cxe});var LR=class extends DR("UnhandledException")(){constructor(t){let n=t.cause instanceof Error?`Unhandled exception: ${t.cause.message}`:`Unhandled exception: ${String(t.cause)}`;super({message:n,cause:t.cause});}},xxe=class extends DR("Panic")(){},wxe=class extends DR("ResultDeserializationError")(){constructor(t){super({message:'Failed to deserialize value as Result: expected { status: "ok", value } or { status: "error", error }',value:t.value});}};const ws=(e,t)=>{throw new xxe({message:e,cause:t})},xs=(e,t)=>{try{return e()}catch(n){throw ws(t,n)}},$f=async(e,t)=>{try{return await e()}catch(n){throw ws(t,n)}};var SU=class CU{status="ok";constructor(t){this.value=t;}isOk(){return  true}isErr(){return  false}map(t){return xs(()=>new CU(t(this.value)),"map callback threw")}mapError(t){return this}tryRecover(t){return this}tryRecoverAsync(t){return Promise.resolve(this)}andThen(t){return xs(()=>t(this.value),"andThen callback threw")}andThenAsync(t){return $f(()=>t(this.value),"andThenAsync callback threw")}match(t){return xs(()=>t.ok(this.value),"match ok handler threw")}unwrap(t){return this.value}unwrapOr(t){return this.value}tap(t){return xs(()=>(t(this.value),this),"tap callback threw")}tapAsync(t){return $f(async()=>(await t(this.value),this),"tapAsync callback threw")}tapError(t){return this}tapErrorAsync(t){return Promise.resolve(this)}tapBoth(t){return xs(()=>(t.ok(this.value),this),"tapBoth ok callback threw")}tapBothAsync(t){return $f(async()=>(await t.ok(this.value),this),"tapBothAsync ok callback threw")}*[Symbol.iterator](){return this.value}},xU=class wU{status="error";constructor(t){this.error=t;}isOk(){return  false}isErr(){return  true}map(t){return this}mapError(t){return xs(()=>new wU(t(this.error)),"mapError callback threw")}tryRecover(t){return xs(()=>t(this.error),"tryRecover callback threw")}tryRecoverAsync(t){return $f(()=>t(this.error),"tryRecoverAsync callback threw")}andThen(t){return this}andThenAsync(t){return Promise.resolve(this)}match(t){return xs(()=>t.err(this.error),"match err handler threw")}unwrap(t){return ws(t??`Unwrap called on Err: ${String(this.error)}`,this.error)}unwrapOr(t){return t}tap(t){return this}tapError(t){return xs(()=>(t(this.error),this),"tapError callback threw")}tapAsync(t){return Promise.resolve(this)}tapErrorAsync(t){return $f(async()=>(await t(this.error),this),"tapErrorAsync callback threw")}tapBoth(t){return xs(()=>(t.err(this.error),this),"tapBoth err callback threw")}tapBothAsync(t){return $f(async()=>(await t.err(this.error),this),"tapBothAsync err callback threw")}*[Symbol.iterator](){return yield this,ws("Unreachable: Err yielded in Result.gen but generator continued",this.error)}};function Yp(e){return new SU(e)}const $xe=e=>e.status==="ok",Uf=e=>new xU(e),Exe=e=>e.status==="error",Mxe=(e,t)=>{let n=()=>{if(typeof e=="function")try{return Yp(e())}catch(i){return Uf(new LR({cause:i}))}try{return Yp(e.try())}catch(i){try{return Uf(e.catch(i))}catch(s){throw ws("Result.try catch handler threw",s)}}},r=t?.retry?.times??0,o=n();for(let i=0;i<r&&o.status==="error";i++)o=n();return o},Txe=async(e,t)=>{let n=async()=>{if(typeof e=="function")try{return Yp(await e())}catch(u){return Uf(new LR({cause:u}))}try{return Yp(await e.try())}catch(u){try{return Uf(await e.catch(u))}catch(d){throw ws("Result.tryPromise catch handler threw",d)}}},r=t?.retry;if(!r)return n();let o=u=>{switch(r.backoff){case "constant":return r.delayMs;case "linear":return r.delayMs*(u+1);case "exponential":return r.delayMs*2**u}},i=u=>new Promise(d=>setTimeout(d,u)),s=await n(),l=r.shouldRetry??(()=>true);for(let u=0;u<r.times&&s.status==="error";u++){let d=s.error;if(!xs(()=>l(d),"shouldRetry predicate threw"))break;await i(o(u)),s=await n();}return s},Axe=li(2,(e,t)=>e.map(t)),Rxe=li(2,(e,t)=>e.mapError(t)),Nxe=li(2,(e,t)=>e.tryRecover(t)),Pxe=li(2,(e,t)=>e.andThen(t)),Ixe=li(2,(e,t)=>e.tryRecoverAsync(t)),Oxe=li(2,(e,t)=>e.andThenAsync(t)),Dxe=li(2,(e,t)=>e.match(t)),Lxe=li(2,(e,t)=>e.tap(t)),kxe=li(2,(e,t)=>e.tapAsync(t)),_xe=li(2,(e,t)=>e.tapError(t)),Bxe=li(2,(e,t)=>e.tapErrorAsync(t)),zxe=li(2,(e,t)=>e.tapBoth(t)),Fxe=li(2,(e,t)=>e.tapBothAsync(t)),Hxe=(e,t)=>e.unwrap(t);function XL(e){if(!(typeof e=="object"&&e&&"status"in e&&(e.status==="ok"||e.status==="error")))return ws("Result.gen body must return Result.ok() or Result.err(), got: "+(e===null?"null":typeof e=="object"?JSON.stringify(e):String(e)))}const Vxe=li(2,(e,t)=>e.unwrapOr(t)),jxe=((e,t)=>{let n=e.call(t);if(Symbol.asyncIterator in n)return (async()=>{let i=n,s;try{s=await i.next();}catch(l){throw ws("generator body threw",l)}if(XL(s.value),!s.done)try{await i.return?.(void 0);}catch(l){throw ws("generator cleanup threw",l)}return s.value})();let r=n,o;try{o=r.next();}catch(i){throw ws("generator body threw",i)}if(XL(o.value),!o.done)try{r.return?.(void 0);}catch(i){throw ws("generator cleanup threw",i)}return o.value});async function*Uxe(e){return yield*await e}function Wxe(e){return typeof e=="object"&&!!e&&"status"in e&&(e.status==="ok"&&"value"in e||e.status==="error"&&"error"in e)}const Gxe=e=>e.status==="ok"?{status:"ok",value:e.value}:{status:"error",error:e.error},QL=e=>Wxe(e)?e.status==="ok"?new SU(e.value):new xU(e.error):Uf(new wxe({value:e})),mo={ok:Yp,isOk:$xe,err:Uf,isError:Exe,try:Mxe,tryPromise:Txe,map:Axe,mapError:Rxe,tryRecover:Nxe,andThen:Pxe,tryRecoverAsync:Ixe,andThenAsync:Oxe,match:Dxe,tap:Lxe,tapAsync:kxe,tapError:_xe,tapErrorAsync:Bxe,tapBoth:zxe,tapBothAsync:Fxe,unwrap:Hxe,unwrapOr:Vxe,gen:jxe,await:Uxe,serialize:Gxe,deserialize:QL,hydrate:e=>QL(e),partition:e=>{let t=[],n=[];for(let r of e)r.status==="ok"?t.push(r.value):n.push(r.error);return [t,n]},flatten:e=>e.status==="ok"?e.value:e};function qxe(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 Kxe(e,t){const n=qxe(t.responseHeaders),r=typeof t.response=="string"?new Blob([t.response],{type:n.get("Content-Type")||"text/plain"}):t.response;return new kR(r,{statusCode:t.status,statusText:t.statusText,headers:n,finalUrl:t.finalUrl,redirected:t.finalUrl===e.url})}class kR{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 kR(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(Yxe)}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 Yxe(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 Xxe(e,t){const n=new Request(e,t);let r;return t?.body&&(r=await n.text()),await Qxe(n,t,r)}function Qxe(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:ewe(e.method.toUpperCase()),headers:Object.fromEntries(new Headers(t?.headers).entries()),data:n,responseType:"blob",onload(i){try{r(Kxe(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 Zxe=["GET","POST","PUT","DELETE","PATCH","HEAD","TRACE","OPTIONS","CONNECT"];function Jxe(e,t){return e.includes(t)}function ewe(e){if(Jxe(Zxe,e))return e;throw new Error(`unsupported http method ${e}`)}const m$=()=>Xn().format("YYYY-MM-DD");function $U(e){async function t(){const n=m$();(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}:${m$()}`,n);},get(){return t(),GM.getValue(`${e}:${m$()}`)}}}const twe=(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);!nwe(o,i)&&r||Object.defineProperty(e,n,i);},nwe=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)},rwe=(e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n);},owe=(e,t)=>`/* Wrapped ${e}*/
${t}`,iwe=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),swe=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),awe=(e,t,n)=>{const r=n===""?"":`with ${n.trim()}() `,o=owe.bind(null,r,t.toString());Object.defineProperty(o,"name",swe);const{writable:i,enumerable:s,configurable:l}=iwe;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:s,configurable:l});};function lwe(e,t,{ignoreNonConfigurable:n=false}={}){const{name:r}=e;for(const o of Reflect.ownKeys(t))twe(e,t,o,n);return rwe(e,t),awe(e,t,r),e}const cwe=new WeakMap;function _R(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 lwe(s,e,{ignoreNonConfigurable:true}),cwe.set(s,o),s}function al(e,t){return t??=(...n)=>JSON.stringify(n),_R(e,{cache:false,cacheKey(n){return t(...n)}})}async function fS(e){const{img_key:t,sub_key:n}=await uwe(),r=mwe(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 EU=$U("wbi-keys"),uwe=al(async function(){const e=await EU.get();return e?.val&&e?.ts&&Date.now()-e.ts<=Zr("6h")?e.val:dwe()});async function dwe(){const t=(await UM.get("/x/web-interface/nav",{baseURL:B9})).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 EU.set({val:o,ts:Date.now()}),o}const fwe=[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 mwe(e){return fwe.map(t=>e[t]).join("").slice(0,32)}function MU(e,t,n){e.appkey=t;const r=new URLSearchParams(e);return r.sort(),sparkMd5.hash(r.toString()+n)}const hwe={platform:"ios",mobi_app:"ipad",device:"pad",build:"37300100",c_locale:"zh-Hans_CN",s_locale:"zh-Hans_CN"};class BR extends Error{constructor(t,n){t||="需要有效的 access_key",super(t,{cause:n}),this.name="NeedValidAccessKeyError";}}const Zt=TU(UM.create({baseURL:B9,withCredentials:true}));Zt.interceptors.request.use(async function(e){return e.params||={},e.url?.includes("/wbi/")&&!(e.params.w_rid||e.params.wts)&&(e.params=await fS(e.params)),e});function Hr(e){return e?.code===0&&["0","success","ok"].includes(e?.message?.toLowerCase())}class oi extends Error{constructor(t,n,r){super(oi.getShortMessage(n,t.data)),this.response=t,this.requestAction=n,this.extraMessage=r,this.name="WebApiError";}static getActionText(t){let n=t||"API 响应错误";return /错误|失败$/.test(n)||(n+="错误"),n}static getShortMessage(t,n){const r=this.getActionText(t),o=n?.message||n?.code;return `${r}: ${o}`}get details(){const t=this.response.config?.method?.toUpperCase(),n=this.response.config?.url,r=`${t} ${n}`,o=this.response.data,i=`(code: ${o?.code}, message: ${o?.message})`,l=`${oi.getActionText(this.requestAction)}: (code: ${o?.code}, message: ${o?.message}, request: ${r})`+(this.extraMessage||"");return {message:this.message,requestStr:r,jsonSummary:i,extraMessage:this.extraMessage,longMessage:l}}formatAsReactNode(){const{message:t,requestStr:n,jsonSummary:r,extraMessage:o}=this.details;return _("p",{className:"text-left",children:[t," ",C("br",{}),n," ",C("br",{}),r,o&&_(De,{children:[C("br",{}),o]})]})}static validateAxiosResponse(t,n,r){const o=t.data;return Hr(o)?mo.ok(o):mo.err(new oi(t,n,r))}}const Fg=TU(UM.create({baseURL:nT,adapter:"fetch",env:{fetch:Xxe}}));Fg.interceptors.request.use(function(e){if(!e.params?.sign){const{appkey:t,appsec:n}=yp;e.params={appkey:t,access_key:ot.accessKey||"",...x9(e.params,["sign"])},e.params.sign=MU(e.params,t,n);}return e});Fg.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){zo("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 ZL(e){return (...t)=>mo.tryPromise({try:()=>e(...t),catch(n){return n&&n instanceof UM.AxiosError?n:new LR({cause:n})}})}function TU(e){const t=e;return t.safeGet=ZL(e.get.bind(e)),t.safePost=ZL(e.post.bind(e)),t}function zR(){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 Ac(){const e=zR().bili_jct;if(!e)throw On("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}function ci(){return zR().DedeUserID}function mS(){return !!zR().DedeUserID}const oM=Mc(()=>({cookie:document.cookie,logined:mS()}));function AU(){return oM.update(),oM.state.value.logined}function FR(){return oM.use().logined}const qb={async search(e){return (await Zt.get("/x/article/creative/draft/list",{params:{keyword:e,ps:10,pn:1}})).data.artlist?.drafts||[]},async view(e){const n=(await Zt.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]=ic(()=>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"}}}};return (await Zt.safePost("/x/dynamic/feed/article/draft/add",o,{params:{csrf:Ac()}})).andThen(i=>oi.validateAxiosResponse(i)).andThen(i=>{const s=i?.data?.article_id;return mo.ok(s)})}};class pwe{constructor(t){this.title=t;}articleId;searchExistingArticleId=async()=>(await qb.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 qb.addOrUpdate(void 0,this.title,t);if(n.isErr()){Rt.error(`创建「专栏草稿」失败: ${n.error.message}`);return}this.articleId=n.value;};getData=async()=>{if(await this.ensureDraftExists(),!this.articleId)return;const t=await qb.view(this.articleId);if(t)return t};setData=async t=>{if(await this.ensureDraftExists(t),!this.articleId)return  false;const n=await qb.addOrUpdate(this.articleId,this.title,t);return n.isErr()&&Rt.error(`保存「专栏草稿」失败: ${n.error.message}`),n.isOk()}}const gwe=bo.extend("settings"),RU=new pwe(Mo),NU=["accessKey","accessKeyExpireAt"],vwe=()=>[...NU,...Z0,"backupSettingsToArticleDraft","fav.addSeparator","watchlaterAddSeparator","watchlaterItemsOrder","popularWeeklyUseShuffle","popularGeneralUseAnonymous"],bwe=[...NU,"backupSettingsToArticleDraft"];let PU=false;function IU(e){PU=e;}let h$;const ywe=ua(RU.setData,Zr("5s"));function Swe(e){if(!e.backupSettingsToArticleDraft||PU)return;const{pickedSettings:t}=Rc(e,oc(ll,vwe()));if(!h$||!ti(h$,t))try{ywe(t),h$=t,gwe("backup to article draft complete");}catch(r){console.error(r.stack||r);}}const Cwe=bo.extend("settings"),Hg={accessKey:"",accessKeyExpireAt:0,pureRecommend:true,appRecommend:{addOtherTabContents:false},modalFeedFullScreen:false,grid:{useCustomGrid:true,gridDisplayMode:Kr.NormalGrid,twoColumnModeAlign:Du.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:jf.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:Ao.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:lr.Normal,pipWindow:{defaultLocked:true,autoWebFullscreen:true},hidingTabKeys:[rt.KeepFollowOnly,rt.Live,rt.Liked],customTabKeysOrder:[],showBackForwardButtons:false,multiSelect:{clearWhenExit:true,showIcon:true},videoPlayPage:{addQuickLinks:false},__internalEnableCopyBvidInfo:false,__internalAddTabbarCopyBvidButton:false,__internalHotSubUseDropdown:false,__internalRecTabRenderAsSegments:false},ot=_n(Rf(Hg)),ll=dxe(Hg),Z0=ll.filter(e=>e.includes("__internal")&&typeof tr(Hg,e)=="boolean");Cwe("allowedLeafSettingsPaths = %O, internalBooleanPaths = %O",ll,Z0);function jt(e){return pt(ot,e)}function hS(){return Br(ot)}const HR="settings";async function Vg(){const e=await GM.getValue(HR);return !e||typeof e!="object"?{}:(VR(e),Rc(e,ll).pickedSettings)}async function xwe(){const e=await Vg();ss(e),da(ot,()=>{wwe();}),HA({storageKey:HR,setPersist(t){OU=t;},onUpdate(t){ss(t);}});}async function wwe(){const e=Rf(Br(ot));await $we(e),await Swe(e);}let OU=true;async function $we(e){OU&&await GM.setValue(HR,e);}function ss(e){const{pickedPaths:t}=Rc(e,ll);for(const n of t){const r=tr(e,n);Xf(ot,n,r);}}function Ewe(){return ss(Hg)}function VR(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=>!ts(i);o(tr(e,n))||o(tr(e,r))&&Xf(e,n,tr(e,r));}}function Rc(e,t){const n={},r=t.filter(o=>ll.includes(o)&&!ts(tr(e,o)));return r.forEach(o=>{const i=tr(e,o);Xf(n,o,i);}),{pickedPaths:r,pickedSettings:n}}function DU(e){const t=jt();return tr(t,e)}async function LU(e){const t=await Vg();return tr(t,e)||tr(hS(),e)}function Mwe(e,t){Xf(ot,e,t);}async function qa(e,{add:t,remove:n}){const r=await LU(e),o=new Set(r);for(const i of t??[])o.add(i);for(const i of n??[])o.delete(i);Mwe(e,Array.from(o));}await( xwe());tl&&ot.accessKey&&ot.accessKeyExpireAt&&Date.now()>=ot.accessKeyExpireAt&&On("access_key 已过期, 请重新获取 !!!");var Fy={exports:{}},Twe=Fy.exports,JL;function Awe(){return JL||(JL=1,(function(e,t){(function(n,r){e.exports=r();})(Twe,(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(P){return P instanceof T},y=function(P,N,I){return new T(P,I,N.$l)},S=function(P){return r.p(P)+"s"},x=function(P){return P<0},$=function(P){return x(P)?Math.ceil(P):Math.floor(P)},w=function(P){return Math.abs(P)},M=function(P,N){return P?x(P)?{negative:true,format:""+w(P)+N}:{negative:false,format:""+P+N}:{negative:false,format:""}},T=(function(){function P(I,O,D){var L=this;if(this.$d={},this.$l=D,I===void 0&&(this.$ms=0,this.parseFromMilliseconds()),O)return y(I*g[S(O)],this);if(typeof I=="number")return this.$ms=I,this.parseFromMilliseconds(),this;if(typeof I=="object")return Object.keys(I).forEach((function(W){L.$d[S(W)]=I[W];})),this.calMilliseconds(),this;if(typeof I=="string"){var V=I.match(p);if(V){var U=V.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=P.prototype;return N.calMilliseconds=function(){var I=this;this.$ms=Object.keys(this.$d).reduce((function(O,D){return O+(I.$d[D]||0)*g[D]}),0);},N.parseFromMilliseconds=function(){var I=this.$ms;this.$d.years=$(I/d),I%=d,this.$d.months=$(I/m),I%=m,this.$d.days=$(I/l),I%=l,this.$d.hours=$(I/s),I%=s,this.$d.minutes=$(I/i),I%=i,this.$d.seconds=$(I/o),I%=o,this.$d.milliseconds=I;},N.toISOString=function(){var I=M(this.$d.years,"Y"),O=M(this.$d.months,"M"),D=+this.$d.days||0;this.$d.weeks&&(D+=7*this.$d.weeks);var L=M(D,"D"),V=M(this.$d.hours,"H"),U=M(this.$d.minutes,"M"),W=this.$d.seconds||0;this.$d.milliseconds&&(W+=this.$d.milliseconds/1e3,W=Math.round(1e3*W)/1e3);var z=M(W,"S"),k=I.negative||O.negative||L.negative||V.negative||U.negative||z.negative,G=V.format||U.format||z.format?"T":"",j=(k?"-":"")+"P"+I.format+O.format+L.format+G+V.format+U.format+z.format;return j==="P"||j==="-P"?"P0D":j},N.toJSON=function(){return this.toISOString()},N.format=function(I){var O=I||"YYYY-MM-DDTHH:mm:ss",D={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return O.replace(u,(function(L,V){return V||String(D[L])}))},N.as=function(I){return this.$ms/g[S(I)]},N.get=function(I){var O=this.$ms,D=S(I);return D==="milliseconds"?O%=1e3:O=D==="weeks"?$(O/g[D]):this.$d[D],O||0},N.add=function(I,O,D){var L;return L=O?I*g[S(O)]:b(I)?I.$ms:y(I,this).$ms,y(this.$ms+L*(D?-1:1),this)},N.subtract=function(I,O){return this.add(I,O,true)},N.locale=function(I){var O=this.clone();return O.$l=I,O},N.clone=function(){return y(this.$ms,this)},N.humanize=function(I){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!I)},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")},P})(),A=function(P,N,I){return P.add(N.years()*I,"y").add(N.months()*I,"M").add(N.days()*I,"d").add(N.hours()*I,"h").add(N.minutes()*I,"m").add(N.seconds()*I,"s").add(N.milliseconds()*I,"ms")};return function(P,N,I){n=I,r=I().$utils(),I.duration=function(L,V){var U=I.locale();return y(L,{$l:U},V)},I.isDuration=b;var O=N.prototype.add,D=N.prototype.subtract;N.prototype.add=function(L,V){return b(L)?A(this,L,1):O.bind(this)(L,V)},N.prototype.subtract=function(L,V){return b(L)?A(this,L,-1):D.bind(this)(L,V)};}}));})(Fy)),Fy.exports}var Rwe=Awe();const Nwe=Sc(Rwe);function ek(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,true)}function tk(e,t,n){var r=[],o=aT(e,r,n);return r.length<2?n:o+t(r)}var jR=function(t){var n=Q9(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=yf(d,n.registered,void 0);return lT(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=yf(d,n.registered),g="animation-"+p.name;return ek(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=yf(d,n.registered);ek(n,p);},s=function(){for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];return tk(n.registered,r,Pwe(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:aT.bind(null,n.registered),merge:tk.bind(null,n.registered,r)}},Pwe=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},nk=function(t,n){var r=arguments;if(n==null||!pg.call(n,"css"))return f.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=uT,i[1]=cT(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={}));})(nk||(nk={}));var UR=nB(function(e,t){var n=e.styles,r=yf([n],void 0,f.useContext(rB)),o=f.useRef();return uI(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]),uI(function(){var i=o.current,s=i[0],l=i[1];if(l){i[1]=false;return}if(r.next!==void 0&&lT(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 dn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return yf(t)}const kU=f.createContext(null),Iwe={};function Owe({children:e,defaultOptions:t=Iwe}){const n=f.useMemo(()=>({defaultOptions:t}),[t]);return q.createElement(kU.Provider,{value:n},e)}function Dwe(){return f.useContext(kU)?.defaultOptions??{}}function Lwe(e){return e!==null&&typeof e=="object"&&"current"in e}function ma(){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 jg=["Control","Alt","Shift","Meta"];new Set(jg);const Wf={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 _U(e,t=ma()){return e==="Mod"?t==="mac"?"Meta":"Control":e}const kwe=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"]),_we=new Set(["0","1","2","3","4","5","6","7","8","9"]),Bwe=new Set(["F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]),zwe=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),Fwe=new Set(["Enter","Escape","Space","Tab","Backspace","Delete"]),Hwe=new Set(["/","[","]","\\","=","-",",",".",";","`"]),rk={Backquote:"`",Backslash:"\\",BracketLeft:"[",BracketRight:"]",Comma:",",Equal:"=",Minus:"-",Period:".",Semicolon:";",Slash:"/"};[...kwe,..._we,...Bwe,...zwe,...Fwe,...Hwe];const ok={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 BU(e){return new RegExp("^\\p{Letter}$","u").test(e)}function Ef(e){if(!e)return "";if(e in ok)return ok[e];if(BU(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 Vwe={Control:"⌃",Alt:"⌥",Shift:"⇧",Meta:"⌘",Mod:"⌘"},jwe={Control:"Control",Alt:"Option",Shift:"Shift",Meta:"Cmd",Mod:"Cmd"},zU={Control:"Ctrl",Alt:"Alt",Shift:"Shift",Meta:"Win",Mod:"Ctrl"},Uwe={...zU,Meta:"Super"},Wwe={"`":"Backquote","\\":"Backslash","[":"Left Bracket","]":"Right Bracket",",":"Comma","=":"Equal","-":"Minus",".":"Period",";":"Semicolon"},Gwe={ArrowUp:"↑",ArrowDown:"↓",ArrowLeft:"←",ArrowRight:"→",Enter:"↵",Escape:"Esc",Backspace:"⌫",Delete:"⌦",Tab:"⇥",Space:"␣"};function WR(e,t=ma()){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=Ef(s);else {const l=Wf[s]??Wf[s.toLowerCase()];if(l){const u=_U(l,t);r.add(u);}else n.length===1&&(o=Ef(s));}}return !o&&n.length>0&&(o=Ef(n[n.length-1].trim())),{key:o,ctrl:r.has("Control"),shift:r.has("Shift"),alt:r.has("Alt"),meta:r.has("Meta"),modifiers:jg.filter(i=>r.has(i))}}function FU(e,t=ma()){let n=e.ctrl??false;const r=e.shift??false,o=e.alt??false;let i=e.meta??false;e.mod&&(_U("Mod",t)==="Control"?n=true:i=true);const s=jg.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 HU(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 jg)e.modifiers.includes(o)&&r.push(o);return r.push(Ef(e.key)),r.join("+")}function qwe(e,t=ma()){return HU(WR(e,t),t)}function Kwe(e,t=ma()){return HU(e,t)}function VU(e,t=ma()){return typeof e=="string"?qwe(e,t):Kwe(FU(e,t),t)}function Ywe(e){return e in Wf||e.toLowerCase()in Wf}function Xwe(e){const t=[];for(const n of jg)e.modifiers.includes(n)&&t.push(n);return t.push(e.key),t.join("+")}function Qwe(e,t={}){const n=t.platform??ma(),r=t.useSymbols??true,o=t.separatorToken??(n==="mac"&&r?" ":"+");return VU(e,n).split("+").map(i=>{if(Ywe(i)){const s=Wf[i]??Wf[i.toLowerCase()];return n==="mac"?r?Vwe[s]:jwe[s]:n==="windows"?zU[s]:Uwe[s]}else {const s=r&&Gwe[i];return s||!r&&Wwe[i]||i}}).join(o)}function J0(e,t,n=ma()){const r=typeof t=="string"?WR(t,n):t;if(e.ctrlKey!==r.ctrl||e.shiftKey!==r.shift||e.altKey!==r.alt||e.metaKey!==r.meta)return  false;const o=Ef(e.key),i=r.key;if(o!=="Dead"&&o.length===1&&i.length===1){if(o.toUpperCase()===i.toUpperCase())return  true;if(BU(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 rk?rk[e.code]===i:false}return o===i}const Zwe={preventDefault:true,stopPropagation:true,eventType:"keydown",enabled:true,ignoreInputs:true,conflictBehavior:"warn"};function Jwe(e){return !(e.ctrl||e.meta||e.key==="Escape")}function p$(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 e$e(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 t$e(e,t,n){const r=e$e(t);return r&&p$(r)&&r!==n||e.composedPath().some(o=>p$(o)&&o!==n)?true:p$(e.target)&&e.target!==n}function n$e(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 r$e(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);}}let xt=(function(e){return 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})({});function o$e({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&(xt.RecursedCheck|xt.Recursed|xt.Dirty|xt.Pending)?b&(xt.RecursedCheck|xt.Recursed)?b&xt.RecursedCheck?!(b&(xt.Dirty|xt.Pending))&&u(d,g)?(g.flags=b|(xt.Recursed|xt.Pending),b&=xt.Mutable):b=xt.None:g.flags=b&~xt.Recursed|xt.Pending:b=xt.None:g.flags=b|xt.Pending,b&xt.Watching&&t(g),b&xt.Mutable){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&xt.Dirty)b=true;else if((S&(xt.Mutable|xt.Dirty))===(xt.Mutable|xt.Dirty)){if(e(y)){const x=y.subs;x.nextSub!==void 0&&l(x),b=true;}}else if((S&(xt.Mutable|xt.Pending))===(xt.Mutable|xt.Pending)){(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,$=x.nextSub!==void 0;if($?(d=p.value,p=p.prev):d=x,b){if(e(m)){$&&l(x),m=d.sub;continue}b=false;}else m.flags&=~xt.Pending;m=d.sub;const w=d.nextDep;if(w!==void 0){d=w;continue e}}return b}while(true)}function l(d){do{const m=d.sub,p=m.flags;(p&(xt.Pending|xt.Dirty))===xt.Pending&&(m.flags=p|xt.Dirty,(p&(xt.Watching|xt.RecursedCheck))===xt.Watching&&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 jU(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 iM=[];let Hy=0;const{link:ik,unlink:i$e,propagate:s$e,checkDirty:UU,shallowPropagate:sk}=o$e({update(e){return e._update()},notify(e){iM[sM++]=e,e.flags&=~xt.Watching;},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=xt.Mutable|xt.Dirty,e1(e));}});let Kb=0,sM=0,Ks;function e1(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=i$e(n,e);}function a$e(){for(;Kb<sM;){const e=iM[Kb];iM[Kb++]=void 0,e.notify();}Kb=0,sM=0;}function l$e(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?xt.None:xt.Mutable,get(){return Ks!==void 0&&ik(o,Ks,Hy),o._snapshot},subscribe(i){const s=jU(i),l={current:false},u=c$e(()=>{o.get(),l.current?s.next?.(o._snapshot):l.current=!0;});return {unsubscribe:()=>{u.stop();}}},_update(i){const s=Ks,l=Object.is;if(n)Ks=o,++Hy,o.depsTail=void 0;else if(i===void 0)return  false;n&&(o.flags=xt.Mutable|xt.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{Ks=s,n&&(o.flags&=~xt.RecursedCheck),e1(o);}}};return n?(o.flags=xt.Mutable|xt.Dirty,o.get=function(){const i=o.flags;if(i&xt.Dirty||i&xt.Pending&&UU(o.deps,o)){if(o._update()){const s=o.subs;s!==void 0&&sk(s);}}else i&xt.Pending&&(o.flags=i&~xt.Pending);return Ks!==void 0&&ik(o,Ks,Hy),o._snapshot}):o.set=function(i){if(o._update(i)){const s=o.subs;s!==void 0&&(s$e(s),sk(s),a$e());}},o}function c$e(e){const t=()=>{const r=Ks;Ks=n,++Hy,n.depsTail=void 0,n.flags=xt.Watching|xt.RecursedCheck;try{return e()}finally{Ks=r,n.flags&=~xt.RecursedCheck,e1(n);}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:xt.Watching|xt.RecursedCheck,notify(){const r=this.flags;r&xt.Dirty||r&xt.Pending&&UU(this.deps,this)?t():this.flags=xt.Watching;},stop(){this.flags=xt.None,this.depsTail=void 0,e1(this);}};return t(),n}var u$e=class{constructor(e,t){this.atom=l$e(e),this.get=this.get.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),t&&(this.actions=t(this));}setState(e){this.atom.set(e);}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(jU(e))}};let d$e=0;function ak(){return `hotkey_${++d$e}`}var f$e=class jl{static#n=null;#t;#e=new Map;#r=new Map;constructor(){this.registrations=new u$e(new Map),this.#t=ma();}static getInstance(){return jl.#n||(jl.#n=new jl),jl.#n}static resetInstance(){jl.#n&&(jl.#n.destroy(),jl.#n=null);}register(t,n,r={}){if(typeof document>"u"&&!r.target){let y=n;return {id:ak(),unregister:()=>{},get callback(){return y},set callback(S){y=S;},setOptions:()=>{},get isActive(){return  false}}}const o=ak(),i=r.platform??this.#t,s=typeof t=="string"?WR(t,i):FU(t,i),l=typeof t=="string"?t:Xwe(s),u=r.target??document,d=r.conflictBehavior??"warn",m=this.#d(l,u);m&&r$e(m.id,l,d,y=>this.#s(y));const p=r.ignoreInputs??Jwe(s),g={id:o,hotkey:l,parsedHotkey:s,callback:n,options:{...Zwe,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 $=new Map(S);return $.set(o,{...x,options:{...x.options,...y}}),$}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&&n$e(t,n)&&s.options.enabled&&!(s.options.ignoreInputs!==false&&t$e(t,n,s.target)))if(r==="keydown"){if(s.options.eventType!=="keydown")continue;J0(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"&&J0(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=Ef(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 m$e(){return f$e.getInstance()}function Ro(e,t,n={}){const r={...Dwe().hotkey,...n},o=m$e(),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=VU(e,r.platform??ma()),{target:g,...b}=r;f.useEffect(()=>{const y=Lwe(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 Rh={},g$={exports:{}},lk;function Ug(){return lk||(lk=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;})(g$)),g$.exports}var Nh={},ck;function h$e(){if(ck)return Nh;ck=1,Object.defineProperty(Nh,"__esModule",{value:true}),Nh.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 Nh.default=e,Nh}var Ph={},Ih={},Oh={},Dh={},uk;function p$e(){return uk||(uk=1,Object.defineProperty(Dh,"__esModule",{value:true}),Dh.commonLocale=void 0,Dh.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:true}),Dh}var dk;function g$e(){if(dk)return Oh;dk=1,Object.defineProperty(Oh,"__esModule",{value:true}),Oh.default=void 0;var e=p$e();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 Oh.default=l,Oh}var Lh={},fk;function WU(){if(fk)return Lh;fk=1,Object.defineProperty(Lh,"__esModule",{value:true}),Lh.default=void 0;const e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};return Lh.default=e,Lh}var mk;function GU(){if(mk)return Ih;mk=1;var e=Ug().default;Object.defineProperty(Ih,"__esModule",{value:true}),Ih.default=void 0;var t=e(g$e()),n=e(WU());const r={lang:{placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"],...t.default},timePickerLocale:{...n.default}};return r.lang.ok="确定",Ih.default=r,Ih}var hk;function v$e(){if(hk)return Ph;hk=1;var e=Ug().default;Object.defineProperty(Ph,"__esModule",{value:true}),Ph.default=void 0;var t=e(GU());return Ph.default=t.default,Ph}var pk;function b$e(){if(pk)return Rh;pk=1;var e=Ug().default;Object.defineProperty(Rh,"__esModule",{value:true}),Rh.default=void 0;var t=e(h$e()),n=e(v$e()),r=e(GU()),o=e(WU());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 Rh.default=s,Rh}var v$,gk;function y$e(){return gk||(gk=1,v$=b$e()),v$}var S$e=y$e();const C$e=Sc(S$e),x$e="--bilibili-gate--font",w$e="--bilibili-gate--video-card--border-radius",qU="--bilibili-gate--primary-color",$$e="--bilibili-gate--border-color",KU="--bilibili-gate--text-color",YU="--bilibili-gate--bg",E$e="--bilibili-gate--primary-color--lv1",M$e="--bilibili-gate--primary-color--lv2",T$e="--bilibili-gate--primary-color--lv3",A$e="--bilibili-gate--bg--lv1",R$e="--bilibili-gate--bg--lv2",N$e="--bilibili-gate--bg--lv3",P$e="#ff6699",I$e='"Alibaba PuHuiTi 3.0", "PingFang SC", "HarmonyOS_Regular", "Helvetica Neue", "Microsoft YaHei", sans-serif',XU="var(--custom-font-family--options--font-family, var(--bilibili-gate--font))",O$e="bilibili-gate-root",QU="bilibili-gate-using-dark",ZU="bilibili-gate-using-light",JU="html.bilibili-gate-using-dark",D$e="html.bilibili-gate-using-light",cl={appCustomFontId:x$e,appVideoCardBorderRadiusId:w$e,appPrimaryColorId:qU,appBorderColorId:$$e,appTextColorId:KU,appBgId:YU,appPrimaryColorLv1Id:E$e,appPrimaryColorLv2Id:M$e,appPrimaryColorLv3Id:T$e,appBgLv1Id:A$e,appBgLv2Id:R$e,appBgLv3Id:N$e,biliPink:P$e,appCustomFontValue:I$e,appUsingFont:XU,appClsRoot:O$e,appClsDark:QU,appClsLight:ZU,appClsDarkSelector:JU,appClsLightSelector:D$e},vk=bo.extend("utility:dom"),eW=10*1e3,tW=200;async function nd(e,t){const n=t?.interval??tW;let r=t?.timeout??eW;r===0&&(r=1/0);const o=t?.validate??(m=>!ts(m)),i=t?.abortSignal,s=performance.now();let l=e();const u=new ho;i?.addEventListener("abort",()=>{u.emit("abort");});const d=()=>performance.now()-s<r;for(;!o(l)&&d()&&!i?.aborted;){const m=fn(n),p=u.once("abort");await Promise.race([m,p]),p.off(),l=e();}return l}async function pS(e,t,n){const r=n?.pollTimeout??eW,o=n?.pollInterval??tW,i=n?.selectorPredicate,s=n?.warnOnTimeout??false,l=await nd(()=>{let u=Array.from(document.querySelectorAll(e));if(i&&(u=u.filter(i)),u.length)return u},{timeout:r,interval:o});if(!l?.length){vk("tryAction: timeout for selector = `%s`",e),s&&zo("tryAction timeout, selector = `%s`",e);return}vk("tryAction: selector=`%s` count=%s",e,l.length);for(const u of l)await Promise.resolve(t(u));}async function dp(e,t,n){return pS(e,r=>r.remove(),{selectorPredicate:t,warnOnTimeout:false})}function L$e(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 k$e(){return !!L$e(document.activeElement)}function _$e(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 gS(e){return new Promise(t=>{typeof requestIdleCallback=="function"?requestIdleCallback(()=>t(),e):setTimeout(t);})}let b$="";function GR(e){b$||(b$=document.title),document.title=`${e} - ${b$}`;}function aM(...e){return e.map(t=>t.trim()).filter(Boolean).map(t=>t.startsWith(".")?t:`.${t}`).join(",")}const Xp={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}}},bk=e=>{const t=e.getDetectEl();return t?e.detect(t):false},Gf=Mc(()=>bk(Xp.Bili)||bk(Xp.Evolved)||document.body.classList.contains("bilibili-helper-dark-mode")||document.documentElement.classList.contains("dark"));function vS(){return Gf.use()}const nW=()=>{document.documentElement.classList.toggle(QU,Gf.get()),document.documentElement.classList.toggle(ZU,!Gf.get());};nW();da(Gf.state,nW);const qR=new MutationObserver(async()=>{await fn(0),Gf.updateThrottled();});qR.observe(document.body,{attributes:true,attributeFilter:["class"]});qR.observe(document.documentElement,{attributes:true,attributeFilter:["data-darkreader-scheme"]});B$e();async function B$e(){const e=await nd(Xp.Bili.getDetectEl);e&&qR.observe(e,{attributes:true});}document.addEventListener("click",z$e,{passive:true});async function z$e(e){const t=e.target;(Xp.Bili.isTrigger(t)||t.closest(Xp.Evolved.trigger))&&(await fn(0),Gf.updateThrottled());}const F$e=bo.extend("components:css-vars");F$e(":export = %O",cl);const Nc=e=>(e.startsWith("--")||(e=`--${e}`),`var(${e})`),KR=Nc(cl.appVideoCardBorderRadiusId),as=Nc(cl.appPrimaryColorId),rW=Nc(cl.appBorderColorId);Nc(cl.appTextColorId);const lM=Nc(cl.appBgId),t1=Nc(cl.appBgLv1Id),H$e=Nc(cl.appBgLv2Id);Nc(cl.appBgLv3Id);const rd={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 V$e(){return F0.useToken().token.colorPrimaryHover}function od(){const{popoverBorderColorUseColorPrimary:e}=pt(ot.style.general),t=V$e();return e?t:rW}function j$e(){const e=od();return f.useMemo(()=>({border:`1px solid ${e}`}),[e])}function U$e(){const{colorLink:e,colorLinkActive:t,colorLinkHover:n}=F0.useToken().token;return f.useMemo(()=>dn("color:",e,";&:visited{color:",e,";}&:hover{color:",n,";}&:active{color:",t,";}",""),[e,t,n])}const oW=`${Xr}--use-ant-link-color`;function W$e(){const e=U$e();return dn(":root .",oW,"{",e,";}","")}var G$e=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);}},Ss=function(){return Ss=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},Ss.apply(this,arguments)};function iW(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 sW(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 aW(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 vr(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 uo(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 lW=function(e){return typeof e=="function"},nt=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 Xa=G$e(f.useEffect);var cW=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,Xa(function(){!n&&o&&(m.current=true,e.run.apply(e,uo([],vr(s),false)));},[o]),Xa(function(){m.current||n||(m.current=true,d?d():e.refresh());},uo([],vr(u),false)),{onBefore:function(){if(!o)return {stopNow:true}}}};cW.onInit=function(e){var t=e.ready,n=t===void 0?true:t,r=e.manual;return {loading:!r&&n}};function cM(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 Wg=function(e,t){var n=f.useRef({deps:t,obj:void 0,initialized:false}).current;return (n.initialized===false||!cM(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=true),n.obj};function Gg(e){var t=f.useRef(e);return t.current=e,t}var bm=function(e){var t=Gg(e);f.useEffect(function(){return function(){t.current();}},[]);},Vy=new Map,q$e=function(e,t,n){var r=Vy.get(e);r?.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){Vy.delete(e);},t)),Vy.set(e,Ss(Ss({},n),{timer:o}));},K$e=function(e){return Vy.get(e)},jy=new Map,Y$e=function(e){return jy.get(e)},X$e=function(e,t){jy.set(e,t),t.then(function(n){return jy.delete(e),n}).catch(function(){jy.delete(e);});},du={},Q$e=function(e,t){du[e]&&du[e].forEach(function(n){return n(t)});},y$=function(e,t){return du[e]||(du[e]=[]),du[e].push(t),function(){var r=du[e].indexOf(t);du[e].splice(r,1);}},Z$e=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):q$e(b,o,y),Q$e(b,y.data);},g=function(b,y){return y===void 0&&(y=[]),u?u(y):K$e(b)};return Wg(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=y$(n,function(y){e.setState({data:y});});}},[]),bm(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=Y$e(n);return S&&S!==m.current?{servicePromise:S}:(S=b.apply(void 0,uo([],vr(y),false)),m.current=S,X$e(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=y$(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=y$(n,function(S){e.setState({data:S});}));}}:{}},S$,yk;function YR(){if(yk)return S$;yk=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return S$=e,S$}var C$,Sk;function J$e(){if(Sk)return C$;Sk=1;var e=typeof bb=="object"&&bb&&bb.Object===Object&&bb;return C$=e,C$}var x$,Ck;function uW(){if(Ck)return x$;Ck=1;var e=J$e(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return x$=n,x$}var w$,xk;function eEe(){if(xk)return w$;xk=1;var e=uW(),t=function(){return e.Date.now()};return w$=t,w$}var $$,wk;function tEe(){if(wk)return $$;wk=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return $$=t,$$}var E$,$k;function nEe(){if($k)return E$;$k=1;var e=tEe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return E$=n,E$}var M$,Ek;function dW(){if(Ek)return M$;Ek=1;var e=uW(),t=e.Symbol;return M$=t,M$}var T$,Mk;function rEe(){if(Mk)return T$;Mk=1;var e=dW(),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 T$=i,T$}var A$,Tk;function oEe(){if(Tk)return A$;Tk=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return A$=n,A$}var R$,Ak;function iEe(){if(Ak)return R$;Ak=1;var e=dW(),t=rEe(),n=oEe(),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 R$=s,R$}var N$,Rk;function sEe(){if(Rk)return N$;Rk=1;function e(t){return t!=null&&typeof t=="object"}return N$=e,N$}var P$,Nk;function aEe(){if(Nk)return P$;Nk=1;var e=iEe(),t=sEe(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return P$=r,P$}var I$,Pk;function lEe(){if(Pk)return I$;Pk=1;var e=nEe(),t=YR(),n=aEe(),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 I$=u,I$}var O$,Ik;function fW(){if(Ik)return O$;Ik=1;var e=YR(),t=eEe(),n=lEe(),r="Expected a function",o=Math.max,i=Math.min;function s(l,u,d){var m,p,g,b,y,S,x=0,$=false,w=false,M=true;if(typeof l!="function")throw new TypeError(r);u=n(u)||0,e(d)&&($=!!d.leading,w="maxWait"in d,g=w?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(I,u),$?T(U):b}function P(U){var W=U-S,z=U-x,k=u-W;return w?i(k,g-z):k}function N(U){var W=U-S,z=U-x;return S===void 0||W>=u||W<0||w&&z>=g}function I(){var U=t();if(N(U))return O(U);y=setTimeout(I,P(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 L(){return y===void 0?b:O(t())}function V(){var U=t(),W=N(U);if(m=arguments,p=this,S=U,W){if(y===void 0)return A(S);if(w)return clearTimeout(y),y=setTimeout(I,u),T(S)}return y===void 0&&(y=setTimeout(I,u)),b}return V.cancel=D,V.flush=L,V}return O$=s,O$}var cEe=fW();const uEe=Sc(cEe);var dEe=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=uEe(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,uo([],vr(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();}}:{}},fEe=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();}}},qg=!!(typeof window<"u"&&window.document&&window.document.createElement);function XR(){return qg?document.visibilityState!=="hidden":true}var Uy=new Set;function mEe(e){return Uy.add(e),function(){Uy.has(e)&&Uy.delete(e);}}if(qg){var hEe=function(){XR()&&Uy.forEach(function(e){return e()});};window.addEventListener("visibilitychange",hEe,false);}var pEe=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 Xa(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&&!XR()?u.current=mEe(function(){e.refresh();}):e.refresh();},n):d.current=0;},onCancel:function(){m();}}:{}};function gEe(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,uo([],vr(r),false)),setTimeout(function(){n=false;},t));}}var vEe=function(){return qg&&typeof navigator.onLine<"u"?navigator.onLine:true},Wy=new Set;function bEe(e){return Wy.add(e),function(){Wy.has(e)&&Wy.delete(e);}}if(qg){var Ok=function(){!XR()||!vEe()||Wy.forEach(function(e){return e()});};window.addEventListener("visibilitychange",Ok,false),window.addEventListener("focus",Ok,false);}var yEe=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=gEe(e.refresh.bind(e),o);i.current=bEe(function(){l();});}return function(){s();}},[n,o]),bm(function(){s();}),{}},SEe=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);}}:{}},D$,Dk;function CEe(){if(Dk)return D$;Dk=1;var e=fW(),t=YR(),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 D$=r,D$}var xEe=CEe();const wEe=Sc(xEe);var $Ee=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=wEe(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,uo([],vr(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();}}:{}},vo=function(e){f.useEffect(function(){var t=e?.();if(!(t&&typeof t=="object"&&typeof t.then=="function"))return t},[]);},EEe=function(){var e=vr(f.useState({}),2),t=e[1];return nt(function(){return t({})})},MEe=(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=Ss(Ss(Ss({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Ss(Ss({},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,uo([i],vr(n),false))}).filter(Boolean);return Object.assign.apply(Object,uo([{}],vr(o),false))},e.prototype.runAsync=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return sW(this,void 0,void 0,function(){var r,o,i,s,l,u,d,m,p,g,b,y,S,x,$,w,M,T,A,P,N;return aW(this,function(I){switch(I.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=iW(o,["stopNow","returnNow"]),s)return [2,Promise.resolve(d.data)];if(this.setState(Ss({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),I.label=1;case 1:return I.trys.push([1,3,,4]),m=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,m||(m=(b=this.serviceRef).current.apply(b,uo([],vr(t),false))),[4,m];case 2:return p=I.sent(),r!==this.count?[2,new Promise(function(){})]:(this.setState({data:p,error:void 0,loading:false}),($=(x=this.options).onSuccess)===null||$===void 0||$.call(x,p,t),this.runPluginHandler("onSuccess",p,t),(M=(w=this.options).onFinally)===null||M===void 0||M.call(w,t,p,void 0),r===this.count&&this.runPluginHandler("onFinally",t,p,void 0),[2,p]);case 3:if(g=I.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=(P=this.options).onFinally)===null||N===void 0||N.call(P,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,uo([],vr(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,uo([],vr(this.state.params||[]),false));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,uo([],vr(this.state.params||[]),false))},e.prototype.mutate=function(t){var n=lW(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e})();function TEe(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=iW(t,["manual","ready"]),u=Ss({manual:o,ready:s},l),d=Gg(e),m=EEe(),p=Wg(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 MEe(d,u,m,Object.assign.apply(Object,uo([{}],vr(g),false)))},[]);return p.options=u,p.pluginImpls=n.map(function(g){return g(p,u)}),vo(function(){if(!o&&s){var g=p.state.params||t.defaultParams||[];p.run.apply(p,uo([],vr(g),false));}}),bm(function(){p.cancel();}),{loading:p.state.loading,data:p.state.data,error:p.state.error,params:p.state.params||[],cancel:nt(p.cancel.bind(p)),refresh:nt(p.refresh.bind(p)),refreshAsync:nt(p.refreshAsync.bind(p)),run:nt(p.run.bind(p)),runAsync:nt(p.runAsync.bind(p)),mutate:nt(p.mutate.bind(p))}}function Rs(e,t,n){return TEe(e,t,uo(uo([],vr([]),false),[dEe,fEe,pEe,yEe,$Ee,cW,Z$e,SEe],false))}function mW(e,t){e===void 0&&(e=false);var n=vr(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 AEe(e){var t=vr(mW(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 Kg(e,t){if(qg){if(!e)return t;var n;return lW(e)?n=e():"current"in e?n=e.current:n=e,n}}var REe=function(e){return e.every(function(t){var n=Kg(t);return n?n.getRootNode()instanceof ShadowRoot:false})},NEe=function(e){return e?e.getRootNode():document},PEe=function(e){if(!e||!document.getRootNode)return document;var t=Array.isArray(e)?e:[e];return REe(t)?NEe(Kg(t[0])):document},IEe=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 Kg(g)});if(!i.current){i.current=true,s.current=p,l.current=r,u.current=n();return}(p.length!==s.current.length||!cM(s.current,p)||!cM(l.current,r))&&((d=u.current)===null||d===void 0||d.call(u),s.current=p,l.current=r,u.current=n());}),bm(function(){var d;(d=u.current)===null||d===void 0||d.call(u),i.current=false;});};return t},hW=IEe(f.useEffect);function OEe(e,t,n){n===void 0&&(n="click");var r=Gg(e);hW(function(){var o=function(l){var u=Array.isArray(t)?t:[t];u.some(function(d){var m=Kg(d);return !m||m.contains(l.target)})||r.current(l);},i=PEe(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 Ns(e,t,n){n===void 0&&(n={});var r=n.enable,o=r===void 0?true:r,i=Gg(t);hW(function(){if(o){var s=Kg(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 bS=(function(e,t){var n={},r=n.onEnter,o=n.onLeave,i=n.onChange,s=vr(AEe(),2),l=s[0],u=s[1],d=u.setTrue,m=u.setFalse;return Ns("mouseenter",function(){r?.(),d(),i?.(true);},{target:e}),Ns("mouseleave",function(){o?.(),m(),i?.(false);},{target:e}),l});function yS(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 sW(t,void 0,void 0,function(){var i,s;return aW(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,uo([],vr(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 Lk(e){var t=f.useRef(0),n=vr(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 bm(function(){cancelAnimationFrame(t.current);}),[r,i]}var DEe=function(e,t){return !Object.is(e,t)};function QR(e,t){t===void 0&&(t=DEe);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 pW=function(){var e=f.useRef(false);return f.useEffect(function(){return e.current=false,function(){e.current=true;}},[]),e};function LEe(e){return [...new Set(e)]}function kEe(e,t){if(!e)throw Error(t)}function _Ee(e,t){let n={"(":")","{":"}","[":"]"},r=e[t],o=n[r];if(!o)return  -1;let i=1;for(let s=t+1,l=e.length;s<l;s++){let u=e[s];if(u===o){if(i--,i===0)return s}else u===r&&i++;}return  -1}function BEe(e){let t=/^(?:(?:[\w-]+|\[\S+\]):)+/.exec(e),n;if(t){let r=t[0];e=e.slice(r.length);let o=[];for(;r;){if(/^[\w-]+:/.test(r)){let s=r.slice(0,r.indexOf(":")+1);o.push(s),r=r.slice(s.length);continue}if(/^\[\S+\]:/.test(r)){let s=_Ee(r,0);if(s!==-1){let l=r.slice(0,s+2);o.push(l),r=r.slice(s+2);continue}}let i=r.indexOf(":");if(i===-1){let s=r;o.push(s),r="";}else {let s=r.slice(0,i+1);o.push(s),r=r.slice(i+1);}}n=o.filter(Boolean).sort().join("");}return {cls:e,variantsPrefix:n}}const gW=String.raw,nu=(e,...t)=>new RegExp(gW(e,...t)),kk=gW`(\d+(\.\d+)?)?(xs|sm|md|lg|xl)`,Yb="(solid|dashed|dotted|double|none|hidden)";function pr(e,t){return kEe(e.endsWith("-"),"prefix must end with `-`"),t.map(n=>e+n)}const zEe=[[[...["block","flex","grid","table"].flatMap(e=>[e,`inline-${e}`]),"inline","flow-root","contents","list-item","hidden",...pr("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"],[pr("flex-",["row","row-reverse","col","col-reverse"]),"flex-direction"],[pr("flex-",["wrap","wrap-reverse","nowrap"]),"flex-wrap"],[pr("object-",["contain","cover","fill","none","scale-down"]),"object-fit"],[pr("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"],[pr("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"],[nu`^(text|text-size|font-size)-(\d+|${kk}$)`,"font-size"],[/^(leading|line-height)-/,"line-height"],[pr("list-",["inside","outside"]),"list-style-position"],[pr("list-",["none","disc","decimal"]),"list-style-type"],[pr("text-",["left","center","right","justify","start","end"]),"text-align"],[["underline","overline","line-through","no-underline"],"text-decoration-line"],[pr("decoration-",["solid","double","dotted","dashed","wavy"]),"text-decoration-style"],[/^decoration-(\d+|(auto|from-font)$)/,"text-decoration-thickness"],[["truncate","text-ellipsis","text-clip"],"text-overflow"],[pr("text-",["wrap","nowrap","balance","pretty"]),"text-wrap"],[pr("bg-",["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]),"background-position"],[/^bg(-no)?-repeat($|-)/,"background-repeat"],[pr("bg-",["auto","cover","contain"]),"background-size"],[["bg-none",/^bg-gradient-to-/],"background-image"],[/^(?:border-|b-)?(?:rounded|rd)(?:-(.+))?$/,"rounded"],[nu`^b(?:order)?-${Yb}$`,"border-style"],[nu`^b(?:order)?-([tblrxyse])-${Yb}$`,(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",nu`^outline-${Yb}$`],"outline-style"],[nu`^divide-${Yb}$`,"divide-style"],[/^divide-(x|y)($|-\d+)/,(e,t)=>`divide-${t?.[1]}-width`],[["ring",/^ring-\d+/],"ring-width"],[[/^ring-offset-\d+/],"ring-offset-width"],[["shadow",...pr("shadow-",["inner","none"]),nu`^shadow-${kk}$`],"box-shadow"],[pr("border-",["collapse","separate"]),"border-collapse"],[pr("table-",["auto","fixed"]),"table-layout"],[pr("caption-",["top","bottom"]),"caption-side"],[pr("scroll-",["auto","smooth"]),"scroll-behavior"],[pr("snap-",["start","end","center","align-none"]),"scroll-snap-align"],[pr("snap-",["normal","always"]),"scroll-snap-stop"],[pr("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=>[nu`^${e}($|-)`,e])],uM=new Map,vW=new Map;for(let[e,t]of zEe){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);uM.set(i,s);}),o.forEach(i=>{vW.set(i,t);});}function FEe(e){if(uM.has(e))return uM.get(e);for(let[t,n]of vW.entries())if(t.test(e)){let r=t.exec(e);return typeof n=="string"?n:n(e,r)}}function HEe(e){return VEe.map(t=>typeof t=="string"?[t,t]:t).find(([t,n])=>e.startsWith(`${t}-`))}const VEe=["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"],_k=new Map(Object.entries({flex:["flex-grow","flex-shrink","flex-basis"],"transition-none":["transition-duration","transition-delay","transition-timing-function","transition-property"],"transition-property":["transition-none"],m:["mt","mb","ml","mr","mx","my","ms","me","mbs","mbe"],mx:["ml","mr","ms","me"],my:["mt","mb","mbs","mbe"],p:["pt","pb","pl","pr","px","py","ps","pe","pbs","pbe"],px:["pl","pr","ps","pe"],py:["pt","pb","pbs","pbe"],inset:["top","right","bottom","left","start","end","inset-x","inset-y"],"inset-x":["left","right","start","end"],"inset-y":["top","bottom"],rounded:["rounded-t","rounded-r","rounded-b","rounded-l","rounded-s","rounded-e","rounded-tl","rounded-tr","rounded-br","rounded-bl","rounded-ss","rounded-se","rounded-es","rounded-ee"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"border-width":["border-x-width","border-y-width","border-t-width","border-r-width","border-b-width","border-l-width","border-s-width","border-e-width"],"border-x-width":["border-l-width","border-r-width","border-s-width","border-e-width"],"border-y-width":["border-t-width","border-b-width"],gap:["gap-x","gap-y"],size:["w","h"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"]}));function jEe(e){return (e||"").split(" ").map(t=>t.trim()).filter(Boolean)}function bW(...e){let t=new Map;return jEe(Y(...e)).filter(Boolean).forEach(n=>UEe(n,t)),LEe(Array.from(t.values())).join(" ")}function UEe(e,t){let n=e,r;function o(m){[m].flat().forEach(p=>{_k.has(p)&&[_k.get(p)].flat().filter(g=>g!==void 0).forEach(g=>{t.delete(r?r+g:g);}),t.set(r?r+p:p,n);});}function i(){let m=FEe(e);if(m)return o(m),true}function s(){let m=HEe(e);if(!m)return;let[p,g]=m;return o(g),true}function l(){let m=e,p=/(\[[\w,()/-]+\])$/;p.test(e)&&(m=e.replace(p,function(b,y){return "*".repeat(y.length)})),m=m.replaceAll(/--(?=\d)/g,"-*");let g=m.lastIndexOf("-");if(g!==-1)return o(e.slice(0,g)),true}function u(){return o(e)}function d(){if(e.startsWith("!")){e="important:"+e.slice(1);return}if(e.endsWith("!")){e="important:"+e.slice(0,-1);return}}i()||s()||(d(),{cls:e,variantsPrefix:r}=BEe(e),i()||s()||l()||u());}function or(...e){let t=f.useMemo(()=>Y(...e),[...e]);return f.useMemo(()=>bW(t),[t])}const WEe=({title:e,titleId:t,...n},r)=>_("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"})]}),GEe=f.forwardRef(WEe),Bo={modalMask:Y("fixed inset-0 flex items-center justify-center bg-black/50",hxe),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"},dM=`${Xr}-modal-visible`,qEe=dn("body:has(.",dM,"){overflow-y:hidden;}","");function Yg({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=nt(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();});Ro("Escape",b=>{u.current&&(u.current.matches(`:has(~ .${dM})`)||(b.preventDefault(),b.stopImmediatePropagation(),setTimeout(t)));},{enabled:e&&l,conflictBehavior:"allow"});const p=or(Bo.modalMask,r),g=or(Bo.modal,o);return e?Lo.createPortal(C("div",{className:Y(Ls,{[dM]: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 Xg=({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(GEe,{...t,className:n})};let Co=(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 KEe=[{name:"Lavender",nameZh:"薰衣草",hex:Co.Lavender,desc:"淡紫偏粉"},{name:"Thistle",nameZh:"蓟紫色",hex:Co.Thistle,desc:"带灰调"},{name:"Plum",nameZh:"李子紫",hex:Co.Plum,desc:"柔和温暖"},{name:"Mauve",nameZh:"淡紫色",hex:Co.Mauve,desc:"烟粉色调"},{name:"Wisteria",nameZh:"紫藤色",hex:Co.Wisteria,desc:"温柔浅紫"},{name:"Orchid",nameZh:"兰花紫",hex:Co.Orchid,desc:"偏红亮紫"},{name:"Medium Orchid",nameZh:"中兰花紫",hex:Co.MediumOrchid,desc:"稍深更艳"},{name:"Medium Purple",nameZh:"中紫色",hex:Co.MediumPurple,desc:"柔和略蓝"},{name:"Amethyst",nameZh:"紫水晶色",hex:Co.Amethyst,desc:"经典冷紫"},{name:"Blue Violet",nameZh:"蓝紫色",hex:Co.BlueViolet,desc:"较冷"},{name:"Purple",nameZh:"标准紫色",hex:Co.Purple,desc:"饱和且暗"},{name:"Violet",nameZh:"紫罗兰",hex:Co.Violet,desc:"更偏蓝光谱"},{name:"Magenta",nameZh:"洋红色",hex:Co.Magenta,desc:"红紫交界"},{name:"Grape",nameZh:"葡萄紫",hex:Co.Grape,desc:"饱和深紫"},{name:"Indigo",nameZh:"靛青色",hex:Co.Indigo,desc:"蓝紫之间"},{name:"Eggplant",nameZh:"茄子紫",hex:Co.Eggplant,desc:"极深紫红"}],YEe=[{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)"}],n1={id:"default-bili-pink",name:"B站粉",colorPrimary:Qf.Pink,tooltip:"B站品牌色"},yW={id:"color-picker",name:"自定义",isCustom:true,colorPrimary:Qf.Pink};function XEe(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 ZR="UP长期洗涤",QEe=XEe(ZR,`
  #0545b2 理想之蓝
  #f4cd00 柠檬黄
  #ef2729 石榴红
  #f89c00 鹿箭
  #233728 黛绿
  #f2b9b7 和熙粉
  #f3cc91 芝士黄
  #6b4c68 葡萄紫
  #ff7227 落日橙
  #004d62 碧海天
  #23909b 洗碧空
  #aeb400 芥丝绿
  #425a17 箬叶青

  #002fa7 克莱因蓝
  #003153 普鲁士蓝
  #01847f 马尔斯绿
  #fbd26a 申布伦黄
  #470024 勃艮第红
  #492d22 凡戴克棕
  `),SW="bilibili-evolved-sync",CW=[{name:"预设",themes:[n1,{id:"bilibili-blue",name:"B站蓝",colorPrimary:Qf.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:SW,name:"B-Evolved",colorPrimary:`var(--theme-color,${lV()})`,tooltip:_(De,{children:["使用 Bilibili-Evolved 的主题色",C("br",{}),"在 Bilibili-Evolved 设置中修改主题色后可能需要刷新页面同步"]})},yW]},{name:"LX Themes",themes:YEe,tooltip:_(De,{children:["提取自"," ",C("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),C("br",{}),"Apache License 2.0"]})},{name:ZR,themes:QEe,tooltip:_(De,{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:KEe.map(e=>({id:`purple-colors-${e.name}`,name:e.nameZh,colorPrimary:e.hex,tooltip:_(De,{children:[e.name," ",e.nameZh," ",C("br",{}),e.desc]})})),tooltip:_(De,{children:["提取自"," ",C("a",{target:"_blank",href:"https://magicdawn.github.io/purple-colors/",children:"purple-colors"})," "]})}],ZEe=CW.map(e=>e.themes).flat(),Bk={[`${ZR}:马尔斯绿`]:_(De,{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 xW(){let{theme:e,colorPickerThemeSelectedColor:t}=jt();return e||=n1.id,f.useMemo(()=>{const n=ZEe.find(r=>r.id===e)||n1;return n.id===yW.id&&t?{...n,colorPrimary:t}:n},[e,t])}function wW(){const e=xW(),t=Ig.use();let n=e.colorPrimary;return e.id===SW&&(n=t||lV()),n}function JEe(e,t){return e||t?"--bg1":"--bg2"}function e2e(){const e=wW(),t=vS(),n=W$e(),{style:{pureRecommend:{useWhiteBackground:r}}}=jt(),o=f.useMemo(()=>({bgSrc:JEe(t,r),bgFallback:t?"#17181a":r?"#fff":"#f6f7f8",text:t?"#fff":"#333"}),[t,r]);return C(UR,{styles:[n,qEe,dn`
            :root {
              ${qU}: ${e};
              ${YU}: var(${o.bgSrc}, ${o.bgFallback});
              ${KU}: var(--text1, ${o.text});
            }
          `,"",""]})}var t2e={name:"1ughwg6",styles:".bili-feed4 .bili-header{min-height:64px!important;}"},n2e={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 r2e(){const{grid:{useCustomGrid:e},style:{pureRecommend:{useWhiteBackground:t,hideTopChannel:n}}}=jt(),r=vS(),o=vve(),i=UA.use(),s=WA.use()??90,l="0 10px";if(tl)return C(UR,{styles:[n2e,e&&dn("#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"&&dn(".",Ls,"{--back-top-right:",o,"px;}",""),dn("body{background-color:",lM,"!important;}.large-header,#i_cecream,body>#app,.bili-header.large-header,.bili-header.large-header .bili-header__channel{background-color:",lM,";}",""),!r&&!t&&dn(".bili-header .bili-header__channel .channel-entry-more__link,.bili-header .bili-header__channel .channel-link{background-color:",t1,";}",""),n&&dn(".bili-header__channel,.bili-header__banner{display:none!important;}",!i&&t2e," .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 o2e(...e){return function(t){return e.reduceRight((n,r)=>r?r(n):n,t)}}function ha({children:e,cssInsertContainer:t,cssInsertContainerEmotionKey:n}){t&&Nr(n,"cssInsertContainerEmotionKey is required when cssInsertContainer is provided");const r=f.useMemo(()=>{if(t)return jR({key:n,container:t}).cache},[t,n]),o=vS(),i=wW();return o2e(!!r&&(l=>C(xJ,{value:r,children:l})),!!t&&(l=>C(uee,{container:t,children:l})),l=>C(Owe,{defaultOptions:{hotkey:{requireReset:true}},children:l}),l=>C(Vo,{locale:C$e,button:{autoInsertSpace:false},getPopupContainer:u=>u?.closest("."+Ls)??document.body,theme:{algorithm:o?F0.darkAlgorithm:F0.defaultAlgorithm,token:{colorPrimary:i,colorBgSpotlight:i,zIndexPopupBase:GL(qL),fontFamily:XU},components:{Notification:{zIndexPopup:GL(qL)},Button:{defaultShadow:"none",primaryShadow:"none"},Dropdown:{}}},children:l}))(e)}function SS({antd:e,baseGlobalStyle:t,homePageGlobalStyle:n}){return _(De,{children:[e&&C(yve,{}),t&&C(e2e,{}),n&&C(r2e,{})]})}function i2e(){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 CS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ym(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function JR(e){return "nodeType"in e}function ui(e){var t,n;return e?ym(e)?e:JR(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function e6(e){const{Document:t}=ui(e);return e instanceof t}function Qg(e){return ym(e)?false:e instanceof ui(e).HTMLElement}function $W(e){return e instanceof ui(e).SVGElement}function Sm(e){return e?ym(e)?e.document:JR(e)?e6(e)?e:Qg(e)||$W(e)?e.ownerDocument:document:document:document}const ca=CS?f.useLayoutEffect:f.useEffect;function t6(e){const t=f.useRef(e);return ca(()=>{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 s2e(){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 Qp(e,t){t===void 0&&(t=[e]);const n=f.useRef(e);return ca(()=>{n.current!==e&&(n.current=e);},t),n}function Zg(e,t){const n=f.useRef();return f.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function r1(e){const t=t6(e),n=f.useRef(null),r=f.useCallback(o=>{o!==n.current&&t?.(o,n.current),n.current=o;},[]);return [n,r]}function fM(e){const t=f.useRef();return f.useEffect(()=>{t.current=e;},[e]),t.current}let L$={};function Jg(e,t){return f.useMemo(()=>{if(t)return t;const n=L$[e]==null?0:L$[e]+1;return L$[e]=n,e+"-"+n},[e,t])}function EW(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 Mf=EW(1),o1=EW(-1);function a2e(e){return "clientX"in e&&"clientY"in e}function n6(e){if(!e)return  false;const{KeyboardEvent:t}=ui(e.target);return t&&e instanceof t}function l2e(e){if(!e)return  false;const{TouchEvent:t}=ui(e.target);return t&&e instanceof t}function mM(e){if(l2e(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 a2e(e)?{x:e.clientX,y:e.clientY}:null}const qf=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 [qf.Translate.toString(e),qf.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),zk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function c2e(e){return e.matches(zk)?e:e.querySelector(zk)}const u2e={display:"none"};function d2e(e){let{id:t,value:n}=e;return q.createElement("div",{id:t,style:u2e},n)}function f2e(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 m2e(){const[e,t]=f.useState("");return {announce:f.useCallback(r=>{r!=null&&t(r);},[]),announcement:e}}const MW=f.createContext(null);function TW(e){const t=f.useContext(MW);f.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t]);}function h2e(){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 p2e={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.
  `},g2e={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 v2e(e){let{announcements:t=g2e,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=p2e}=e;const{announce:i,announcement:s}=m2e(),l=Jg("DndLiveRegion"),[u,d]=f.useState(false);if(f.useEffect(()=>{d(true);},[]),TW(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(d2e,{id:r,value:o.draggable}),q.createElement(f2e,{id:l,announcement:s}));return n?Lo.createPortal(m,n):m}var Lr;(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";})(Lr||(Lr={}));function i1(){}function b2e(e,t){return f.useMemo(()=>({sensor:e,options:{}}),[e,t])}function y2e(){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 Ds=Object.freeze({x:0,y:0});function S2e(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function C2e(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function x2e(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function w2e(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Fk(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 $2e=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=Fk(t,t.left,t.top),i=[];for(const s of r){const{id:l}=s,u=n.get(l);if(u){const d=S2e(Fk(u),o);i.push({id:l,data:{droppableContainer:s,value:d}});}}return i.sort(C2e)};function E2e(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 M2e=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=E2e(l,t);u>0&&o.push({id:s,data:{droppableContainer:i,value:u}});}}return o.sort(x2e)};function T2e(e,t,n){return {...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function AW(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ds}function A2e(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((s,l)=>({...s,top:s.top+e*l.y,bottom:s.bottom+e*l.y,left:s.left+e*l.x,right:s.right+e*l.x}),{...n})}}const R2e=A2e(1);function N2e(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 P2e(e,t,n){const r=N2e(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 I2e={ignoreTransform:false};function Cm(e,t){t===void 0&&(t=I2e);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:m}=ui(e).getComputedStyle(e);d&&(n=P2e(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 Hk(e){return Cm(e,{ignoreTransform:true})}function O2e(e){const t=e.innerWidth,n=e.innerHeight;return {top:0,left:0,right:t,bottom:n,width:t,height:n}}function D2e(e,t){return t===void 0&&(t=ui(e).getComputedStyle(e)),t.position==="fixed"}function L2e(e,t){t===void 0&&(t=ui(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 r6(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(e6(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Qg(o)||$W(o)||n.includes(o))return n;const i=ui(e).getComputedStyle(o);return o!==e&&L2e(o,i)&&n.push(o),D2e(o,i)?n:r(o.parentNode)}return e?r(e):n}function RW(e){const[t]=r6(e,1);return t??null}function k$(e){return !CS||!e?null:ym(e)?e:JR(e)?e6(e)||e===Sm(e).scrollingElement?window:Qg(e)?e:null:null}function NW(e){return ym(e)?e.scrollX:e.scrollLeft}function PW(e){return ym(e)?e.scrollY:e.scrollTop}function hM(e){return {x:NW(e),y:PW(e)}}var qr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward";})(qr||(qr={}));function IW(e){return !CS||!e?false:e===document.scrollingElement}function OW(e){const t={x:0,y:0},n=IW(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 k2e={x:.2,y:.2};function _2e(e,t,n,r,o){let{top:i,left:s,right:l,bottom:u}=n;r===void 0&&(r=10),o===void 0&&(o=k2e);const{isTop:d,isBottom:m,isLeft:p,isRight:g}=OW(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=qr.Backward,y.y=r*Math.abs((t.top+S.height-i)/S.height)):!m&&u>=t.bottom-S.height&&(b.y=qr.Forward,y.y=r*Math.abs((t.bottom-S.height-u)/S.height)),!g&&l>=t.right-S.width?(b.x=qr.Forward,y.x=r*Math.abs((t.right-S.width-l)/S.width)):!p&&s<=t.left+S.width&&(b.x=qr.Backward,y.x=r*Math.abs((t.left+S.width-s)/S.width)),{direction:b,speed:y}}function B2e(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 DW(e){return e.reduce((t,n)=>Mf(t,hM(n)),Ds)}function z2e(e){return e.reduce((t,n)=>t+NW(n),0)}function F2e(e){return e.reduce((t,n)=>t+PW(n),0)}function H2e(e,t){if(t===void 0&&(t=Cm),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);RW(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"});}const V2e=[["x",["left","right"],z2e],["y",["top","bottom"],F2e]];class o6{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=r6(n),o=DW(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,s,l]of V2e)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 fp{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 j2e(e){const{EventTarget:t}=ui(e);return e instanceof t?e:Sm(e)}function _$(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 qi;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange";})(qi||(qi={}));function Vk(e){e.preventDefault();}function U2e(e){e.stopPropagation();}var Tn;(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";})(Tn||(Tn={}));const LW={start:[Tn.Space,Tn.Enter],cancel:[Tn.Esc],end:[Tn.Space,Tn.Enter,Tn.Tab]},W2e=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Tn.Right:return {...n,x:n.x+25};case Tn.Left:return {...n,x:n.x-25};case Tn.Down:return {...n,y:n.y+25};case Tn.Up:return {...n,y:n.y-25}}};class kW{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 fp(Sm(n)),this.windowListeners=new fp(ui(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach();}attach(){this.handleStart(),this.windowListeners.add(qi.Resize,this.handleCancel),this.windowListeners.add(qi.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(qi.Keydown,this.handleKeyDown));}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&H2e(r),n(Ds);}handleKeyDown(t){if(n6(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=LW,coordinateGetter:s=W2e,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}:Ds;this.referenceCoordinates||(this.referenceCoordinates=m);const p=s(t,{active:n,context:r.current,currentCoordinates:m});if(p){const g=o1(p,m),b={x:0,y:0},{scrollableAncestors:y}=r.current;for(const S of y){const x=t.code,{isTop:$,isRight:w,isLeft:M,isBottom:T,maxScroll:A,minScroll:P}=OW(S),N=B2e(S),I={x:Math.min(x===Tn.Right?N.right-N.width/2:N.right,Math.max(x===Tn.Right?N.left:N.left+N.width/2,p.x)),y:Math.min(x===Tn.Down?N.bottom-N.height/2:N.bottom,Math.max(x===Tn.Down?N.top:N.top+N.height/2,p.y))},O=x===Tn.Right&&!w||x===Tn.Left&&!M,D=x===Tn.Down&&!T||x===Tn.Up&&!$;if(O&&I.x!==p.x){const L=S.scrollLeft+g.x,V=x===Tn.Right&&L<=A.x||x===Tn.Left&&L>=P.x;if(V&&!g.y){S.scrollTo({left:L,behavior:l});return}V?b.x=S.scrollLeft-L:b.x=x===Tn.Right?S.scrollLeft-A.x:S.scrollLeft-P.x,b.x&&S.scrollBy({left:-b.x,behavior:l});break}else if(D&&I.y!==p.y){const L=S.scrollTop+g.y,V=x===Tn.Down&&L<=A.y||x===Tn.Up&&L>=P.y;if(V&&!g.x){S.scrollTo({top:L,behavior:l});return}V?b.y=S.scrollTop-L:b.y=x===Tn.Down?S.scrollTop-A.y:S.scrollTop-P.y,b.y&&S.scrollBy({top:-b.y,behavior:l});break}}this.handleMove(t,Mf(o1(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();}}kW.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=LW,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 jk(e){return !!(e&&"distance"in e)}function Uk(e){return !!(e&&"delay"in e)}class i6{constructor(t,n,r){var o;r===void 0&&(r=j2e(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=Sm(s),this.documentListeners=new fp(this.document),this.listeners=new fp(r),this.windowListeners=new fp(ui(s)),this.initialCoordinates=(o=mM(i))!=null?o:Ds,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(qi.Resize,this.handleCancel),this.windowListeners.add(qi.DragStart,Vk),this.windowListeners.add(qi.VisibilityChange,this.handleCancel),this.windowListeners.add(qi.ContextMenu,Vk),this.documentListeners.add(qi.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Uk(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(jk(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(qi.Click,U2e,{capture:true}),this.removeTextSelection(),this.documentListeners.add(qi.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=mM(t))!=null?n:Ds,d=o1(o,u);if(!r&&l){if(jk(l)){if(l.tolerance!=null&&_$(d,l.tolerance))return this.handleCancel();if(_$(d,l.distance))return this.handleStart()}if(Uk(l)&&_$(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===Tn.Esc&&this.handleCancel();}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges();}}const G2e={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class s6 extends i6{constructor(t){const{event:n}=t,r=Sm(n.target);super(t,G2e,r);}}s6.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 q2e={move:{name:"mousemove"},end:{name:"mouseup"}};var pM;(function(e){e[e.RightClick=2]="RightClick";})(pM||(pM={}));class K2e extends i6{constructor(t){super(t,q2e,Sm(t.event.target));}}K2e.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===pM.RightClick?false:(r?.({event:n}),true)}}];const B$={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Y2e extends i6{constructor(t){super(t,B$);}static setup(){return window.addEventListener(B$.move.name,t,{capture:false,passive:false}),function(){window.removeEventListener(B$.move.name,t);};function t(){}}}Y2e.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 mp;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect";})(mp||(mp={}));var s1;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder";})(s1||(s1={}));function X2e(e){let{acceleration:t,activator:n=mp.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:l=s1.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:m,delta:p,threshold:g}=e;const b=Z2e({delta:p,disabled:!i}),[y,S]=s2e(),x=f.useRef({x:0,y:0}),$=f.useRef({x:0,y:0}),w=f.useMemo(()=>{switch(n){case mp.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case mp.DraggableRect:return o}},[n,o,u]),M=f.useRef(null),T=f.useCallback(()=>{const P=M.current;if(!P)return;const N=x.current.x*$.current.x,I=x.current.y*$.current.y;P.scrollBy(N,I);},[]),A=f.useMemo(()=>l===s1.TreeOrder?[...d].reverse():d,[l,d]);f.useEffect(()=>{if(!i||!d.length||!w){S();return}for(const P of A){if(r?.(P)===false)continue;const N=d.indexOf(P),I=m[N];if(!I)continue;const{direction:O,speed:D}=_2e(P,I,w,t,g);for(const L of ["x","y"])b[L][O[L]]||(D[L]=0,O[L]=0);if(D.x>0||D.y>0){S(),M.current=P,y(T,s),x.current=D,$.current=O;return}}x.current={x:0,y:0},$.current={x:0,y:0},S();},[t,T,r,S,i,s,JSON.stringify(w),JSON.stringify(b),y,d,A,m,JSON.stringify(g)]);}const Q2e={x:{[qr.Backward]:false,[qr.Forward]:false},y:{[qr.Backward]:false,[qr.Forward]:false}};function Z2e(e){let{delta:t,disabled:n}=e;const r=fM(t);return Zg(o=>{if(n||!r||!o)return Q2e;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return {x:{[qr.Backward]:o.x[qr.Backward]||i.x===-1,[qr.Forward]:o.x[qr.Forward]||i.x===1},y:{[qr.Backward]:o.y[qr.Backward]||i.y===-1,[qr.Forward]:o.y[qr.Forward]||i.y===1}}},[n,t,r])}function J2e(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Zg(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function e3e(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 Zp;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging";})(Zp||(Zp={}));var gM;(function(e){e.Optimized="optimized";})(gM||(gM={}));const Wk=new Map;function t3e(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=Qp(p),b=f.useCallback(function($){$===void 0&&($=[]),!g.current&&s(w=>w===null?$:w.concat($.filter(M=>!w.includes(M))));},[g]),y=f.useRef(null),S=Zg($=>{if(p&&!n)return Wk;if(!$||$===Wk||m.current!==e||i!=null){const w=new Map;for(let M of e){if(!M)continue;if(i&&i.length>0&&!i.includes(M.id)&&M.rect.current){w.set(M.id,M.rect.current);continue}const T=M.node.current,A=T?new o6(u(T),T):null;M.rect.current=A,A&&w.set(M.id,A);}return w}return $},[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 Zp.Always:return  false;case Zp.BeforeDragging:return n;default:return !n}}}function _W(e,t){return Zg(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function n3e(e,t){return _W(e,t)}function r3e(e){let{callback:t,disabled:n}=e;const r=t6(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 xS(e){let{callback:t,disabled:n}=e;const r=t6(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 o3e(e){return new o6(Cm(e),e)}function Gk(e,t,n){t===void 0&&(t=o3e);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=r3e({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=xS({callback:i});return ca(()=>{i(),e?(l?.observe(e),s?.observe(document.body,{childList:true,subtree:true})):(l?.disconnect(),s?.disconnect());},[e]),r}function i3e(e){const t=_W(e);return AW(e,t)}const qk=[];function s3e(e){const t=f.useRef(e),n=Zg(r=>e?r&&r!==qk&&e&&t.current&&e.parentNode===t.current.parentNode?r:r6(e):qk,[e]);return f.useEffect(()=>{t.current=e;},[e]),n}function a3e(e){const[t,n]=f.useState(null),r=f.useRef(e),o=f.useCallback(i=>{const s=k$(i.target);s&&n(l=>l?(l.set(s,hM(s)),new Map(l)):null);},[]);return f.useEffect(()=>{const i=r.current;if(e!==i){s(i);const l=e.map(u=>{const d=k$(u);return d?(d.addEventListener("scroll",o,{passive:true}),[d,hM(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=k$(u);d?.removeEventListener("scroll",o);});}},[o,e]),f.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>Mf(i,s),Ds):DW(e):Ds,[e,t])}function Kk(e,t){t===void 0&&(t=[]);const n=f.useRef(null);return f.useEffect(()=>{n.current=null;},t),f.useEffect(()=>{const r=e!==Ds;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null);},[e]),n.current?o1(e,n.current):Ds}function l3e(e){f.useEffect(()=>{if(!CS)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 c3e(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 BW(e){return f.useMemo(()=>e?O2e(e):null,[e])}const Yk=[];function u3e(e,t){t===void 0&&(t=Cm);const[n]=e,r=BW(n?ui(n):null),[o,i]=f.useState(Yk);function s(){i(()=>e.length?e.map(u=>IW(u)?r:new o6(t(u),u)):Yk);}const l=xS({callback:s});return ca(()=>{l?.disconnect(),s(),e.forEach(u=>l?.observe(u));},[e]),o}function d3e(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Qg(t)?t:e}function f3e(e){let{measure:t}=e;const[n,r]=f.useState(null),o=f.useCallback(d=>{for(const{target:m}of d)if(Qg(m)){r(p=>{const g=t(m);return p?{...p,width:g.width,height:g.height}:g});break}},[t]),i=xS({callback:o}),s=f.useCallback(d=>{const m=d3e(d);i?.disconnect(),m&&i?.observe(m),r(m?t(m):null);},[t,i]),[l,u]=r1(s);return f.useMemo(()=>({nodeRef:l,rect:n,setRef:u}),[n,l,u])}const m3e=[{sensor:s6,options:{}},{sensor:kW,options:{}}],h3e={current:{}},Gy={draggable:{measure:Hk},droppable:{measure:Hk,strategy:Zp.WhileDragging,frequency:gM.Optimized},dragOverlay:{measure:Cm}};class hp 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 p3e={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new hp,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:i1},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Gy,measureDroppableContainers:i1,windowRect:null,measuringScheduled:false},g3e={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:i1,draggableNodes:new Map,over:null,measureDroppableContainers:i1},wS=f.createContext(g3e),zW=f.createContext(p3e);function v3e(){return {draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new hp}}}function b3e(e,t){switch(t.type){case Lr.DragStart:return {...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Lr.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 Lr.DragEnd:case Lr.DragCancel:return {...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Lr.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new hp(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case Lr.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 hp(e.droppable.containers);return s.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case Lr.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new hp(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function y3e(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=f.useContext(wS),i=fM(r),s=fM(n?.id);return f.useEffect(()=>{if(!t&&!r&&i&&s!=null){if(!n6(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=c2e(m);if(p){p.focus();break}}});}},[r,t,o,s,i]),null}function S3e(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function C3e(e){return f.useMemo(()=>({draggable:{...Gy.draggable,...e?.draggable},droppable:{...Gy.droppable,...e?.droppable},dragOverlay:{...Gy.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function x3e(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;ca(()=>{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=AW(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=RW(d);g&&g.scrollBy({top:p.y,left:p.x});}},[t,s,l,r,n]);}const FW=f.createContext({...Ds,scaleX:1,scaleY:1});var Gl;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized";})(Gl||(Gl={}));const HW=f.memo(function(t){var n,r,o,i;let{id:s,accessibility:l,autoScroll:u=true,children:d,sensors:m=m3e,collisionDetection:p=M2e,measuring:g,modifiers:b,...y}=t;const S=f.useReducer(b3e,void 0,v3e),[x,$]=S,[w,M]=h2e(),[T,A]=f.useState(Gl.Uninitialized),P=T===Gl.Initialized,{draggable:{active:N,nodes:I,translate:O},droppable:{containers:D}}=x,L=N!=null?I.get(N):null,V=f.useRef({initial:null,translated:null}),U=f.useMemo(()=>{var ft;return N!=null?{id:N,data:(ft=L?.data)!=null?ft:h3e,rect:V}:null},[N,L]),W=f.useRef(null),[z,k]=f.useState(null),[G,j]=f.useState(null),K=Qp(y,Object.values(y)),X=Jg("DndDescribedBy",s),B=f.useMemo(()=>D.getEnabled(),[D]),H=C3e(g),{droppableRects:Q,measureDroppableContainers:J,measuringScheduled:te}=t3e(B,{dragging:P,dependencies:[O.x,O.y],config:H.droppable}),ne=J2e(I,N),re=f.useMemo(()=>G?mM(G):null,[G]),oe=Dt(),de=n3e(ne,H.draggable.measure);x3e({activeNode:N!=null?I.get(N):null,config:oe.layoutShiftCompensation,initialRect:de,measure:H.draggable.measure});const ee=Gk(ne,H.draggable.measure,de),se=Gk(ne?ne.parentElement:null),le=f.useRef({activatorEvent:null,active:null,activeNode:ne,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:I,draggingNode:null,draggingNodeRect:null,droppableContainers:D,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ae=D.getNodeFor((n=le.current.over)==null?void 0:n.id),Ee=f3e({measure:H.dragOverlay.measure}),ce=(r=Ee.nodeRef.current)!=null?r:ne,he=P?(o=Ee.rect)!=null?o:ee:null,ge=!!(Ee.nodeRef.current&&Ee.rect),Ce=i3e(ge?null:ee),Re=BW(ce?ui(ce):null),et=s3e(P?ae??ne:null),Ne=u3e(et),ve=S3e(b,{transform:{x:O.x-Ce.x,y:O.y-Ce.y,scaleX:1,scaleY:1},activatorEvent:G,active:U,activeNodeRect:ee,containerNodeRect:se,draggingNodeRect:he,over:le.current.over,overlayNodeRect:Ee.rect,scrollableAncestors:et,scrollableAncestorRects:Ne,windowRect:Re}),Te=re?Mf(re,O):null,Se=a3e(et),Ie=Kk(Se),Ue=Kk(Se,[ee]),je=Mf(ve,Ie),qe=he?R2e(he,ve):null,Ze=U&&qe?p({active:U,collisionRect:qe,droppableRects:Q,droppableContainers:B,pointerCoordinates:Te}):null,Ye=w2e(Ze,"id"),[Be,Ke]=f.useState(null),Qe=ge?ve:Mf(ve,Ue),ke=T2e(Qe,(i=Be?.rect)!=null?i:null,ee),Oe=f.useRef(null),ct=f.useCallback((ft,ut)=>{let{sensor:vt,options:He}=ut;if(W.current==null)return;const Ge=I.get(W.current);if(!Ge)return;const be=ft.nativeEvent,Me=new vt({active:W.current,activeNode:Ge,event:be,options:He,context:le,onAbort(me){if(!I.get(me))return;const{onDragAbort:xe}=K.current,ze={id:me};xe?.(ze),w({type:"onDragAbort",event:ze});},onPending(me,Le,xe,ze){if(!I.get(me))return;const{onDragPending:it}=K.current,dt={id:me,constraint:Le,initialCoordinates:xe,offset:ze};it?.(dt),w({type:"onDragPending",event:dt});},onStart(me){const Le=W.current;if(Le==null)return;const xe=I.get(Le);if(!xe)return;const{onDragStart:ze}=K.current,tt={activatorEvent:be,active:{id:Le,data:xe.data,rect:V}};Lo.unstable_batchedUpdates(()=>{ze?.(tt),A(Gl.Initializing),$({type:Lr.DragStart,initialCoordinates:me,active:Le}),w({type:"onDragStart",event:tt}),k(Oe.current),j(be);});},onMove(me){$({type:Lr.DragMove,coordinates:me});},onEnd:ye(Lr.DragEnd),onCancel:ye(Lr.DragCancel)});Oe.current=Me;function ye(me){return async function(){const{active:xe,collisions:ze,over:tt,scrollAdjustedTranslate:it}=le.current;let dt=null;if(xe&&it){const{cancelDrop:Et}=K.current;dt={activatorEvent:be,active:xe,collisions:ze,delta:it,over:tt},me===Lr.DragEnd&&typeof Et=="function"&&await Promise.resolve(Et(dt))&&(me=Lr.DragCancel);}W.current=null,Lo.unstable_batchedUpdates(()=>{$({type:me}),A(Gl.Uninitialized),Ke(null),k(null),j(null),Oe.current=null;const Et=me===Lr.DragEnd?"onDragEnd":"onDragCancel";if(dt){const _t=K.current[Et];_t?.(dt),w({type:Et,event:dt});}});}}},[I]),Ot=f.useCallback((ft,ut)=>(vt,He)=>{const Ge=vt.nativeEvent,be=I.get(He);if(W.current!==null||!be||Ge.dndKit||Ge.defaultPrevented)return;const Me={active:be};ft(vt,ut.options,Me)===true&&(Ge.dndKit={capturedBy:ut.sensor},W.current=He,ct(vt,ut));},[I,ct]),mt=e3e(m,Ot);l3e(m),ca(()=>{ee&&T===Gl.Initializing&&A(Gl.Initialized);},[ee,T]),f.useEffect(()=>{const{onDragMove:ft}=K.current,{active:ut,activatorEvent:vt,collisions:He,over:Ge}=le.current;if(!ut||!vt)return;const be={active:ut,activatorEvent:vt,collisions:He,delta:{x:je.x,y:je.y},over:Ge};Lo.unstable_batchedUpdates(()=>{ft?.(be),w({type:"onDragMove",event:be});});},[je.x,je.y]),f.useEffect(()=>{const{active:ft,activatorEvent:ut,collisions:vt,droppableContainers:He,scrollAdjustedTranslate:Ge}=le.current;if(!ft||W.current==null||!ut||!Ge)return;const{onDragOver:be}=K.current,Me=He.get(Ye),ye=Me&&Me.rect.current?{id:Me.id,rect:Me.rect.current,data:Me.data,disabled:Me.disabled}:null,me={active:ft,activatorEvent:ut,collisions:vt,delta:{x:Ge.x,y:Ge.y},over:ye};Lo.unstable_batchedUpdates(()=>{Ke(ye),be?.(me),w({type:"onDragOver",event:me});});},[Ye]),ca(()=>{le.current={activatorEvent:G,active:U,activeNode:ne,collisionRect:qe,collisions:Ze,droppableRects:Q,draggableNodes:I,draggingNode:ce,draggingNodeRect:he,droppableContainers:D,over:Be,scrollableAncestors:et,scrollAdjustedTranslate:je},V.current={initial:he,translated:qe};},[U,ne,Ze,qe,I,ce,he,Q,D,Be,et,je]),X2e({...oe,delta:O,draggingRect:qe,pointerCoordinates:Te,scrollableAncestors:et,scrollableAncestorRects:Ne});const kt=f.useMemo(()=>({active:U,activeNode:ne,activeNodeRect:ee,activatorEvent:G,collisions:Ze,containerNodeRect:se,dragOverlay:Ee,draggableNodes:I,droppableContainers:D,droppableRects:Q,over:Be,measureDroppableContainers:J,scrollableAncestors:et,scrollableAncestorRects:Ne,measuringConfiguration:H,measuringScheduled:te,windowRect:Re}),[U,ne,ee,G,Ze,se,Ee,I,D,Q,Be,J,et,Ne,H,te,Re]),yt=f.useMemo(()=>({activatorEvent:G,activators:mt,active:U,activeNodeRect:ee,ariaDescribedById:{draggable:X},dispatch:$,draggableNodes:I,over:Be,measureDroppableContainers:J}),[G,mt,U,ee,$,X,I,Be,J]);return q.createElement(MW.Provider,{value:M},q.createElement(wS.Provider,{value:yt},q.createElement(zW.Provider,{value:kt},q.createElement(FW.Provider,{value:ke},d)),q.createElement(y3e,{disabled:l?.restoreFocus===false})),q.createElement(v2e,{...l,hiddenTextDescribedById:X}));function Dt(){const ft=z?.autoScrollEnabled===false,ut=typeof u=="object"?u.enabled===false:u===false,vt=P&&!ft&&!ut;return typeof u=="object"?{...u,enabled:vt}:{enabled:vt}}}),w3e=f.createContext(null),Xk="button",$3e="Draggable";function VW(e){let{id:t,data:n,disabled:r=false,attributes:o}=e;const i=Jg($3e),{activators:s,activatorEvent:l,active:u,activeNodeRect:d,ariaDescribedById:m,draggableNodes:p,over:g}=f.useContext(wS),{role:b=Xk,roleDescription:y="draggable",tabIndex:S=0}=o??{},x=u?.id===t,$=f.useContext(x?FW:w3e),[w,M]=r1(),[T,A]=r1(),P=c3e(s,t),N=Qp(n);ca(()=>(p.set(t,{id:t,key:i,node:w,activatorNode:T,data:N}),()=>{const O=p.get(t);O&&O.key===i&&p.delete(t);}),[p,t]);const I=f.useMemo(()=>({role:b,tabIndex:S,"aria-disabled":r,"aria-pressed":x&&b===Xk?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:I,isDragging:x,listeners:r?void 0:P,node:w,over:g,setNodeRef:M,setActivatorNodeRef:A,transform:$}}function E3e(){return f.useContext(zW)}const M3e="Droppable",T3e={timeout:25};function A3e(e){let{data:t,disabled:n=false,id:r,resizeObserverConfig:o}=e;const i=Jg(M3e),{active:s,dispatch:l,over:u,measureDroppableContainers:d}=f.useContext(wS),m=f.useRef({disabled:n}),p=f.useRef(false),g=f.useRef(null),b=f.useRef(null),{disabled:y,updateMeasurementsFor:S,timeout:x}={...T3e,...o},$=Qp(S??r),w=f.useCallback(()=>{if(!p.current){p.current=true;return}b.current!=null&&clearTimeout(b.current),b.current=setTimeout(()=>{d(Array.isArray($.current)?$.current:[$.current]),b.current=null;},x);},[x]),M=xS({callback:w,disabled:y||!s}),T=f.useCallback((I,O)=>{M&&(O&&(M.unobserve(O),p.current=false),I&&M.observe(I));},[M]),[A,P]=r1(T),N=Qp(t);return f.useEffect(()=>{!M||!A.current||(M.disconnect(),p.current=false,M.observe(A.current));},[A,M]),f.useEffect(()=>(l({type:Lr.RegisterDroppable,element:{id:r,key:i,disabled:n,node:A,rect:g,data:N}}),()=>l({type:Lr.UnregisterDroppable,key:i,id:r})),[r]),f.useEffect(()=>{n!==m.current.disabled&&(l({type:Lr.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:P}}function R3e(e,t){ts(e)||(typeof e=="function"?e(t):e.current=t);}function $S(...e){const t=f.useRef(null);return f.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,e.forEach(r=>r&&R3e(r,n));}}),[t,...e])}const Tf=Mc(()=>({width:window.innerWidth,height:window.innerHeight}));document.addEventListener("resize",Tf.updateThrottled);document.addEventListener("orientationchange",Tf.updateThrottled);document.addEventListener("scroll",ua(Tf.update,1e3));function N3e({expanded:e,children:t,...n}){return C("div",{...n,"data-classname":"wrapper",css:dn("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 en(e){return C(wc,{...e,styles:{...e.styles,root:{width:"max-content",maxWidth:"50vw",...e.styles?.root}},children:e.children})}const P3e=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),I3e=f.forwardRef(P3e),O3e=I3e,jW="rgb(0 0 0 / 0.85)";function dr({children:e,tooltipProps:t,IconComponent:n,className:r,useBlackBg:o,...i}){n??=O3e;const s=C(n,{...i,className:or("ml-4px size-16px cursor-pointer",r)});return !!e&&C(en,{color:o?jW:void 0,...t,title:e,children:s})}function D3e(e,t){const n=jt(),r=!!tr(n,e,false),o=f.useCallback(l=>{Xf(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 UW({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}=D3e(e,n),g=y=>r?C(en,{...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(Oi,{...s,ref:u,checked:d,onChange:p,styles:{label:{paddingInline:6}},children:y})}if(i==="switch"){let y=C(QH,{...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(UW,{ref:i,configPath:e,label:t,extraAction:n,tooltip:r,tooltipProps:o,as:"checkbox",checkboxProps:s})};function Gu({configPath:e,extraAction:t,tooltip:n,tooltipProps:r,ref:o,...i}){return C(UW,{ref:o,configPath:e,extraAction:t,tooltip:n,tooltipProps:r,as:"switch",switchProps:i})}async function ES(e="即将刷新网页!"){Rt.info(e),await fn(500),location.reload();}function Gr(e,t){return _(De,{children:[_("div",{className:"flex items-center",children:["✅: ",e]}),_("div",{className:"flex items-center",children:["❎: ",t]})]})}class L3e{url;revokeTimer;constructor(t,n=Zr("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&&ic(()=>URL.revokeObjectURL(this.url)),this.url=void 0;}}let z$;async function k3e(e){const t=await Vg(),n=e?.length?Rc(t,e).pickedSettings:t,r=JSON.stringify(n,null,2),o=new Blob([r],{type:"application/json"});return z$?.revoke(),z$=new L3e(o),z$.url}async function WW(e,t){const n=await k3e(e),o=`${[Mo,BQ(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 GW(){const e=await B3e();if(!e)return;const t=await e.text();if(!t)return On("文件内容为空!");let n;try{n=JSON.parse(t);}catch{return On("无法解析文件内容!")}return VR(n),n}async function _3e(){const e=await GW();if(!e)return;const{pickedPaths:t,pickedSettings:n}=Rc(e,ll);if(!t.length)return On("没有有效的设置!");{const r=Object.keys(n);if(r.length===1)return r[0]==="filter"?On("过滤相关数据请使用「内容过滤」内独立的导入导出功能!",5e3):On("异常数据",5e3)}return IU(true),ss(n),Rt.success("导入成功!"),ES()}function B3e(){return z3e({accept:".json",multiple:false})}function z3e(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 Pn={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 fo({children:e,title:t,titleClassName:n,contentClassName:r,resetSettingPaths:o,...i}){const s=!!o?.length;return _("div",{className:Pn.settingsGroup,"data-role":"settings-group",...i,children:[_("div",{"data-role":"settings-group-title",className:or(Pn.settingsGroupTitle,s&&"justify-between",n),children:[s?C("div",{className:"flex items-center",children:t}):t,o&&C(a6,{paths:o})]}),C("div",{"data-role":"settings-group-content",className:or("flex flex-col gap-y-1",r),children:e})]})}function F3e(e){const{pickedSettings:t}=Rc(Hg,e);ss(t);}function a6({paths:e,className:t}){return C(Vp,{title:"确定重置下面的设置项?",onConfirm:()=>F3e(e),children:_(lt,{className:Y("gap-x-4px",t),children:[C(dV,{className:"mt--1px size-12px"}),C("span",{children:"重置"})]})})}const H3e=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),Qk=f.forwardRef(H3e),V3e=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),qW=f.forwardRef(V3e),j3e=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),KW=f.forwardRef(j3e),U3e=({title:e,titleId:t,...n},r)=>_("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"})]}),W3e=f.forwardRef(U3e),G3e=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),q3e=f.forwardRef(G3e);function K3e(){return Ewe(),ES()}async function Y3e(){const e=await RU.getData();VR(e);const{pickedPaths:t,pickedSettings:n}=Rc(e,oc(ll,bwe));return t.length?(IU(true),ss(n),ES()):Rt.error("备份不存在或没有有效的配置")}function X3e(){const[e,t]=f.useState(false);return _("div",{className:Pn.tabPane,children:[C(fo,{title:_(De,{children:[C(_g,{className:"mr-4px size-28px"}),"设置"]}),children:_("div",{className:Y(Pn.settingsLine,"gap-x-20px"),children:[C(Vp,{title:"确定",description:"确定恢复默认设置? 此操作不可逆!",onConfirm:K3e,children:_(lt,{danger:true,type:"primary",children:[C(Qk,{}),"恢复默认设置"]})}),C(en,{title:"导出所有设置项到文件中, 包含 access_key 等数据, 请妥善保存",children:_(lt,{onClick:()=>WW(),children:[C(qW,{}),"导出设置"]})}),C(en,{title:"从文件中导入设置项, 将覆盖当前设置, 此操作不可逆!",children:_(lt,{onClick:()=>_3e(),children:[C(KW,{}),"导入设置"]})})]})}),C(fo,{title:_(De,{children:[C(W3e,{className:"mr-4px size-28px"}),"设置备份",_(dr,{children:["使用专栏草稿箱作为云存储 ",C("br",{}),"勾选后可自动备份, 手动恢复"]})]}),children:_("div",{className:"flex items-center gap-x-20px",children:[C(It,{configPath:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${Mo}`}),_("a",{className:"inline-flex items-center",href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[C(To,{className:"mr-4px size-16px"}),"去草稿箱浏览"]}),C(Vp,{title:"确定",description:"将覆盖本地设置? 此操作不可逆!",onConfirm:Y3e,children:_(lt,{danger:true,type:"primary",children:[C(Qk,{}),"从专栏草稿箱中恢复"]})})]})}),C(fo,{title:_(De,{children:["其他",C(dr,{children:"这里是一些实验性设置项, 可能随时会变更或删除"}),C(lt,{onClick:()=>t(n=>!n),className:"ml-10px inline-icon-only-round-button",css:e&&rd,children:C(q3e,{className:Y("size-16px transition-300 transition-transform",e?"rotate-180":"rotate-0")})})]}),children:C(N3e,{expanded:e,children:_("div",{className:"w-full flex gap-x-20px b-1px b-gate-border rounded-6px b-solid p-10px",children:[C(a6,{paths:Z0,className:"flex-none"}),C("div",{className:"flex flex-1 flex-wrap items-start gap-x-20px gap-y-10px",children:Z0.map(n=>C(It,{configPath:n,tooltip:_(De,{children:[n,Zk[n]&&_(De,{children:[C("br",{}),Zk[n]]})]}),label:LQ(n.startsWith("__internal")?n.slice(10):n.replaceAll("__internal.",""))},n))})]})})})]})}const Zk={};function YW(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 Q3e(e,t){return YW(e,{deltaL:t})}function vM({className:e,...t}){return C(fc,{variant:"solid",...t,className:or("my-7px",e),css:dn("border-top-color:",YW(as,{l:.9}),";","")})}const XW=e=>{const t=MU(e,yp.appkey,yp.appsec);return new URLSearchParams({...e,sign:t})};async function Z3e(){const t=(await Zt.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/auth_code",XW({appkey:yp.appkey,local_id:"0",ts:"0"}))).data;if(!Hr(t)){On(t?.message||"获取 auth_code 失败");return}return t.data}async function J3e(e){const n=(await Zt.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/poll",XW({appkey:yp.appkey,auth_code:e,local_id:"0",ts:"0"}))).data,r={0:"成功","-3":"API校验密匙错误","-400":"请求错误","-404":"啥都木有",86038:"二维码已失效",86039:"二维码尚未确认",86090:"二维码已扫码未确认"};if(!Hr(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 l6={show:false,qrcodeUrl:"",auth_code:"",message:"",expired:false},ql=_n({...l6});function pf(e){rMe(),Object.assign(ql,e);}function eMe(e){pf({...l6,...e,show:true});}const MS=new ho;function QW(){pf({...l6}),MS.emit("hide");}function Jk(){return MS.once("hide")}function tMe(){return MS.once("refresh")}function nMe(){const{qrcodeUrl:e,show:t,message:n,expired:r}=pt(ql),o=QW,i=()=>{MS.emit("refresh");};return _(Yg,{show:t,onHide:o,hideWhenMaskOnClick:false,hideWhenEsc:false,clsModalMask:"backdrop-blur-10px",clsModal:"aspect-ratio-10/16",width:260,children:[_("div",{className:Bo.modalHeader,children:[C("div",{className:Bo.modalTitle}),C(Xg,{onClick:o})]}),_("div",{className:Y(Bo.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&&_("div",{className:"relative mx-auto mb-40px flex-shrink-0",children:[C(cge,{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&&_("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:"点击刷新"})]})]}),_("div",{className:"footnote text-size-13px line-height-snug",children:["打开「哔哩哔哩」或「bilibili」App ",C("br",{}),"扫码获取 access_key"]})]})]})}const rMe=Yf(function(){const t=document.createElement("div");t.classList.add("modal-tv-qrcode-auth",Ls),document.body.appendChild(t),fa(t).render(C(ha,{children:C(nMe,{})}));});async function e_(){const e=await Z3e();if(e)return eMe({qrcodeUrl:e.url,auth_code:e.auth_code}),true}async function oMe(){let e,t;if(!await e_())return;e=ql.auth_code;function r(){if(!ql.show||!ql.auth_code||e!==ql.auth_code)return  true}function o(){return !r()}for(;o();){const i=fn(1500),s=Jk();if(await Promise.race([i,s]),s.off(),r())return;t=await J3e(ql.auth_code);const{success:l,accessKey:u,accessKeyExpireAt:d,message:m,action:p}=t;if(r())return;if(pf({message:m}),l)return await fn(1e3),QW(),{accessKey:u,accessKeyExpireAt:d};if(p==="refresh"){pf({message:"二维码已过期,请点击刷新",expired:true});const g=Jk(),b=tMe();if(await Promise.race([g,b]),g.off(),b.off(),r()||!await e_())return;e=ql.auth_code,pf({message:"已刷新二维码",expired:false});continue}if(p!=="wait"){pf({message:m}),On(m);return}}}async function iMe(){const{accessKey:e,accessKeyExpireAt:t}=await oMe()||{};!e||!t||(ot.accessKey=e,ot.accessKeyExpireAt=t,On("获取成功"));}function sMe(){ot.accessKey="",ot.accessKeyExpireAt=0,On("已删除 access_key");}const t_=C(lt,{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 c6({style:e,className:t}){const{runAsync:n,loading:r}=Rs(iMe,{manual:true}),{accessKey:o}=jt();return C(kr,{size:"small",style:e,className:t,children:o?_(De,{children:[C(lt,{onClick:n,loading:r,children:"重新获取 access_key"}),C(Vp,{onConfirm:sMe,title:"确定删除 access_key?",children:C(lt,{children:"删除 access_key"})}),t_]}):_(De,{children:[C(lt,{onClick:n,loading:r,children:"获取 access_key"}),t_]})})}const bM="inline-block cursor-pointer rounded bg-gate-primary-lv-3 p-1 font-size-12px text-white leading-[0.9] font-mono";function $s({k:e,className:t,...n}){const r=f.useMemo(()=>Qwe(e),[e]);return C("kbd",{...n,className:or(bM,t),children:r})}const yM=C($s,{className:"mx-1",k:"Shift"}),aMe=({title:e,titleId:t,...n},r)=>_("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"})]}),ZW=f.forwardRef(aMe),lMe=({title:e,titleId:t,...n},r)=>_("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"})]}),cMe=f.forwardRef(lMe),uMe=({title:e,titleId:t,...n},r)=>_("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"})]}),JW=f.forwardRef(uMe),eG="w-720px",dMe=(e,t)=>{switch(e){case Du.Left:return t==="flex"?"justify-left":"ml-0 mr-auto";case Du.Right:return t==="flex"?"justify-right":"ml-auto mr-0";default:return t==="flex"?"justify-center":"mx-auto"}};function fMe({className:e}){const{grid:{gridDisplayMode:t,twoColumnModeAlign:n}}=jt();return _(Rr.Group,{className:e,disabled:t!==Kr.TwoColumnGrid,buttonStyle:"solid",size:"small",value:n,onChange:r=>{ot.grid.twoColumnModeAlign=r.target.value;},children:[C(Rr.Button,{value:Du.Left,className:"inline-flex-center",children:C(ZW,{className:"size-16px"})}),C(Rr.Button,{value:Du.Center,className:"inline-flex-center",children:C(cMe,{className:"size-16px"})}),C(Rr.Button,{value:Du.Right,className:"inline-flex-center",children:C(JW,{className:"size-16px"})})]})}const mMe=({title:e,titleId:t,...n},r)=>_("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"})]}),hMe=f.forwardRef(mMe),pMe=({title:e,titleId:t,...n},r)=>_("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"})]}),gMe=f.forwardRef(pMe);function tG(e){return {usingListMode:e===Kr.List,usingTwoColumnMode:e===Kr.TwoColumnGrid,usingCenterEmptyMode:e===Kr.CenterEmptyGrid}}function nG(){const{gridDisplayMode:e}=pt(ot.grid);return tG(e)}function u6(e){return e===Kr.List}function vMe(){return pt(ot.grid).gridDisplayMode===Kr.List}const rG="[&_.ant-radio-wrapper]:mx-0 [&_.ant-radio-wrapper]:inline-flex [&_.ant-radio-wrapper]:items-center",oG="[&_.ant-radio-label]:inline-flex [&_.ant-radio-label]:items-center ![&_.ant-radio-label]:pl-4px";function bMe({className:e}){const{gridDisplayMode:t}=pt(ot.grid),n=or("flex items-center gap-x-15px",rG,oG,e);return C(Rr.Group,{size:"large",className:n,value:t,onChange:r=>{ot.grid.gridDisplayMode=r.target.value;},options:[{value:Kr.NormalGrid,label:C(en,{title:"这个是默认的网格模式",children:_("span",{className:"inline-flex-center",children:[C(hMe,{className:"mx-4px size-16px cursor-pointer"}),"网格"]})})},{value:Kr.List,label:_(De,{children:[C(gMe,{className:"mx-4px size-16px cursor-pointer"}),"列表"]})},{value:Kr.TwoColumnGrid,label:_(De,{children:["双列模式",C(fMe,{className:"ml-5px"})]})},{value:Kr.CenterEmptyGrid,label:C(De,{children:C(en,{title:"网格中间不显示卡片",children:"中空模式"})})}]})}function yMe({className:e}){const{useCustomGrid:t,enableForceColumn:n,cardMinWidth:r,forceColumnCount:o}=pt(ot.grid),i=n?"force-column":"auto-fill",s=nt(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:_("div",{className:"flex items-center gap-x-1",children:[C(en,{title:_(De,{children:["自适应: 指按照「卡片最小宽度」自适应 ",C("br",{}),"如果期望显示更多的列, 可以调小「卡片最小宽度」; ",C("br",{}),"如果期望显示更少的列, 可以调大「卡片最小宽度」; ",C("br",{}),"Tip: 先点击输入框, 再移动鼠标到透视按钮, 然后使用键盘",C($s,{k:"Alt+ArrowUp",className:"mx-1"}),C($s,{k:"Alt+ArrowDown",className:"mx-1"})," 调整"]}),children:C("span",{className:"cursor-pointer",children:"自适应: 卡片最小宽度"})}),_(kr.Compact,{children:[C(Tu,{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(kr.Addon,{children:"px"})]})]})},{value:"force-column",label:_("div",{className:"flex items-center gap-x-1",children:["手动设置列数",C(Tu,{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",rG,oG,e);return C(Rr.Group,{className:u,disabled:!t,options:l,value:i,onChange:s})}var qy={exports:{}},SMe=qy.exports,n_;function CMe(){return n_||(n_=1,(function(e,t){(function(n,r){e.exports=r();})(SMe,(()=>(()=>{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})()));})(qy)),qy.exports}var xMe=CMe();function co(e,t,n){const r=nt(n);f.useEffect(()=>e.on(t,r),[e,t,r]);}const iG=V9&&["/video/","/list/watchlater","/bangumi/play/"].some(e=>location.pathname.startsWith(e)),wMe=[["/video/",()=>/^\/video\/(?<bvid>BV\w+)\/?/.exec(location.pathname)?.groups?.bvid],["/list/watchlater",()=>new URLSearchParams(location.search).get("bvid")||void 0],["/bangumi/play/",()=>{}]];function Ky(){return wMe.find(([t])=>location.pathname.startsWith(t))?.[1]()}function d6(e,t=21){return `https://space.bilibili.com/${ci()}/favlist?fid=${e}&ftype=create`}function sG(e,t=21){return `https://space.bilibili.com/${ci()}/favlist?fid=${e}&ftype=collect&ctype=${t}`}function $Me(e,t){return `https://space.bilibili.com/${e}/lists/${t}?type=season`}function EMe(e){return `https://www.bilibili.com/list/ml${e}`}function MMe(e){return `https://www.bilibili.com/video/${e}`}function f6(e){return e.toString(2).at(-2)==="0"}function ev(e){return e.toString(2).at(-1)==="1"}async function aG({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:Ac()});return (await Zt.safePost("/x/v3/fav/resource/deal",r)).andThen(o=>oi.validateAxiosResponse(o)).andThen(o=>mo.ok())}const gc={getVideoFavState:RMe,addFav:NMe,removeFavs:TMe,moveFavs:AMe,modifyFav:IMe};async function TMe(e,t){const n=new URLSearchParams({resources:[t].flat().join(","),media_id:e.toString(),platform:"web",csrf:Ac()});return (await Zt.safePost("/x/v3/fav/resource/batch-del",n)).andThen(r=>oi.validateAxiosResponse(r,"删除收藏失败")).andThen(r=>mo.ok(r?.message))}async function AMe(e,t,n){const r=new URLSearchParams({resources:[e].flat().join(","),src_media_id:t.toString(),tar_media_id:n.toString(),mid:ci(),platform:"web",csrf:Ac()});return (await Zt.safePost("/x/v3/fav/resource/move",r)).andThen(o=>oi.validateAxiosResponse(o,"移动收藏失败")).andThen(o=>mo.ok(o?.message))}async function RMe(e){if(!mS())return;const r=(await Zt.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:ci(),type:2,rid:e}})).data.data.list.filter(l=>l.fav_state>0),o=r.map(l=>l.title),i=r.map(l=>d6(l.id)),s=r.map(l=>l.id);return {favFolders:r,favFolderNames:o,favFolderUrls:i,favFolderIds:s}}let F$,SM;async function NMe(e,t){if(!t&&(!F$||!SM)){await V6();const{folders:n}=cn,r=n.find(o=>f6(o.attr))??n[0];if(!r)return mo.err("没有找到默认收藏夹!");F$=r.id,SM=r.title;}return t||=F$,t?await aG({avid:e,add_media_ids:t.toString()}):mo.err("没有找到默认收藏夹!")}async function PMe(){return (await Zt.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:ci()}})).data.data.list}function IMe(e,t,n){const r=(t??[]).filter(l=>l!==void 0),o=[n].filter(l=>l!==void 0),i=oc(r,o),s=oc(o,r);return aG({avid:e,del_media_ids:i.length?i.join(","):void 0,add_media_ids:s.length?s.join(","):void 0})}async function OMe(e){return (await Zt.safeGet("/x/v3/fav/folder/info",{params:{media_id:e,web_location:"0.0"}})).andThen(t=>oi.validateAxiosResponse(t,"获取收藏夹信息失败")).andThen(t=>mo.ok(t.data))}function DMe(e,t){return mo.gen(async function*(){const n=yield*await OMe(e);if(!n)return mo.err("获取收藏夹信息失败!");const r=new URLSearchParams({media_id:e.toString(),title:t,intro:n.intro,cover:n.cover,privacy:ev(n.attr)?"1":"0",csrf:Ac()}),o=yield*await Zt.safePost("/x/v3/fav/folder/edit",r);return yield*oi.validateAxiosResponse(o,"编辑收藏夹失败"),mo.ok()})}async function LMe(e){return (await Zt.get("/x/v3/fav/folder/collected/list",{params:{up_mid:ci(),platform:"web",ps:20,pn:e}})).data.data}async function kMe(){let e=1,t=true,n=[];for(;t;){const r=await LMe(e);n.push(...r.list),t=r.has_more,e++;}return n=n.filter(r=>!(r.title==="该合集已失效"&&r.upper.mid===0)),n=yc(n,r=>r.id),n}async function _Me(e,t){return (await Zt.get("/x/space/fav/season/list",{params:{season_id:e,ps:20,pn:t}})).data.data}var Lt=(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))(Lt||{});function CM(e,t){return t==="initial"?e:t==="shuffle"?Ri(e):t==="pub-time-desc"||t==="pub-time-asc"?Ba(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")?Ba(e,[r=>r.fav_time],[t==="fav-time-desc"?"desc":"asc"]):t==="play-count-desc"?Ba(e,[n=>n.cnt_info.play],["desc"]):t==="collect-count-desc"?Ba(e,[n=>n.cnt_info.collect],["desc"]):e}const lG=23442827791579n,BMe=2251799813685247n,zMe=1n<<51n,xM=58n,cG="FcwAPNKTMug3GV5Lj7EJnHpWsx4tb8haYeviqBz6rkCy12mUSDQX9RdoZf";function TS(e){const t=["B","V","1","0","0","0","0","0","0","0","0","0"];let n=t.length-1,r=(zMe|BigInt(e))^lG;for(;r>0;)t[n]=cG[Number(r%BigInt(xM))],r=r/xM,n-=1;return [t[3],t[9]]=[t[9],t[3]],[t[4],t[7]]=[t[7],t[4]],t.join("")}function FMe(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*xM+BigInt(cG.indexOf(o)),0n);return Number(n&BMe^lG)}function Qa(e){return e.api===Je.AppRecommend}function vc(e){return e.api===Je.PcRecommend}function gf(e){return e.api===Je.DynamicFeed}function uG(e){return e.api===Je.Watchlater}function qu(e){return e.api===Je.Fav}function dG(e){return e.api===Je.Rank}function Jp(e){return e.api===Je.Live}function wM(e){return e.api===Je.SpaceUpload}function xm(e){const t=D4.createInstance({driver:D4.INDEXEDDB,name:Xr,storeName:e});return {db:t,async get(n){const r=await mo.tryPromise(()=>t.getItem(n.toString()));return r.isErr()&&j9("idb.get error: ",r.error),r.unwrapOr(void 0)??void 0},set(n,r){return t.setItem(n.toString(),r)},delete(n){return t.removeItem(n.toString())}}}function id({fn:e,generateKey:t,tableName:n,ttl:r,concurrency:o,autoCleanUp:i=true}){const s=typeof n=="string"?xm(n):n,l=ua(()=>{s.db.iterate((g,b)=>{u(g)||s.db.removeItem(b);});},1e3);i&&gS().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?uve(e,o):e,p=_R(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){ts(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 HMe(e){return (await Zt.get("/x/web-interface/view",{params:{bvid:e}})).data.data}const AS=id({fn:HMe,generateKey:e=>e,tableName:"video-detail",ttl:Zr("3M"),concurrency:3});async function VMe(e){return (await Zt.get("/x/player/pagelist",{params:{bvid:e}})).data?.data||[]}const fG=id({fn:VMe,generateKey:e=>e,tableName:"video-page-list",ttl:Zr("3M"),concurrency:3});async function mG(e,t){const n=ci(),r=Ac(),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:jMe()}),csrf:r}),s=(await Zt.post("/x/relation/modify",o)).data,l=Hr(s);return l||On(s.message||"未知错误"),l}function jMe(){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 UMe=bo.extend("service:user:relations:blacklist"),WMe=pG("follow"),GMe=pG("remove"),hG={add:WMe,remove:GMe},{set:pp,replaceAllWith:qMe}=await( iV("blacklist-mids"));function KMe(e){const t=pt(pp);return !!e&&t.has(e)}function pG(e){const t=e==="follow"?5:6;return async function(r){const o=await mG(r,t);if(o){const i=pp;e==="follow"?i.add(r):e==="remove"&&i.delete(r);}return o}}async function YMe(){const t=async s=>{const u=(await Zt.get("/x/relation/blacks",{params:{re_version:0,ps:20,pn:s}})).data;if(!Hr(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(!tl)return;await gS();const e=await YMe();UMe("user blocklist fetched: %o",e),e&&qMe(e.map(t=>t.toString()));})();var Zo;(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={}));})(Zo||(Zo={}));function kh(e){const t=e.modules.module_dynamic.major;if(t?.type==="MAJOR_TYPE_ARCHIVE")return t.archive}async function XMe({appKey:e,nscode:t,versionId:n}){const r={appKey:e,nscode:t,versionId:n};return (await Zt.get("/x/kv-frontend/namespace/data",{params:r})).data}function gG({appKey:e,nscode:t}){return new URLSearchParams([["appKey",e],["nscode",t.toString()]]).toString()}const r_=xm("kv-latest-version"),QMe=al(async({appKey:e,nscode:t})=>{const n=gG({appKey:e,nscode:t}),r=await r_.get(n);let o="0";r&&r.versionId&&r.data&&Object.keys(r.data).length&&(o=r.versionId);const i=await XMe({appKey:e,nscode:t,versionId:o});return r?.data&&i.code===-304&&i.message==="Not Modified"?r.data:(await r_.set(n,i.data),i.data.data)}),ZMe=id({fn:QMe,tableName:"get-kv-data",generateKey:({appKey:e,nscode:t})=>gG({appKey:e,nscode:t}),ttl:Zr("1h")});function JMe(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 o_=[{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"}],m6={name:"全站",tid:0,slug:"all"};async function eTe(){try{return await tTe()||o_}catch(e){return j9("parseRankTabsConfig failed",e),o_}}async function tTe(){const e=await ZMe({appKey:"333.1339",nscode:10}),t=JMe(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 yc(r,i=>i.slug)}var Yy=(e=>(e.Normal="normal",e.PgcSeason="pgc/season",e.PgcWeb="pgc/web",e))(Yy||{});function vG(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 h6(e){return e.from==="normal"}function nTe(e){return e.from==="pgc/season"}function rTe(e){return e.from==="pgc/web"}const eg={top:e=>Y("absolute top-8px",e==="left"?"left-8px":"right-8px",e==="left"?cxe:uxe),topContainer:e=>Y(eg.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}=RS({inlinePosition:t,tooltip:r}),b=f.useMemo(()=>bW("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=$S(p,d),S={...m,className:b,ref:y,children:_(De,{children:[n,g]})};return l?C(dSe,{children:o&&C($R.div,{...S,...u},"action-button")}):C("div",{...S})});function RS({inlinePosition:e,tooltip:t,tooltipClassName:n}){const r=f.useRef(null),o=bS(r),i=or(eg.tooltip(e),n,o?"block":"hidden");return {triggerRef:r,tooltipEl:t?C("span",{className:i,children:t}):void 0}}function oTe(){const t=localStorage.getItem("bpx_player_profile");if(t)try{return JSON.parse(t)}catch{return}}function bG(){return !!oTe()?.media.autoplay}function iTe(e,t,n=true){let r=0,o=t;return (...i)=>{if(r++,r===o)return r=0,n&&o++,e(...i)}}function yG(e,t,n=true){const r=nt(e);return f.useMemo(()=>iTe(r,t,n),[r,t,n])}const sTe=({title:e,titleId:t,...n},r)=>_("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"})]}),SG=f.forwardRef(sTe),aTe=({title:e,titleId:t,...n},r)=>_("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"})]}),lTe=f.forwardRef(aTe),cTe=({title:e,titleId:t,...n},r)=>_("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"})]}),CG=f.forwardRef(cTe),uTe=({title:e,titleId:t,...n},r)=>_("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"})]}),dTe=f.forwardRef(uTe);function fTe(e,t){const n=t.document.head;jR({key:"pip-window",container:n}),Array.from(document.querySelectorAll("style")).filter(o=>[Xr,"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(Ls),r.style.lineHeight="0",t.document.body.appendChild(r),fa(r).render(C(ha,{cssInsertContainer:n,cssInsertContainerEmotionKey:"pip-window",children:C(Vo,{getPopupContainer:()=>t.document.body,getTargetContainer:()=>t,children:_(Tg,{message:{getContainer:()=>t.document.body},children:[C(SS,{baseGlobalStyle:true}),C(hTe,{newHref:e,pipWindow:t})]})})}));}var mTe={name:"pb1257",styles:"*{box-sizing:border-box;}:root,body,iframe{margin:0;padding:0;overscroll-behavior:none;}"};function hTe({newHref:e,pipWindow:t}){const n=bS(t.document.documentElement),[r,o]=f.useState(()=>ot.pipWindow.defaultLocked);return _(De,{children:[C(UR,{styles:[mTe,"",""]}),C("iframe",{src:e,className:"block h-100vh w-full border-none"}),C(pTe,{locked:r,setLocked:o,pipWindow:t}),_("div",{className:Y("fixed right-10px top-10px z-9999 flex-row-reverse items-center gap-x-6px",n?"flex":"hidden"),children:[C(gTe,{pipWindow:t,newHref:e}),C(vTe,{locked:r,setLocked:o})]})]})}const xG="size-30px [&_svg]:size-16px";function pTe({locked:e,setLocked:t,pipWindow:n}){const{message:r}=Tg.useApp(),o=yG(()=>{r.info("请先点击右上角「🔓解锁按钮」解锁");},3);return f.useMemo(()=>Ei([{key:"unlock",label:"解锁",icon:C(CG,{}),onClick(){t(false);}}]),[]),e&&C("div",{className:Y("locked-overlay","fixed inset-0 z-9999 select-none bg-transparent"),onClick:o})}function gTe({newHref:e,pipWindow:t}){return C(ta,{inlinePosition:"right",icon:C(SG,{}),tooltip:"新窗口打开",onClick:()=>{t.close();const r=new URL(e);r.searchParams.delete(pc.PlayerScreenMode),r.searchParams.delete(pc.ForceAutoPlay),wi(r.href);},className:xG})}function vTe({locked:e,setLocked:t}){const[n,r]=e?["锁定","解锁"]:["解锁","锁定"];return C(ta,{inlinePosition:"right",icon:e?C(dTe,{}):C(CG,{}),tooltip:`已${n}, 点击${r}`,className:xG,onClick:()=>t(o=>!o)})}const wG=bo.extend("VideoCard:useOpenRelated");function bTe({href:e,item:t,cardData:n,actionButtonVisible:r,hasOpenInPopupActionButton:o,getLargePreviewCurrentTime:i,hideLargePreview:s,shouldUseLargePreviewCurrentTime:l}){const{videoLinkOpenMode:u}=jt();function d(w){const M=new URL(e,location.href);return w?.(M),M.href}const m=nt(w=>{w.stopPropagation(),w.preventDefault(),p(void 0,w);}),p=nt((w,M)=>{w||=ot.videoLinkOpenMode;const T=d(I=>{if((w===lr.NormalWebFullscreen||w===lr.Popup&&ot.pipWindow.autoWebFullscreen)&&(I.searchParams.set(pc.PlayerScreenMode,Kl.WebFullscreen),w===lr.Popup&&!bG()&&I.searchParams.set(pc.ForceAutoPlay,OR.ON)),l()){const O=i();O&&(s(),I.searchParams.set("t",O.toString()));}}),A=()=>{const O=!(w===lr.Background||!!(M?.metaKey||M?.ctrlKey));if(rV&&O)return window.open(T,"_blank");wi(T,O);},P=()=>{location.href=T;};({[lr.Normal]:A,[lr.Background]:A,[lr.CurrentPage]:P,[lr.NormalWebFullscreen]:A,[lr.Popup]:()=>g(T),[lr.Iina]:b})[w]?.();});function g(w){const{width:M,height:T}=p6({item:t});return $G(w,n.bvid,M,T)}function b(){let w=e;t.api===Je.Watchlater&&(w=`/video/${t.bvid}`);const M=new URL(w,location.href).href,T=`iina://open?url=${encodeURIComponent(M)}`;window.open(T,"_self");}const y=f.useMemo(()=>Object.values(lr).filter(w=>Ci[w].enabled===void 0).map(w=>({key:WL[w],label:Ci[w].label,icon:Ci[w].icon,onClick:()=>p(w)})),[]),S=f.useMemo(()=>Object.values(lr).filter(w=>typeof Ci[w].enabled=="boolean"&&Ci[w].enabled).length?Object.values(lr).filter(w=>typeof Ci[w].enabled=="boolean"&&Ci[w].enabled).map(w=>({key:WL[w],label:Ci[w].label,icon:Ci[w].icon,onClick:()=>p(w)})):[],[]),x=f.useMemo(()=>{if(u!==lr.Popup&&t.api!==Je.Live&&g6&&o)return C(ta,{visible:r,inlinePosition:"right",icon:Ci.Popup.icon,tooltip:Ci.Popup.label,onClick:w=>{w.preventDefault(),w.stopPropagation(),p(lr.Popup);}})},[u,r]),$=nt(()=>{p(lr.Popup);});return {onOpenWithMode:p,handleVideoLinkClick:m,consistentOpenMenus:y,conditionalOpenMenus:S,openInPopupActionButtonEl:x,onOpenInPopup:$}}function p6({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===Je.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===Je.Rank&&h6(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 g6=!!window.documentPictureInPicture?.requestWindow;async function $G(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([fG(t),fn(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);}wG("openInPipOrPopup newHref=%s size=%sx%s",e,o,i);let l;if(g6)try{l=await window.documentPictureInPicture?.requestWindow({width:o,height:i,disallowReturnToOpener:!0});}catch{}l?fTe(e,l):yTe(e,o,i);}function yTe(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(",");wG("openInPopup: features -> %s",i),window.open(e,"_blank",i);}function EG(){const{videoLinkOpenMode:e}=jt();return e!==lr.CurrentPage}function wm(){return EG()?"_blank":"_self"}function Xy(){return ot.videoLinkOpenMode!==lr.CurrentPage?"_blank":"_self"}function STe(e){const t=wm();return C("a",{...e,target:t,children:e.children})}const CTe=({title:e,titleId:t,...n},r)=>_("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"})]}),xTe=f.forwardRef(CTe),wTe=({title:e,titleId:t,...n},r)=>_("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"})]}),$Te=f.forwardRef(wTe);function v6(e){return !!(e.icon||e.text)}function $M(e){return e.filter(Boolean).filter(v6)}const MG="pointer-events-none h-19px flex-center whitespace-nowrap rounded-2px bg-gate-primary px-4px text-center text-13px color-white";function TG({children:e,className:t}){return C("span",{className:or(MG,t),children:e})}function ETe({tag:e}){if(!v6(e))return;const{icon:t,text:n}=e,r=!!t;return _(TG,{className:Y("min-w-32px",r?"pl-4px pr-6px":"px-4px"),children:[r&&t,n]})}function MTe(e){return ["#FFD700","#C0C0C0","#B36700"][e-1]??as}function TTe({item:e}){const t=e.rankingNo<=3,n=C(xTe,{});let r=false,o=[];h6(e)&&e.others?.length&&(r=true,o=e.others);const i=`「${e.rankTab.name}」排行第 ${e.rankingNo} 名`,{triggerRef:s,tooltipEl:l}=RS({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:MTe(e.rankingNo)}),[e.rankingNo]),m=EG();return _(De,{children:[_("div",{ref:s,className:u,style:d,children:[t?n:C("span",{style:{marginLeft:-1},children:e.rankingNo}),l]}),r&&C(Ec,{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?wi(g):location.href=g;}}))}]},children:C("div",{className:u,style:d,children:C($Te,{})})})]})}function ATe(){return _(TG,{children:[C(RR,{active:true,className:"size-14px"}),"直播中"]})}function RTe({item:e}){const t=f.useMemo(()=>gf(e)?"动态":uG(e)?"稍后再看":qu(e)?e.from==="fav-folder"?"收藏夹":"合集":e.api,[e]),n=f.useMemo(()=>{if(qu(e)&&e.from==="fav-collection")return e.volTooltip},[e]),{triggerRef:r,tooltipEl:o}=RS({inlinePosition:"left",tooltip:n});return _("span",{ref:r,className:or(MG,"pointer-events-auto"),children:[t,o]})}function NTe({vol:e,volTooltip:t}){const{triggerRef:n,tooltipEl:r}=RS({inlinePosition:"left",tooltip:t,tooltipClassName:"left--2px"});return _("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 PTe=mm(e=>_("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"})]})),ITe=mm(e=>_("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"})]})),OTe=mm(function(e){return _("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 tg(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 ul(e){return e||=0,Xn.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function DTe(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 Su(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 LTe=Xn().format("YYYY");function Qy(e,t=false){if(!e)return "";const n=Xn.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===LTe?n.format(`M-D${r}`):n.format(`YY-M-D${r}`)}function kTe(e){const t=Xn().subtract(1,"day").startOf("day").unix();return e>=t}function _Te(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<=Zr("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 BTe={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function zTe(e){if(e!==void 0&&!(e>=0))return BTe[e]}const FTe=({title:e,titleId:t,...n},r)=>_("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"})]}),HTe=f.forwardRef(FTe),VTe=({title:e,titleId:t,...n},r)=>_("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"})]}),jTe=f.forwardRef(VTe),UTe=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),WTe=f.forwardRef(UTe),GTe=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),qTe=f.forwardRef(GTe),KTe=({title:e,titleId:t,...n},r)=>_("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"})]}),YTe=f.forwardRef(KTe),XTe=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),QTe=f.forwardRef(XTe);const i_="size-18px",ru="size-16px",ZTe={play:C(PTe,{className:i_}),danmaku:C(ITe,{className:i_}),like:C(HTe,{className:ru}),"bangumi:follow":C(jTe,{className:ru}),favorite:C(Wu,{className:ru}),coin:C(WTe,{className:ru}),"live:viewed-by":C(qTe,{className:ru}),"dynamic-feed:comment":C(YTe,{className:ru}),"dynamic-feed:forward":C(QTe,{className:ru})},JTe=f.memo(function({field:e,value:t}){const n=f.useMemo(()=>typeof t=="number"||t&&/^\d+$/.test(t)?DTe(Number(t))??UL:t??UL,[t]),r=ZTe[e];return _("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 Fa=(e=>(e.AV="av",e.Ad="ad",e.Live="live",e))(Fa||{});function AG({src:e,avif:t,webp:n,imgProps:r,className:o,...i}){return t??=!zg,n??=true,_("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 eAe=({title:e,titleId:t,...n},r)=>_("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"})]}),RG=f.forwardRef(eAe),tAe=({title:e,titleId:t,...n},r)=>_("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"})]}),nAe=f.forwardRef(tAe),rAe=({title:e,titleId:t,...n},r)=>_("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"})]}),oAe=f.forwardRef(rAe),NG=RG,PG=nAe,IG=oAe;function OG(e){return `https://space.bilibili.com/${ci()}/fans/follow?tagid=${e}`}function tv(e){return `https://space.bilibili.com/${e}`}const DG=$U("w_webid"),LG=al(async()=>{const e=await DG.get();return e||iAe()});async function iAe(){const e=ci();if(!e)return;const t=tv(e),r=(await Zt.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 DG.set(l),l}async function kG({removeEmpty:e=true}={}){const t=await fS({web_location:"0.0",w_webid:await LG()||""}),o=(await Zt.get("/x/relation/tags",{params:t})).data.data||[];return e?o.filter(i=>!!i.count):o}async function EM(e){const n=async l=>(await Zt.get("/x/relation/tag",{params:{mid:ci(),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 ug(o.map(l=>l.mid))}async function sAe(){const n=(await Zt.get("/x/polymer/web-dynamic/v1/portal",{params:{up_list_more:0}})).data?.data?.up_list||[];return Array.isArray(n)?n:n.items}var $i=(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))($i||{});const Za=new URLSearchParams(location.search),bc=Za.get("dyn-mid")?.trim(),MM=Za.get("dyn-group-id")?.trim()?Number(Za.get("dyn-group-id").trim()):void 0,aAe=Za.get("dyn-offset")||void 0,_G=bc&&(Za.get("dyn-filter-text")||Za.get("dyn-filter"))||void 0,TM=bc?Za.get("dyn-min-id"):void 0,s_=TM?Za.get("dyn-min-ts"):void 0,NS=tl&&(!!bc||MM!==void 0);let AM,BG,zG;NS&&(bc?(AM=bc,BG=Za.get("dyn-name")??AM?.toString()??void 0):MM!==void 0&&(zG=MM));var Js=(e=>(e.All="all",e.UploadOnly="upload-only",e.DynamicOnly="dynamic-only",e))(Js||{}),na=(e=>(e.Upload="投稿视频",e.Dynamic="动态视频",e.ChargeOnly="充电专属",e))(na||{});const lAe={all:"全部","upload-only":"仅投稿视频","dynamic-only":"仅动态视频"};var Lu=(e=>(e.All="all",e._5m="5min",e._2m="2min",e._1m="1min",e._30s="30s",e._10s="10s",e))(Lu||{});const FG={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}},ng="all",Kf="up:",Ku="group:",cAe=(await( iV("dynamic-feed:hide-charge-only-videos-for-keys"))).set,uAe=(await( jA("dynamic-feed:add-separators"))).map,rn=HG();function HG(){return _n({upMid:AM,upName:BG,upFace:void 0,upList:[],upListUpdatedAt:0,groups:[],groupsUpdatedAt:0,selectedGroupId:zG,get selectedGroup(){if(typeof this.selectedGroupId=="number")return this.groups.find(e=>e.tagid===this.selectedGroupId)},dynamicFeedVideoType:"all",filterText:_G??void 0,get viewingAll(){return this.selectedKey===ng},get viewingSomeUp(){return !!this.upMid},get viewingSomeGroup(){return typeof this.selectedGroupId=="number"},get selectedKey(){return this.upMid?`${Kf}${this.upMid}`:this.selectedGroupId!==void 0?`${Ku}${this.selectedGroupId}`:ng},hideChargeOnlyVideosForKeysSet:cAe,get hideChargeOnlyVideos(){return this.hideChargeOnlyVideosForKeysSet.has(this.selectedKey)},addSeparatorsMap:uAe,get addSeparators(){return this.addSeparatorsMap.get("global")??false},filterMinDuration:"all",get filterMinDurationValue(){return FG[this.filterMinDuration].duration},updateUpList:VG,updateGroups:jG})}_n({followGroupInfo:{}});async function VG(e=false){if(!e&&rn.upList.length&&rn.upListUpdatedAt&&rn.upListUpdatedAt-Date.now()<Zr("5min"))return;const n=await sAe();rn.upList=n,rn.upListUpdatedAt=Date.now();}async function jG(e=false){{const{followGroup:n,whenViewAll:r}=ot.dynamicFeed;if(!(n.enabled||!!r.hideIds.filter(i=>i.startsWith(Ku)).length))return}!e&&rn.groups.length&&rn.groupsUpdatedAt&&rn.groupsUpdatedAt-Date.now()<Zr("1h")||(rn.groups=await kG({removeEmpty:true}),rn.groupsUpdatedAt=Date.now());}function UG(){if(ci())return Promise.all([VG(),jG()])}(async()=>tl&&(await fn(5e3),(!rn.upList.length||!rn.groups.length)&&(await gS(),UG())))();bc&&oV(rn,["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}`),GR(i);});function dAe(e){const{major:t,additional:n}=e.modules.module_dynamic;if(n?.type===Zo.AdditionalType.Goods)return  true;if(t?.type===Zo.MajorType.Opus){const r=t.opus.title||"";if(["B站密令","大红包"].some(o=>r.includes(o)))return  true}return  false}function WG(e){if(dAe(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},s=l=>$M([{key:`${Je.DynamicFeed}:tag`,text:l}]);if(o===Zo.MajorType.Archive&&t.archive){const l=t.archive;return {...i,avid:l.aid,bvid:l.bvid,goto:"av",href:`/video/${l.bvid}/`,title:l.title,cover:l.cover,duration:tg(l.duration_text)||0,durationStr:l.duration_text,recommendReason:l.badge.text===na.Upload?l.badge.text:void 0,cardTags:$M([l.badge.text===na.Upload?void 0:{key:`${Je.DynamicFeed}:tag`,icon:l.badge.icon_url?C(AG,{src:`${l.badge.icon_url}@!web-dynamic`,className:"size-14px"}):void 0,text:l.badge.text}]),statItems:[{field:"play",value:l.stat.play},{field:"danmaku",value:l.stat.danmaku}],play:Su(l.stat.play),danmaku:Su(l.stat.danmaku)}}if(o===Zo.MajorType.Opus&&t.opus){const{opus:l}=t,u=r?.type===Zo.AdditionalType.Reserve,d=u&&/直播预告/.test(r.reserve.title),m=!!l.pics?.length,p=(()=>{if(d)return "直播预告";if(u)return r.reserve.title?.split(":")[0]||"预约";if(e.type===Zo.ItemType.Word)return "文字动态";if(e.type===Zo.ItemType.Draw)return m?"图片":"文字动态";if(e.type===Zo.ItemType.Article)return "专栏"})();return {...i,goto:"opus",href:l.jump_url,cover:l.pics?.[0]?.url,title:l.title||l.summary?.text||"",cardTags:s(p)}}if(o===Zo.MajorType.Pgc&&t.pgc){const{pgc:l}=t;return {...i,cover:l.cover,goto:"bangumi",href:l.jump_url,title:l.title,statItems:[{field:"play",value:l.stat.play},{field:"danmaku",value:l.stat.danmaku}],cardTags:s(n.label),pubts:n.pub_ts,pubdateDisplay:n.pub_time}}if(o===Zo.MajorType.UgcSeason&&t.ugc_season){const{ugc_season:l}=t;return {...i,bvid:l.bvid,avid:l.aid.toString(),goto:"av",duration:tg(l.duration_text),durationStr:l.duration_text,cover:l.cover,href:`/video/${l.bvid}/`,title:l.title,statItems:[{field:"play",value:l.stat.play},{field:"danmaku",value:l.stat.danmaku}],play:Su(l.stat.play),danmaku:Su(l.stat.danmaku),recommendReason:n.pub_action,cardTags:s("合集"),authorMid:void 0}}}var GG=function(e){return function(t,n,r){return e(t,n,r)*r}},RM=function(e,t){if(e)throw Error("Invalid sort config: "+t)},qG=function(e){var t=e||{},n=t.asc,r=t.desc,o=n?1:-1,i=n||r;RM(!i,"Expected `asc` or `desc` property"),RM(n&&r,"Ambiguous object with `asc` and `desc` config properties");var s=e.comparer&&GG(e.comparer);return {order:o,sortBy:i,comparer:s}},fAe=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=qG(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 KG(e,t,n){if(e===void 0||e===true)return function(i,s){return t(i,s,n)};if(typeof e=="string")return RM(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=fAe(t);return function(i,s){return r(e[0],e,1,n,t,i,s)}}var o=qG(e);return KG(o.sortBy,o.comparer||t,o.order)}var H$=function(e,t,n,r){var o;return Array.isArray(t)?(Array.isArray(n)&&n.length<2&&(o=n,n=o[0]),t.sort(KG(n,r,e))):t};function YG(e){var t=GG(e.comparer);return function(n){var r=Array.isArray(n)&&!e.inPlaceSorting?n.slice():n;return {asc:function(o){return H$(1,r,o,t)},desc:function(o){return H$(-1,r,o,t)},by:function(o){return H$(1,r,o,t)}}}}var XG=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},QG=YG({comparer:XG});YG({comparer:XG,inPlaceSorting:true});function NM(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 QG(e).by(r)}function vf(e,t){const n=t.map(({order:r,prop:o})=>r==="asc"?{asc:o}:r==="desc"?{desc:o}:{asc:o,comparer:r});return QG(e).by(n)}function b6(e){return e.replace(/([A-Z])/,"999999$1").replace(/([a-z])/,"999998$1")}function PS(e,t){return e.localeCompare(t,"zh-CN")}function mAe(e,t){return PS(e,t)*-1}function a_(e,t){return vf(e,[{prop:n=>{const r=typeof t=="function"?t(n):n[t];return b6(r)},order:PS}])}function $m(e){throw new Error(`Unexpected object: ${e}`)}const ZG=["default","name-asc","name-desc","count-asc","count-desc"];function JG(e){return ZG.includes(e)}function l_(e){return e=e.replace(new RegExp("^[\\s\\p{RGI_Emoji}]+","v"),""),e=b6(e),e}function eq(e,t){const n={prop:l=>f6(l.attr)?1:0,order:"desc"},r={prop:l=>l_(l.title),order:PS},o={prop:l=>l_(l.title),order:mAe},i={prop:"media_count",order:"desc"},s={prop:"media_count",order:"asc"};if(ZG.includes(t)||(t="default"),t==="default")return e;if(t==="name-asc")return vf(e,[n,r]);if(t==="name-desc")return vf(e,[n,o]);if(t==="count-desc")return vf(e,[n,i,r]);if(t==="count-asc")return vf(e,[n,s,r]);$m(t);}const c_={default:{label:"默认"},name:{label:"名称",iconAsc:C(zCe,{className:"1em"}),iconDesc:C(FCe,{className:"1em"}),toggle:["name-asc","name-desc"]},count:{label:"数量",iconAsc:C(uU,{className:"1em"}),iconDesc:C(tM,{className:"1em"}),toggle:["count-asc","count-desc"]}},Xb=rS({nameDefault:"name-asc",countDefault:"count-desc"},"FavFolderOrderSwitcher:default-order");function tq({value:e,onChange:t,className:n}){const r=e.startsWith("name-")?"name":e.startsWith("count-")?"count":"default",o=e.includes("-desc"),i=e.includes("-asc"),s=nt(l=>{if(l===r){const{toggle:u}=c_[l];if(!u?.length)return;const d=u.findIndex(g=>g===e);if(d===-1)return;const m=(d+1)%u.length,p=u[m];l==="name"&&(Xb.nameDefault=p),l==="count"&&(Xb.countDefault=p),t(p);}else {const u=l==="default"?"default":l==="name"?Xb.nameDefault:l==="count"?Xb.countDefault:void 0;if(!u)return;t(u);}});return C(kr.Compact,{className:n,children:Object.entries(c_).map(([l,{label:u,iconAsc:d,iconDesc:m}])=>{const p=l===r;return _(lt,{className:"gap-x-2px",size:"small",variant:p?"solid":void 0,color:p?"primary":void 0,onClick:()=>s(l),children:[p&&(i?d:o?m:void 0),u]},l)})})}class dl{qs;constructor(t){this.qs=new IS(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 IS{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 Pc(){const e=f.useRef(null),t=f.useCallback(()=>e.current?.closest(`.${H9}`)?.parentElement||document.body,[]);return {ref:e,getPopupContainer:t}}class hAe{constructor(t){this.anonymous=t;}hasMore=true;page=1;tabbarView=C(pAe,{});async loadMore(){if(!this.hasMore)return;const n=(await Zt.get("/x/web-interface/popular",{params:{ps:20,pn:this.page},withCredentials:!this.anonymous})).data;return Hr(n)?(this.page++,this.hasMore=!n.data.no_more,(n.data.list||[]).map(o=>({...o,api:Je.PopularGeneral,uniqId:`${Je.PopularGeneral}:${o.bvid}`}))):(On(n.message||mg),void 0)}}function pAe(){const e=yo();return C(It,{configPath:"popularGeneralUseAnonymous",tooltip:C(De,{children:"✅ 匿名访问: 使用游客身份访问"}),label:"匿名访问",extraAction:async()=>{await fn(100),e();}})}let Qb=[],V$="";function u_(){const e=Xn();return [e.format("YYYYMMDD"),e.hour()<18?"lt-18":"gte-18"].join("_")}async function gAe(){return Qb.length&&V$&&V$===u_()||(Qb=(await Zt.get("/x/web-interface/popular/series/list")).data.data.list,V$=u_()),Qb}class a1{constructor(t){this.useShuffle=t;}static PAGE_SIZE=20;episodesLoaded=false;episodes=[];qs=new IS(a1.PAGE_SIZE);get hasMore(){return this.episodesLoaded?!!this.qs.bufferQueue.length||!!this.episodes.length:true}async loadMore(){if(this.episodesLoaded||(this.episodes=await gAe(),this.episodesLoaded=true,this.useShuffle&&(this.episodes=Ri(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 d_(r);return this.qs.bufferQueue.push({api:Je.Separator,uniqId:`${Je.PopularWeekly}:separator:${r}`,content:C(STe,{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<a1.PAGE_SIZE*t&&this.episodes.length;){this.episodes=Ri(this.episodes);const n=this.episodes.slice(0,t);this.episodes=this.episodes.slice(t);const r=await aa(n.map(o=>o.number),o=>d_(o),2);this.qs.bufferQueue=Ri([...this.qs.bufferQueue,...r.flat()]);}return this.qs.sliceFromQueue()}get tabbarView(){return C(vAe,{})}}const j$={};async function d_(e){if(!j$[e]?.length){const o=((await Zt.get("/x/web-interface/popular/series/one",{params:{number:e}})).data.data.list||[]).map(i=>({...i,api:Je.PopularWeekly,uniqId:`${Je.PopularWeekly}:${i.bvid}`}));j$[e]=o;}return j$[e]}function vAe(){const e=yo();return C(De,{children:C(Gu,{configPath:"popularWeeklyUseShuffle",checkedChildren:"随机顺序: 开",unCheckedChildren:"随机顺序: 关",extraAction:async()=>{await fn(100),e();}})})}const nq="rank-store-slug",bAe=await( GM.getValue(nq))||m6.slug,Pi=_n({slug:bAe,tabs:[],get currentTab(){return this.tabs.find(e=>e.slug===this.slug)||m6}}),yAe=al(async()=>{if(Pi.tabs.length)return;const e=await eTe();Pi.tabs=e;});FA(Pi,"slug",()=>{GM.setValue(nq,Pi.slug);});class rq{constructor(t){this.slug=t;}loaded=false;qs=new IS(20);tabbarView=C(SAe,{});sidebarView=C(CAe,{});get hasMore(){return this.loaded?!!this.qs.bufferQueue.length:true}get rankTab(){return Br(Pi).tabs.find(t=>t.slug===this.slug)||m6}async loadMore(t){if(this.hasMore){if(!this.loaded){await yAe();const{url:n,apiType:r}=vG(this.rankTab),i=(await Zt.get(n,{signal:t})).data;if(this.loaded=true,!Hr(i)){On(i.message||mg);return}const l=(i?.data?.list||i?.result?.list||[]).map((u,d)=>{const m=d+1;return {...u,api:Je.Rank,uniqId:`${Je.Rank}:${this.rankTab.slug}:rankingNo-${m}`,rankingNo:m,slug:this.rankTab.slug,rankTab:this.rankTab,from:r}});this.qs.bufferQueue=l;}return this.qs.sliceFromQueue()}}}function oq(){const{tabs:e}=pt(Pi),{normalList:t,pgcList:n}=f.useMemo(()=>{const r=e.map(s=>({...s,apiType:vG(s).apiType})),o=r.filter(s=>[Yy.PgcSeason,Yy.PgcWeb].includes(s.apiType));return {normalList:r.filter(s=>s.apiType===Yy.Normal),pgcList:o}},[e]);return {normalList:t,pgcList:n}}function SAe(){const{enableSidebar:e}=jt(),{ref:t,getPopupContainer:n}=Pc(),r=yo(),{slug:o,currentTab:i}=pt(Pi),{normalList:s,pgcList:l}=oq(),u=(y,S,x)=>y.length?_("div",{className:"mt-15px max-w-350px first:mt-0",children:[_("p",{className:"mb-5px flex-v-center rounded-5px bg-gate-primary py-5px pl-6px text-white",children:[S,!!x&&C(dr,{children:x})]}),C("div",{className:"grid grid-cols-4 gap-x-10px gap-y-8px px-2px",children:y.map($=>{const w=$.slug===o;return C(lt,{className:Y({"b-gate-primary":w,"color-gate-primary":w}),onClick:M=>{g(false),Pi.slug=$.slug,r();},children:C("span",{children:$.name})},$.slug)})})]}):null,d=nt(y=>{const S=[...s,...l];if(!S.length)return;const x=S.findIndex(M=>M.slug===o);if(x===-1)return;const $=y.shiftKey?-1:1,w=(x+$+S.length)%S.length;Pi.slug=S[w].slug,r();}),m=_(De,{children:[u(s,"视频"),u(l,"PGC内容","不能提供预览")]}),[p,g]=f.useState(false),b=C(ks,{arrow:false,open:p,onOpenChange:g,placement:"bottomLeft",getPopupContainer:n,content:m,styles:{container:{border:`1px solid ${od()}`}},children:C(lt,{css:[p&&rd,"",""],onClick:d,className:"outline-none!",children:i.name})});if(!e)return C("div",{ref:t,children:b})}function CAe(){const{slug:e}=pt(Pi),{normalList:t,pgcList:n}=oq(),r=yo(),o=nt(s=>{Pi.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($c,{items:i,selectedKeys:[e],mode:"inline",inlineIndent:10})}const xAe={[gr.PopularGeneral]:()=>new hAe(ot.popularGeneralUseAnonymous),[gr.PopularWeekly]:()=>new a1(ot.popularWeeklyUseShuffle),[gr.Rank]:()=>new rq(Pi.slug)};function iq(e){const{subtab:t}=Jo;return e??=ot.popularWeeklyUseShuffle,t===gr.PopularWeekly&&e}const U$=e=>C("img",{src:e,alt:"",className:"size-18px"}),W$={[gr.PopularGeneral]:{icon:U$("https://s1.hdslb.com/bfs/static/jinkela/popular/assets/icon_popular.png"),label:"综合热门",desc:"各个领域中新奇好玩的优质内容都在这里~",swr:true,anonymousUsage:true},[gr.PopularWeekly]:{icon:U$("https://s1.hdslb.com/bfs/static/jinkela/popular/assets/icon_weekly.png"),label:"每周必看",desc:"每周五晚 18:00 更新",anonymousUsage:true},[gr.Rank]:{icon:U$("https://s1.hdslb.com/bfs/static/jinkela/popular/assets/icon_rank.png"),label:"排行榜",desc:"排行榜根据稿件内容质量,近期的数据综合展示,动态更新",anonymousUsage:true,swr:true}};class wAe extends dl{subtab;service;constructor(){super(20),this.subtab=Jo.subtab,this.service=xAe[Jo.subtab]();}get tabbarView(){return C($Ae,{children:this.service.tabbarView})}get sidebarView(){return this.service.sidebarView}get hasMoreExceptQueue(){return this.service.hasMore}fetchMore(t){return this.service.loadMore(t)}}const Jo=await( VA({subtab:gr.PopularGeneral},"hot-store"));Object.values(gr).includes(Jo.subtab)||(Jo.subtab=gr.PopularGeneral);function $Ae({children:e}){const{subtab:t}=pt(Jo),{icon:n,label:r}=W$[t],o=yo(),{ref:i,getPopupContainer:s}=Pc(),{__internalHotSubUseDropdown:l}=jt(),u=f.useMemo(()=>[gr.PopularGeneral,gr.PopularWeekly,gr.Rank].map((p,g)=>{const b=W$[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!==Jo.subtab&&(Jo.subtab=p,o());}}].filter(Boolean)}).flat(),[t]),d=C(Ec,{menu:{items:u},getPopupContainer:s,rootClassName:'![&_[role="separator"]]:mx-0 ![&_[role="separator"]]:my-2px',children:_(lt,{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(kr.Compact,{children:[gr.PopularGeneral,gr.PopularWeekly,gr.Rank].map((p,g)=>{const{icon:b,label:y,desc:S}=W$[p],x=p===t;return C(en,{title:_(De,{children:[y,": ",S]}),children:C(lt,{className:"[&_.ant-btn-icon]:line-height-0",icon:b,variant:x?"solid":"outlined",color:x?"primary":"default",onClick:()=>{p!==Jo.subtab&&(Jo.subtab=p,o());},children:y})},p)})}),[t]);return _(De,{children:[l?d:m,e]})}const sq=C(fc,{className:"[&.ant-divider-horizontal.ant-divider-with-text]:my-5px [&.ant-divider-horizontal.ant-divider-with-text]:text-14px",children:"底线"});function OS(e){const{enableSidebar:t}=jt(),{usingTwoColumnMode:n}=nG(),r=pt(Jo).subtab,{insideModal:o}=ls();return f.useMemo(()=>!t||o&&n?false:e===rt.DynamicFeed?!NS:e===rt.Hot?r===gr.Rank:e===rt.Fav?!sg:false,[e,t,r,o,n])}function aq(e,t){const n=f.useRef(null),r=nt(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=nt(()=>{if(o.current)return;r()&&(o.current=true);});return vo(()=>i()),Xa(()=>i(),[e]),{menuRef:n,revealSelected:r}}const kn=_n({multiSelecting:false,selectedIdSet:Or(),shiftMultiSelectAnchorUniqId:void 0});function lq(e=true){kn.multiSelecting&&(kn.multiSelecting=false,kn.shiftMultiSelectAnchorUniqId=void 0,e&&ot.multiSelect.clearWhenExit&&kn.selectedIdSet.clear());}function cq(e=true){kn.multiSelecting?lq(e):kn.multiSelecting=true;}function EAe(){const{multiSelecting:e}=pt(kn);return e}function MAe(e){const{multiSelecting:t,selectedIdSet:n}=pt(kn);return t&&!!e&&n.has(e)}const l1=[];function Ja(){return l1.at(-1)?.items??[]}function TAe(e){const t=l1.at(-1);t&&(t.items=e);}function AAe(){vo(()=>(l1.push({items:[]}),()=>{l1.pop();}));}function DS(){const{multiSelecting:e,selectedIdSet:t}=kn;return e?Ja().filter(n=>t.has(n.uniqId)):[]}function RAe(){return DS().map(el)}function uq(){return DS().map(t=>({item:t,cardData:el(t)})).filter(t=>t.cardData.bvid)}function c1(){Rt.warning("没有选中的视频!");}function y6(){const{multiSelecting:e}=kn;let t=e?DS():Ja();return e&&!t.length&&(t=Ja()),t.map(el).toReversed()}function S6(){const t=y6().map(n=>n.bvid).filter(Boolean).join(" ");Ou(t,1);}function C6(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 x6(){const t=y6().filter(n=>n.bvid).map(C6).join(`
`);Ou(t,1);}function NAe(){const t=RAe().map(n=>{let r=n.href;if(r)return r.startsWith("/")&&(r=new URL(r,location.href).href),r}).filter(Boolean).join(`
`);Ou(t);}function PAe(e,t){const{multiSelecting:n,selectedIdSet:r}=kn;if(!n||!e||!t||e===t)return;const o=Ja(),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]=NM(u,[g=>g],["asc"]),p=r.has(e);for(let g=d;g<=m;g++){const b=Ja()[g].uniqId;p?r.add(b):r.delete(b);}}const IAe=({title:e,titleId:t,...n},r)=>_("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"})]}),OAe=f.forwardRef(IAe),DAe=({title:e,titleId:t,...n},r)=>_("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"})]}),LAe=f.forwardRef(DAe),kAe=({title:e,titleId:t,...n},r)=>_("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"})]}),_Ae=f.forwardRef(kAe),BAe=({title:e,titleId:t,...n},r)=>_("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"})]}),zAe=f.forwardRef(BAe),FAe=_(De,{children:["使用 ",C($s,{k:"Shift+M"})," 切换多选状态"]}),HAe=_("span",{className:"break-all",children:["使用",yM,"键扩选: 切换选中状态后, 按住",yM,"键再选择区间终点,整个区间会与起点选中状态同步."]}),f_=e=>_("div",{className:"flex items-start gap-x-6px",children:[C(dU,{className:"mt-1 size-14px"}),C("div",{className:"flex-1",children:e})]});function dq({iconOnly:e,addCopyActions:t=false}){const{multiSelecting:n}=pt(kn),r=od(),o=_(lt,{type:n?"primary":"default",className:Y(e?"icon-only-round-button":"inline-flex-center"),onClick:()=>cq(),children:[C(OAe,{className:"size-12px"}),!e&&_(De,{children:["多选",kn.multiSelecting?"中":""]})]}),i=s=>C(ks,{styles:{container:{border:`1px solid ${r}`}},content:_("div",{className:"max-w-288px",children:[f_(FAe),f_(HAe),C(fc,{variant:"solid",className:"my-7px"}),_("div",{className:"flex flex-wrap items-center gap-x-15px gap-y-2px",children:[_(lt,{className:"inline-flex items-center",onClick:()=>kn.selectedIdSet.clear(),children:[C(vm,{className:"size-18px"}),"清空"]}),_(lt,{className:"inline-flex items-center",onClick:()=>{const l=Ja().map(u=>u.uniqId);kn.selectedIdSet=Or(l);},children:[C(LAe,{className:"size-18px"}),"全选"]}),_(lt,{className:"inline-flex items-center",onClick:()=>{const l=Ja().filter(u=>!kn.selectedIdSet.has(u.uniqId)).map(u=>u.uniqId);kn.selectedIdSet=Or(l);},children:[C(_Ae,{className:"size-18px"}),"反选"]}),C("div",{className:"flex-basis-100%"}),_(lt,{className:"inline-flex items-center",onClick:()=>lq(),children:[C(zAe,{className:"size-18px"}),"退出"]}),C(It,{configPath:"multiSelect.clearWhenExit",label:"退出时清空",tooltip:_(De,{children:["退出多选时, 清空所有已选择项 ",C("br",{}),"仅点击「退出」按钮时生效 ",C("br",{}),"使用快捷键 ",C($s,{k:"Shift+M"})," 时总是保持选择状态"]})})]}),t&&_(De,{children:[C(fc,{variant:"solid",className:"my-7px"}),C("div",{className:"flex flex-wrap gap-x-10px gap-y-5px",children:C(bq,{showCopyBvidInfo:true})})]})]}),children:s});return n?i(o):e?C(en,{title:"多选",arrow:false,children:o}):o}const VAe=Object.prototype.toString,jAe=e=>VAe.call(e)==="[object Error]",UAe=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 WAe(e){if(!(e&&jAe(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:UAe.has(n)}function GAe(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 Zb(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 G$(e,t){if(t!==void 0&&typeof t!="function")throw new TypeError(`Expected \`${e}\` to be a function.`)}class qAe 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 KAe(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 Jb(e,t){return Number.isFinite(t)?t-(performance.now()-e):t}async function YAe(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 XAe({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 qAe)throw i.originalError;const s=Number.isFinite(o.retries)?Math.max(0,o.retries-n):o.retries,l=o.maxRetryTime??Number.POSITIVE_INFINITY,u=KAe(n,o);if(Jb(r,l)<=0){const $=Object.freeze({error:i,attemptNumber:t,retriesLeft:s,retriesConsumed:n,retryDelay:0});throw await o.onFailedAttempt($),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),Jb(r,l)<=0||Jb(r,l)<=0||s<=0||i instanceof TypeError&&!WAe(i)||!await o.shouldRetry(b))throw i;const S=Jb(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 YAe(x,o),o.signal?.throwIfAborted(),true}async function w6(e,t={}){if(t={...t},GAe(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,G$("onFailedAttempt",t.onFailedAttempt),G$("shouldRetry",t.shouldRetry),G$("shouldConsumeRetry",t.shouldConsumeRetry),Zb("factor",t.factor,{min:0,allowInfinity:false}),Zb("minTimeout",t.minTimeout,{min:0,allowInfinity:false}),Zb("maxTimeout",t.maxTimeout,{min:0,allowInfinity:true}),Zb("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 XAe({error:i,attemptNumber:n,retriesConsumed:r,startTime:o,options:t})&&r++;}}throw new Error("Retry attempts exhausted without throwing an error.")}var Ha=(e=>(e.Latest="pubdate",e.View="click",e.Fav="stow",e))(Ha||{});const fq="pubdate",mq={pubdate:{icon:C(VCe,{}),label:"最新发布"},click:{icon:C(Bg,{}),label:"最多播放"},stow:{icon:C(Wu,{}),label:"最多收藏"}},QAe=40;async function ZAe({mid:e,order:t="pubdate",keyword:n="",pagenum:r=1}){const o=await Zt.get("/x/space/wbi/arc/search",{params:{mid:e,order:t,keyword:n,ps:QAe,pn:r}});{const m=oi.validateAxiosResponse(o,"获取用户投稿失败");if(m.isErr())throw m.error}const i=o.data,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 JAe(...e){return await w6(()=>ZAe(...e),{retries:5,factor:1.5,onFailedAttempt:t=>console.error(t)})}var Yi=(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))(Yi||{}),LS=(e=>(e.All="all",e._5m="5min",e._2m="2min",e._1m="1min",e._30s="30s",e._10s="10s",e))(LS||{});const hq={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}},Em=new URLSearchParams(location.search),eRe=Em.get("space-mid")||void 0,m_=Em.get("space-group-id")||void 0,tRe=Em.get("space-search-text")||void 0,nRe=Em.get("space-filter-text")||void 0,h_=Em.get("space-initial-page")||void 0,rRe=(()=>{const e=Em.get("space-order");if(e&&Object.values(Ha).includes(e))return e})(),pq=(eRe||"").split(/[,_-]/).map(e=>e.trim()).filter(Boolean).filter(e=>/^\d+$/.test(e)),gq=m_?Number(m_):void 0,PM=!!pq.length||gq!==void 0,q$="up:",oRe="group:",IM={hideChargeOnlyVideos:true,filterMinDuration:"all"},iRe=(await( jA("space-upload:filters",e=>e.filter(([,t])=>!ti(t,IM))))).map,$o=_n({mids:pq,groupId:gq,order:rRe,searchText:tRe,filterText:nRe,filterStateMap:iRe,get isMultipleTraget(){return this.mids.length>1||this.groupId!==void 0},get allowedOrders(){return [Ha.Latest,Ha.View,!this.isMultipleTraget&&Ha.Fav].filter(Boolean)},get usingOrder(){return this.allowedOrders.includes(this.order)?this.order:this.allowedOrders[0]},get currentFilterKey(){if(this.groupId!==void 0)return `${oRe}${this.groupId}`;if(this.mids.length===1)return `${q$}${this.mids[0]}`;if(this.mids.length>1){const e=[...this.mids].sort((t,n)=>Number(t)-Number(n));return `${q$}${e.join(",")}`}return `${q$}unknown`},get currentFilterState(){return this.filterStateMap.get(this.currentFilterKey)??IM},get hideChargeOnlyVideos(){return this.currentFilterState.hideChargeOnlyVideos},get filterMinDuration(){return this.currentFilterState.filterMinDuration},get filterMinDurationValue(){const e=this.currentFilterState.filterMinDuration;return hq[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,{...IM});}});function kS(){if(NS)return rt.DynamicFeed;if(sg)return rt.Fav;if(PM)return rt.SpaceUpload;if(OM.get("gate-tab"))return OM.get("gate-tab")}var vq=(e=>(e.MainSwitch="gate",e.Tab="gate-tab",e))(vq||{});const OM=new URL(location.href).searchParams;function sRe(){return OM.has("gate")}function aRe(){const e=new URL(location.href);return e.search="",e.searchParams.set("gate","1"),e.href}const lRe=({title:e,titleId:t,...n},r)=>_("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,_("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[_("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})})]})]}),cRe=f.forwardRef(lRe);function bq({showCopyBvidInfo:e}){const{__internalEnableCopyBvidInfo:t}=jt();return _(De,{children:[_(lt,{onClick:S6,className:"inline-flex-center",children:[C(Iu,{})," 复制 BVID"]}),(e??t)&&_(lt,{onClick:x6,className:"inline-flex-center",children:[C(Iu,{})," 复制 BVID 信息"]})]})}function nv(){const{__internalAddTabbarCopyBvidButton:e}=jt();return e?C("div",{className:"flex items-center gap-x-2",children:_(Vo,{theme:{components:{Button:{paddingInline:6}}},children:[C(uRe,{}),C(dq,{iconOnly:false}),C(bq,{})]})}):null}function uRe(){const e=f.useMemo(yq,[]),{recSharedEmitter:t}=ls(),n=Rs(()=>t.emit("load-to-end"),{manual:true});return e&&_(lt,{className:"flex items-center gap-x-1",loading:n.loading,onClick:()=>n.run(),children:[!n.loading&&C(cRe,{className:"size-18px"}),"加载全部"]})}function yq(){const e=kS();return !!e&&[rt.DynamicFeed,rt.SpaceUpload].includes(e)}const Sq={overscrollBehavior:"contain",maxHeight:"60vh",overflowY:"scroll",scrollbarWidth:"thin",paddingRight:"12px"},dRe=({title:e,titleId:t,...n},r)=>_("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"})]}),fRe=f.forwardRef(dRe),mRe=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),hRe=f.forwardRef(mRe),pRe=({title:e,titleId:t,...n},r)=>_("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"})]}),gRe=f.forwardRef(pRe),vRe=({title:e,titleId:t,...n},r)=>_("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"})]}),bRe=f.forwardRef(vRe),Cq=fRe,_S=hRe,BS=gRe,Mm=bRe,u1=rS({sidebarFavFolderOrder:"default"},"fav-rec-service:view");JG(u1.sidebarFavFolderOrder)||(u1.sidebarFavFolderOrder="default");function xq(e,t){const{folders:n,collections:r,selectedKey:o}=pt(cn),{sidebarFavFolderOrder:i}=pt(u1),s=yo(),l=e==="sidebarView"&&n.length>1;return {menuItems:f.useMemo(()=>{let d;{let p=n,g;e==="sidebarView"&&(g=l&&C(tq,{className:"ml-4",value:i,onChange:y=>u1.sidebarFavFolderOrder=y}),p=eq(n,i));const b=p.map(y=>{f6(y.attr);const S=ev(y.attr),x=`fav-folder:${y.id}`,$=S?C(_S,{}):C(BS,{}),w=`${y.title} (${y.media_count})`;return {key:x,icon:$,label:w,async onClick(){cn.selectedFavFolderId=y.id,cn.selectedFavCollectionId=void 0,t?.(),await fn(100),s();}}});d=!!p.length&&{type:"group",label:_("div",{className:"flex items-center justify-between line-height-snug",children:["收藏夹",g]}),children:b};}let m;{const p=Y_(r,y=>y.upper.name);let g=Object.entries(p).map(([y,S])=>({upName:y,collections:a_(S,"title")}));g=a_(g,"upName");const b=[];for(const{upName:y,collections:S}of g){const x=S[0]?.upper.mid,$=x?tv(x):"#";b.push(...Ei([{type:"group",label:_("span",{className:"flex items-center gap-x-2px",children:[C(To,{className:"mt-2px size-15px flex-none"}),_("a",{target:"_blank",href:$,children:["@",y]})]}),children:S.map(w=>{const M=`fav-collection:${w.id}`,T=_("span",{className:"ml-8px flex items-center gap-x-2px",children:[C(Mm,{className:"size-15px flex-none"}),w.title," (",w.media_count,")"]});return {key:M,label:T,title:`${w.title} (${w.media_count})`,async onClick(){cn.selectedFavFolderId=void 0,cn.selectedFavCollectionId=w.id,t?.(),await fn(100),s();}}})}]));}m=!!r.length&&{type:"group",label:"合集",children:b};}return Ei([{key:"all",icon:C(Cq,{}),label:"全部",async onClick(){cn.selectedFavFolderId=void 0,cn.selectedFavCollectionId=void 0,t?.(),await fn(100),s();}},d,m])},[n,r,e,i,s]),selectedKey:o}}function yRe({extraContent:e}){const{fav:t}=jt(),n=OS(rt.Fav),{selectedFavFolder:r,selectedFavCollection:o,selectedLabel:i,selectedKey:s}=pt(cn),l=yo(),{ref:u,getPopupContainer:d}=Pc();vo(()=>{H6();}),Xa(()=>{(async()=>(await fn(100),l()))();},[t.addSeparator]);const[m,p]=f.useState(false),{menuItems:g}=xq("tabbarView",()=>{p(false);}),b="relative top-[-0.5px] size-15px",y=r?ev(r.attr)?C(_S,{className:b}):C(BS,{className:b}):o?C(Mm,{className:b}):C(Cq,{className:b}),S=i,x=C(Ec,{open:m,onOpenChange:p,placement:"bottomLeft",getPopupContainer:d,menu:{items:g,style:{...Sq,border:`1px solid ${od()}`},selectedKeys:[s]},children:C(lt,{css:[m&&rd,"",""],children:_("span",{className:"h-full flex items-center gap-x-4px",children:[y,S]})})});return _("div",{ref:u,className:"flex items-center gap-x-10px",children:[!n&&x,e,C(nv,{})]})}function SRe({allFavFolderServices:e,state:t}){const{fav:n}=jt(),r=yo(),{ref:o,getPopupContainer:i}=Pc(),{totalCountInFavFolders:s}=pt(t),[l,u]=f.useState(false),d=nt((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=nt(g=>{g?u(false):l&&r();});return C(ks,{getTooltipContainer:i,trigger:"click",placement:"bottom",onOpenChange:p,getPopupContainer:g=>g.parentElement||document.body,content:C(De,{children:C(nS,{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:_(Ts,{ref:o,color:"success",className:"mx-0 cursor-pointer text-size-12px",children:["收藏夹(",m,") 收藏(",s,")"]})})}function CRe(){const{menuItems:e,selectedKey:t}=xq("sidebarView"),{menuRef:n}=aq(e,t);return _(De,{children:[C($c,{ref:n,items:e,selectedKeys:[t],mode:"inline",inlineIndent:10}),sq]})}class $6 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 xRe=({title:e,titleId:t,...n},r)=>_("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"})]}),wRe=f.forwardRef(xRe);function $Re(e){return e instanceof Error&&e.name==="AxiosError"}function _h(e){return e&&C("p",{className:"mt-10px",children:e})}function wq(e){if(!(e&&e instanceof Error))return _h(JSON.stringify(e));const t=!!e.message&&_(De,{children:["Error Message: ",e.message]}),n=!!e.stack&&_(De,{children:["Error Stack: ",C("br",{}),e.stack]});let r,o;if(e.cause&&(r=_(De,{children:["Error Cause: ",wq(e.cause)]})),$Re(e)){const i=Rf(e);i.config?.params?.access_key&&(i.config.params.access_key="*".repeat(i.config.params.access_key.length)),o=_(De,{children:["axios config: ",JSON.stringify(i.config,null,2)]});}return _(De,{children:[_h(t),_h(n),_h(r),_h(o)]})}function ERe(e){return e&&e instanceof $q&&e.message||e&&e instanceof BR?e.message:"出错了, 请刷新重试!"}class $q extends Error{constructor(t){super(t),this.name="ShowMessageError";}}function p_({err:e,tab:t}){const n=wm(),r=f.useMemo(()=>ERe(e),[e]),o=f.useMemo(()=>wq(e),[e]);return _("div",{className:"flex flex-col items-center gap-y-0.5em p-20px text-center text-size-20px",children:[C(en,{title:_("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:_("p",{className:"flex cursor-pointer items-center justify-center",children:[C(wRe,{className:"mr-4px"}),r]})}),t===rt.Hot&&Jo.subtab===gr.PopularWeekly&&_("p",{className:"mt-8px flex items-center justify-center",children:["可能需手动输入验证码",C(To,{className:"ml-12px"}),C("a",{href:"https://www.bilibili.com/v/popular/weekly",target:n,className:"ml-2px",children:"每周必看"})]}),t===rt.Liked&&e instanceof BR&&C(c6,{className:"mt-0.5em"})]})}function Eq(e){const t=e==="follow"?1:2;return async function(r){return await mG(r,t)}}const MRe=Eq("follow"),TRe=Eq("unfollow"),ARe={follow:MRe,unfollow:TRe};function RRe(e){return [1,2,6].includes(e.attribute)}async function NRe(e){return (await Zt.get("/x/relation",{params:{fid:e}})).data.data}const PRe=_R(NRe,{cacheKey:([e])=>e.toString()});async function IRe(e){const n=(await Zt.get("/x/space/wbi/acc/info",{params:{mid:e,w_webid:await LG()||""}})).data;if(!Hr(n)){zo("space acc info error for %s: %o",e,n);return}return n.data}const E6=id({fn:IRe,generateKey:e=>e.toString(),tableName:"space-acc-info",ttl:Zr("10d"),concurrency:2});async function ORe(e){return (await E6(e))?.name}const ku=id({fn:ORe,generateKey:e=>e.toString(),tableName:"user-nickname",ttl:Zr("10d")});async function K$(e,t){await ku.cache.set(e.toString(),{val:t,ts:Date.now()});}const Mq=_(De,{children:["1. 可以使用多个过滤词, 用空格分隔, 逻辑关系为且 (AND) ",C("br",{}),'2. 可以使用引号包裹过滤词, 如 "word or sentence" ',C("br",{}),'3. 可以使用 -"word or sentence" 排除; 必须使用引号(单引号 或 双引号) ',C("br",{})]});function Tq(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 Aq(e){return !!(e.elec_arc_type===1||!e.elec_arc_type&&e.is_charging_arc||e.elec_arc_type===2)}function Rq({Component:e,defaultProps:t,containerClassName:n}){const r=_n(t);function o(){const u=pt(r);return C(e,{...u})}const i=Yf(()=>{const u=document.createElement("div");u.className=Y(Ls,n),document.body.appendChild(u),fa(u).render(C(ha,{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 DRe=[{platform:"pc",text:"内容不感兴趣",value:1,reason:1},{platform:"pc",text:"不想看此UP主",value:2,reason:4}];function M6(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};$m(e);}const LRe={show:false,reasons:[],onHide:_Re,okAction:void 0},{proxyProps:kRe,updateProps:Nq}=Rq({Component:zRe,containerClassName:"show-dislike-container",defaultProps:LRe}),Pq=new ho;function _Re(){Pq.emit("modal-close"),Nq({show:false,reasons:[],okAction:void 0});}async function BRe(e,t){Nq({show:true,reasons:e,okAction:t}),await Pq.once("modal-close");}const Iq=function(){return pt(kRe).show};function zRe({show:e,reasons:t,onHide:n,okAction:r}){const o=f.useRef(null),i=!!(e&&t?.length),s=Rs(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):$m(b);},[t]);const m=Wg(()=>new ho,[]);co(m,"click",({data:b})=>{});const p=nt(b=>{const y=t.length;let S=u+b;S<0&&(S=S%y+y),S>y-1&&(S=S%y),d(S);});Ro("ArrowUp",()=>p(-1),{enabled:i}),Ro("ArrowDown",()=>p(1),{enabled:i});const g=yS(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 Ro("Enter",g,{enabled:i}),_(Yg,{show:e,onHide:n,hideWhenMaskOnClick:true,hideWhenEsc:true,width:350,clsModal:"rounded-15px",children:[_("div",{className:Bo.modalHeader,children:[_("div",{className:Bo.modalTitle,children:[C(MR,{className:"size-25px"}),C("span",{className:"ml-5px",children:"我不想看"}),_(dr,{children:["选择后将减少相似内容推荐 ",C("br",{}),"操作说明: ",C("br",{}),_("div",{className:"ml-10px",children:["1. 使用删除键打开弹窗, Esc 关闭 ",C("br",{}),"2. 数字键 或 方向键选择 ",C("br",{}),"3. 回车键 或 确定按钮提交 ",C("br",{})]})]})]}),C(Xg,{onClick:n})]}),C("div",{className:Bo.modalBody,ref:o,children:C(eS,{spinning:l,indicator:bU,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:$}=M6(b),w=y+1;return _("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:[_("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(FRe,{num:w,enabled:i,onPress:()=>d(y)}),w]}),C("span",{className:"flex-1 px-4px text-14px",children:$}),C("span",{className:"size-20px flex-none",children:S&&C(Kp,{className:"h-100% w-100% color-gate-primary",useAnimation:true})})]},x)})})})}),_("div",{className:"mt-2 flex items-center justify-end gap-x-10px",children:[C(lt,{onClick:n,children:"取消"}),C(lt,{type:"primary",onClick:g,loading:l,children:"确定"})]})]})}function FRe({num:e,onPress:t,enabled:n}){return Nr(e>=1&&e<=9,"num must be between 1 and 9"),Ro(`${e}`,t,{enabled:n}),null}const Va=20;function HRe({folderId:e,currentFolderTitle:t,onClosePopover:n}){const r=Rs(l=>DMe(e,l),{manual:true}),[o,i]=f.useState(t),s=nt(async()=>{const l=o.trim();if(!l)return Rt.error("收藏夹名称不能为空!");if(l===t)return Rt.warning("无变更!");const u=await r.runAsync(l);if(u.isErr()){const m=typeof u.error=="string"?u.error:u.error.message;return Rt.error(m)}n();const d=cn.folders.find(m=>m.id===e);d&&(d.title=o);});return _("div",{className:"flex flex-col gap-y-2",children:[C("div",{children:"重命名收藏夹"}),C(is,{placeholder:"收藏夹名称",value:o,onChange:l=>i(l.target.value),onPressEnter:s}),_("div",{className:"flex justify-end gap-x-2",children:[C(lt,{onClick:n,children:"取消"}),C(lt,{type:"primary",loading:r.loading,onClick:s,disabled:!o||o===t,children:"确定"})]})]})}function VRe({service:e}){const[t,n]=f.useState(false),{viewingSomeFolder:r}=pt(cn),o=wm(),{id:i,attr:s,title:l}=e.entry,u=pt(cn.folders).find(m=>m.id===i)?.title??l,d="size-16px";return _("div",{className:"col-span-full mb-15px mt-5px flex flex-col gap-y-10px",children:[_("div",{className:"flex-v-center gap-x-1 text-1.6em",children:[ev(s)?C(_S,{}):C(BS,{}),"收藏夹 · ",u]}),_("div",{className:"flex-v-center gap-x-10px",children:[_(lt,{href:EMe(i),target:o,children:[C(Bg,{className:d}),"播放全部"]}),_(lt,{href:d6(i,s),target:o,children:[C(To,{className:d}),"去「我的空间」查看"]}),r&&C(ks,{open:t,onOpenChange:n,trigger:"click",content:C(HRe,{folderId:i,currentFolderTitle:u,onClosePopover:()=>n(false)}),children:_(lt,{className:"gap-x-1",children:[C(AR,{className:d}),"重命名"]})})]})]})}const jRe=[Lt.FavTimeDesc,Lt.PlayCountDesc,Lt.PubTimeDesc];function g_(e){return jRe.includes(e)}const Oq=xm("fav-folder-all-items");async function Zy(e){await Oq.delete(e);}class Dq{constructor(t,n,r){if(this.folderId=t,this.addSeparator=n,this.itemsOrder=r,this.itemsOrder===Lt.Initial)throw new Error("this should not happen!");g_(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:Je.Separator,uniqId:`${Je.Fav}:folder:separator:${this.folderId}`,content:C(VRe,{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 H6();const t=Br(cn.folders).find(n=>n.id===this.folderId);Nr(t,`favStore.favFolders should have this entry[fid=${this.folderId}]`),this.entry=t,g_(this.itemsOrder)?this.innerService=new Af(t,this.itemsOrder):this.innerService=new Af(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===Lt.Shuffle&&(this.bufferQueue=Ri(this.bufferQueue));const n=this.bufferQueue.slice(0,Va);return this.bufferQueue=this.bufferQueue.slice(Va),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=CM(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=id({fn:this._fetchAllItems,tableName:Oq,generateKey:()=>`${this.folderId}`,ttl:Zr("5min")});fetchAllItems=t=>(this.assertInnerService(),this.entry.media_count>Af.PAGE_SIZE*3?this._fetchAllItemsWithCache(t):this._fetchAllItems(t));runSideEffects(){this.assertInnerService(),typeof this.innerService.info?.media_count=="number"&&pK(this.folderId,this.innerService.info.media_count);}get extraTabbarView(){return C(F6,{})}}class Af{constructor(t,n=Lt.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={[Lt.FavTimeDesc]:"mtime",[Lt.PlayCountDesc]:"view",[Lt.PubTimeDesc]:"pubtime"}[this.itemsOrder],o=(await Zt.get("/x/v3/fav/resource/list",{params:{media_id:this.entry.id,pn:this.page+1,ps:Af.PAGE_SIZE,keyword:"",order:n,type:"0",tid:"0",platform:"web"}})).data;if(!Hr(o)){On(o.message||mg);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:Je.Fav,uniqId:`${Je.Fav}:folder:${this.info?.id||this.entry.id}:${s.bvid}`}))}}const Lq={modalWidth:60,favFolderOrder:"default"},Cu=rS({...Lq},"modal-fav-manager");JG(Cu.favFolderOrder)||(Cu.favFolderOrder="default");function URe(){const{modalWidth:e,favFolderOrder:t}=pt(Cu),n=pt(cn).folders.length>1,r="text-1.5em",o="text-1.2em";return _("div",{className:"flex flex-col gap-y-10px",children:[_("div",{className:"flex items-center justify-between",children:[C("div",{className:r,children:"窗口设置"}),C(lt,{className:"icon-only-round-button size-24px",onClick:()=>Object.assign(Cu,Lq),children:C(TR,{})})]}),_("div",{children:[_("div",{className:o,children:["窗口宽度 ",e,"%"]}),C(PA,{className:"mt-0",value:e,min:30,max:90,onChange:i=>{Cu.modalWidth=i;}})]}),n&&_("div",{children:[C("div",{className:o,children:"收藏夹排序"}),C(tq,{value:t,onChange:i=>Cu.favFolderOrder=i})]})]})}function WRe({show:e,onHide:t,mode:n,pickOkAction:r,modifyInitialSelectedIds:o,modifyAllowEmpty:i,modifyOkAction:s}){const{modalWidth:l,favFolderOrder:u}=pt(Cu),[d,m]=f.useState(void 0),[p,g]=f.useState(void 0),b=Rs(V6,{manual:true}),y=Rs(async D=>r?.(D),{manual:true}),S=Rs(async D=>s?.(D),{manual:true}),{folders:x}=pt(cn),$=f.useMemo(()=>{const D=x.map((W,z)=>({...W,vol:z+1}));if(!p)return D;const L=D.filter(W=>W.title.includes(p)),V=D.filter(W=>W.title.toLowerCase().includes(p.toLowerCase())),U=D.filter(W=>uQ.match(W.title,p));return yc([...L,...V,...U],W=>W.id)},[x,p]),M=f.useMemo(()=>eq($,u),[$,u]),T=f.useMemo(()=>new Set([o].flat().filter(D=>typeof D=="number")),[o]),A=GRe(),P=n==="modify"&&i,N=f.useMemo(()=>!P&&!d||n==="modify"&&ti(Array.from(T),[d]),[P,d,n,T]);Ro("R",()=>b.run(true),{enabled:e});const I=nt(async()=>{let D;if(d&&(D=x.find(L=>L.id===d)),!P&&!D)return Rt.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=nt(()=>{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]),Xa(()=>{if(e&&(!d||!T.has(d))){const D=Array.from(T)[0];m(D);}},[T]),_(Yg,{show:e,onHide:t,hideWhenMaskOnClick:true,hideWhenEsc:true,width:`${l}vw`,clsModal:"rounded-15px",children:[_("div",{className:Bo.modalHeader,children:[_("div",{className:"flex flex-wrap items-center gap-x-10px gap-y-1",children:[_("div",{className:Bo.modalTitle,children:[n==="pick"?C(KCe,{className:"size-25px"}):C(AR,{className:"size-25px"}),C("span",{className:"ml-5px",children:n==="pick"?"选择目标收藏夹":"修改收藏"})]}),C(is,{className:"w-215px",allowClear:true,placeholder:"过滤: 支持拼音 / 拼音首字母",value:p,onChange:D=>g(D.target.value),spellCheck:false}),!!p&&_("span",{className:"ml-5px",children:[C("span",{className:Y({"text-red":x.length&&!M.length}),children:M.length})," ","/ ",C("span",{children:x.length})]}),_(dr,{className:"ml-5px size-1.3em",children:["1. 使用 ",C("kbd",{className:Y(bM,"mx-2px"),children:"r"})," 刷新收藏夹 ",C("br",{}),"2. 使用 ",C("kbd",{className:Y(bM,"mx-2px"),children:"esc"})," 取消操作, 关闭窗口 ",C("br",{}),"3. 使用 拼音 / 拼音首字母 过滤收藏夹标题 ",C("br",{})]}),C(ks,{trigger:"click",title:C(URe,{}),children:C(_g,{className:"size-1.3em cursor-pointer"})})]}),C(Xg,{onClick:t})]}),C("div",{className:Y(Bo.modalBody),children:C(eS,{spinning:b.loading||y.loading||S.loading,indicator:bU,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 L=n==="modify"&&T.has(D.id),V=D.id===d;return _("button",{"data-id":D.id,className:Y({active:V},"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",V&&"b-gate-primary color-white bg-gate-primary! hover:bg-gate-primary-lv1!"),onClick:()=>{if(V&&P)return m(void 0);m(D.id);},children:[L&&C(en,{title:"源收藏夹",placement:"left",children:C("span",{className:Y("absolute left-2 top-50% size-2.5 flex-center translate-y--50% rounded-full",A)})}),_("span",{className:"flex-1 px-4px text-14px",children:[D.title," (",D.media_count,")"]}),C("span",{className:"mr-2px size-20px flex-none",children:V&&C(Kp,{className:"size-full color-white",useAnimation:true})})]},D.id)}):C(Qi,{className:"grid-col-span-full",image:Qi.PRESENTED_IMAGE_SIMPLE,description:"未找到收藏夹",children:"无过滤结果, 请检查过滤词 !"})})})}),_("div",{className:"mt-2 flex items-center justify-between",children:[C("div",{className:"flex-v-center gap-x-10px",children:_("a",{href:`https://space.bilibili.com/${ci()}/favlist`,target:"_blank",className:"flex-v-center gap-x-1",children:[C(To,{className:"size-1.1em"}),"去个人空间新建收藏夹"]})}),_("div",{className:"flex-v-center gap-x-10px",children:[C(lt,{onClick:t,children:"取消"}),C(lt,{type:"primary",onClick:I,loading:y.loading||S.loading,disabled:N,children:"确定"})]})]})]})}function GRe(){const{theme:e}=jt();return e===n1.id?"bg-$brand_blue":"bg-$brand_pink"}const qRe={onHide:YRe,show:false,mode:"pick",pickOkAction:void 0,modifyInitialSelectedIds:void 0,modifyOkAction:void 0},{proxyProps:KRe,updateProps:T6}=Rq({Component:WRe,containerClassName:"ModalFavManager",defaultProps:qRe}),A6=new ho;function YRe(){T6({show:false}),A6.emit("modal-close");}function kq(){return pt(KRe).show}async function _q(e){T6({show:true,mode:"pick",pickOkAction:e}),await A6.once("modal-close");}async function d1(e,t,n=true){T6({show:true,mode:"modify",modifyInitialSelectedIds:e,modifyOkAction:t,modifyAllowEmpty:n}),await A6.once("modal-close");}async function R6(e,t,n){if(ti(t,[n?.id]))return Rt.warning("请选择不同的收藏夹!"),false;{const i=await gc.modifyFav(e,t,n?.id);if(i.isErr())return Rt.error(i.error.message),false}[...t??[],n?.id].filter(i=>i!==void 0).forEach(i=>Zy(i));let o;return n?o=`${t?.length?"已移动收藏到":"已加入收藏"}「${n.title}」`:o="已取消收藏",Rt.success(o),true}function Bq(){const{modalFeedVisible:e,modalSettingsVisible:t}=X6();return [e,t,Iq(),kq()].every(r=>r===false)}const N6=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=nt(S=>{const x=r.filter(T=>T!=="divider"),$=x.indexOf(e);if($===-1)return;const w=($+(S.shiftKey?-1:1)+x.length)%x.length,M=x[w];t(M);}),p=f.useMemo(()=>Ei(r.map(S=>{if(S==="divider")return {type:"divider"};const{icon:x,label:$}=o[S];return {key:S,icon:x,label:$,onClick:()=>t(S)}})),[r,o,t]),[g,b]=f.useState(false),y=j$e();return _("span",{className:"inline-flex items-center",ref:l,children:[C(Ec,{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:_(lt,{className:Y(yU,"px-3"),css:[g&&rd,"",""],disabled:n,onClick:m,children:[u,d]})}),_(dr,{children:[s,s&&C(vM,{}),"操作说明: ",C("br",{}),"1. 点击/下拉切换 ",C("br",{}),"2. 按住 ",yM," 键点击逆序切换 ",C("br",{})]})]})};function XRe({onRefresh:e,getPopupContainer:t}){const{hideChargeOnlyVideos:n,filterMinDuration:r}=pt($o),o=C(QRe,{refresh:e}),[i,s]=f.useState(false),l=f.useMemo(()=>n||r!==LS.All,[n,r]);return {popoverTrigger:C(ks,{open:i,onOpenChange:s,arrow:false,placement:"bottomLeft",getPopupContainer:t,content:o,styles:{container:{border:`1px solid ${od()}`}},children:C(Rg,{dot:l,color:as,offset:[-5,5],children:C(lt,{className:"icon-only-round-button",css:i&&rd,children:C(IG,{className:"ml-1px"})})})})}}const Bl={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 QRe({refresh:e}){const{hideChargeOnlyVideos:t,filterMinDuration:n}=pt($o);return _("div",{className:Bl.wrapper,children:[_("div",{className:Bl.section,children:[C("div",{className:Bl.sectionTilte,children:"充电专属"}),C("div",{className:Bl.sectionContent,children:C(Oi,{className:"ml-5px",checked:t,onChange:r=>{$o.setHideChargeOnlyVideos(r.target.checked),e?.();},children:C(en,{title:"隐藏「充电专属」视频",children:C("span",{style:{userSelect:"none"},children:"隐藏「充电专属」"})})})})]}),_("div",{className:Bl.section,children:[C("div",{className:Bl.sectionTilte,children:"最短时长"}),C("div",{children:C(Rr.Group,{className:"overflow-hidden [&_.ant-radio-button-wrapper]:px-7px",buttonStyle:"solid",value:n,onChange:r=>{$o.setFilterMinDuration(r.target.value),e?.();},children:Object.values(LS).map(r=>{const{label:o}=hq[r];return C(Rr.Button,{value:r,children:o},r)})})})]}),C("div",{className:Bl.section,children:C("div",{className:Bl.sectionContent,children:C(lt,{onClick:()=>{$o.resetCurrentFilterState(),e?.();},children:"重置筛选"})})})]})}function ZRe(){const{searchText:e,filterText:t}=pt($o,{sync:true}),{allowedOrders:n,usingOrder:r}=pt($o),{spaceUpload:{useSyncFilterTextFromSearchText:o}}=jt(),i=yo(),{ref:s,getPopupContainer:l}=Pc(),{popoverTrigger:u}=XRe({onRefresh:i,getPopupContainer:l}),d=nt(()=>{m();const{searchText:b,filterText:y,order:S}=$o,x=location.href,$=new URL(x);b?$.searchParams.set(Yi.SearchText,b):$.searchParams.delete(Yi.SearchText),y?$.searchParams.set(Yi.FilterText,y):$.searchParams.delete(Yi.FilterText),!S||S===fq?$.searchParams.delete(Yi.Order):$.searchParams.set(Yi.Order,S),$.href!==x&&history.replaceState({},"",$.href);}),m=nt(()=>{ot.spaceUpload.useSyncFilterTextFromSearchText&&($o.filterText=$o.searchText);});vo(d);const p=f.useRef(null),g=Bq();return Ro({shift:true,key:"?"},b=>p.current?.focus(),{eventType:"keyup",enabled:g}),Ro("Escape",b=>p.current?.blur(),{target:p.current?.nativeElement,ignoreInputs:false,requireReset:false,enabled:g,conflictBehavior:"allow"}),_("div",{ref:s,className:"flex items-center gap-x-10px",children:[C(N6,{value:r,list:n,listDisplayConfig:mq,onChange:b=>{$o.order=b,d(),i();}}),u,C(is.Search,{ref:p,style:{width:200},placeholder:"搜索词",allowClear:true,value:e,onChange:b=>$o.searchText=b.target.value,onSearch:b=>{$o.searchText=b,d(),i();}}),_(kr.Compact,{children:[C(kr.Addon,{children:C(en,{title:C(De,{children:"精准搜索: 自动将搜索词同步到过滤词"}),children:C(It,{className:"[&>.ant-checkbox-label]:hidden",configPath:"spaceUpload.useSyncFilterTextFromSearchText",extraAction:b=>{b&&(d(),i());}})})}),C(is.Search,{style:{width:200},placeholder:"本地过滤词",allowClear:true,value:t,disabled:o,onChange:b=>$o.filterText=b.target.value,onSearch:b=>{$o.filterText=b,d(),i();}})]}),C(It,{configPath:"spaceUpload.showVol",label:"显示序号",className:"flex-none"}),C(nv,{})]})}const zq=new $6({maxSize:100}),f1=Or();async function JRe(e){if(f1.has(e))return;const t=await PRe(e);RRe(t)&&f1.add(e);}function Fq(){const e=Br($o);return {mids:e.mids,groupId:e.groupId,order:e.usingOrder,searchText:e.searchText,filterText:e.filterText,initialPage:h_?Number(h_):void 0,hideChargeOnlyVideos:e.hideChargeOnlyVideos,filterMinDuration:e.filterMinDuration,filterMinDurationValue:e.filterMinDurationValue}}class P6 extends dl{constructor(t){if(super(P6.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(ZRe,{});get hasMoreExceptQueue(){return this.service?this.service.hasMore:true}async fetchAvatars(t){await Promise.all(t.map(async n=>{const r=await E6(n);r&&zq.set(n,r.face);}));}async fetchFollowState(t){await aa(t,JRe,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!==fq?`🔢【${mq[this.order].label}】`:"";let r,o=false;if(this.mids.length)r=(await aa(this.mids,ku,3)).map(l=>l?.trim()).filter(Boolean).map(l=>`【${l}】`).join("、"),r||(r="【未知UP】",o=true);else {const l=(await kG()).find(u=>u.tagid===this.groupId)?.name||"";r=l?`【${l}】`:"";}const i=[...t,n,`${r}的投稿`].map(s=>s.trim()).filter(Boolean).join(" - ");GR(i),o||(this.pageTitleSet=true);}singleUpService;mergeTimelineService;async setupServices(){if(!(this.singleUpService||this.mergeTimelineService)){if(this.mids.length===1){this.singleUpService=new Hq(this.mids[0],this.order,this.searchText,this.initialPage);return}if(this.mids.length){this.mergeTimelineService=new v_(this.mids,this.order,this.searchText);return}if(this.groupId!==void 0){const t=await EM(this.groupId);if(t.forEach(n=>f1.add(n)),!t.length)throw new Error("Group is Empty!");this.mergeTimelineService=new v_(t.map(n=>n.toString()),this.order,this.searchText);return}}}get service(){return this.singleUpService||this.mergeTimelineService}warnNeedLoginOnce=Yf(vK);async fetchMore(t){if(!AU())throw this.warnNeedLoginOnce(),new $q(gK);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:Je.SpaceUpload,uniqId:`${Je.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=>!Aq(i))),this.filterMinDuration!==LS.All&&(o=o.filter(i=>tg(i.length)>=this.filterMinDurationValue)),this.filterText){let{includes:i,excludes:s}=Tq(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=ug(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=Y_(o,s=>s.mid);for(const[s,l]of Object.entries(i)){const u=l.find(d=>d.author)?.author;u&&!await ku.queryCache(s)&&await ku.cache.set(s,{val:u,ts:Date.now()});}await this.setPageTitle();}return o}}class v_{constructor(t,n,r){this.mids=t,this.order=n,this.searchText=r,Nr(this.mids.length===1||this.mids.length>1&&this.order!==Ha.Fav,"SpaceUploadItem.Fav not supported when merging"),this.singleUpServices=t.map(o=>new Hq(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 aa(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=Ba(o.map(l=>{const u=l.bufferQueue[0],d={[Ha.Latest]:u.created,[Ha.View]:u.play,[Ha.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 Hq{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 JAe({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 DM=e=>(e||"").replace(/^http:\/\//,"https://"),I6="·";function e6e(e,t){const n=e.api,r=t[n];return r(e)}function t6e(){const t=new WeakMap;return t.clear??=Z_,t.size=0,t}const el=EQ(e=>{const t=e6e(e,{[Je.AppRecommend]:n6e,[Je.PcRecommend]:o6e,[Je.DynamicFeed]:i6e,[Je.Watchlater]:s6e,[Je.Fav]:a6e,[Je.PopularGeneral]:l6e,[Je.PopularWeekly]:c6e,[Je.Rank]:u6e,[Je.Live]:d6e,[Je.SpaceUpload]:f6e,[Je.Liked]:m6e});return t.authorFace&&(t.authorFace=DM(t.authorFace)),t.cover&&(t.cover=DM(t.cover)),t.bvid||=void 0,t.avid||=void 0,t},{cache:t6e(),getCacheKey:e=>e});function n6e(e){return r6e(e)}function r6e(e){const t=x=>{const{cover_left_text_1:$,cover_left_text_2:w,cover_left_text_3:M}=e,T=[$,w,M].filter(Boolean);if(x==="play"){const A=T.find(N=>/观看|播放$/.test(N));if(!A)return;const P=A.replace(/观看|播放$/,"");return Su(P)}if(x==="danmaku"){const A=T.find(N=>N.endsWith("弹幕"));if(!A)return;const P=A.replace(/弹幕$/,"");return Su(P)}if(x==="bangumi:follow"){const A=T.find(N=>/追[剧番]$/.test(N));if(!A)return;const P=A.replace(/追[剧番]$/,"");return Su(P)}},n=e.param,r=e.bvid||e.videoDetail?.bvid||TS(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 zo("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(I6);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:ul(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 o6e(e){e.goto,Fa.AV;const t=e.goto===Fa.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:ul(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 i6e(e){const t=WG(e);return Nr(t,"unexpected `normalizeDynamicFeedItem` empty result"),t}function s6e(e){const t=zTe(e.state),n=e.progress>0,r=`${n?"【已观看】· ":""}${e.title}`,o=t?C(en,{title:_(De,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:_("del",{children:[n?"【已观看】· ":"",e.title,"`"]})}):void 0,{watchlaterUseNormalVideoUrl:i,watchlaterItemsOrder:s}=hS(),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===Ao.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:`${Qy(e.pubdate,true)} 发布, ${Qy(e.add_at,true)} 添加稍后再看`,duration:e.duration,durationStr:ul(e.duration),recommendReason:`${Qy(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 a6e(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"?ev(e.folder.attr)?C(_S,{className:Y("size-15px",r),style:n}):C(BS,{className:Y("size-15px",r),style:n}):C(Mm,{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:_(De,{children:["【",o,t,"】· ",e.title]}),cover:e.cover,pubts:e.pubtime,duration:e.duration,durationStr:ul(e.duration),recommendReason:e.from==="fav-folder"?`${Qy(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 l6e(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:ul(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 c6e(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:ul(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 u6e(e){if(rTe(e)||nTe(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:ul(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 d6e(e){const t=`${e.area_name_v2}`,n=e.live_status===Zs.Streaming?"":`${I6}${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 f6e(e){const t=tg(e.length),n=ul(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:zq.get(e.mid),authorMid:e.mid.toString(),followed:f1.has(e.mid),cardTags:$M([Aq(e)&&{key:`${e.api}:charge-only`,icon:C(wve,{className:"size-14px"}),text:e.elec_arc_badge}])}}function m6e(e){const{videoDetail:t}=e,n=e.param,r=TS(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:ul(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 b_=/^(?<mid>\d+)\((?<remark>[\S ]+)\)$/,h6e=/^\d+$/;function zS(e){if(b_.test(e)){const t=b_.exec(e)?.groups,n=t?.mid,r=t?.remark;return {mid:n,remark:r}}return h6e.test(e)?{mid:e,remark:void 0}:{}}function LM(e){const t=new Set,n=new Set;return e.forEach(r=>{const{mid:o}=zS(r);o?t.add(o):n.add(r);}),{blockUpMids:t,blockUpNames:n}}function y_(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 ps=bo.extend("modules:filter");function O6(e){return !!e&&["已关注","新关注"].includes(e)}function Vq(e){return [Je.AppRecommend,Je.PcRecommend,Je.Rank,Je.PopularGeneral,Je.PopularWeekly].includes(e)}function m1(e,t){if(!ot.filter.enabled&&!pp.size)return e;const n=hS().filter,{minDuration:r,minPlayCount:o,minDanmakuCount:i,byAuthor:s,byTitle:l,dfByTitle:u,dfHideOpusMids:d}=n,{blockUpMids:m,blockUpNames:p}=LM(s.keywords),{test:g}=y_(l.keywords),{test:b}=y_(u.keywords),{blockUpMids:y}=LM(d.keywords);return e.filter(S=>{if(S.api===Je.Separator)return  true;const{play:x,duration:$,danmaku:w,recommendReason:M,goto:T,authorName:A,authorMid:P,title:N,bvid:I,href:O}=el(S),D=O6(M);if(t==="keep-follow-only"&&!D)return  false;function L(){if(P&&pp.size&&pp.has(P))return ps("filter out by blacklist-rule: %s %o",P,{bvid:I,title:N}),false;if(n.enabled&&s.enabled&&(m.size||p.size)&&(A||P)&&(A&&p.has(A)||P&&m.has(P)))return ps("filter out by author-rule: %o",{authorName:A,authorMid:P,rules:s.keywords,blockUpMids:m,blockUpNames:p,bvid:I,title:N}),false;let z=[N];if(S.api===Je.Rank&&h6(S)&&S.desc&&z.push(S.desc),z=z.filter(Boolean),n.enabled&&l.enabled&&l.keywords.length&&z.length&&z.some(g))return ps("filter out by title-rule: %o",{possibleTitles:z,rules:l.keywords,bvid:I}),false}if(Vq(S.api)&&L()===false)return  false;if((S.api===Je.AppRecommend||S.api===Je.PcRecommend)&&n.enabled){const z=T==="av",k=T==="picture",G=T==="bangumi";if(z)return V();if(k)return U();if(G)return W()}function V(){return D&&n.exemptForFollowed.video?true:M==="关注了你"?(ps("filter out by recommendReason-rule: %s %o",M,{bvid:I,title:N}),false):r.enabled&&r.value&&$&&$<r.value?(ps("filter out by min-duration-rule: %s < %s %o",$,r.value,{bvid:I,title:N}),false):o.enabled&&o.value&&typeof x=="number"&&x<o.value?(ps("filter out by min-play-count-rule: %s < %s, %o",x,o.value,{bvid:I,title:N}),false):i.enabled&&i.value&&typeof w=="number"&&w<i.value?(ps("filter out by min-danmaku-count-rule: %s < %s, %o",w,i.value,{bvid:I,title:N}),false):true}function U(){return n.hideGotoTypePicture?D&&n.exemptForFollowed.picture?true:(ps("filter out by goto-type-picture-rule: %s %o",T,{bvid:I,title:N}),false):true}function W(){return n.hideGotoTypeBangumi?(ps("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,k=z?.type===Zo.MajorType.Opus;if(ot.filter.dfByTitle.enabled&&ot.filter.dfByTitle.keywords.length){let G=[N];if(k&&G.push(z.opus.summary?.text||""),G=ug(G.filter(Boolean)),G.some(b))return ps("filter out by df-title-rule: %o",{possibleTitles:G,rules:u.keywords,uniqId:S.uniqId,item:S}),false}if(k&&d.enabled&&d.keywords.length&&P&&y.has(P))return ps("filter out by df-hide-opus-mids-rule: %o",{dfHideOpusMids:d,authorMid:P,title:N,uniqId:S.uniqId}),false}return  true})}async function p6e(e){return (await Zt.get("https://api.live.bilibili.com/xlive/web-ucenter/user/following",{params:{page:e,page_size:rv.PAGE_SIZE,ignoreRecord:1,hit_ab:true}})).data}class rv extends dl{constructor(t=false){super(rv.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 p6e(this.page);Hr(n)||(On(n.message||mg),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:Je.Live,uniqId:`${Je.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!==Zs.Streaming&&p&&p<u&&(this.hasMoreExceptQueue=false);}let d=s;if(!this.streamingOnly&&!this.separatorAdded&&s.some(m=>m.live_status!==Zs.Streaming)){this.separatorAdded=true;const m=s.findIndex(p=>p.live_status!==Zs.Streaming);d.splice(m,0,{api:Je.Separator,uniqId:`${Je.Live}:separator:recent`,content:"最近直播过"});}return this.streamingOnly&&s.some(m=>m.live_status!==Zs.Streaming)&&(this.hasMoreExceptQueue=false,d=s.filter(m=>m.live_status===Zs.Streaming)),d}}const g6e=bo.extend("modules:rec-services:dynamic-feed:api");async function ov({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 Zt.get(s,{signal:o,params:i})).data;if(!Hr(u)){const m=u.message||mg;throw On(m),new Error(m,{cause:u})}const d=u.data;return d?.items?.length&&(d.items=d.items.filter(m=>{const p=!!WG(m);return p||g6e("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 h1=xm("dynamic-feed-items"),iv=xm("dynamic-feed-items-info");async function FS(e){return !!(await iv.get(e))?.count}function v6e(e,t){const n=s=>`update-filter-cache:${s}`,o=ua((s,l)=>{Ji.info({icon:C(qA,{className:"size-16px"}),key:n(e),title:"过滤缓存更新中...",description:`「${t}」更新中: Page(${s}) Total(${l})`,duration:false});},200);return {notifyOnProgress:o,notifyOnSuccess:()=>{o.flush(),Ji.success({key:n(e),title:"缓存更新成功",description:`「${t}」的过滤缓存更新成功`,duration:false});}}}async function b6e(e,t){await FS(e)?await jq(e):await S6e(e,void 0,t);}async function y6e(e,t=false){const n=await iv.get(e);if(!(!t&&n&&n.count&&n.updatedAt&&Date.now()-n.updatedAt<60*1e3))return jq(e)}async function jq(e){if(!await FS(e))return;const t=await h1.get(e)||[],n=new Set(t.map(u=>u.id_str));let r=1,o="",i=true,s=[];for(;i;){const u=await ov({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=yc([...s,...t],u=>u.id_str);await h1.set(e,l),await iv.set(e,{count:l.length,updatedAt:Date.now()});}const Y$=xm("dynamic-feed-items-in-progress");async function S6e(e,t=false,n){const r=t?void 0:await Y$.get(e);let o=r?.page??1,i=r?.offset??"",s=r?.items??[],l=true;for(;l;){const d=await ov({upMid:e,page:o,offset:i,videoOnly:true}),m=d.items;s=[...s,...m],i=d.offset,l=d.has_more,o++,await Y$.set(e,{page:o,offset:i,items:s}),n?.(o,s.length);}const u=yc(s,d=>d.id_str);await h1.set(e,u),await iv.set(e,{count:u.length,updatedAt:Date.now()}),await Y$.delete(e);}const Uq=id({fn:ov,generateKey:({upMid:e,videoOnly:t})=>`upMid=${e}&videoOnly=${t}`,tableName:"dynamic-feed-newest-items",ttl:300*1e3});class C6e{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?Uq:ov)({videoOnly:this.videoOnly,upMid:this.upMid,page:this.page,offset:this.offset});return this.offset=r.offset,this.hasMoreForApi=r.has_more,this.page++,ti(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 ja{constructor(t,n){this.upMids=t,this.videoOnly=n;const r=t.length>ja.ENABLE_HEAD_CACHE_UPMID_COUNT_THRESHOLD;this.upServices=t.map(o=>new C6e(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 aa(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=Ba(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 x6e(){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 w6e=!zg&&await( x6e());function D6(e){const t=w6e?".avif":".webp";return `${DM(e)}@96w_96h_1c_1s_!web-avatar${t}`}function S_(e){return new Promise(t=>{const n=new Image;n.src=e,n.onload=()=>t(true),n.onerror=()=>t(false);})}function $6e({externalFilterInput:e,getPopupContainer:t}){const{upMid:n,dynamicFeedVideoType:r,filterMinDuration:o,filterText:i,hideChargeOnlyVideos:s}=pt(rn),l=yo(),u=C(is.Search,{style:{width:e?"250px":void 0},placeholder:"按标题关键字过滤",type:"search",autoCorrect:"off",autoCapitalize:"off",name:`filterText_${n}`,variant:"outlined",defaultValue:rn.filterText,autoComplete:"off",allowClear:true,onChange:S=>{T6e({filterText:S.target.value,upMid:n,onRefresh:l});},onSearch:async S=>{rn.filterText=S||void 0,await fn(100),l();}}),d=C(E6e,{externalFilterInput:e,filterInput:u,refresh:l}),[m,p]=f.useState(false),g=p,b=f.useMemo(()=>!!(r!==Js.All||s||i||o!==Lu.All),[r,s,i,o]),y=C(ks,{open:m,onOpenChange:g,arrow:false,placement:"bottomLeft",getPopupContainer:t,content:d,styles:{container:{border:`1px solid ${od()}`}},children:C(Rg,{dot:b,color:as,offset:[-5,5],children:C(lt,{className:"icon-only-round-button",css:m&&rd,children:C(IG,{className:"ml-1px"})})})});return {filterInput:u,popoverContent:d,popoverTrigger:y}}const so={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 E6e({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}=pt(rn);let g;{const b=NS&&!!p,y=p===_G,{href:S}=f.useMemo(()=>{const x=new URL(location.href);return x.searchParams.has($i.FilterTextFull)?x.searchParams.set($i.FilterTextFull,p||""):x.searchParams.has($i.FilterTextShort)?x.searchParams.set($i.FilterTextShort,p||""):x.searchParams.set($i.FilterTextFull,p||""),{href:x.href,path:`${x.pathname}?${x.search}`}},[p]);g=b&&C(en,{title:S,children:_(lt,{disabled:y,href:S,children:["转到过滤词为「",p||"空","」的链接"]})});}return _("div",{className:so.wrapper,children:[_("div",{className:so.section,children:[_("div",{className:so.sectionTilte,children:["视频类型",_(dr,{children:["「",na.ChargeOnly,"」在此程序中归类为「投稿视频」",C("br",{}),"「动态视频」时长通常较短"]})]}),C("div",{children:C(Rr.Group,{buttonStyle:"solid",value:l,onChange:async b=>{rn.dynamicFeedVideoType=b.target.value,await fn(100),n?.();},children:Object.values(Js).map(b=>C(Rr.Button,{value:b,children:lAe[b]},b))})})]}),l!==Js.DynamicOnly&&_("div",{className:so.section,children:[C("div",{className:so.sectionTilte,children:"充电专属"}),C("div",{className:so.sectionContent,children:C(Oi,{className:"ml-5px",checked:d,onChange:async b=>{const y=b.target.checked,S=rn.hideChargeOnlyVideosForKeysSet;y?S.add(s):S.delete(s),await fn(100),n?.();},children:C(en,{title:_(De,{children:["隐藏「",na.ChargeOnly,"」视频 ",C("br",{}),"仅对当前 UP 或 分组生效"]}),children:_("span",{style:{userSelect:"none"},children:["隐藏「",na.ChargeOnly,"」"]})})})})]}),_("div",{className:so.section,children:[C("div",{className:so.sectionTilte,children:"最短时长"}),C("div",{children:C(Rr.Group,{className:"overflow-hidden [&_.ant-radio-button-wrapper]:px-10px",buttonStyle:"solid",value:u,onChange:async b=>{rn.filterMinDuration=b.target.value,await fn(100),n?.();},children:Object.values(Lu).map(b=>{const{label:y}=FG[b];return C(Rr.Button,{value:b,children:y},b)})})})]}),(!e||g)&&_("div",{className:so.section,children:[C("div",{className:so.sectionTilte,children:"过滤"}),_("div",{className:so.sectionContent,children:[!e&&t,g]})]}),C(M6e,{}),_("div",{className:so.section,children:[_("div",{className:so.sectionTilte,children:[i?"分组":r?"UP":"全部",_(dr,{children:["当前",i?"分组":r?"UP":"范围","的一些操作~"]}),i&&o&&_("span",{className:"ml-15px inline-flex items-center text-size-14px",children:["(",_("a",{href:OG(o?.tagid||""),target:"_blank",className:`mx-4px inline-flex items-center text-size-16px ${oW}`,children:[C(To,{className:"mr-2px size-18px"}),o?.name]}),")"]})]}),_("div",{className:so.sectionContent,children:[C(Oi,{checked:m,onChange:async b=>{rn.addSeparatorsMap.set("global",b.target.checked),await fn(100),n?.();},children:C(en,{title:_(De,{children:["添加今日/更早分割线 ",C("br",{}),"当前实现为全局共享此设置"]}),children:"添加分割线"})}),i&&!!o&&C(A6e,{followGroup:o,refresh:n})]})]})]})}function M6e(){const{cacheAllItemsEntry:e,cacheAllItemsUpMids:t}=jt().dynamicFeed.__internal,{viewingSomeUp:n,upMid:r,upName:o}=pt(rn),i=Rs(async(u,d)=>{const{notifyOnProgress:m,notifyOnSuccess:p}=v6e(u,d);await b6e(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 qa("dynamicFeed.__internal.cacheAllItemsUpMids",m);},[]);return C(De,{children:e&&n&&r&&o&&_("div",{className:so.section,children:[_("div",{className:so.sectionTilte,children:["过滤缓存",_(dr,{children:["开启过滤缓存后, 会加载并缓存 UP 所有的动态 ",C("br",{}),"当本地有缓存且总条数 <= 5000时, 过滤框成为及时过滤, 无需点击过滤按钮"]})]}),_("div",{className:so.sectionContent,children:[_("div",{className:"flex flex-wrap items-center gap-x-10px gap-y-3px",children:[C(Oi,{className:"inline-flex items-center",checked:s,onChange:l,children:C(en,{title:"只有开启此项, 过滤时才会使用缓存",children:_("span",{children:["为「",o,"」开启"]})})}),C(lt,{loading:i.loading,onClick:async()=>{await i.runAsync(r,o);},children:"更新缓存"})]}),C(It,{configPath:"dynamicFeed.advancedFilter",label:"使用高级过滤",tooltip:Mq})]})]})})}const T6e=ua(async function({filterText:e,upMid:t,onRefresh:n}){if(!t||!(e||!e&&rn.filterText)||!ot.dynamicFeed.__internal.cacheAllItemsEntry||!ot.dynamicFeed.__internal.cacheAllItemsUpMids.includes(t.toString())||!await FS(t))return;const r=await iv.get(t);!r||!r.count||r.count>=5e3||(rn.filterText=e,await fn(0),n());},100);function Wq(){return _(De,{children:[C("p",{children:"机制介绍:"}),_("ul",{className:"text-13px",children:[_("li",{className:"flex items-start gap-x-10px",children:[C("div",{children:"「从全部过滤」:"}),C("div",{children:'基于全部动态 + 分组UP过滤, 速度可能巨慢, 且过滤后的数量取决于B站记录的"全部"动态范围'})]}),_("li",{className:"flex items-start gap-x-10px",children:[C("div",{children:"「拼接时间线」:"}),_("div",{children:["可以理解为: 去看一遍分组所有 UP 的动态, 然后将它们拼接起来 ",C("br",{}),"启动慢, 但可以加载所有动态; 且分组 UP 越多, 启动越慢 ",C("br",{}),"默认分组 UP 数量不超过 ",ja.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 A6e({followGroup:e,refresh:t}){const{whenViewAll:n}=pt(ot.dynamicFeed),r=e.count;let o;const i=C_(e.tagid,"dynamicFeed.followGroup.forceUseMergeTimelineIds");{const{checked:u,onChange:d}=i,m=r<=ja.ENABLE_MERGE_TIMELINE_UPMID_COUNT_THRESHOLD;o=C(Oi,{checked:u,onChange:p=>{d(p),t?.();},disabled:m,children:C(en,{title:_(De,{children:[C(Wq,{}),m&&_("p",{className:"text-yellow-400 italic",children:["当前分组 UP 数量: ",r,", 无需设置"]})]}),children:"分组动态: 强制使用「拼接时间线」"})});}let s;s=(r<=ja.ENABLE_MERGE_TIMELINE_UPMID_COUNT_THRESHOLD||i.checked)&&r>ja.ENABLE_HEAD_CACHE_UPMID_COUNT_THRESHOLD&&C(en,{title:_(De,{children:["当分组 UP 数量"," >  ",ja.ENABLE_HEAD_CACHE_UPMID_COUNT_THRESHOLD,"时, 「拼接时间线」功能会缓存每个 UP 的最新动态5分钟. ",C("br",{}),"这里可以手动清除缓存"]}),children:C(lt,{onClick:()=>{Uq.cache.db.clear(),Rt.success("已清除缓存");},children:"清除「拼接时间线」- 队头缓存"})});let l;{const{checked:u,onChange:d}=C_(`${Ku}${e.tagid}`,"dynamicFeed.whenViewAll.hideIds");l=n.enableHideSomeContents&&C(Oi,{checked:u,onChange:d,children:C(en,{title:_(De,{children:["在「全部」动态中隐藏来自此 ",e.name," 的动态"]}),children:"在「全部」动态中隐藏来自此分组的动态"})});}return _(De,{children:[l,o,s]})}function C_(e,t){const n=DU(t),r=f.useMemo(()=>n.includes(e),[n]),o=nt(async s=>{await qa(t,s?{add:[e]}:{remove:[e]});}),i=f.useCallback(s=>{o(s.target.checked);},[]);return {checked:r,setChecked:o,onChange:i}}function R6e(e){if(Object.assign(rn,e),e.upMid){const t=rn.upList.find(n=>n.mid.toString()===e.upMid);t&&(t.has_update=false);}}const X$={upMid:void 0,upName:void 0,upFace:void 0,filterText:void 0,selectedGroupId:void 0,dynamicFeedVideoType:Js.All,filterMinDuration:Lu.All};function Gq(e){const{upList:t,groups:n,selectedKey:r,viewingSomeUp:o,viewingSomeGroup:i}=pt(rn),s=yo(),{followGroup:{enabled:l}}=jt().dynamicFeed,{recSharedEmitter:u}=ls(),d=nt(async y=>{R6e(y),await fn(100),s();}),m=nt(()=>{d({...X$}),u.emit("dynamic-feed:clear");});return {menuItems:f.useMemo(()=>{const y={key:"all",icon:C(Eu,{size:"small",children:"全"}),label:"全部",title:"全部",onClick:m};let S=[];l&&(S=n.map(w=>({key:`group:${w.tagid}`,icon:C(Eu,{size:"small",children:w.name[0]||"组"}),label:`${w.name} (${w.count})`,title:`${w.name} (${w.count})`,onClick:()=>d({...X$,selectedGroupId:w.tagid})})));let x=t;e==="dropdown"&&(x=vf(t,[{prop:w=>w.has_update?1:0,order:"desc"},{prop:w=>b6(w.uname),order:PS}]));const $=x.map(w=>{let M=C(Eu,{size:"small",src:D6(w.face)});return w.has_update&&(M=C(Rg,{dot:true,children:M})),{key:`up:${w.mid}`,icon:M,label:C("span",{title:w.uname,className:"block max-w-130px overflow-hidden text-ellipsis whitespace-nowrap",children:w.uname}),title:w.uname,onClick(){d({...X$,upMid:w.mid.toString(),upName:w.uname,upFace:w.face});}}});return [y,...S,...$]},[t,l,n,e]),selectedKey:r,btnClear:C(en,{title:"返回「全部」",children:C(lt,{onClick:m,className:"icon-only-round-button",disabled:!(o||i),children:C(TR,{className:"size-14px"})})}),onClear:m,onSelect:d}}function qq(){const{dynamicFeed:{__internal:{externalFilterInput:e}}}=jt(),{ref:t,getPopupContainer:n}=Pc(),{popoverTrigger:r,filterInput:o}=$6e({externalFilterInput:e,getPopupContainer:n});return {popoverContainerRef:t,getPopupContainer:n,popoverTrigger:r,externalFilterInput:e,filterInput:o}}function N6e(){const{viewingSomeUp:e,upName:t,upFace:n,selectedGroup:r}=pt(rn),o=OS(rt.DynamicFeed),{menuItems:i,selectedKey:s,btnClear:l}=Gq("dropdown"),{popoverContainerRef:u,getPopupContainer:d,popoverTrigger:m,externalFilterInput:p,filterInput:g}=qq();vo(()=>{UG();});const b=r?.count,y=C(NG,{className:"mt--2px size-14px"}),S=n?C(Eu,{size:20,src:D6(n)}):void 0,x=e?S||y:r?C(PG,{className:"size-18px"}):void 0,$=e?t:r?r.name+(b?` (${b})`:""):"全部",[w,M]=f.useState(false),T=C(Ec,{open:w,onOpenChange:M,placement:"bottomLeft",getPopupContainer:d,menu:{items:i,style:{...Sq,border:`1px solid ${od()}`},selectedKeys:[s]},children:C(lt,{icon:x,className:"gap-4px",css:[w&&rd,"",""],children:$})});return _("div",{ref:u,className:"inline-flex items-center gap-x-8px",children:[o?void 0:_(De,{children:[T,l]}),m,p&&g,C(nv,{})]})}function P6e(){const e=OS(rt.DynamicFeed),{menuItems:t,selectedKey:n,btnClear:r}=Gq("sidebar"),{menuRef:o,revealSelected:i}=aq(t,n),{recSharedEmitter:s}=ls(),{popoverTrigger:l,popoverContainerRef:u}=qq();if(co(s,"dynamic-feed:clear",()=>{i(ng);}),!!e)return _(De,{children:[_("div",{ref:u,className:"flex flex-row items-center gap-x-2 px-2 py-1",children:[r,l]}),C($c,{ref:o,items:t,selectedKeys:[n],mode:"inline",inlineIndent:10}),sq]})}function L6(e=rn){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:aAe,minId:x_(TM)?BigInt(TM):void 0,minTs:x_(s_)?Number(s_):void 0}}function x_(e){return !!e&&/^\d+$/.test(e)}const I6e=bo.extend("modules:rec-services:dynamic-feed");class HS extends dl{constructor(t){super(HS.PAGE_SIZE),this.config=t,this.config.showLiveInDynamicFeed&&!this.upMid&&this.groupId===void 0&&!this.filterText&&this.dynamicFeedVideoType===Js.All&&this.filterMinDuration===Lu.All&&(this.liveRecService=new rv(true)),this.config.startingOffset&&(this.offset=this.config.startingOffset);}static PAGE_SIZE=15;tabbarView=C(N6e,{});sidebarView=C(P6e,{});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===Js.DynamicOnly||this.filterMinDuration!==Lu.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<=ja.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 EM(this.groupId);this.groupMids=new Set(t),this.shouldEnableMergeTimeline(t.length)&&(this.groupMergeTimelineService=new ja(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(Kf)).map(i=>i.slice(Kf.length)),n=Array.from(this.config.whenViewAllHideIds).filter(i=>i.startsWith(Ku)).map(i=>i.slice(Ku.length)),r=this.viewingAllHideMids;t.forEach(i=>r.add(i)),(await aa(n,i=>EM(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!==Je.Separator);let n;this.viewingSomeGroup&&await this.loadGroupMids(),this.viewingAll&&(await this.loadViewingAllHideMids(),I6e("viewingAll: hide-mids = %o",this.viewingAllHideMids));const r=!!(this.upMid&&this.filterText&&this.config.filterCacheEnabled&&await FS(this.upMid)),o=r&&this.config.advancedFilter,i=o?Tq((this.filterText||"").toLowerCase()):void 0;if(r)this._queueForFilterCache||(await y6e(this.upMid),this._queueForFilterCache=new IS(20),this._queueForFilterCache.bufferQueue=(await h1.get(this.upMid)||[]).filter(m=>{const p=kh(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 ov({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===Js.All)return  true;const p=kh(m);if(!p)return  false;const g=p.badge.text;return this.dynamicFeedVideoType===Js.DynamicOnly?g===na.Dynamic:this.dynamicFeedVideoType===Js.UploadOnly?g===na.Upload||g===na.ChargeOnly:false}).filter(m=>{if(!this.hideChargeOnlyVideos)return  true;const p=kh(m);return p?!(p.badge.text===na.ChargeOnly):true}).filter(m=>{if(this.filterMinDuration===Lu.All)return  true;const p=kh(m);return p?tg(p.duration_text)>=this.filterMinDurationValue:false}).filter(m=>{if(!this.filterText)return  true;const p=kh(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!==ng)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:Je.DynamicFeed,uniqId:`${Je.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}=rn;if(bc&&u&&d&&d===u.toString()&&s[0]){const m=s[0].modules.module_author.name,p=s[0].modules.module_author.face;rn.upName=m,rn.upFace=p;}if(this.viewingSomeGroup&&rn.groups.length){const m=rn.groups.find(p=>p.tagid===this.groupId);m&&(m.count=this.groupMids.size);}return s}separatorsConfig={today:{added:false,content:"今日",getInsertIndex:O6e},earlier:{added:false,content:"更早",getInsertIndex:Kq(-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:Je.Separator,uniqId:`${Je.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:Je.Separator,uniqId:`${Je.DynamicFeed}:separator:earlier`,content:i}),r.added=true);}}return n}}function Kq(e,t){return n=>n.findIndex(r=>{if(r.api!==Je.DynamicFeed)return  false;const o=r.modules.module_author.pub_ts;return o>=e&&o<t})}function O6e(e){const t=e.findIndex(r=>r.api===Je.Live&&r.live_status===Zs.Streaming);return t!==-1?t:Kq(Xn().startOf("day").unix(),Xn().endOf("day").unix())(e)}class Yq{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:Je.Separator,uniqId:`${Je.Fav}:collection:separator:${this.collectionId}`,content:C(D6e,{service:this}),wrapWithDivider:false}}state=_n({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 _Me(this.collectionId,1),o=r?.medias||[],i=r?.info;await dg(()=>this.loadUserAvatarFromSpaceAccInfo(o,t));let s=o.map(u=>({...u,api:Je.Fav,uniqId:`${Je.Fav}:collection:${this.collectionId}:${u.bvid}`,collection:r.info,from:"fav-collection"}));[Lt.PubTimeDesc,Lt.PubTimeAsc,Lt.Shuffle].includes(this.itemsOrder)&&(s=CM(s,Lt.PubTimeDesc),s.forEach((u,d,m)=>{u.vol=m.length-d,u.volTooltip=_(De,{children:["按投稿时间 Vol.",u.vol]});})),s=CM(s,this.itemsOrder),this.bufferQueue=s,this.loaded=true,this.state.firstBvid=s[0]?.bvid,this.state.info=Rf(i),cn.selectedFavCollectionDetailInfo=Rf(i);}this.itemsOrder===Lt.Shuffle&&(this.bufferQueue=Ri(this.bufferQueue));let n;return [n,this.bufferQueue]=[this.bufferQueue.slice(0,Va),this.bufferQueue.slice(Va)],n}async loadUserAvatarFromSpaceAccInfo(t,n){if(!t.length)return;const r=gQ(t,s=>s.upper.mid),o=Object.entries(r).map(([s,l])=>({mid:s,count:l})),i=Ba(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 E6(s))?.face;u&&t.filter(d=>d.upper.mid.toString()===s).forEach(d=>{d.upper.face||=u;});}));}get extraTabbarView(){return C(F6,{})}}function D6e({service:e}){const{firstBvid:t,info:n}=pt(e.state),r=wm();return _("div",{className:"col-span-full mb-15px mt-5px flex flex-col gap-y-10px",children:[_("div",{className:"flex-v-center gap-x-1 text-1.6em",children:[C(Mm,{}),"合集 · ",n?.title]}),n?.intro&&C("div",{className:"text-1em color-$text_1",children:n?.intro}),_("div",{className:"text-1em",children:["合集 ",n?.media_count," 个视频"]}),_("div",{className:"flex-v-center gap-x-10px",children:[t&&_(lt,{href:MMe(t),target:r,children:[C(Bg,{className:"size-16px"}),"播放"]}),_(lt,{href:sG(e.collectionId),target:r,children:[C(To,{className:"size-16px"}),"去「我的空间」查看"]}),n?.upper.mid&&_(lt,{href:$Me(n.upper.mid,e.collectionId),target:r,children:[C(To,{className:"size-16px"}),"去合集发布页"]})]})]})}class L6e{constructor(t,n,r){if(this.addSeparator=t,this.itemsOrder=n,this.excludedFolderIds=r,![Lt.Initial,Lt.Shuffle].includes(this.itemsOrder))throw new Error("invalid items order")}get useShuffle(){return this.itemsOrder===Lt.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 _(De,{children:[C(F6,{}),C(SRe,{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<Va)for(;this.hasMoreInService&&this.shuffleBufferQueue.length<Va*3;){const i=this.allServices.filter(u=>u.hasMore),s=Ri(i).slice(0,6),l=(await aa(s,async u=>await u.loadMore(t)||[],2)).flat().filter(u=>u.api!==Je.Separator);this.shuffleBufferQueue=Ri([...this.shuffleBufferQueue,...Ri(l)]);}const n=this.shuffleBufferQueue.slice(0,Va);return this.shuffleBufferQueue=this.shuffleBufferQueue.slice(Va),n}allFolderServices=[];state=_n({totalCountInFavFolders:0});serviceCreated=false;allServices=[];async createServices(){await H6();const{folders:t,collections:n}=Rf(Br(cn));this.allFolderServices=t.map(r=>new Af(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===Lt.Initial&&(o=Lt.FavTimeDesc),this.allServices.push(...r.map(i=>new Dq(i.id,this.addSeparator,o)));}this.allServices.push(...n.map(r=>new Yq(r.id,this.addSeparator,this.itemsOrder))),this.serviceCreated=true;}}function k6(){const e=Br(cn);return {selectedKey:e.selectedKey,viewingAll:e.viewingAll,viewingSomeFolder:e.viewingSomeFolder,viewingSomeCollection:e.viewingSomeCollection,itemsOrder:z6(e.selectedKey,e.savedOrderMap),selectedFavFolderId:e.selectedFavFolderId,selectedFavCollectionId:e.selectedFavCollectionId,addSeparator:ot.fav.addSeparator,excludedFolderIds:ot.fav.excludedFolderIds}}class VS extends dl{constructor(t){super(VS.PAGE_SIZE),this.config=t;const{viewingAll:n,viewingSomeFolder:r,viewingSomeCollection:o}=this.config;if(n)this.innerService=new L6e(this.config.addSeparator,this.config.itemsOrder,this.config.excludedFolderIds);else if(r)this.innerService=new Dq(this.config.selectedFavFolderId,this.config.addSeparator,this.config.itemsOrder);else if(o)this.innerService=new Yq(this.config.selectedFavCollectionId,this.config.addSeparator,this.config.itemsOrder);else throw new Error("unexpected case!")}static PAGE_SIZE=Va;innerService;get tabbarView(){const{tabbarView:t,extraTabbarView:n}=this.innerService;return t||C(yRe,{extraContent:n})}sidebarView=C(CRe,{});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?pK(this.config.selectedFavFolderId,t=>t-1):this.config.viewingSomeCollection&&this.config.selectedFavCollectionId;}}async function _6({asc:e=false,searchText:t="",abortSignal:n,extraParams:r}={}){const i=(await Zt.get("/x/v2/history/toview/web",{signal:n,params:await fS({asc:e,key:t,viewed:0,web_location:333.881,...r})})).data;return Hr(i)?{total:i.data.count,items:k6e(i.data.list||[])}:(zo("getAllWatchlaterItems error %s, fulljson %o",i.message,i),{err:i.message})}function k6e(e){return e.filter(t=>!(t.title==="以下为更早添加的视频"&&t.aid===0&&t.bvid===""&&t.add_at===0))}async function _6e(e){const t=new FormData;t.append("resources",e.join(",")),t.append("csrf",Ac());const n=await fS({}),o=(await Zt.post("/x/v2/history/toview/v2/dels",t,{params:n})).data;return Hr(o)?true:(On(o?.message||"出错了"),false)}const Xq=()=>Xn().subtract(2,"days").unix(),Qq="最近 48 小时内",kM={api:Je.Separator,uniqId:`${Je.Watchlater}:separator:recent`,content:_(De,{children:["近期",C(dr,{children:Qq})]})},_M={api:Je.Separator,uniqId:`${Je.Watchlater}:separator:earlier`,content:"更早"};function B6e(){const{multiSelecting:e}=pt(kn),t=nt(async()=>{const n=uq();if(!n?.length)return c1();const r=n.map(o=>o.cardData.avid).filter(Boolean);if(!r.length)return c1();await _q(async o=>{const i=[],s={};for(const[l,u]of r.entries()){l!==0&&await fn(500);const[d,m]=await dg(()=>w6(async()=>{const p=await gc.addFav(u,o.id);if(p.isErr())throw p.error;return !0},{retries:3}));if(m){i.push(u);continue}else {s[u]=d??m;continue}}if(i.length===r.length)return Rt.success(`已加入收藏夹「${o.title}」`),true;Ji.error({duration:0,title:"批量加入收藏夹失败!",description:_(De,{children:["成功加入 ",i.length,"/",r.length," 个, 其他: ",JSON.stringify(s)]})});});});return e&&C(en,{arrow:false,title:"添加收藏(多选)",children:C(lt,{className:"icon-only-round-button",onClick:t,children:C(Wu,{})})})}const gp=_n({searchText:void 0});function z6e({service:e}){const{watchlaterAddSeparator:t,watchlaterItemsOrder:n,watchlaterUseNormalVideoUrl:r}=jt(),o=yo(),{searchText:i}=pt(gp,{sync:true}),s=EAe(),{recSharedEmitter:l}=ls();Xa(()=>{(async()=>(await fn(100),o()))();},[t,n,r]);const{total:u}=pt(e.state),d=i?`共 ${u} 条搜索结果`:`共 ${u} 个视频`,m=typeof u=="number"&&C(Ts,{color:"success",style:{marginRight:0,marginTop:1,cursor:"pointer"},title:d,onClick:()=>{On(`稍后再看: ${d}`);},children:u});return _("div",{className:"flex items-center gap-x-12px",children:[C(H6e,{}),C(is.Search,{allowClear:true,placeholder:"搜索稍后再看",style:{width:180},value:i,onChange:p=>gp.searchText=p.target.value,onSearch:p=>{gp.searchText=p,o();}}),m,s&&C(en,{arrow:false,title:"移除稍后再看 (多选)",children:C(lt,{className:"icon-only-round-button",onClick:()=>W6e(l),children:C(vm,{})})}),C(B6e,{}),C(nv,{})]})}const Zq={[Ao.AddTimeDesc]:{icon:C(eM,{}),label:"最近添加",helpInfo:"按添加时间倒序"},[Ao.AddTimeAsc]:{icon:C(J3,{}),label:"最早添加",helpInfo:"按添加时间增序"},[Ao.Shuffle]:{icon:C(fU,{}),label:"随机顺序",helpInfo:`随机但不包括近期添加的稍后再看, 近期指: ${Qq}`}},Jq=Object.values(Ao),F6e=C("div",{className:"grid grid-cols-[repeat(2,max-content)] gap-x-1 gap-y-0 line-height-normal",children:Jq.map(e=>{const{icon:t,label:n,helpInfo:r}=Zq[e];return _(De,{children:[_("div",{className:"flex-center gap-x-1",children:[t,n,": "]}),C("div",{children:r})]})})});function H6e(){const e=yo(),{ref:t,getPopupContainer:n}=Pc(),{watchlaterItemsOrder:r}=jt(),{searchText:o}=pt(gp),i=!!o;return C(N6,{disabled:i,value:i?Ao.AddTimeDesc:r,onChange:s=>{ot.watchlaterItemsOrder=s,e();},list:Jq,listDisplayConfig:Zq,$ref:t,dropdownProps:{getPopupContainer:n},extraHelpInfo:F6e})}const Yu=_n({updatedAt:0,bvidSet:Or()});function V6e(e){const t=pt(Yu).bvidSet;return !!e&&t.has(e)}function eK(e){Yu.updatedAt=Date.now(),Yu.bvidSet=Or(e);}function j6e(e,t){Yu.updatedAt&&Yu.bvidSet.add(t);}async function U6e(){if(!mS()||!ci())return;const{items:e=[]}=await _6();e.length&&eK(e.map(t=>t.bvid));}tl&&(async()=>(await gS(),await w6(U6e,{retries:3,onFailedAttempt(e){zo(`Try updateWatchlaterState ${e.attemptNumber} failed. There are ${e.retriesLeft} retries left`);}})))();async function W6e(e){const t=uq();if(!t?.length)return c1();const n=t.map(s=>s.cardData.avid).filter(Boolean),r=t.map(s=>s.item.uniqId),o=t.map(s=>s.cardData.title);if(!n.length)return c1();await _6e(n)&&e.emit("remove-cards",[r,o]);}class rg extends dl{constructor(t,n,r,o){super(rg.PAGE_SIZE),this.searchText=o,this.innerService=t===Ao.Shuffle&&!this.searchText?new w_(n,r):new G6e(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(z6e,{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 w_?this.innerService.currentBvidIndexMap:void 0}}}function tK(e){return {...e,api:Je.Watchlater,uniqId:`${Je.Watchlater}:${e.bvid}`}}function nK(e){throw On(`获取稍后再看失败: ${e}`),new Error(`获取稍后再看失败: ${e}`,{cause:e})}class w_{constructor(t,n){this.addSeparator=t,n?.size?(this.keepOrder=true,this.prevBvidIndexMap=n):this.keepOrder=false;}hasMore=true;state=_n({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 _6({asc:false,searchText:void 0,abortSignal:t});r!==void 0&&nK(r),eK(n.map(u=>u.bvid).filter(Boolean));const o=n.map(tK),i=Xq(),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=Ba(d,[m=>this.prevBvidIndexMap?.get(m.bvid)??-1],["asc"]):d=Ri(d),l=[!!u.length&&this.addSeparator&&kM,...u,!!d.length&&this.addSeparator&&_M,...d].filter(Boolean);}return this.state.total=n.length,this.currentBvidIndexMap=new Map(l.filter(u=>u.api!==Je.Separator).map((u,d)=>[u.bvid,d])),l}}class G6e{constructor(t,n,r){this.order=t,this.addSeparator=n,this.searchText=r,this.searchText||Nr(t!==Ao.Shuffle,"shuffle not supported in NormalOrderService");}firstPageLoaded=false;state=_n({total:void 0});hasMore=true;page=1;async loadMore(){if(!this.hasMore)return;const t=await _6({asc:this.order===Ao.AddTimeAsc,searchText:this.searchText,extraParams:{need_split:"true",ps:20,pn:this.page}});if(t.err!==void 0){this.hasMore=false,nK(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&&j6e("add",s.bvid);});const i=n.map(tK);return this.insertSeparator(i)}recentSeparatorInserted=false;earlierSeparatorInserted=false;insertSeparator(t){if(!this.addSeparator)return t;let n=[...t];const r=Xq(),o=t.some(s=>s.add_at<r),i=t.some(s=>s.add_at>=r);if(this.order===Ao.AddTimeAsc){if(!this.earlierSeparatorInserted&&o&&(n=[_M,...n],this.earlierSeparatorInserted=true),!this.recentSeparatorInserted&&i){const s=n.findIndex(l=>l.api===Je.Watchlater&&l.add_at>=r);n=[...n.slice(0,s),kM,...n.slice(s)],this.recentSeparatorInserted=true;}}else if(!this.recentSeparatorInserted&&i&&(n=[kM,...t],this.recentSeparatorInserted=true),!this.earlierSeparatorInserted&&o){const s=n.findIndex(l=>l.api===Je.Watchlater&&l.add_at<r);n=[...n.slice(0,s),_M,...n.slice(s)],this.earlierSeparatorInserted=true;}return n}}function q6e(){return {addOtherTabContents:hS().appRecommend.addOtherTabContents}}const rK=e=>C(It,{configPath:"appRecommend.addOtherTabContents",label:"显示来自其他 Tab 的内容",tooltip:_(De,{children:["显示来自其他 Tab 的内容 ",C("br",{}),"如动态 / 收藏 / 稍后再看 ",C("br",{}),"但是: 刷新时间会更长"]}),extraAction:async()=>{await fn(100),e?.();}});function K6e(){const e=yo(),{hidingTabKeys:t}=jt(),n=t.includes(rt.Liked);return _("div",{className:"flex items-center gap-x-10px",children:[rK(e),n&&C(en,{title:"查看「我」点赞的视频",children:C("a",{href:`/?${vq.Tab}=${rt.Liked}`,target:"_blank",children:C(cU,{className:"size-18px align-top"})})})]})}class Cs extends dl{constructor(t){super(Cs.PAGE_SIZE),this.config=t,this.innerService=new Y6e,this.allServices=[this.innerService],this.initOtherTabServices();}static PAGE_SIZE=20;tabbarView=C(K6e,{});sidebarView=void 0;innerService;allServices=[];otherTabServices=[];initOtherTabServices(){if(!mS()||!this.config.addOtherTabContents)return;let t,n,r;{const s=HG();s.upMid=void 0,s.selectedGroupId=void 0;const l=L6(s);Object.assign(l,{showLiveInDynamicFeed:true,whenViewAllEnableHideSomeContents:false,filterCacheEnabled:false}),t=new HS(l);}{const s=Object.assign(k6(),{selectedKey:"all",viewingAll:true,viewingSomeFolder:false,viewingSomeCollection:false,itemsOrder:Lt.Shuffle,selectedFavFolderId:void 0,selectedFavCollectionId:void 0,addSeparator:false});n=new VS(s);}r=new rg(Ao.AddTimeDesc,false),this.otherTabServices=[t,n,r];const o=[],i=7/3;o.push(...this.otherTabServices),KQ(Math.round(i*this.otherTabServices.length),()=>o.push(this.innerService)),this.allServices=Ri(o);}async restore(){super.restore(),this.qs.bufferQueue.some(t=>Cs.isNormalVideoFromFollowedUp(t)&&!t.videoDetail)&&(this.qs.bufferQueue=await aa(this.qs.bufferQueue,async t=>{if(Cs.isNormalVideoFromFollowedUp(t)&&!t.videoDetail){const{bvid:n}=el(t);if(n)return {...t,videoDetail:await AS.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<Cs.PAGE_SIZE*3;){const r=this.allServices.filter(s=>s.hasMore);if(!r.length)break;const o=Ri(r).slice(0,3),i=(await Promise.all(o.map(async s=>await s.loadMore(t)||[]))).flat().filter(s=>s.api!==Je.Separator);n.push(...i),n=Ri(n);}return n}_fetchFromApi(t,n){return this.innerService.getRecommendTimes(t,n)}async preloadTimesFromApiIfNeeded(t,n){this.qs.bufferQueue.length<Cs.PAGE_SIZE&&this.qs.bufferQueue.push(...await this._fetchFromApi(t,n));}static isNormalVideo(t){return t.goto==="av"}static isNormalVideoFromFollowedUp(t,n){return !!(Qa(t)&&Cs.isNormalVideo(t)&&(n||=el(t))&&n&&n.bvid&&O6(n.recommendReason))}}class Y6e{static PAGE_SIZE=16;hasMore=true;async getRecommend(){const t=await Fg.get(`${nT}/x/v2/feed/index`,{timeout:2e4,responseType:"json",params:{build:"1",mobi_app:"iphone",device:"pad",idx:Math.floor(Date.now()/1e3)+yQ(1e3)}}),n=t.data;if(!n.data)throw new Error("Request fail with none invalid json",{cause:{type:"invalid-json",statusCode:t.status,json:n}});return n?.data?.items||[]}loadMore(t,n=2){return this.getRecommendTimes(t,n)}async getRecommendTimes(t,n){let r=(await Promise.all(J_(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=yc(r,i=>i.param),await aa(r,async i=>{let s;const l=Cs.isNormalVideo(i)&&(s=i.bvid||TS(Number(i.param)))?await AS.queryCache(s):void 0;return {...i,api:Je.AppRecommend,uniqId:`${Je.AppRecommend}:${i.param}`,videoDetail:l}},10)}}async function X6e(e,t){return t.pubts?void 0:Qa(e)&&e.videoDetail?.pubdate?e.videoDetail.pubdate:!Cs.isNormalVideoFromFollowedUp(e,t)||!t.bvid?void 0:(await AS(t.bvid))?.pubdate}async function Q6e(e=20,t=1){const n=ci();return (await Fg.get(`https://app.bilibili.com/x/v2/space/likearc?mid=${n}`,{responseType:"json",params:{...hwe,vmid:n,ps:e,pn:t}})).data}function Z6e({service:e}){const{count:t}=e.useStore();return Number.isFinite(t)?_(De,{children:[C(en,{title:`共 ${t} 个视频`,children:C(Ts,{color:"success",variant:"outlined",className:"cursor-pointer",children:t})}),C(nv,{})]}):null}class p1 extends dl{static PAGE_SIZE=20;constructor(){super(p1.PAGE_SIZE);}tabbarView=C(Z6e,{service:this});sidebarView;get hasMoreExceptQueue(){return this.errorJson?false:p1.PAGE_SIZE*this.pn<this.store.count}pn=0;errorJson=void 0;store=_n({count:1/0});useStore=()=>pt(this.store);showErrorNotification(t){Ji.error({key:"LikedRecService:error",title:"获取喜欢列表失败",...t});}async fetchMore(t){if(!ot.accessKey)throw new BR;Ji.destroy("LikedRecService:error");const n=await Q6e(this.qs.ps,this.pn+1);if(!Hr(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 dg(()=>Promise.all(o.map(u=>u.state?AS(TS(u.param)):void 0))),l=o.map((u,d)=>({...u,api:Je.Liked,uniqId:`${Je.Liked}:${u.param}`,videoDetail:s?.[d]}));return this.pn++,this.store.count=r,l}}const oK=bo.extend("modules:rec-services:pc");class _u extends dl{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 J6e(t);this.qs.bufferQueue.push(...n);}getRecommendTimes=async(t,n)=>{const r=(await Promise.all(J_(n).map(()=>this.getRecommend(t)))).flat();return iK(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 Zt.get(r,{signal:t,params:o})).data;return !Hr(s)&&s.code===-62011&&s.message==="暂时没有更多内容了"?(this.hasMoreExceptQueue=false,[]):(s.data?.item||On(s.message||"API 请求没有返回结果"),s.data?.item||[])}}function iK(e){const t=new Set([Fa.AV,Fa.Live,Fa.Ad]);e.forEach(o=>{t.has(o.goto)||oK("uknown goto from API: %s %o",o.goto,o);});const n=new Set([Fa.AV]);return e=e.filter(o=>n.has(o.goto)),e=yc(e,o=>o.id),e.forEach(o=>{o.rcmd_reason?.reason_type===1&&(o.rcmd_reason.content||="已关注");}),e.map(o=>({...o,uniqId:`${Je.PcRecommend}:${o.bvid||o.room_info?.room_id||crypto.randomUUID()}`,api:Je.PcRecommend}))}async function J6e(e){const n=(await nd(()=>{const[i,s]=ic(()=>unsafeWindow.__pinia);return s},{interval:100,timeout:1e3,abortSignal:e}))?.feed?.data?.recommend?.item||[];oK("initial rec rawList: %o",n);const[r,o]=ic(()=>{const i=iK(n);return i.forEach(s=>el(s)),i});return o||[]}const eNe=[rt.KeepFollowOnly,rt.PcRecommend,rt.AppRecommend];function og(e){return eNe.includes(e)}const tNe={[rt.AppRecommend]:()=>new Cs(q6e()),[rt.PcRecommend]:()=>new _u(false),[rt.KeepFollowOnly]:()=>new _u(true),[rt.DynamicFeed]:()=>new HS(L6()),[rt.Watchlater]:({existingService:e})=>{const{watchlaterAddSeparator:t,watchlaterItemsOrder:n}=ot,r=e&&e instanceof rg?e.getServiceSnapshot().bvidIndexMap:void 0;return new rg(n,t,r,Br(gp).searchText)},[rt.Fav]:()=>new VS(k6()),[rt.Hot]:()=>new wAe,[rt.Live]:()=>new rv,[rt.SpaceUpload]:()=>new P6(Fq()),[rt.Liked]:()=>new p1};function sK(e,t){const n=e[t];return Nr(n,`serviceRegistry[tab=${t}] should not be nil`),n}const aK=new ho;class lK{constructor(t){this.insideModal=t;}recSharedEmitter=new ho;serviceRegistry={};serviceQueueMap={};store=_n({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=()=>pt(this.store);setStore=t=>{const n=["tabbarView","sidebarView"];for(const r of n){const o=t[r];typeof o=="object"&&o!==null&&(t[r]=O9(o));}Object.assign(this.store,t);};useTabServiceQueueState=t=>pt(this.store.serviceQueueStateMap)[t];getTabServiceQueueState=t=>Br(this.store.serviceQueueStateMap)[t];setTabServiceQueueState=(t,n)=>{this.store.serviceQueueStateMap[t]=n;};_calcTabBackForwardStatus=(t,n)=>{if(!og(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 B6=f.createContext(new lK);function cK(...e){return Wg(()=>new lK(...e),[])}function ls(){return f.useContext(B6)}function yo(){const{recSharedEmitter:e}=ls();return yS(t=>e.emit("refresh",t))}const zl="size-16px",nNe={[Lt.Initial]:{icon:C(HCe,{className:zl}),label:"初始顺序"},[Lt.Shuffle]:{icon:C(fU,{className:zl}),label:"随机顺序"},[Lt.PubTimeDesc]:{icon:C(eM,{className:zl}),label:"最新投稿"},[Lt.PubTimeAsc]:{icon:C(J3,{className:zl}),label:"最早投稿"},[Lt.PlayCountDesc]:{icon:C(Bg,{className:zl}),label:"最多播放"},[Lt.CollectCountDesc]:{icon:C(Wu,{className:Y(zl)}),label:"最多收藏"},[Lt.FavTimeDesc]:{icon:C(eM,{className:Y(zl)}),label:"最近收藏"},[Lt.FavTimeAsc]:{icon:C(J3,{className:Y(zl)}),label:"最早收藏"}},rNe={all:[Lt.Initial,Lt.Shuffle],"fav-folder":[Lt.FavTimeDesc,Lt.PubTimeDesc,Lt.PlayCountDesc,Lt.CollectCountDesc,"divider",Lt.FavTimeAsc,Lt.PubTimeAsc,"divider",Lt.Shuffle],"fav-collection":[Lt.Initial,Lt.PubTimeDesc,Lt.PlayCountDesc,Lt.CollectCountDesc,"divider",Lt.PubTimeAsc,"divider",Lt.Shuffle]};function uK(e){return e.split(":")[0]}function dK(e){const t=uK(e);return rNe[t]||Object.values(Lt)}function $_(e){const t=uK(e);return t==="fav-folder"?Lt.FavTimeDesc:t==="fav-collection"?Lt.PubTimeDesc:Lt.Initial}function z6(e,t){const n=dK(e).filter(o=>o!=="divider"),r=t.get(e)||$_(e);return n.includes(r)?r:$_(e)}function oNe(e,t){return f.useMemo(()=>z6(e,t),[t,e])}function F6(){const e=yo(),{ref:t,getPopupContainer:n}=Pc(),{selectedKey:r,savedOrderMap:o}=pt(cn),i=oNe(r,o),s=f.useMemo(()=>dK(r),[r]);return C(N6,{value:i,onChange:async l=>{cn.savedOrderMap.set(r,l),await fn(100),e();},list:s,listDisplayConfig:nNe,$ref:t,dropdownProps:{getPopupContainer:n}})}const iNe=bo.extend("modules:rec-services:fav:store");var ig=(e=>(e.CollectionIdFull="fav-collection-id",e.CollectionId="fav-cid",e.FolderIdFull="fav-folder-id",e.FolderId="fav-fid",e))(ig||{});const fK=e=>{if(!e)return;const t=Number(e);if(!Number.isNaN(t))return t},g1=new URLSearchParams(location.search),mK=fK(g1.get("fav-collection-id")??g1.get("fav-cid")),hK=fK(g1.get("fav-folder-id")??g1.get("fav-fid")),sg=tl&&(typeof hK=="number"||typeof mK=="number"),cn=_n({folders:[],foldersUpdateAt:0,selectedFavFolderId:hK,get selectedFavFolder(){if(typeof this.selectedFavFolderId=="number")return this.folders.find(e=>e.id===this.selectedFavFolderId)},collections:[],collectionsUpdateAt:0,selectedFavCollectionId:mK,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( jA("fav-saved-order"))).map,get usingShuffle(){return z6(this.selectedKey,this.savedOrderMap)===Lt.Shuffle},get viewingAll(){return this.selectedKey==="all"},get viewingSomeFolder(){return typeof this.selectedFavFolderId=="number"},get viewingSomeCollection(){return typeof this.selectedFavCollectionId=="number"}});function pK(e,t){const n=cn.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,iNe("update folder(id=%s title=%s) media_count to %s",n.id,n.title,r));}function H6(e=false){return Promise.all([V6(e),lNe(e)])}const sNe=al(async()=>{const e=await PMe();cn.folders=e,cn.foldersUpdateAt=Date.now();});async function V6(e=false){if(!e){const{folders:t,foldersUpdateAt:n}=cn;if(t.length&&n&&Date.now()-n<Zr("5min"))return}return sNe()}const aNe=al(async()=>{const e=await kMe();cn.collections=e,cn.collectionsUpdateAt=Date.now();});async function lNe(e=false){if(!e){const{collections:t,collectionsUpdateAt:n}=cn;if(t.length&&n&&Date.now()-n<Zr("5min"))return}return aNe()}sg&&FA(cn,"selectedLabel",()=>{cn.selectedLabel&&GR(cn.selectedLabel);});cNe();async function cNe(){if(!(tl||iG)||sg)return;const e="fav-store",t=["selectedFavFolderId","selectedFavCollectionId","folders"],n=await GM.getValue(e);if(n)for(const o of t)ts(n[o])||(cn[o]=n[o]);const r=zA(1);oV(cn,t,o=>{if(sg)return;const i=zu(o,t);r(async()=>{await GM.setValue(e,i);});});}const Tm={[rt.AppRecommend]:{icon:C(jCe,{className:"size-18px"}),label:"推荐",desc:"使用 Bilibili App 端推荐 API",anonymousUsage:true},[rt.PcRecommend]:{icon:C(UCe,{className:"size-18px"}),label:"推荐",desc:"使用新版首页顶部推荐 API",anonymousUsage:true},[rt.KeepFollowOnly]:{icon:C(WCe,{className:"size-18px"}),label:"已关注",desc:"从PC端推荐中筛选出「已关注」,可能比较慢; 关注的UP更新在动态~"},[rt.DynamicFeed]:{icon:C(X0,{className:"size-18px"}),label:"动态",desc:"视频投稿动态",swr:true},[rt.Watchlater]:{icon:C(NR,{className:"size-17px [&_.circle]:stroke-current"}),label:"稍后再看",desc:"「我」的稍后再看",swr:true},[rt.Fav]:{icon:C(Wu,{className:"mt--1px size-16px"}),label:"收藏",desc:"「我」的收藏",get swr(){return !cn.usingShuffle}},[rt.Hot]:{icon:C(qCe,{className:"size-16px"}),label:"热门",desc:"各个领域中新奇好玩的优质内容都在这里~",anonymousUsage:true,get swr(){return !iq()}},[rt.Live]:{icon:C(RR,{className:"size-16px"}),label:"直播",desc:"直播~",swr:true},[rt.SpaceUpload]:{icon:C(Q0,{className:"size-16px"}),label:"投稿",desc:"UP 视频投稿",anonymousUsage:true,extraHelpInfo:_("div",{className:"ml-20px",children:["搜索词: 搜索相关作品 ",C("br",{}),"本地过滤词: 本地过滤搜索结果; 本地过滤词支持高级规则:",C("div",{className:"ml-20px",children:Mq})]})},[rt.Liked]:{icon:C(cU,{className:"size-16px"}),label:"赞",desc:"「我」的点赞. 使用 App 端个人空间 API, 需要 access_key"}};function Ai({tabKey:e,active:t,className:n}){const{icon:r}=Tm[e],o=r.props,i={...o,className:or(o.className,n),active:e===rt.Live?t:void 0};return f.cloneElement(r,i)}const gK="你需要登录B站后使用该功能! 如已完成登录, 请刷新网页重试~";function vK(){return On(gK)}function uNe({enabled:e,minIndex:t=0,maxIndex:n,gridRef:r,getScrollerRect:o,changeScrollY:i,videoCardEmitters:s,activeLargePreviewItemIndex:l}){const u=(A,P,N)=>Ro(A,P,{enabled:e,...N}),[d,m]=f.useState(void 0),p=nt(()=>{if(typeof d!="number"||!r.current)return  false;const A=o(),P=r.current.querySelector(`.${ec}.${z9}`)?.getBoundingClientRect();return !(!A||!P||P.top-A.top<-(A.height+P.height)||P.top-A.top>A.height*2+P.height)});function g(A){const P=M(d),N=P.getBoundingClientRect().left,I=V=>Math.abs(N-V)<1;{const V=bK(r.current),U=A==="down"?V:-V,W=M(d+U);if(W){const z=W.getBoundingClientRect().left;if(I(z))return U}}let O=0,D=P;const L=()=>A==="down"?D.nextElementSibling:D.previousElementSibling;for(;L();){if(D=L(),!D.classList.contains(ec))continue;A==="down"?O++:O--;const V=D.getBoundingClientRect().left;if(I(V))return O}return 0}const b=A=>P=>{if(!e)return;P?.preventDefault();let N;if(p()){const I=typeof A=="number"?A:g(A);N=d+I;}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"}),Ro("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 P=w();for(const[N,I]of P.entries())if(I.getBoundingClientRect().top>=A.top)return N;return 0}const $=`.${ec}`;function w(){return [...r.current?.querySelectorAll($)||[]]}function M(A){return w()[A]}function T(A){const P=M(A);P?.scrollIntoViewIfNeeded?.(false);const N=o(),I=P.getBoundingClientRect();if(!(!N||!I)){if(I.top<=N.top){const O=-(N.top-I.top+10);i?.({offset:O});return}if(N.bottom-I.bottom<20){const O=20-(N.bottom-I.bottom);i?.({offset:O});return}}}return {activeIndex:d,clearActiveIndex:y}}const dNe=new Map,fNe=new Map;function bK(e,t=true){const{gridDisplayMode:n,useCustomGrid:r,enableForceColumn:o,forceColumnCount:i,cardMinWidth:s}=ot.grid;if(n===Kr.List)return 1;if(t&&n===Kr.TwoColumnGrid)return 2;if(r&&o&&i)return i;if(e||=document.querySelector(`.${WM}`),!e)return zo("getColumnCount(): gridEl not found"),0;const l=r?dNe:fNe,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 zo('getColumnCount(): gridEl.style.display !== "grid"'),0;const m=d.gridTemplateColumns.split(" ").length;return l.set(u,m),m}const ey=bo.extend("service"),mNe=e=>{if(e.api===Je.Separator)return e.uniqId;const{bvid:t}=el(e);return t||e.uniqId};function BM(e,t){return yc([...e,...t],mNe)}const E_=e=>e===rt.PcRecommend||e===rt.KeepFollowOnly;async function hNe(e,t,n=5){const{tab:r,service:o,abortSignal:i,firstFetch:s}=t;let l=[],u=true;const d=async m=>{if(!og(r)){let b=await o.loadMore(i)??[];b=m1(b,r),l=BM(l,b),u=o.hasMore;return}let p;if(r===rt.KeepFollowOnly)p=8,ey("getMinCount: addMore(restCount = %s) times=%s",m,p);else {const b=E_(r)?_u.PAGE_SIZE:Cs.PAGE_SIZE,S=(()=>{const{enabled:x,byAuthor:$,byTitle:w,minDuration:M,minPlayCount:T,minDanmakuCount:A}=ot.filter;return x||$.enabled||w.enabled||M.enabled||T.enabled||A.enabled})()?n:1.2;p=Math.ceil(m*S/b),ey("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",m,S,b,p);}if(E_(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=m1(g,r),l=BM(l,g),u=o.hasMore;};for(await d(e);;){if(i?.aborted){ey("getMinCount: break for abortSignal");break}if(!u){ey("getMinCount: break for tab=%s hasMore=false",r);break}if(l.filter(p=>p.api!==Je.Separator).length>=e)break;await d(e-l.length);}return l}const j6=()=>bK()*4;async function pNe(e){let t=j6();return e.tab===rt.DynamicFeed&&await e.service.shouldReduceMinCount()&&(t=1),hNe(t,e,5)}function gNe(e,t){let n;switch(e){case rt.DynamicFeed:return n=t[rt.DynamicFeed],!ti(n?.config,L6());case rt.Fav:return n=t[rt.Fav],!ti(n?.config,k6());case rt.Hot:return n=t[rt.Hot],n?.subtab!==Jo.subtab||n.subtab===gr.Rank&&n.service instanceof rq&&n.service.rankTab.slug!==Pi.slug;case rt.SpaceUpload:return n=t[rt.SpaceUpload],!ti(n?.config,Fq());default:return  false}}const yK=5;function vNe({tab:e,debug:t,fetcher:n,preAction:r,postAction:o,updateViewFromService:i,self:s}){const l=ls(),{serviceRegistry:u}=l;vo(()=>{d("reuse");}),bm(()=>{s.abortController.abort();});const d=nt(async(p="refresh")=>{if(l.refreshing&&l.refreshingTab===e)if(gNe(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 $(N){x(),s.setStore({refreshError:N}),console.error(N);}function w(){x(),s.setStore({hasMore:sK(u,e).hasMore});}async function M(N,I){const[O,D]=await dg(()=>n({tab:e,service:N,abortSignal:S,firstFetch:I}));return S.aborted?t("refresh(): tab=%s [aborted], ignoring rest code",e):O?$(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(og(e),"only rec tab can perform back/forward");const[N,I]=l.getTabBackForwardStatus(e);if(p==="back"&&!N)throw new Error("cannot go back");if(p==="forward"&&!I)throw new Error("cannot go forward");const O=l.getTabServiceQueueState(e);Nr(O,"state should not be nil");const{len:D,cursor:L}=O,U=L+(p==="back"?-1:1);if(U<0||U>D-1)throw new Error("cannot go back/forward");const W=l.serviceQueueMap[e]?.get(U);Nr(W,"service should not be nil"),T=W,l.setTabServiceQueueState(e,{cursor:U,len:D}),u[e]=W,A=false;break}default:$m(p);break}if(T){await T.restore();const N=m1(T.qs.bufferQueue,e).slice(0,j6());s.setStore({items:N});const I=!!await M(T);A??=I&&!!Tm[e].swr;}else s.setStore({showSkeleton:true}),A=true;if(A){const[N,I]=ic(()=>tNe[e]({existingService:T}));if(N)return $(N);const O=u[e]?void 0:true;if(u[e]=I,i?.(),og(e)){l.serviceQueueMap[e]||=new xMe.RingBuffer(yK);const L=l.serviceQueueMap[e];L.add(I);const V=L.getBufferLength();l.setTabServiceQueueState(e,{len:V,cursor:V-1});}if(!await M(I,O))return}w(),await o?.();const P=performance.now()-b;t("refresh(): tab=%s [success] cost %s ms",e,P.toFixed(0));}),{recSharedEmitter:m}=ls();return co(m,"refresh",({data:p})=>d(p)),{refresh:d}}const bNe=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),yNe=f.forwardRef(bNe),SNe=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),CNe=f.forwardRef(SNe);function xNe(){const{grid:{useCustomGrid:e,enableForceColumn:t,forceColumnCount:n,cardMinWidth:r},style:o,enableSidebar:i,sidebarAlign:s}=jt();vo(()=>FA(ot,"pureRecommend",async m=>{await fn(0),ES();}));const l=nt(()=>{const m="v0.34.17";GM.setClipboard(m),Rt.success(`已复制当前版本: ${m}`);}),u=f.useRef(null),d=bS(u);return _("div",{className:Pn.tabPane,children:[C(fo,{title:_(De,{children:[C(Ai,{tabKey:rt.AppRecommend,className:"mr-5px mt-2px size-30px"}),"access_key",_(dr,{className:"ml-5px mt-6px size-18px",IconComponent:yNe,tooltipProps:{classNames:{root:"text-14px"}},children:["App 端登录凭证, 使用情况: ",C("br",{}),C(vM,{}),_("div",{className:"group flex items-start",children:[_("div",{className:"w-55px flex flex-none items-center",children:[C(Ai,{tabKey:rt.AppRecommend,className:"mr-1"})," 推荐"]}),_("ul",{className:"flex-1 list-disc pl-20px",children:[C("li",{className:"w-max",children:"获取推荐"}),C("li",{className:"w-max",children:"提交不喜欢"})]})]}),C(vM,{}),_("div",{className:"group flex items-start",children:[_("div",{className:"w-55px flex flex-none items-center",children:[C(Ai,{tabKey:rt.Liked,className:"mr-1"}),"赞"]}),C("ul",{className:"w-max flex-1 list-disc pl-20px",children:C("li",{className:"w-max",children:"获取点赞列表"})})]})]})]}),children:C(c6,{})}),C(fo,{title:"开关",resetSettingPaths:["pureRecommend","multiSelect.showIcon","showBackForwardButtons"],children:_("div",{className:Pn.settingsLine,children:[C(It,{configPath:"pureRecommend",label:"覆盖默认推荐",tooltip:_(De,{children:[Gr("覆盖默认推荐内容",`保留默认首页; 你可以从屏幕边缘找到入口面板, 使用 ${Mo} 的功能.`),"P.S 需要刷新网页"]})}),C(It,{configPath:"multiSelect.showIcon",label:"「多选」按钮",tooltip:"是否显示「多选」按钮"}),C(It,{configPath:"showBackForwardButtons",label:"「后退 / 前进」按钮",tooltip:_(De,{children:["是否显示「后退 / 前进」按钮 ",C("br",{}),"仅推荐 Tab 支持, 最多保留 ",yK," 次刷新历史"]})})]})}),_(fo,{title:_(De,{children:["布局",C(en,{title:"透视",children:C(CNe,{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:Pn.settingsLine,children:C(It,{configPath:"grid.useCustomGrid",label:"使用自定义网格配置",tooltip:_(De,{children:["网格配置指: 网格宽度, 间距, 列数等. ",C("br",{}),Gr(_(De,{children:["使用 ",Mo," 自定义网格配置: 宽度为90%; 可跟随 Bilibili-Evolved 自定义顶栏配置"]}),C(De,{children:"使用 bili-feed4 版本B站首页默认的网格配置"}))]})})}),_("div",{className:Pn.settingsLine,children:["网格列数:",C(yMe,{})]}),_("div",{className:"flex items-center gap-x-4px",children:[C(It,{configPath:"enableSidebar",label:"使用侧边栏",tooltip:Gr("使用侧边栏(如动态 分组/UP 选择)","使用下拉面板")}),_(Rr.Group,{disabled:!i,buttonStyle:"solid",size:"small",value:s,onChange:m=>{ot.sidebarAlign=m.target.value;},children:[C(Rr.Button,{value:jf.Left,className:"inline-flex-center",children:C(ZW,{className:"size-16px"})}),C(Rr.Button,{value:jf.Right,className:"inline-flex-center",children:C(JW,{className:"size-16px"})})]})]}),_("div",{className:"flex items-center",children:["网格显示模式",C(bMe,{className:"ml-xl"})]})]}),_(fo,{title:"样式",resetSettingPaths:["style.general.popoverBorderColorUseColorPrimary","style.pureRecommend.useStickyTabbar","style.pureRecommend.stickyTabbarShadow","grid.useCustomGrid","style.pureRecommend.useWhiteBackground","style.pureRecommend.hideTopChannel"],children:[C("div",{className:Pn.settingsLine,children:C(It,{configPath:"style.general.popoverBorderColorUseColorPrimary",label:"下拉面板使用主题色边框"})}),_("div",{children:[C("div",{className:"flex items-center text-1.2em",children:"全屏推荐"}),_("div",{className:Pn.settingsLine,children:[C(It,{configPath:"style.pureRecommend.useStickyTabbar",label:"固定 Tab 栏",tooltip:Gr("Tab 栏会吸附在顶栏下方","Tab 栏会随页面一起滚动")}),C(It,{disabled:!o.pureRecommend.useStickyTabbar,configPath:"style.pureRecommend.stickyTabbarShadow",label:"固定 Tab 栏时添加边框 & 阴影",tooltip:Gr("Tab 栏在吸附状态下: 加宽, 添加边框 & 阴影","不改变")}),C(It,{configPath:"style.pureRecommend.useWhiteBackground",label:"使用纯白背景",tooltip:_(De,{children:[Gr("纯白背景","浅灰色背景"),"仅影响白色/浅色模式"]})}),C(It,{configPath:"style.pureRecommend.hideTopChannel",label:"隐藏顶部分区和Banner"})]})]})]}),C(fo,{title:_(De,{children:["帮助",_("span",{className:"relative top-4px ml-8px mr-4px inline-flex items-center text-size-14px",children:["当前版本",_(Ts,{color:"green",className:"mx-4px cursor-pointer",onClick:l,children:[Mo," v","0.34.17"]}),C(Iu,{className:"size-16px cursor-pointer",onClick:l})]})]}),children:_("div",{className:Pn.settingsLine,children:[C(en,{title:"来个 Star 支持一下",children:C(lt,{href:"https://github.com/magicdawn/Bilibili-Gate",target:"_blank",children:"GitHub 主页"})}),C(lt,{href:"https://afdian.com/a/magicdawn",target:"_blank",children:"「爱发电」支持"}),C(lt,{href:"https://greasyfork.org/zh-CN/scripts/443530-bilibili-gate",target:"_blank",children:"GreasyFork 主页"}),C(lt,{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(lt,{href:"https://github.com/magicdawn/Bilibili-Gate/releases",target:"_blank",children:"更新日志"})]})})]})}const v1=["filter.byAuthor.keywords","filter.byTitle.keywords","filter.dfByTitle.keywords","filter.dfHideOpusMids.keywords"],U6=ll.filter(e=>e.startsWith("filter.")),M_=oc(U6,v1);async function wNe(){const e=await Vg();v1.reduce((n,r)=>n+(tr(e,r)?.length??0),0)||Rt.warning("列表数据为空!"),await WW(U6,"filter");}async function $Ne(){const e=await GW();if(!e)return;const{pickedPaths:t,pickedSettings:n}=Rc(e,U6);if(!t.length)return On("没有有效的设置!");const r=await Vg();if(!!!(M_.some(l=>{const u=tr(n,l),d=tr(r,l);if(!(ts(u)||ti(u,d)))return  true})||v1.some(l=>{const u=tr(n,l),d=tr(r,l)??[];if(!(!u?.length||!oc(u,d).length))return  true})))return On("没有可导入内容, 导入内容与现有设置相同!",5e3);let i=0,s=0;M_.forEach(l=>{const u=tr(n,l),d=tr(r,l);ts(u)||ti(u,d)||(ss({[l]:u}),i+=1);}),v1.forEach(l=>{const u=tr(n,l),d=tr(r,l)??[];if(!u?.length)return;const m=oc(u,d);m.length&&(ss({[l]:ug([...d,...m])}),s+=m.length);}),Rt.success(`已导入 ${i} 条常规数据, ${s} 条列表数据!`);}const ENe=({title:e,titleId:t,...n},r)=>_("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"})]}),MNe=f.forwardRef(ENe),{Search:TNe}=is;var ANe={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 b1({configPath:e,searchProps:t,disabled:n,className:r,inputClassName:o,listClassName:i,renderHeader:s=Q_}){const l=DU(e),u=f.useMemo(()=>ug(l).toReversed(),[l]),d=["filter.byAuthor.keywords","filter.dfHideOpusMids.keywords"].includes(e),m=C(TNe,{className:Y("my-5px",o),enterButton:"添加",allowClear:true,disabled:n,size:"middle",...t,onSearch:async(S,x)=>{if(!S)return;if(new Set(await LU(e)).has(S)){Rt.warning(`${S} 已存在`);return}await qa(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=_("div",{className:b,css:n&&ANe,children:[g&&C(Qi,{image:Qi.PRESENTED_IMAGE_SIMPLE,description:"空空如也",className:"[&.ant-empty-normal]:my-1 [&.ant-empty-normal]:py-5px"}),p&&u.map(S=>C(SK,{tag:S.toString(),TagComponent:d?RNe:void 0,onDelete:x=>qa(e,{remove:[x]})},S))]});return _(De,{children:[s(m),y]})}const SK=f.memo(function({tag:e,renderTag:t,TagComponent:n,onDelete:r,className:o,...i}){const s=f.useMemo(()=>n?C(n,{tag:e}):(t??=Q_,t(e)),[n,t,e]);return _("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(MNe,{className:"ml-2px size-16px cursor-pointer text-size-12px",onClick:()=>r?.(e)})]})}),RNe=f.memo(function({tag:e}){const{mid:t,remark:n}=f.useMemo(()=>zS(e),[e]),[r,o]=f.useState(void 0);f.useEffect(()=>{(async()=>{if(!t)return;const l=await ku(t);l&&o(l);})();},[t]);const i=t?r||n||t:e;return C(De,{children:C(en,{title:_(De,{children:[!!t&&_(De,{children:["mid: ",t," ",C("br",{})]}),!!n&&_(De,{children:["备注: ",n," ",C("br",{}),n===r&&_(De,{children:['P.S "备注" 与 "用户昵称" 相同, 是之前的数据, 现在你只需要填写 mid, 会自动获取昵称 ',C("br",{})]})]}),!t&&_(De,{children:["使用用户名过滤: 用户可能改名, 建议使用 mid 过滤 ",C("br",{})]})]}),children:_("span",{className:Y("inline-flex items-center justify-center",t?"cursor-pointer":"cursor-[edit]"),children:[t&&C(RG,{className:"mr-2px size-12px"}),t?C("a",{href:tv(t),target:"_blank",style:{color:"inherit"},children:i}):i]})})})}),y1={blockContainer:"b-1px b-gate-border rounded-lg b-solid p-x-2 p-y-1 light:hover:b-gate-primary"};function NNe(){const{filter:{byAuthor:e,byTitle:t,dfByTitle:n,dfHideOpusMids:r}}=jt();return C("div",{className:Y(Pn.tabPane,"pr-15px"),children:C(fo,{title:_(De,{children:[C("span",{children:"内容过滤"}),C(Gu,{configPath:"filter.enabled",className:"ml-10px"}),C("div",{className:"flex-1"}),_(kr,{size:5,children:[_(lt,{onClick:wNe,disabled:!(e.keywords.length||t.keywords.length||n.keywords.length||r.keywords.length),children:[C(qW,{}),"导出"]}),_(lt,{onClick:$Ne,children:[C(KW,{}),"导入"]})]})]}),children:C(TA,{items:[{key:"recommend",label:_("span",{className:"inline-flex-center gap-x-1",children:[C(Ai,{tabKey:rt.AppRecommend}),"推荐 / 热门",_(dr,{className:"ml-1",children:["生效范围: ",C("br",{}),"视频/图文/影视: 推荐类 Tab ",C("br",{}),"UP/标题: 推荐类、热门 Tab ",C("br",{})]})]}),children:C(PNe,{})},{key:"dynamic-feed",label:_("span",{className:"inline-flex-center gap-x-1",children:[C(Ai,{tabKey:rt.DynamicFeed}),"动态",_(dr,{className:"ml-1",children:["使用场景: 关注的 UP 发布的部分内容 ",C("br",{}),_("ol",{children:[C("li",{children:"如果有规律可以按标题关键字过滤"}),C("li",{children:"没有规律可以屏蔽 UP 发布的全部图文动态"})]})]})]}),children:C(INe,{})}]})})})}function PNe(){const{enabled:e,minDuration:t,minPlayCount:n,minDanmakuCount:r,hideGotoTypeBangumi:o,hideGotoTypePicture:i,byAuthor:s,byTitle:l}=jt().filter,u=d=>({label:"「已关注」豁免",tooltipProps:{color:jW},tooltip:_(De,{children:["「已关注」内容不考虑过滤条件, 总是展示",C("br",{}),'"豁免" 一词来源'," ",C("a",{target:"_blank",href:"https://github.com/magicdawn/Bilibili-Gate/issues/1#issuecomment-2197868587",children:"pilipala"})]})});return C(De,{children:_("div",{className:"grid grid-cols-2 gap-15px",children:[_("div",{children:[C("div",{className:Pn.settingsGroupSubTitle,children:"视频"}),_("div",{className:"flex flex-col gap-y-1",children:[_("div",{className:"flex items-center",children:[C(It,{configPath:"filter.minDuration.enabled",label:"按视频时长过滤",tooltip:C(De,{children:"不显示短视频"}),disabled:!e,className:"min-w-130px"}),_(kr.Compact,{children:[C(Tu,{className:"w-130px",size:"small",min:1,step:10,value:t.value,onChange:d=>!ts(d)&&(ot.filter.minDuration.value=d),disabled:!e||!t.enabled}),C(kr.Addon,{children:"秒"})]})]}),_("div",{className:"flex items-center",children:[C(It,{disabled:!e,configPath:"filter.minPlayCount.enabled",label:"按播放次数过滤",tooltip:C(De,{children:"不显示播放次数很少的视频"}),className:"min-w-130px"}),_(kr.Compact,{children:[C(Tu,{className:"w-130px",size:"small",min:1,step:1e3,value:n.value,onChange:d=>!ts(d)&&(ot.filter.minPlayCount.value=d),disabled:!e||!n.enabled}),C(kr.Addon,{children:"次"})]})]}),_("div",{className:"flex items-center",children:[C(It,{disabled:!e,configPath:"filter.minDanmakuCount.enabled",label:"按弹幕条数过滤",tooltip:C(De,{children:"不显示弹幕条数很少的视频"}),className:"min-w-130px"}),_(kr.Compact,{children:[C(Tu,{className:"w-130px",size:"small",min:1,step:100,value:r.value,onChange:d=>!ts(d)&&(ot.filter.minDanmakuCount.value=d),disabled:!e||!r.enabled}),C(kr.Addon,{children:"条"})]})]}),C(It,{configPath:"filter.exemptForFollowed.video",disabled:!e,...u()})]})]}),_("div",{children:[C("div",{className:Pn.settingsGroupSubTitle,children:"图文"}),C(It,{configPath:"filter.hideGotoTypePicture",label:"过滤图文类型推荐",disabled:!e,className:"flex",tooltip:_(De,{children:["过滤 ",C("kbd",{children:"goto = picture"})," 的内容: 包括 (动态 & 专栏) 等"]})}),C(It,{className:"flex",disabled:!e||!i,configPath:"filter.exemptForFollowed.picture",...u()}),C("div",{className:Y(Pn.settingsGroupSubTitle,"mt-2"),children:"影视"}),C(It,{configPath:"filter.hideGotoTypeBangumi",label:"过滤影视类型推荐",tooltip:_(De,{children:["过滤 ",C("kbd",{children:"goto = bangumi"})," 的内容: 包括 (番剧 / 电影 / 国创 / 纪录片) 等"]}),disabled:!e})]}),_("div",{className:Y(y1.blockContainer,"col-span-full"),children:[_("div",{className:Pn.settingsGroupSubTitle,children:["UP",_(dr,{children:["根据 UP 过滤视频 ",C("br",{}),"使用 mid 屏蔽时支持备注, 格式: ",C(Ts,{color:"success",children:"mid(备注)"})," 如"," ",C(Ts,{color:"success",children:"8047632(B站官方)"}),C("br",{}),_("div",{className:"mt-4px flex items-start",children:[C(dU,{className:"mt-3px"}),_("div",{className:"ml-8px flex-1",children:["B站官方支持黑名单, 对于不喜欢的 UP 可以直接拉黑 ",C("br",{}),"此脚本会拉取官方黑名单, 并无视此页开关, 总是会过滤掉 ",C("br",{}),"这里是客户端过滤, 与黑名单功能重复, 优先使用黑名单功能 ",C("br",{})]})]})]}),C(Gu,{configPath:"filter.byAuthor.enabled",disabled:!e,className:"ml-10px"}),C("div",{className:"flex-1"}),_(lt,{onClick:ONe,children:[C(vm,{}),"清理无效备注数据"]})]}),C(b1,{configPath:"filter.byAuthor.keywords",searchProps:{placeholder:"添加UP: 全名 / mid / mid(备注)"},disabled:!e||!s.enabled,className:"mt-2",listClassName:"max-h-130px"})]}),_("div",{className:Y(y1.blockContainer,"col-span-full"),children:[_("div",{className:Y(Pn.settingsGroupSubTitle),children:[C("span",{children:"标题"}),_(dr,{children:["根据标题关键词过滤视频 ",C("br",{}),"支持普通关键字和正则(i), 语法:",C(Ts,{color:"success",variant:"solid",children:"/abc|\\d+/"})]}),C(Gu,{configPath:"filter.byTitle.enabled",disabled:!e,className:"ml-10px"})]}),C(b1,{configPath:"filter.byTitle.keywords",searchProps:{placeholder:"添加过滤关键词"},disabled:!e||!l.enabled,listClassName:"max-h-130px"})]})]})})}function INe(){const{filter:{enabled:e,dfByTitle:t,dfHideOpusMids:n}}=jt();return _("div",{className:"flex flex-col gap-y-15px",children:[_("div",{className:y1.blockContainer,children:[_("div",{className:Pn.settingsGroupSubTitle,children:[C("span",{children:"标题"}),_(dr,{children:["支持普通关键字和正则(i), 语法:",C(Ts,{color:"success",variant:"solid",children:"/abc|\\d+/"}),C("br",{}),"作用范围: 支持的动态类型: 视频 / 图文"]}),C(Gu,{configPath:"filter.dfByTitle.enabled",disabled:!e,className:"ml-10px"})]}),C(b1,{configPath:"filter.dfByTitle.keywords",searchProps:{placeholder:"添加过滤关键词"},disabled:!e||!t.enabled})]}),_("div",{className:y1.blockContainer,children:[_("div",{className:Pn.settingsGroupSubTitle,children:[C("span",{children:"屏蔽 UP 的图文动态"}),_(dr,{children:["支持 mid 或 mid(备注) ",C("br",{}),"右键图文动态可快速添加"]}),C(Gu,{configPath:"filter.dfHideOpusMids.enabled",disabled:!e,className:"ml-10px"})]}),C(b1,{configPath:"filter.dfHideOpusMids.keywords",searchProps:{placeholder:"添加 UP: mid / mid(备注)"},disabled:!e||!n.enabled,listClassName:"max-h-130px"})]})]})}async function ONe(){const e=ot.filter.byAuthor.keywords,t=await aa(e,async n=>{const{mid:r,remark:o}=zS(n);return !r||!o||await ku(r)!==o?n:r},1/0);return ti(t,e)?Rt.warning("没有「无效备注」数据!"):(ot.filter.byAuthor.keywords=t,Rt.success("已清理「无效备注」数据!"))}function DNe(){return _("div",{className:Pn.tabPane,children:[C("div",{className:"mb-10px flex justify-start",children:C(a6,{paths:["fav.useCustomFavPicker.onPlayPage","videoPlayPage.addQuickLinks","videoCard.videoPreview.addTo.searchPage"]})}),_(fo,{title:"视频播放页",children:[C(It,{configPath:"fav.useCustomFavPicker.onPlayPage",label:"使用自定义收藏弹窗",tooltip:_(De,{children:["使用「",Mo,"」提供的选择收藏夹弹窗 ",C("br",{}),_("ul",{className:"ml-20px list-circle",children:[C("li",{children:"支持拼音搜索, 帮你快速找到收藏夹"}),C("li",{children:_("span",{className:"flex-v-center",children:["支持从收藏夹图标 或 快捷键",C($s,{k:"E",className:"mx-1 h-14px py-0 line-height-13px"}),"触发"]})}),C("li",{children:_("span",{className:"flex-v-center",children:[C($s,{k:"Shift+E",className:"mx-1 h-14px flex py-0 line-height-13px"}),"无视此开关, 总是生效"]})})]})]})}),C(It,{configPath:"videoPlayPage.addQuickLinks",label:"添加快速链接",tooltip:C(De,{children:"添加合集快速链接"})})]}),C(fo,{title:"搜索页",children:C(It,{configPath:"videoCard.videoPreview.addTo.searchPage",label:"浮动预览: 添加到「搜索页」",tooltip:C(De,{children:"在搜索页的视频也添加「浮动预览」"})})})]})}function LNe(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 kNe=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return !n||!t?r:LNe(r,n,t)},_Ne=e=>{let{transform:t}=e;return {...t,x:0}};function ag(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function BNe(e,t){return e.reduce((n,r,o)=>{const i=t.get(r);return i&&(n[o]=i),n},Array(e.length))}function ty(e){return e!==null&&e>=0}function zNe(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 FNe(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const CK=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=ag(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}},ny={scaleX:1,scaleY:1},HNe=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,...ny}:null}const u=VNe(i,o,n);return o>n&&o<=s?{x:0,y:-l.height-u,...ny}:o<n&&o>=s?{x:0,y:l.height+u,...ny}:{x:0,y:0,...ny}};function VNe(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 xK="Sortable",wK=q.createContext({activeIndex:-1,containerId:xK,disableTransforms:false,items:[],overIndex:-1,useDragOverlay:false,sortedRects:[],strategy:CK,disabled:{draggable:false,droppable:false}});function jNe(e){let{children:t,id:n,items:r,strategy:o=CK,disabled:i=false}=e;const{active:s,dragOverlay:l,droppableRects:u,over:d,measureDroppableContainers:m}=E3e(),p=Jg(xK,n),g=l.rect!==null,b=f.useMemo(()=>r.map(P=>typeof P=="object"&&"id"in P?P.id:P),[r]),y=s!=null,S=s?b.indexOf(s.id):-1,x=d?b.indexOf(d.id):-1,$=f.useRef(b),w=!zNe(b,$.current),M=x!==-1&&S===-1||w,T=FNe(i);ca(()=>{w&&y&&m(b);},[w,b,y,m]),f.useEffect(()=>{$.current=b;},[b]);const A=f.useMemo(()=>({activeIndex:S,containerId:p,disabled:T,disableTransforms:M,items:b,overIndex:x,useDragOverlay:g,sortedRects:BNe(b,u),strategy:o}),[S,p,T.draggable,T.droppable,M,b,x,u,g,o]);return q.createElement(wK.Provider,{value:A},t)}const UNe=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return ag(n,r,o).indexOf(t)},WNe=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},GNe={duration:200,easing:"ease"},$K="transform",qNe=qf.Transition.toString({property:$K,duration:0,easing:"linear"}),KNe={roleDescription:"sortable"};function YNe(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,s]=f.useState(null),l=f.useRef(n);return ca(()=>{if(!t&&n!==l.current&&r.current){const u=o.current;if(u){const d=Cm(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 XNe(e){let{animateLayoutChanges:t=WNe,attributes:n,disabled:r,data:o,getNewIndex:i=UNe,id:s,strategy:l,resizeObserverConfig:u,transition:d=GNe}=e;const{items:m,containerId:p,activeIndex:g,disabled:b,disableTransforms:y,sortedRects:S,overIndex:x,useDragOverlay:$,strategy:w}=f.useContext(wK),M=QNe(r,b),T=m.indexOf(s),A=f.useMemo(()=>({sortable:{containerId:p,index:T,items:m},...o}),[p,o,T,m]),P=f.useMemo(()=>m.slice(m.indexOf(s)),[m,s]),{rect:N,node:I,isOver:O,setNodeRef:D}=A3e({id:s,data:A,disabled:M.droppable,resizeObserverConfig:{updateMeasurementsFor:P,...u}}),{active:L,activatorEvent:V,activeNodeRect:U,attributes:W,setNodeRef:z,listeners:k,isDragging:G,over:j,setActivatorNodeRef:K,transform:X}=VW({id:s,data:A,attributes:{...KNe,...n},disabled:M.draggable}),B=i2e(D,z),H=!!L,Q=H&&!y&&ty(g)&&ty(x),J=!$&&G,te=J&&Q?X:null,re=Q?te??(l??w)({rects:S,activeNodeRect:U,activeIndex:g,overIndex:x,index:T}):null,oe=ty(g)&&ty(x)?i({id:s,items:m,activeIndex:g,overIndex:x}):T,de=L?.id,ee=f.useRef({activeId:de,items:m,newIndex:oe,containerId:p}),se=m!==ee.current.items,le=t({active:L,containerId:p,isDragging:G,isSorting:H,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}),ae=YNe({disabled:!le,index:T,node:I,rect:N});return f.useEffect(()=>{H&&ee.current.newIndex!==oe&&(ee.current.newIndex=oe),p!==ee.current.containerId&&(ee.current.containerId=p),m!==ee.current.items&&(ee.current.items=m);},[H,oe,p,m]),f.useEffect(()=>{if(de===ee.current.activeId)return;if(de!=null&&ee.current.activeId==null){ee.current.activeId=de;return}const ce=setTimeout(()=>{ee.current.activeId=de;},50);return ()=>clearTimeout(ce)},[de]),{active:L,activeIndex:g,attributes:W,data:A,rect:N,index:T,newIndex:oe,items:m,isOver:O,isSorting:H,isDragging:G,listeners:k,node:I,overIndex:x,over:j,setNodeRef:B,setActivatorNodeRef:K,setDroppableNodeRef:D,setDraggableNodeRef:z,transform:ae??re,transition:Ee()};function Ee(){if(ae||se&&ee.current.newIndex===T)return qNe;if(!(J&&!n6(V)||!d)&&(H||le))return qf.Transition.toString({...d,property:$K})}}function QNe(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}}Tn.Down,Tn.Right,Tn.Up,Tn.Left;const zM=Object.values(rt),ZNe=[rt.SpaceUpload],W6=oc(zM,ZNe),G6=await( VA({value:rt.AppRecommend},"video-source-tab"));{const e=kS();e&&(G6.value=e);}function EK(e){return W6.slice().sort((t,n)=>{let r=e.indexOf(t),o=e.indexOf(n);return r===-1&&(r=zM.indexOf(t)),o===-1&&(o=zM.indexOf(n)),r-o})}function q6(e){const{customTabKeysOrder:t}=jt(e);return f.useMemo(()=>EK(t),[t])}function MK(){const{hidingTabKeys:e,customTabKeysOrder:t}=jt(),n=FR(),r=f.useMemo(kS,[]),o=f.useMemo(()=>EK(t).filter(s=>s===rt.AppRecommend&&!n?true:!e.includes(s)),[e,t,n]);return r?[r]:o}function JNe(){const e=MK();return f.useMemo(()=>e.map(t=>({key:t,...Tm[t]})),[e])}function TK(){const e=pt(G6).value,t=MK(),n=FR(),r=rt.AppRecommend;return !t.includes(e)||!n&&!Tm[e].anonymousUsage?r:e}function AK(){const e=f.useDeferredValue(TK()),t=QR(e),n=q6(),r=f.useMemo(()=>t?n.indexOf(e)>n.indexOf(t)?"right":"left":void 0,[n,e]);return {tab:e,prevTab:t,direction:r}}const ePe={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 RK({className:e}){const t=FR(),n=TK(),r=JNe(),{__internalRecTabRenderAsSegments:o}=jt(),i=nt(u=>{if(!t&&!Tm[u].anonymousUsage&&!AU())return vK();G6.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:ePe,className:"video-source-tab",tabIndex:-1,value:u,children:_("span",{className:"h-full flex items-center line-height-unset",children:[C(Ai,{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:_("div",{className:"flex items-center gap-x-6px",children:[C(Ai,{tabKey:d,active:d===n}),m]})})),[r,n]);l=C(rH,{size:"middle",options:u,value:n,onChange:i});}return _("div",{className:"flex-v-center",children:[o?l:s,C(dr,{className:"ml-6px size-16px",children:C(De,{children:r.map(({key:u,label:d,desc:m,extraHelpInfo:p})=>_(f.Fragment,{children:[_("div",{className:"h-22px flex items-center",children:[C(Ai,{tabKey:u,className:"mr-4px",active:true}),d,": ",m]}),!!p&&p]},u))})})]})}const tPe=({title:e,titleId:t,...n},r)=>_("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"})]}),NK=f.forwardRef(tPe);function nPe(){const{dynamicFeed:e}=jt(),t=q6(),n=r=>({order:t.indexOf(r)+1});return C("div",{className:Pn.tabPane,children:_("div",{className:"grid grid-cols-[250px_1fr] gap-x-50px",children:[C(fo,{title:_(De,{children:["Tab 设置",C(dr,{className:"ml-5px",children:"勾选显示, 拖动排序"})]}),resetSettingPaths:["hidingTabKeys","customTabKeysOrder"],children:C(oPe,{})}),_(fo,{title:"更多设置",contentClassName:"gap-y-15px",resetSettingPaths:["watchlaterAddSeparator","watchlaterUseNormalVideoUrl","fav.addSeparator","dynamicFeed.followGroup.enabled","dynamicFeed.showLive","dynamicFeed.videoOnly","dynamicFeed.whenViewAll.enableHideSomeContents","appRecommend.addOtherTabContents"],children:[_("div",{style:n(rt.Watchlater),children:[_("div",{className:"flex items-center text-size-1.3em",children:[C(Ai,{tabKey:rt.Watchlater,className:"mr-5px mt--1px"}),"稍后再看"]}),_("div",{className:Pn.settingsLine,children:[C(It,{configPath:"watchlaterAddSeparator",label:"添加分割线",tooltip:"添加「近期」「更早」分割线"}),C(It,{configPath:"watchlaterUseNormalVideoUrl",label:"使用普通视频链接",tooltip:Gr("使用普通视频链接","使用「稍后再看」自动列表链接")})]})]}),_("div",{style:n(rt.Fav),children:[_("div",{className:"flex items-center text-size-1.3em",children:[C(Ai,{tabKey:rt.Fav,className:"mr-5px mt--2px"}),"收藏"]}),C("div",{className:Pn.settingsLine,children:C(It,{configPath:"fav.addSeparator",label:"添加分割线",tooltip:"顺序显示时, 按收藏夹添加分割线"})})]}),_("div",{style:n(rt.DynamicFeed),children:[_("div",{className:"flex items-center text-size-1.3em",children:[C(Ai,{tabKey:rt.DynamicFeed,className:"mr-5px mt--2px"}),"动态"]}),_("div",{className:Pn.settingsLine,children:[C(It,{configPath:"dynamicFeed.followGroup.enabled",label:"启用分组筛选",tooltip:_(De,{children:["动态 Tab 启用分组筛选 ",C("br",{}),C(Wq,{})]})}),C(It,{configPath:"dynamicFeed.showLive",label:"在动态中显示直播",tooltip:_(De,{children:["动态里显示正在直播的 UP",C("br",{}),"P.S 仅在选择「全部」时展示"]})}),C(It,{configPath:"dynamicFeed.videoOnly",label:"只显示视频",tooltip:Gr("只获取视频动态: 投稿视频 / 动态视频","获取全部动态: 包含视频 / 图片 / 文章等")}),C(It,{configPath:"dynamicFeed.whenViewAll.enableHideSomeContents",label:"「全部」动态过滤",tooltip:_(De,{children:["查看「全部」动态时 ",C("br",{}),Gr("将添加右键菜单, 点击可添加到「全部」动态的过滤列表","关闭此功能")]})}),e.whenViewAll.enableHideSomeContents&&C(nF,{size:"small",className:"w-full",items:[{key:"1",label:"在「全部」动态中隐藏 UP/分组 的动态",children:C(sPe,{})}]})]})]}),_("div",{style:n(rt.AppRecommend),children:[_("div",{className:"flex items-center text-size-1.3em",children:[C(Ai,{tabKey:rt.AppRecommend,className:"mr-5px"}),"App 推荐"]}),C("div",{className:Pn.settingsLine,children:C("div",{className:"flex items-center",children:rK()})})]})]})]})})}function rPe(){const{hidingTabKeys:e}=jt();return f.useMemo(()=>W6.filter(t=>!e.includes(t)),[e])}function oPe({className:e,style:t}){const n=rPe(),r=q6({sync:true}),o=y2e(b2e(s6)),i=nt(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=ag(r,d,m);ot.customTabKeysOrder=p;});return C("div",{className:e,style:t,children:C(Oi.Group,{className:"block line-height-[unset]",value:n,onChange:s=>{if(!s.length)return Rt.error("至少选择一项!");ss({hidingTabKeys:W6.filter(l=>!s.includes(l))});},children:C(HW,{sensors:o,collisionDetection:$2e,onDragEnd:i,modifiers:[_Ne,kNe],children:C(jNe,{items:r,strategy:HNe,children:r.map(s=>C(iPe,{id:s},s))})})})})}function iPe({id:e}){const{label:t,desc:n}=Tm[e],{attributes:r,listeners:o,setNodeRef:i,transform:s,transition:l,setActivatorNodeRef:u}=XNe({id:e}),d={transform:qf.Transform.toString(s),transition:l};return _("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:[_(Oi,{value:e,className:"inline-flex items-center [&_.ant-checkbox-label]:inline-flex [&_.ant-checkbox-label]:select-none [&_.ant-checkbox-label]:items-center",children:[C(Ai,{tabKey:e,className:"mr-5px"}),C(en,{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(NK,{className:"size-18px"})})]},e)}function sPe(){const{hideIds:e}=pt(ot.dynamicFeed.whenViewAll),t=nt(async o=>{await qa("dynamicFeed.whenViewAll.hideIds",{remove:[o]});}),{groups:n}=pt(rn);return vo(()=>{rn.updateGroups();}),e.length?C("div",{className:"max-h-250px flex flex-wrap gap-10px overflow-y-auto",children:e.map(o=>C(SK,{tag:o,onDelete:t,renderTag:i=>C(aPe,{tag:i,followGroups:n})},o))}):C("div",{className:"flex items-center justify-center",children:C(Qi,{})})}function aPe({tag:e,followGroups:t}){let n,r;e.startsWith(Kf)?n=e.slice(Kf.length):e.startsWith(Ku)&&(r=e.slice(Ku.length));const[o,i]=f.useState(void 0);vo(async()=>{if(!n)return;const g=await ku(n);g&&i(g);});const[s,l]=f.useState(void 0);vo(()=>{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(NG,{className:"mr-2px size-12px"}):r?C(PG,{className:"mr-2px size-16px"}):void 0,[n,r]),p=f.useMemo(()=>n?tv(n):r?OG(r):void 0,[n,r]);return C(De,{children:C(en,{title:d,children:_("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 Q$=[{useBorder:false},{useBorder:true,useBorderOnlyOnHover:true},{useBorder:true,useBorderOnlyOnHover:false}],PK=["「卡片边框」: 禁用","「卡片边框」: 仅在悬浮时显示","「卡片边框」: 总是显示"];function lPe(){return Ro("Shift+B",e=>{const t=zu(ot.style.videoCard,["useBorder","useBorderOnlyOnHover"]),n=Q$.findIndex(s=>ti(s,zu(t,Object.keys(s))));if(n===-1)throw new Error("unexpected curIndex = -1");const r=(n+1)%Q$.length,o=Q$[r];Object.assign(ot.style.videoCard,o);const i=PK[r];Rt.success({key:"hotkey-border",content:i});})}function cPe(){const{videoCard:{actions:{showLargePreview:e,openInPipWindow:t},imgPreview:{enabled:n}},videoLinkOpenMode:r,style:o,autoPreviewUpdateInterval:i}=jt(),s=f.useMemo(()=>Object.values(lr).filter(l=>Ci[l].enabled??true).map(l=>{const u=Ci[l];return {config:u,value:l,label:_("span",{className:"flex-v-center gap-x-8px",children:[u.icon,C("span",{children:u.label})]})}}),[]);return _("div",{className:Pn.tabPane,children:[C(fo,{title:"视频链接",resetSettingPaths:["videoLinkOpenMode"],children:_("div",{className:"flex-v-center",children:["打开方式",_(dr,{useBlackBg:true,children:["选择点击视频(封面图片 或 标题)时打开的模式 ",C("br",{}),s.map(({value:l,config:u})=>!!u.desc&&_("div",{className:"mt-10px flex items-start first:mt-0",children:[_("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(xc,{className:"ml-8px w-160px",options:s,value:r,onChange:l=>{ss({videoLinkOpenMode:l});}})]})}),C(fo,{title:"边框样式",resetSettingPaths:["style.videoCard.useBorder","style.videoCard.useBorderOnlyOnHover","style.videoCard.useBoxShadow"],children:_("div",{className:Pn.settingsLine,children:[C(It,{configPath:"style.videoCard.useBorder",label:"使用卡片边框",tooltip:_(De,{children:["勾选后, 视频卡片会有边框包裹, 更像是一个卡片~ ",C("br",{}),"整个卡片区域可点击 / 可触发预览 / 可使用右键菜单 ",C("br",{}),"否则只是封面区域可以 ",C("br",{}),"使用快捷键 ",C($s,{k:"Shift+B"})," 切换状态 ",C("br",{}),PK.map(l=>C(Ts,{color:"success",className:"mx-1",children:l},l))]})}),C(It,{configPath:"style.videoCard.useBorderOnlyOnHover",label:"仅在悬浮时显示",disabled:!o.videoCard.useBorder,tooltip:Gr("仅在悬浮时显示","常驻显示")}),C(It,{configPath:"style.videoCard.useBoxShadow",disabled:!o.videoCard.useBorder,label:"悬浮卡片时使用发光效果",tooltip:C(De,{children:"悬浮卡片时使用发光效果, 看起来比较花哨~"})})]})}),_(fo,{title:_(De,{children:["快照预览",C(Gu,{configPath:"videoCard.imgPreview.enabled",tooltip:"关闭此功能",className:"ml-3"})]}),resetSettingPaths:["videoCard.imgPreview.enabled","videoCard.imgPreview.autoPreviewWhenKeyboardSelect","videoCard.imgPreview.autoPreviewWhenHover","videoCard.imgPreview.disableWhenMultiSelecting","useDelayForHover","autoPreviewUpdateInterval"],children:[_("div",{className:Pn.settingsLine,children:[C(It,{disabled:!n,configPath:"videoCard.imgPreview.disableWhenMultiSelecting",label:"多选时禁用",tooltip:Gr("多选开启时, 禁用快照预览","不禁用")}),C(It,{disabled:!n,configPath:"useDelayForHover",label:"延迟悬浮预览",tooltip:"延迟悬浮预览"}),C(It,{disabled:!n,configPath:"videoCard.imgPreview.autoPreviewWhenHover",label:"自动预览: 鼠标悬浮",tooltip:_(De,{children:[Gr("鼠标悬浮后自动开始预览, 不跟随鼠标位置","预览进度跟随鼠标位置(百分比)"),"切换设置快捷键: ",C($s,{k:"Shift+P"})]})}),C(It,{disabled:!n,configPath:"videoCard.imgPreview.autoPreviewWhenKeyboardSelect",label:"自动预览: 键盘选中",tooltip:_(De,{children:["手动预览快捷键: ",C($s,{k:"."})," or ",C($s,{k:"P"})]})})]}),_("div",{className:Pn.settingsLine,children:["自动预览更新间隔",C(PA,{disabled:!n,className:"w-500px",min:0,max:1e3,keyboard:true,onChange:l=>ot.autoPreviewUpdateInterval=l,value:i}),_("span",{style:{width:"65px"},children:["(",i,"ms)"]})]})]}),C(fo,{title:_(De,{children:["操作按钮",_(dr,{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:_("div",{className:"grid grid-cols-[repeat(2,max-content)_1fr] items-start gap-x-20px",children:[C(It,{configPath:"videoCard.actions.showLargePreview",label:"浮动预览",tooltip:_(De,{children:["创意来源「浮图秀」, 但使用视频预览 ",C("br",{}),"操作说明: ",C("br",{}),"1. 鼠标悬浮打开 「浮动预览」, 离开关闭 ",C("br",{}),"2. 点击固定「浮动预览」, 固定指: 不再随鼠标移出关闭预览 ",C("br",{}),"3. 可使用以下方式关闭固定的「浮动预览」",_("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(De,{children:"仅当「文档画中画」API 可用时, 勾选生效"})}),C(fc,{className:"grid-col-span-full my-2px py-0"}),_("div",{className:"flex flex-col",children:[C(It,{configPath:"videoCard.videoPreview.useMp4",disabled:!e,label:"浮动预览: 使用 mp4",tooltip:Gr("使用 mp4, 最高 720p, 有声音","使用 dash, 最高 1080p, 无声音, 理论上更快")}),C(It,{configPath:"videoCard.videoPreview.usePreferredCdn",disabled:!e,label:"浮动预览: 使用优选 CDN",tooltip:Gr("使用优选 CDN (降低 MCDN & PCDN 优先级)","使用默认 CDN")}),C(It,{configPath:"videoCard.videoPreview.useScale",disabled:!e,label:"浮动预览: 使用放大效果",tooltip:Gr("浮动预览面板: 放大展开 (类似浮图秀)","浮动预览面板: 滑动展开")}),C(It,{configPath:"videoCard.videoPreview.useVideoCardAsTrigger",label:"浮动预览: 使用视频卡片作为触发器",tooltip:_(De,{children:[Gr("使用「视频卡片」作为触发器","使用「视频卡片右上角按钮」作为触发器, 悬浮视频卡片 1 秒后展开"),C(fc,{className:"my-1"}),C("ul",{className:"ml-25px list-circle",children:C("li",{children:"与上面「浮动预览」开关独立"})})]})})]}),_("div",{className:"flex flex-col",children:[C(It,{configPath:"pipWindow.defaultLocked",disabled:!t,label:"小窗: 默认锁定",tooltip:Gr("小窗打开时: 默认锁定","小窗打开时: 不锁定")}),C(It,{configPath:"pipWindow.autoWebFullscreen",disabled:!t,label:"小窗: 自动网页全屏",tooltip:Gr("自动网页全屏","不启用")})]})]})})]})}function uPe(){const e=xW().id,t=QR(e),{colorPickerThemeSelectedColor:n}=jt(),[r,o]=f.useState(n||Qf.Pink),i=f.useMemo(()=>typeof r=="string"?r:r.toHexString(),[r]);return vo(()=>{Ig.updateThrottled();}),C("div",{children:CW.map(({name:s,themes:l,tooltip:u})=>_(f.Fragment,{children:[_("div",{className:"mt-2 flex items-center text-size-1.5em",children:[s,C(dr,{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:dn("width:",b,"px;background-color:",p?i:d.colorPrimary,";",""),children:m&&C(Kp,{size:18,useAnimation:g})})});d.isCustom&&(S=C(IA,{value:r,onChange:$=>o($),onOpenChange:$=>{$||ss({colorPickerThemeSelectedColor:i});},children:S}));let x=_("div",{className:"min-w-60px cursor-pointer text-center",onClick:$=>{ss({theme:d.id});},children:[S,d.name]});return (d.tooltip||Bk[d.id])&&(x=C(en,{title:_(De,{children:[d.tooltip,Bk[d.id]]}),color:d.colorPrimary,children:x})),x=C(f.Fragment,{children:x},d.id),x})})]},s))})}function dPe(e,t,n){return Ro(e,r=>{const i=!!!tr(ot,t);Xf(ot,t,i),Rt.success({content:`已${i?"启用":"禁用"}「${n}」`,key:`hotkey-${e}`});})}const fPe="basic",T_=_n({tab:fPe});function mPe(){return dPe("Shift+P","videoCard.imgPreview.autoPreviewWhenHover","自动预览: 鼠标悬浮"),lPe(),null}const hPe={name:"4k370z",styles:"&.ant-tabs{.ant-tabs-tab{justify-content:end;padding-inline:5px 15px;}.ant-tabs-nav-operations{display:none;}}"};function pPe({show:e,onHide:t}){const{tab:n}=pt(T_);return _(Yg,{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:[_("div",{className:Bo.modalHeader,children:[_("div",{className:Bo.modalTitle,children:[C(_g,{className:"mr-4px mt--2px size-26px"}),"设置"]}),C(Xg,{onClick:t})]}),C("main",{className:Bo.modalBody,style:{overflow:"hidden"},children:C(TA,{tabPlacement:"start",size:"middle",css:hPe,activeKey:n,onChange:r=>T_.tab=r,items:[{label:"常规设置",key:"basic",children:C(xNe,{})},{label:"视频卡片",key:"video-card",children:C(cPe,{})},{label:"内容过滤",key:"filter",children:C(NNe,{})},{label:"主题选择",key:"theme-select",children:C("div",{className:Pn.tabPane,children:C(uPe,{})})},{label:"Tab 设置",key:"video-source-tab-config",children:C(nPe,{})},{label:"其他页面",key:"other-pages",children:C(DNe,{})},{label:"高级设置",key:"advance",children:C(X3e,{})}]})})]})}const gPe=({title:e,titleId:t,...n},r)=>_("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"})]}),IK=f.forwardRef(gPe);function vPe({children:e,initialOpen:t=false,ref:n}){const[r,o]=mW(t);f.useImperativeHandle(n,()=>o,[o]);const i=C(lt,{onClick:o.toggle,className:"icon-only-round-button",children:C(IK,{className:Y("size-13px",r?"rotate-z-0":"rotate-z-180deg")})});return _(De,{children:[i,r&&e]})}var FM=new Map,ry=new WeakMap,A_=0,bPe;function yPe(e){return e?(ry.has(e)||(A_+=1,ry.set(e,A_.toString())),ry.get(e)):"0"}function SPe(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?yPe(e.root):e[t]}`).toString()}function CPe(e){const t=SPe(e);let n=FM.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},FM.set(t,n);}return n}function xPe(e,t,n={},r=bPe){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}=CPe(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(),FM.delete(o));}}function wPe({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=xPe(p,(A,P)=>{const N=y.current;y.current=A,!(N===void 0&&!A)&&(x({inView:A,entry:P}),b.current&&b.current(A,P),P.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 $=(m=S.entry)==null?void 0:m.target,w=f.useRef(void 0);!p&&$&&!i&&!s&&w.current!==$&&(w.current=$,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 R_(e){return !f.Children.toArray(e.props?.children).length}function $Pe(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 Jl(e){const[t,n,r]=$Pe(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 HM(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])}const jS=nV();function EPe(e){const t=pt(jS);return e?t.get(e):void 0}function MPe(e){jS.delete(e);}function K6(e){if(Qa(e))return e.param;if(vc(e))return e.id.toString()}const TPe=typeof unsafeWindow<"u"?unsafeWindow:globalThis,S1=(e,t)=>{ic(()=>TPe[e]=t);},APe=`${o0}_gridItems`;function RPe(e){const t=e.filter(n=>n.api!==Je.Separator);TAe(t),S1(APe,t);}const NPe={getGenericCardDatas:y6,copyBvidsSingleLine:S6,copyBvidInfos:x6};setTimeout(()=>{Object.entries(NPe).forEach(([e,t])=>{S1(`${o0}_${e}`,t);});});function PPe(e){const{enabled:t,keywords:n}=pt(ot.filter.byAuthor),{blockUpMids:r}=f.useMemo(()=>LM(n),[n]);return e?t&&r.has(e):false}var oy={},Do={},Z$={exports:{}},N_;function IPe(){return N_||(N_=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;})(Z$)),Z$.exports}var P_;function OPe(){if(P_)return Do;P_=1;var e=Ug();Object.defineProperty(Do,"__esModule",{value:true}),Do.isUndef=Do.isString=Do.isObject=Do.isNumber=Do.isFunction=Do.isBoolean=void 0;var t=e(IPe());return Do.isObject=function(r){return r!==null&&(0, t.default)(r)==="object"},Do.isFunction=function(r){return typeof r=="function"},Do.isString=function(r){return typeof r=="string"},Do.isBoolean=function(r){return typeof r=="boolean"},Do.isNumber=function(r){return typeof r=="number"},Do.isUndef=function(r){return typeof r>"u"},Do}var J$={},I_;function DPe(){return I_||(I_=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;})(J$)),J$}var O_;function LPe(){if(O_)return oy;O_=1;var e=Ug();Object.defineProperty(oy,"__esModule",{value:true}),oy.getTargetElement=r;var t=OPe(),n=e(DPe());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 oy}var OK=LPe();async function kPe(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 Zt.get("/x/player/wbi/playurl",{params:o})).data;function u(p){return NM(p,[g=>_Pe(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 NM(l.data?.dash?.video||[],["id","codecid"],["desc","desc"]).map(p=>u([p.baseUrl,...p.backupUrl||[]])[0]).filter(Boolean)}function _Pe(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 Y6(e){return !!(e?.image?.length&&e?.index?.length)}function D_(e){return Hr(e)?Y6(e.data):true}async function BPe(e){const n=(await Zt.get("/x/player/videoshot",{params:{bvid:e,index:"1"}})).data;return Hr(n)||zo("videoshot error for %s: %o",e,n),Y6(n.data)||zo("videoshot data invalid bvid=%s: %o",e,n.data),n}const eE=new $6({maxSize:1e4}),zPe=al(async e=>{if(eE.has(e)){const s=eE.get(e);if(s)return s}const t=5,n=200;let r=0,o;do{if(r++,o=await BPe(e),D_(o))break;await fn(n);}while(r<t);D_(o)&&eE.set(e,o);const i=o.data;if(ot.videoCard.imgPreview.autoPreviewWhenHover){const s=i?.image||[];await S_(s[0]),(async()=>{for(const l of s.slice(1))await S_(l);})();}return o}),FPe=bo.extend("VideoCard:services");function DK(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:Ac()}),i=(await Zt.post(`/x/v2/history/toview/${e}`,r)).data,s=Hr(i);return s||On(i?.message||"出错了"),s}}const VM=DK("add"),HPe=DK("del");async function VPe(e){return {videoshotJson:await zPe(e)}}function jPe(e){return Y6(e?.videoshotJson?.data)}const UPe=e=>!!e?.playUrls?.length,L_=new $6({maxSize:1e4,maxAge:Zr("1h")}),WPe=al(async({bvid:e,cid:t,useMp4:n,usePreferredCdn:r,aspectRatioFromItem:o})=>{const i=JSON.stringify([e,n,r]),s=L_.get(i);if(s)return s;let l;if(t===void 0||o===void 0){const m=await fG(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 dg(()=>kPe(e,t,n,r));if(FPe("playUrl: bvid=%s cid=%s %s",e,t,d),u)throw Ji.error({title:"获取视频播放地址失败",description:u.message||u}),u;return d?.length&&L_.set(i,{playUrls:d,dimension:l}),{playUrls:d??void 0,dimension:l}}),tE=bo.extend("large-preview:LargePreview"),LK={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"}},xo={border:40,card:10};function GPe(e){return e?.closest(aM(ec,"bili-video-card"))?.querySelector(aM(F9,"bili-video-card__image"))?.getBoundingClientRect()}const qPe=f.memo(function({children:t,aspectRatio:n=1.7777777777777777,cardDescendantTarget:r,ref:o,...i}){const s=$S(o),[l,u]=f.useState(false),[d,m]=f.useState(void 0);tE("render state: %o",{visible:l,position:d});const p=nt(()=>{u(false),m(void 0);}),g=nt(()=>{const w=GPe(OK.getTargetElement(r)??void 0);if(!w)return p();const[M,T]=[document.documentElement.clientWidth,document.documentElement.clientHeight],A=40;if(w.top>T-A||w.bottom<0+A||w.left>M-A||w.right<0+A)return p();const P={top:{x:0,y:0,width:M,height:w.top},bottom:{x:0,y:w.bottom,width:M,height:T-w.bottom},left:{x:0,y:0,width:w.left,height:T},right:{x:w.right,y:0,width:M-w.right,height:T}},N=J=>{const te=n,ne=1,re=J.width/te,oe=J.height/ne;return {scale:Math.min(re,oe),scaleLimit:re>oe?"height":"width"}},I=Ba(Object.entries(P).map(([J,te])=>({direction:J,bbox:te,...N(te)})),["scale",J=>{switch(J.direction){case "top":return w.top;case "bottom":return T-w.bottom;case "left":return w.left;case "right":return M-w.right}}],["desc","desc"])[0];tE("picked direction",I);const{direction:O,bbox:D,scale:L,scaleLimit:V}=I;let U,W;if(V==="width")U=Math.floor(D.width-(xo.card+xo.border)),W=U/n;else if(V==="height")W=Math.floor(D.height-(xo.card+xo.border)),U=W*n;else throw new Error("unexpected scaleLimit");let z=0,k=0,G=0,j=0;const K=()=>{G=w.y+w.height/2-k;},X=()=>{j=w.x+w.width/2-z;},B=()=>{if(z<xo.border){z=xo.border;return}if(z+U>M-xo.border){z=M-xo.border-U;return}},H=()=>{if(k<xo.border){k=xo.border;return}if(k+W>T-xo.border){k=T-xo.border-W;return}};switch(O){case "top":z=w.x+w.width/2-U/2,k=w.top-xo.card-W,B(),X();break;case "bottom":z=w.x+w.width/2-U/2,k=w.bottom+xo.card,B(),X();break;case "right":z=w.right+xo.card,k=w.y+w.height/2-W/2,H(),K();break;case "left":z=w.left-xo.card-U,k=w.y+w.height/2-W/2,H(),K();break}z=Math.floor(z),k=Math.floor(k);const Q={direction:O,elWidth:U,elHeight:W,elPosX:z,elPosY:k,arrowTop:G,arrowLeft:j};tE("updating state to: visible: ✅, position: %o ",Q),u(true),m(Q);}),b=f.useMemo(()=>ua(g,100),[g]);vo(g),Ns("resize",b,{target:window}),Ns("scroll",b,{target:window});const{useScale:y}=jt().videoCard.videoPreview,S=y?.2:.3,x=f.useMemo(()=>{const w=d?.direction;if(!w)return;const{axis:M,multiplier:T,reverse:A}=LK[w];if(y)return M==="x"?{scale:.5,transformOrigin:`${A} ${d.arrowTop}px`}:{scale:.5,transformOrigin:`${d.arrowLeft}px ${A}`};{let P=30;return w==="top"&&(P=20),M==="x"?{x:-T*P,y:0}:{x:0,y:-T*P}}},[d,y]);return C("div",{...i,ref:s,className:Y("fixed",pxe,l?"block":"hidden"),css:d&&dn("width:",d.elWidth,"px;height:",d.elHeight,"px;top:",d.elPosY,"px;left:",d.elPosX,"px;",""),children:l&&_($R.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(KPe,{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:dn("box-shadow:0px 0px 1px 1px ",as,";",""),children:t})]})})});function KPe({size:e,direction:t,arrowTop:n,arrowLeft:r}){const{axis:o,multiplier:i,reverse:s}=LK[t],l=f.useMemo(()=>o==="x"?dn`
        ${t}: 100%;
        margin-${t}: -1px;
        top: ${n}px;
        margin-top: -${e/2}px;
      `:dn`
        ${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:[dn("border:",e,"px solid transparent;",""),l,dn`
          border-${t}-color: ${as};
        `,"",""]})}const ef=await( VA({volume:void 0,muted:void 0},"large-preview-store")),YPe=function({currentTimeRef:e,ref:t,...n}){const r=$S(t),o=f.useRef(false);vo(()=>{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=nt(()=>{o.current&&(e.current=r.current?.currentTime);}),s=nt(()=>{o.current&&r.current&&(ef.volume=r.current.volume,ef.muted=r.current.muted);});return C("video",{ref:r,...n,onTimeUpdate:i,onVolumeChange:s})},XPe=({title:e,titleId:t,...n},r)=>_("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"})]}),QPe=f.forwardRef(XPe),ZPe=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),JPe=f.forwardRef(ZPe);function k_(e){e.current!==void 0&&(clearTimeout(e.current),e.current=void 0);}const iy=AZ.extend("large-preview:trigger");function kK({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}=pt(ot.videoCard.videoPreview),x=Jl(void 0),$=yS(async()=>{if(!e||UPe(x.val))return;const ee=await WPe({bvid:i,cid:s,useMp4:b,usePreferredCdn:S,aspectRatioFromItem:m});x.set(ee);});Xa(()=>{x.set(void 0);},[b,S]);const w=Rs($,{manual:true,loadingDelay:100}),[M,T]=f.useState(false),A=Jl(void 0),P=Jl(void 0),N=Jl(void 0),I=HM({}),O=nt(()=>N.val?Date.now()-N.val<1200:false),D=f.useRef(void 0),L=f.useRef(void 0),V=nt(()=>{k_(D),k_(L);}),U=nt((ee,se)=>{iy("%s: showBy %s %s",i,ee,se),T(true),A.set(ee),P.set(se),u.emit("show-large-preview",l),N.set(void 0);}),W=nt((ee=true)=>{ee&&iy("%s: hide",i),T(false),A.set(void 0),P.set(void 0),N.set(Date.now());});co(u,"show-large-preview",({data:ee})=>{ee!==l&&(V(),W(false));});const z=nt(ee=>{if(iy("%s: onMouseEnter %s",i,ee),I.set({...I.val,[ee]:true}),A.val==="click")return;w.run(),V();let se=0;ee==="video-card-action-button"&&(se=200),ee==="video-card"&&(se=1e3),se?D.current=setTimeout(()=>U("hover",ee),se):U("hover",ee);}),k=nt(ee=>{if(iy("%s: onMouseLeave %s",i,ee),I.set({...I.val,[ee]:false}),A.val==="click")return;const se=()=>{I.val.popover||I.val["video-card-action-button"]||W();};V(),ee==="video-card-action-button"||ee==="video-card"||ee==="popover"?L.current=setTimeout(se,250):se();}),G=nt(ee=>{V(),A.val==="click"?W():U("click",ee);}),j=nt(()=>{if(Q.current)return Math.floor(Q.current)}),K=nt(()=>!!(M||O())),X=nt(()=>{if(!i)return;const ee=new URL(`https://${Ya.Main}/video/${i}`),se=j();se&&ee.searchParams.set("t",se.toString()),wi(ee.href),H.current?.pause(),W();}),B=f.useMemo(()=>p6({dimensionFromApi:x.state?.dimension})?.aspectRatio??m,[x.state?.dimension]),H=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]),se=f.useCallback(()=>k("popover"),[k]);ne=te&&_(qPe,{ref:J,aspectRatio:B,onMouseEnter:ee,onMouseLeave:se,cardDescendantTarget:d,children:[C(YPe,{ref:H,currentTimeRef:Q,autoPlay:true,controls:true,loop:true,poster:p,className:"size-full object-contain",children:x.state?.playUrls?.map((le,ae)=>C("source",{src:le},ae))}),_("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(lTe,{className:"size-14px"}),tooltip:"关闭",onClick:le=>{le.preventDefault(),le.stopPropagation(),W();}}):C(ta,{inlinePosition:"right",icon:C(QPe,{className:"size-14px"}),tooltip:"固定",onClick:le=>{le.preventDefault(),le.stopPropagation(),G("popover-action-button");}}),C(ta,{inlinePosition:"right",icon:C(SG,{className:"size-14px"}),tooltip:"新窗口打开",onClick:le=>{le.preventDefault(),le.stopPropagation(),X();}})]})]});}let re;{const ee=f.useCallback(()=>z("video-card-action-button"),[z]),se=f.useCallback(()=>k("video-card-action-button"),[k]),le=f.useCallback(ae=>{ae.preventDefault(),ae.stopPropagation(),G("video-card-action-button");},[G]);re=t&&e&&C(ta,{css:o,...r,visible:n,active:te,inlinePosition:"right",icon:w.loading?C(mU,{className:"size-16px"}):C(JPe,{className:"size-15px"}),tooltip:A.state==="click"&&M?"关闭浮动预览":"浮动预览",onMouseEnter:ee,onMouseLeave:se,onClick:le});}Ro("Escape",W,{conflictBehavior:"allow"}),OEe(()=>W(),[J,()=>OK.getTargetElement(d)?.closest(aM(ec,"bili-video-card"))]),Ns("fullscreenchange",()=>{document.fullscreenElement&&(!M||A.val==="click"||document.fullscreenElement===H.current&&U("click","popover-video-fullscreen-button"));},{target:document});const oe=f.useRef(null),de=g||oe;return Ns("mouseenter",()=>{!y||!g||z("video-card");},{target:de}),Ns("mouseleave",()=>{!y||!g||k("video-card");},{target:de}),{largePreviewActionButtonEl:re,largePreviewEl:ne,getLargePreviewCurrentTime:j,shouldUseLargePreviewCurrentTime:K,largePreviewVisible:M,hideLargePreview:W}}const e5e=Q3e(as,.1),Xi={normalBorder:dn("border-color:",rW,";",""),activeBorder:dn("border-color:",as,";box-shadow:0px 0px 9px 4px ",e5e,";",""),rounded:dn("border-radius:",KR,";",""),bgLv1:dn("background-color:",t1,";",""),coverZoomEffect:{name:"dj03ws",styles:".bili-video-card__cover{transform-origin:center center;transition:transform 0.2s ease-out;transform:scale(1.05);}"}},t5e=dn(Xi.activeBorder," &:hover{",Xi.activeBorder,";}","");function n5e(e){const t=`--${Xr}--separator-color`;return f.useMemo(()=>{if(e)return dn`
      ${Xi.rounded}
      ${Xi.normalBorder}

      background-color: ${lM};
      ${t}:  ${t1};
      &:hover {
        background-color: ${t1};
        ${t}: ${H$e};
      }

      /* disable padding */
      margin-inline: 0;
      .bili-video-card__wrap {
        padding: 0;
      }
    `},[e])}var r5e={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 o5e(){const{useDelayForHover:e,style:{videoCard:{useBorder:t,useBorderOnlyOnHover:n,useBoxShadow:r}}}=jt(),{multiSelecting:o}=pt(kn),i=vMe();return f.useMemo(()=>[r5e,(o||t&&!i)&&[dn("cursor:pointer;",Xi.rounded," &:hover{",Xi.bgLv1," ",Xi.normalBorder," ",r&&Xi.activeBorder," ",e&&Xi.coverZoomEffect,";}",""),(o||!n)&&Xi.normalBorder]],[t,n,r,e,i,o])}function i5e(e){return e&&[Xi.rounded,Xi.activeBorder]}function _K(e){const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){return (await Fg.safeGet(nT+t,{responseType:"json",params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).andThen(o=>{const i=(e==="dislike"?"提交":"撤销")+"不喜欢失败";return oi.validateAxiosResponse(o,i,"请重新获取 access_key 后重试!")}).andThen(o=>mo.ok(o?.message||""))}}const s5e=_K("dislike"),a5e=_K("cancel");function BK(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()});return (await Zt.safePost(t,o)).andThen(i=>oi.validateAxiosResponse(i)).andThen(i=>mo.ok(i?.message))}}const l5e=BK("dislike"),c5e=BK("cancel");function zK(e){return async function(t,n){const{reasonId:r}=M6(n);let o;if(n.platform==="app"?(Nr(Qa(t),"expect app recommend"),o=await(e==="dislike"?s5e:a5e)(t,r)):n.platform==="pc"?(Nr(vc(t),"expect pc recommend"),o=await(e==="dislike"?l5e:c5e)(t,r)):$m(n),o.isErr()){const s=o.error;return console.error(s),Rt.error(s instanceof oi?s.formatAsReactNode():s.message,8),false}const i=K6(t);return Nr(i,"dislikeKey should not be empty"),e==="dislike"&&(Rt.success("已标记不想看"),jS.set(i,{...n})),e==="cancel"&&(Rt.success("已撤销"),MPe(i)),true}}const u5e=zK("dislike"),d5e=zK("cancel"),f5e="_skeleton-active_wlycr_12";function m5e(e,t){const[n,r]=f.useState(void 0),[o,i]=f.useState(void 0),[s,l]=f.useState(void 0),u=nt(async()=>{if(!t)return;const{enable:d}=FK(e.api);if(!(d||qu(e)&&e.from==="fav-folder"))return;const m=await gc.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 FK(e){const t=![Je.Separator,Je.Live,Je.Fav].includes(e),n=e===Je.Watchlater||e===Je.Liked;return {enable:t,enableDetailMenu:n}}function h5e(e,t,n){if(!n)return;const{enable:r,enableDetailMenu:o}=FK(t.api);if(!r)return;const i=e.folderNames??[],s=e.folderUrls??[],l=e.folderIds??[],u=Ei([{key:"quick-fav:faved:modify-fav",icon:C(GCe,{className:Y(Nn,"color-gate-primary")}),label:`已收藏在 ${(i||[]).map(p=>`「${p}」`).join("")}`,async onClick(){Nr(l.length,"folderIds.length should not be empty"),await d1(l,p=>R6(n,l,p));}},o&&{key:"quick-fav:faved:browse-fav-folder-in-self-space",icon:C(To,{className:Nn}),label:"去个人空间查看收藏夹",onClick(){s.forEach(p=>{window.open(p,Xy());});}}]),d=Ei([{key:"quick-fav:unfaved:add-fav",icon:C(Wu,{className:Nn}),label:"收藏到",async onClick(){await _q(async p=>{const g=await gc.addFav(n,p.id);return g.isOk()&&Rt.success(`已加入收藏夹「${p.title}」`),g.isOk()});}},{test:o,key:"quick-fav:unfaved:add-fav-to-default-folder",icon:C(Wu,{className:Nn}),label:"收藏到「默认收藏夹」",async onClick(){const p=await gc.addFav(n);if(p.isOk())return Rt.success(`已加入收藏夹「${SM}」`);Rt.error(typeof p.error=="string"?p.error:p.error.message);}}]);return !!i.length?u:d}function p5e({ctx:e,item:t,cardData:n,tab:r,multiSelecting:o,multiSelectingAppendix:i,onRemoveCurrent:s,recSharedEmitter:l}){if(!qu(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(fV,{className:Nn}),async onClick(){if(!kn.multiSelecting)return;const p=DS().filter($=>qu($)&&$.from==="fav-folder").toReversed(),g=new Set(p.map($=>$.folder.id));if(!g.size)return On("至少选择一项视频");if(g.size>1)return On("多选移动: 只能批量移动同一源收藏夹下的视频");const b=p[0].folder.id,y=p.map($=>`${$.id}:${$.type}`),S=p.map($=>$.uniqId),x=p.map($=>$.title);await d1([t.folder.id],async $=>{Nr($,"targetFolder should not be empty");const w=await gc.moveFavs(y,b,$.id);return w.isErr()?(Rt.error(w.error.message),false):(Zy(t.folder.id),Zy($.id),l.emit("remove-cards",[S,x,true]),Rt.success(`已移动 ${S.length} 个视频到「${$.title}」收藏夹`),true)},false);}}]:[];return Ei([{key:"fav:browse-fav-folder-in-self-space",label:"去个人空间查看收藏夹",icon:C(To,{className:Nn}),onClick(){const{id:p}=t.folder,g=d6(p);window.open(g,Xy());}},{key:"fav:view-fav-in-new-window",label:"在新窗口中查看收藏夹",icon:C(To,{className:Nn}),onClick(){const{id:p}=t.folder,g=`/?${ig.FolderIdFull}=${p}`;window.open(g,Xy());}},{test:!!u,key:"modify-fav",icon:C(AR,{className:Nn}),label:"编辑收藏",async onClick(){await d1(d,async p=>{const g=await R6(u,d,p);return g&&p?.id!==t.folder.id&&s?.(t,n,true),g},false);}},{key:"remove-fav",label:"移除收藏",icon:C(vm,{className:Nn}),async onClick(){if(!await GA.confirm({centered:true,title:"移除收藏",content:_(De,{children:["确定将视频「",t.title,"」",C("br",{}),"从收藏夹「",t.folder.title,"」中移除?"]})}))return;const g=`${t.id}:${t.type}`,b=await gc.removeFavs(t.folder.id,g);if(b.isErr())return Rt.error(b.error.message);Zy(t.folder.id),s?.(t,n);}},...m])}return t.from==="fav-collection"?Ei([{key:"open-fav-collection",label:"浏览合集",icon:C(To,{className:Nn}),onClick(){const{id:m}=t.collection,p=r!==rt.Fav||cn.selectedKey==="all"&&cn.usingShuffle?`/?${ig.CollectionIdFull}=${m}`:sG(m);window.open(p,Xy());}}]):[]}const g5e=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),v5e=f.forwardRef(g5e),b5e=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),y5e=f.forwardRef(b5e),S5e=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),__=f.forwardRef(S5e),Nn="size-16px";function C5e(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:$,authorMid:w}=n,{watchlaterItemsOrder:M,filter:{dfHideOpusMids:{enabled:T}},dynamicFeed:{whenViewAll:{enableHideSomeContents:A}}}=jt(),P=M===Ao.AddTimeAsc?"end":"start",N=M===Ao.AddTimeAsc?"移到最后":"移到最前",{recSharedEmitter:I}=ls(),O=nt(()=>{let ae=S;S.startsWith("/")&&(ae=new URL(S,location.href).href),Ou(ae);}),D=!!w&&Vq(t.api)&&r!==rt.KeepFollowOnly,L=nt(async()=>{if(!w)return Rt.error("UP mid 为空!");await hG.add(w)&&Rt.success(`已加入黑名单: ${$}`);}),V=nt(async()=>{if(!w)return Rt.error("UP mid 为空!");const ae=`${w}`;if(ot.filter.byAuthor.keywords.includes(ae))return On(`已在过滤名单中: ${ae}`);await qa("filter.byAuthor.keywords",{add:[ae]}),$&&K$(w,$),Rt.success(`已加入过滤名单: ${$||w}`);}),U=ts(n.followed)?r===rt.DynamicFeed&&Jp(t)||r===rt.Live&&Jp(t)?true:Qa(t)||vc(t)?O6(x):false:n.followed,W=U,z=nt(async()=>{if(!w||!await GA.confirm({centered:true,title:"取消关注",content:_(De,{children:["确定取消关注「",$,"」?"]})}))return;await ARe.unfollow(w)&&Rt.success("已取消关注");}),k=!!w&&!!$,G=nt(()=>{w&&wi(`/?${$i.Mid}=${w}`);}),j=nt(()=>{w&&wi(`/?${Yi.Mid}=${w}`);}),K=A&&gf(t)&&rn.selectedKey===ng&&!!w,X=nt(async()=>{K&&(await qa("dynamicFeed.whenViewAll.hideIds",{add:[Kf+w]}),K$(w,$||""),Rt.success(`在「全部」动态中隐藏【${$}】的动态`));}),B=T&&gf(t)&&t.modules.module_dynamic.major?.type===Zo.MajorType.Opus&&!!w,H=nt(async()=>{if(!w)return Rt.error("UP mid 为空!");const ae=`${w}`;if(ot.filter.dfHideOpusMids.keywords.includes(ae))return On(`已在过滤名单中: ${ae}`);await qa("filter.dfHideOpusMids.keywords",{add:[ae]}),$&&K$(w,$),Rt.success(`已屏蔽【${$||w}】的图文动态`);}),Q=!!(gf(t)&&bc&&rn.viewingSomeUp&&w),J=f.useMemo(()=>Q&&{label:"动态: 从此项开始查看",key:"动态: 从此项开始查看",icon:C(tM,{className:Nn}),onClick(){const ae=new URL("/",location.href);ae.searchParams.set($i.Mid,w);const Ee=Ja().findIndex(he=>he.api===Je.DynamicFeed&&he.id_str===t.id_str),ce=Ja()[Ee-1]?.id_str||t.id_str;ae.searchParams.set($i.Offset,ce),wi(ae.href);}},[Q,t,w]),te=f.useMemo(()=>Q&&{icon:C(uU,{className:Nn}),label:"动态: 从此项开始截止",key:"动态: 从此项开始截止",onClick(){const ae=new URL("/",location.href);ae.searchParams.set($i.Mid,w),ae.searchParams.set($i.MinId,t.id_str),wi(ae.href);}},[Q,t,w]),ne=f.useMemo(()=>PM&&wM(t)&&!!t.page&&{key:"space-upload-view-start-from-here",label:`投稿: 从此页开始查看 (当前第${t.page}页)`,icon:C(tM,{className:Nn}),onClick(){const ae=new URL(location.href);ae.searchParams.set(Yi.InitialPage,t.page.toString()),wi(ae.href);}},[PM,t]),re=gf(t)||wM(t)?t.groupId:void 0,oe=re!==void 0,de=pt(rn.groups),ee=re!==void 0?de.find(ae=>ae.tagid===re):void 0,se=ee?.name,le=ee?.count;return f.useMemo(()=>{const{watchlaterAdded:ae,hasWatchlaterEntry:Ee,onToggleWatchlater:ce}=i,he={type:"divider"},ge=p?" (多选)":"",Ce=Ei([{key:"copy-link",label:`复制视频链接${ge}`,icon:C(Iu,{className:Nn}),onClick(){kn.multiSelecting?NAe():O();}},{test:!!b,key:"copy-bvid",label:`复制 BVID${ge}`,icon:C(Iu,{className:Nn}),onClick(){kn.multiSelecting?S6():Ou(b);}},{test:!!b&&ot.__internalEnableCopyBvidInfo,key:"copy-bvid-info",label:`复制 BVID 信息${ge}`,icon:C(Iu,{className:Nn}),onClick(){kn.multiSelecting?x6():Ou(C6(n));}},{test:!!y,key:"view-cover",label:"查看封面",icon:C(To,{className:Nn}),onClick(){if(!y)return;wi(y);}}]),Re=Ei([{test:k&&U,key:"查看「投稿」与「动态」的区别",label:"查看「投稿」与「动态」的区别",icon:C(To,{className:Nn}),onClick:()=>wi("https://github.com/magicdawn/Bilibili-Gate?tab=readme-ov-file#%E5%8F%B3%E9%94%AE%E8%8F%9C%E5%8D%95-%E6%9F%A5%E7%9C%8B-up-%E7%9A%84%E6%8A%95%E7%A8%BF--%E6%9F%A5%E7%9C%8B-up-%E7%9A%84%E5%8A%A8%E6%80%81")},{test:k,key:"查看 UP 的投稿",label:"查看 UP 的投稿",icon:C(Q0,{className:Nn}),onClick:j},ne,{test:k&&U,key:"查看 UP 的动态",label:"查看 UP 的动态",icon:C(X0,{className:Nn}),onClick:G},te,J,...k&&oe?Ei([{type:"divider"},{test:k&&oe&&(le===void 0||le<=30),key:"查看分组的投稿",label:"查看分组的投稿",icon:C(Q0,{className:Nn}),onClick:()=>wi(`/?${Yi.GroupId}=${re}`)},{test:k&&oe,key:"查看分组的动态",label:"查看分组的动态",icon:C(X0,{className:Nn}),onClick:()=>wi(`/?${$i.GroupId}=${re}`)},{type:"divider"}]):[],{test:Ee,key:"watchlater",label:ae?"移除稍后再看":"稍后再看",icon:ae?C(vm,{className:Nn}):C(NR,{className:Nn}),onClick(){ce();}},{test:Ee&&ae,key:"watchlater-readd",label:`重新添加稍候再看${r===rt.Watchlater?` (${N})`:""}`,icon:C(v5e,{className:Nn}),async onClick(){const{success:Te}=await ce(void 0,VM);Te&&(Rt.success("已重新添加"),r===rt.Watchlater&&I.emit("move-card-to",[t.uniqId,P]));}},...h5e(o,t,g)??[]]),et=Ei([{test:s,key:"dislike",label:"我不想看",icon:C(MR,{width:15,height:15}),onClick(){l();}},{test:W,key:"unfollow-up",label:"取消关注",icon:C(y5e,{className:Nn}),onClick:z},{test:K,key:"hasEntry_addMidTo_dynamicFeedWhenViewAllHideIds",label:"在「全部」动态中隐藏 UP 的动态",icon:C(__,{className:Nn}),onClick:X},{test:B,key:"hide-up-opus-dynamic",label:"屏蔽此 UP 的图文动态",icon:C(__,{className:Nn}),onClick:H},{test:D,key:"blacklist-up",label:"将 UP 加入黑名单",icon:C(nM,{className:Nn}),onClick:L},{test:D,key:"add-up-to-filterlist",label:"将 UP 加入过滤列表",icon:C(nM,{className:Nn}),onClick:V}]),Ne=p5e({ctx:o,item:t,cardData:n,tab:r,multiSelecting:p,multiSelectingAppendix:ge,onRemoveCurrent:u,recSharedEmitter:I});return Ei([...d,!!Ce.length&&he,...Ce,!!Re.length&&he,...Re,!!et.length&&he,...et,!!Ne.length&&he,...Ne,!!m.length&&he,...m])},[t,n,r,i,o,s,W,D,k,K,B,d,m,p,re,oe,se,le,I,u])}function Kh(e){if(e.altKey)return e.stopPropagation(),true}const lg=Mc(()=>Date.now()),x5e=(Xn().add(1,"minute").startOf("minute").valueOf()-lg.get())%3e4;setTimeout(()=>{lg.update(),setInterval(lg.update,3e4);},x5e);document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&lg.update();});const w5e=f.memo(function({ts:t}){return t?kTe(t)?C($5e,{ts:t}):C(HK,{ts:t}):null});function HK({ts:e}){return f.useMemo(()=>_Te(e),[e])}function $5e({ts:e}){const t=lg.use();return C(HK,{ts:e},t)}const E5e=Y(NZ,"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"),M5e=Y("line-clamp-2 mt-10px h-auto whitespace-normal"),T5e=dn("background-color:oklch(from ",as," calc(l * 0.1 + 0.88) calc(c * 0.25) h);",JU," &{background-color:oklch(from ",as," calc(l * 0.3 + 0.175) calc(c * 0.25) h);}",""),A5e=dn("color:",as,";border-radius:2px;border:1px ",as," solid;line-height:20px;padding:0 10px;transform:scale(0.8);transform-origin:center left;",""),sy={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 R5e={name:"15xw6zv",styles:"display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis;max-width:100%"},N5e={name:"feo88y",styles:".bili-video-card .bili-video-card__info--tit>a&{font-family:inherit;font-weight:initial;}"},P5e={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 VK=f.memo(function({item:e,cardData:t,handleVideoLinkClick:n,className:r,gridDisplayMode:o}){const{useBorder:i}=pt(ot.style.videoCard),s=wm(),l=u6(o),{goto:u,href:d,title:m,titleRender:p,pubts:g,pubdateDisplay:b,pubdateDisplayForTitleAttr:y,recommendReason:S,authorName:x,authorFace:$,authorMid:w,appBadge:M,appBadgeDesc:T,rankingDesc:A,liveExtraDesc:P}=t,N=u==="av",I=w?tv(w):d,O=e.api===Je.Live&&e.live_status===Zs.Streaming,{data:D}=Rs(()=>X6e(e,t),{refreshDeps:[e,t]}),L=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]),V=or(E5e,l&&M5e);return _("div",{className:Y(l?"pt-5px":"pt-15px","flex gap-x-5px overflow-hidden px-5px",i?"mb-10px":"mb-5px",r),children:[!!w&&_("a",{href:I,target:s,className:Y("relative flex-center self-start rounded-full p-1px ring-1px",O?"ring-gate-primary":"ring-gate-border"),children:[$?C(Eu,{src:D6($)}):C(Eu,{children:x?.[0]||T?.[0]||""}),O&&C(RR,{active:true,className:"absolute bottom-0 right-0 size-12px rounded-full bg-gate-primary"})]}),_("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:P5e,children:C("a",{onClick:n,onContextMenu:Kh,href:d,target:s,rel:"noopener",css:N5e,children:p??m})}),U()]})]});function U(){const W=!!S&&C("div",{title:S,css:T5e,className:V,children:S}),z=()=>{let k;return g||D?k=C(w5e,{ts:g||D}):b&&(k=b),_(De,{children:[_("a",{className:"bili-video-card__info--owner",href:I,target:s,title:L,css:sy,onContextMenu:Kh,children:[C("span",{className:"bili-video-card__info--author",children:x}),!!k&&_("span",{className:"bili-video-card__info--date",children:[I6,k]})]}),W]})};return N?z():M||T?_("a",{className:"bili-video-card__info--owner",css:sy,href:d,target:s,onContextMenu:Kh,children:[!!M&&C("span",{css:A5e,children:M}),!!T&&C("span",{children:T})]}):dG(e)&&A?C("div",{css:sy,children:A}):Jp(e)||vc(e)&&e.goto===Fa.Live?_(De,{children:[_("a",{css:[sy,R5e,"",""],href:I,target:s,title:(x||"")+(P||""),onContextMenu:Kh,children:[x,P&&C("span",{className:"ml-4px",children:P})]}),W]}):z()}}),I5e=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),O5e=f.forwardRef(I5e),D5e=f.memo(function({loading:t}){return _("div",{className:Y("bili-video-card__skeleton",{hide:!t,[f5e]:t}),children:[C("div",{className:"bili-video-card__skeleton--cover",style:{borderRadius:KR}}),_("div",{className:"bili-video-card__skeleton--info px-5px",children:[C("div",{className:"bili-video-card__skeleton--avatar size-32px rounded-full"}),_("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"})]})]})]})}),Mi={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"},L5e=f.memo(function({item:t,cardData:n,dislikedReason:r,emitter:o=pU}){const i=nt(async()=>{await d5e(t,r);});co(o,"cancel-dislike",i);const{text:s,helpText:l}=f.useMemo(()=>M6(r),[r]);return _("div",{className:Mi.wrapper,children:[C("div",{className:Mi.cover,children:_("div",{className:Mi.coverInner,children:[C(O5e,{className:"size-2.5em"}),C("div",{className:Mi.dislikeReason,children:s}),C("div",{className:Mi.dislikeDesc,children:l||"将减少此类内容推荐"})]})}),C(jK,{item:t,cardData:n,onClick:i})]})});function jK({item:e,cardData:t,onClick:n}){return _("div",{className:Mi.action,children:[C(VK,{item:e,cardData:t,className:"invisible"}),C("div",{className:Mi.actionInner,children:_("button",{className:Mi.actionButton,onClick:n,children:[C(TR,{className:"mr-4px mt--2px"}),"撤销"]})})]})}const B_=f.memo(function({item:t,cardData:n,blockType:r}){const{authorMid:o,authorName:i}=n,s=r==="blacklist"?"已拉黑":"已加入过滤列表",l=nt(()=>r==="blacklist"?u():d()),u=nt(async()=>{if(!o)return;await hG.remove(o)&&Rt.success(`已移出黑名单: ${i}`);}),d=nt(()=>{if(!o)return;const m=ot.filter.byAuthor.keywords.filter(p=>zS(p).mid===o);qa("filter.byAuthor.keywords",{remove:m}),Rt.success(`已移出过滤列表: ${i}`);});return _("div",{className:Mi.wrapper,children:[C("div",{className:Mi.cover,children:_("div",{className:Mi.coverInner,children:[C(nM,{className:"size-32px"}),C("div",{className:Mi.dislikeReason,children:s}),_("div",{className:Mi.dislikeDesc,children:["UP: ",i]})]})}),C(jK,{item:t,cardData:n,onClick:l})]})}),k5e=Y("pointer-events-none absolute inset-0 overflow-hidden",axe,"rounded-b-none rounded-t-gate-video-card"),_5e=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}));vo(()=>{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 zf(S()??0,0,1)},[r]),g=f.useMemo(()=>o??Math.floor((t||0)*p),[o,t,p]),b=nt(()=>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(k5e,i),children:!!(n&&d.width&&d.height&&p)&&C(B5e,{...y})})}),B5e=f.memo(function({t,progress:n,pvideo:r,elWidth:o,elHeight:i}){let s=f.useMemo(()=>z5e(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,$=o*l,w=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:`${$}px ${w}px`},children:C(UK,{progress:n})})});function UK({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 z5e(e,t){let n=F5e(e,t);if(n!==-1)return n;if(t>e.at(-1))return n=e.length-1,n}function F5e(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 H5e=C(MR,{className:"size-16px"});function V5e({item:e,authed:t,actionButtonVisible:n}){const r=Qa(e)&&!!e.three_point?.dislike_reasons?.length||vc(e),o=nt(async s=>{if(s?.preventDefault(),s?.stopPropagation(),!r)return Rt.error("当前视频不支持提交「我不想看」");const l=K6(e);if(l&&jS.has(l))return;let u;if(Qa(e)){if(!t)return On("请先获取 access_key !");u=(e.three_point?.dislike_reasons||[]).map(d=>({platform:"app",...d}));}else vc(e)?u=DRe:$m(e);await BRe(u,d=>u5e(e,d));});return {dislikeButtonEl:r&&C(ta,{visible:n,inlinePosition:"left",icon:H5e,tooltip:"我不想看",onClick:o}),hasDislikeEntry:r,onTriggerDislike:o}}const j5e=({title:e,titleId:t,...n},r)=>_("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})]}),U5e=f.forwardRef(j5e),W5e=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),G5e=f.forwardRef(W5e),q5e=U5e,K5e=G5e;function Y5e({multiSelecting:e,multiSelected:t,uniqId:n}){const r=nt(l=>{const{selectedIdSet:u,multiSelecting:d}=kn;if(!d)return;l?.preventDefault(),l?.stopPropagation();const m=!!l?.shiftKey;kn.shiftMultiSelectAnchorUniqId??=n,m||(kn.shiftMultiSelectAnchorUniqId=n),m?PAe(kn.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",lxe)}),s=e&&C(t?K5e:q5e,{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 X5e(...e){}function Q5e({uniqId:e,recSharedEmitter:t,title:n,active:r,videoDuration:o,tryFetchImagePreviewData:i,imagePreviewDataBox:s,autoPreviewWhenHover:l,videoPreviewWrapperRef:u}){const d=nt(()=>{const H=s.val?.videoshotJson?.data;return !!(H?.index?.length&&H?.image?.length)}),[m,p]=f.useState(false),[g,b]=Lk(),[y,S]=Lk(),x=nt(()=>g||0),[$,w]=f.useState(false),M=Jl(false),T=Jl(false),A=HM(false),[P,N]=f.useState(void 0),I=H=>{const Q=u.current?.getBoundingClientRect();if(!Q)return;const{x:J,width:te}=Q,ne=H.pageX-window.scrollX-J;N(ne/te);};Ns("mouseenter",async H=>{t.emit("mouseenter",e),M.set(true),I(H);const Q=i(),J=800;let te;ot.useDelayForHover&&(te=fn(J)),await Promise.all([Q,te].filter(Boolean)),M.val&&(T.set(true),l&&!D.val&&d()&&W(true));},{target:u});const O=nt(()=>{M.set(false),T.set(false);});Ns("mouseleave",O,{target:u}),co(t,"mouseenter",({data:H})=>{H!==e&&O();}),Ns("mousemove",H=>{w(true),M.val&&(!T.val||!l)&&I(H),l||V.stop();},{target:u});const D=HM(void 0),L=f.useRef(void 0),V=Z5e({startByHoverBox:A,isHoveringBox:M,active:r,mouseMoved:$,idBox:D,autoPreviewWhenHover:l,setAutoPreviewing:p,setPreviewT:S,setPreviewProgress:b,onResume(){L.current?.();}}),U=nt(async()=>{if(!D.val){await i(),d()&&W(false);return}V.togglePaused();}),W=nt(H=>{A.set(H),w(false),V.reset(),V.stop(true),p(true),b(re=>re===void 0?0:re),S(void 0);const Q=8e3;let J=performance.now(),te=0;L.current=()=>{J=performance.now()-x()*Q;};function ne(re){if(V.shouldStop())return V.stop();if(!V.paused){const oe=performance.now(),de=oe-J,ee=zf(de%Q/Q,0,1);if(b(ee),(!te||oe-te>=ot.autoPreviewUpdateInterval)&&(b(ee),te=oe,o)){const se=zf(Math.round(ee*o),0,o);S(se);}}D.val=requestAnimationFrame(ne);}D.val=requestAnimationFrame(ne);}),z=M.state,k=T.state,G=s.state?.videoshotJson?.data,j=!!G?.image?.length&&!!o&&(k||r)&&(l?m:true),K=f.useRef(null);let X,B;if(j){const H={videoDuration:o,pvideo:G};l?X={...H,progress:g,t:y}:X={...H,progress:P},B=C(_5e,{ref:K,...X});}return {onHotkeyPreviewAnimation:U,onStartPreviewAnimation:W,autoPreviewing:m,mouseProgress:P,previewProgress:g,previewT:y,isHovering:z,isHoveringAfterDelay:k,shouldShowPreview:j,previewImageRef:K,previewImgProps:X,previewImageEl:B}}function Z5e({startByHoverBox:e,isHoveringBox:t,idBox:n,active:r,mouseMoved:o,autoPreviewWhenHover:i,setAutoPreviewing:s,setPreviewT:l,setPreviewProgress:u,onResume:d}){const m=pW(),p=nt(()=>{if(m.current)return  true;if(e.val){if(!t.val)return  true}else if(!r||o)return  true;return  false}),g=nt((S=false)=>{S||X5e("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 J5e({item:e,cardData:t,onRemoveCurrent:n,actionButtonVisible:r,watchlaterAdded:o}){const{avid:i,bvid:s}=t,l=f.useMemo(()=>Qa(e)||vc(e)?e.goto==="av":e.api===Je.Rank?t.goto==="av":e.api===Je.Live?false:!!s,[e,t]),u=Rs((x,$)=>x($),{manual:true}),d=QR(o),m=nt(async(x,$)=>{if(x?.preventDefault(),x?.stopPropagation(),u.loading)return {success:false};if(!i||!s)return {success:false};$??=o?HPe:VM;const w=await u.runAsync($,i),M=$===VM;return w&&(M?Yu.bvidSet.add(s):Yu.bvidSet.delete(s),e.api===Je.Watchlater?M||(await fn(250),n?.(e,t)):Rt.success(`已${M?"添加":"移除"}稍后再看`)),{success:w,targetState:M}}),p=18,g=u.loading?C(mU,{className:"size-16px"}):e.api===Je.Watchlater?o?C(vm,{className:"size-16px"}):C(Kp,{size:p,useAnimation:d===true}):o?C(Kp,{size:p,useAnimation:d===false}):C(NR,{className:"size-20px"}),b=e.api===Je.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 z_=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&&el(r),[r]),S=f.useMemo(()=>r?K6(r):void 0,[r]),x=EPe(S),$=KMe(y?.authorMid),w=PPe(y?.authorMid),M=V6e(y?.bvid),T=MAe(r?.uniqId),A=!!x,P=$,N=w,O=n5e(A||P||N),D=Y("bili-video-card",ec,{[z9]:i},"relative",n),L=[m,O,u6(p)&&rM.card,g&&T&&t5e];return C("div",{"data-bvid":y?.bvid,style:t,className:D,css:L,...b,children:o?C(D5e,{loading:o}):r&&y&&(A?C(L5e,{item:r,cardData:y,emitter:l,dislikedReason:x}):P?C(B_,{item:r,cardData:y,blockType:"blacklist"}):N?C(B_,{item:r,cardData:y,blockType:"filter"}):C(t4e,{item:r,cardData:y,active:i,emitter:l,recSharedEmitter:u,tab:d,onRemoveCurrent:s,watchlaterAdded:M,gridDisplayMode:p,multiSelecting:g,multiSelected:T}))})});var e4e={name:"vpmszz",styles:"background-color:unset;position:static;height:100%"};const t4e=f.memo(function({item:t,cardData:n,tab:r,active:o=false,onRemoveCurrent:i,emitter:s=pU,recSharedEmitter:l=aK,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:$,disableWhenMultiSelecting:w}},spaceUpload:{showVol:M},__internalEnableCopyBvidInfo:T}=jt(),{avid:A,bvid:P,cid:N,goto:I,href:O,title:D,cover:L,duration:V,durationStr:U,recommendReason:W,statItems:z,authorName:k,authorMid:G}=n,j=!!g,K=I==="av",X=["av","bangumi","picture","live","opus"];X.includes(I)||zo(`none (${X.join(",")}) goto type %s`,I,t);const B=u6(d),H=f.useMemo(()=>p6({item:t})?.aspectRatio,[t]),Q=f.useMemo(()=>!(!P||!P.startsWith("BV")||I!=="av"),[P,I]),J=!(!x||w&&m),te=Jl(void 0),ne=yS(async()=>{if(!Q||!J||jPe(te.val))return;const at=await VPe(P);te.set(at),Hr(at.videoshotJson)||re(at.videoshotJson);}),re=yG(at=>{Ji.warning({title:`${at.message} (code: ${at.code})`,description:`${D} (${P})`,duration:2});},3,false),oe=f.useRef(null),de=f.useRef(null),ee=b&&!B?oe:de,{onStartPreviewAnimation:se,onHotkeyPreviewAnimation:le,isHovering:ae,previewImageEl:Ee}=Q5e({uniqId:t.uniqId,recSharedEmitter:l,title:D,active:o,videoDuration:V,tryFetchImagePreviewData:ne,imagePreviewDataBox:te,autoPreviewWhenHover:$,videoPreviewWrapperRef:ee});Xa(()=>{o&&(S1(`${o0}_activeItem`,t),S1(`${o0}_activeCardData`,n),ot.videoCard.imgPreview.autoPreviewWhenKeyboardSelect&&ne().then(()=>{se(false);}));},[o]);const ce=o||ae,{watchlaterButtonEl:he,context:ge}=J5e({item:t,cardData:n,onRemoveCurrent:i,actionButtonVisible:ce,watchlaterAdded:u}),{dislikeButtonEl:Ce,hasDislikeEntry:Re,onTriggerDislike:et}=V5e({item:t,authed:j,actionButtonVisible:ce}),{largePreviewActionButtonEl:Ne,largePreviewEl:ve,shouldUseLargePreviewCurrentTime:Te,getLargePreviewCurrentTime:Se,largePreviewVisible:Ie,hideLargePreview:Ue}=kK({shouldFetchPreviewData:Q,actionButtonVisible:ce,hasLargePreviewActionButton:S.showLargePreview,bvid:P,cid:N,uniqId:t.uniqId,recSharedEmitter:l,cardTarget:oe,aspectRatioFromItem:H,cover:L,videoCardAsTriggerRef:ee}),je=m5e(t,A),{onOpenWithMode:qe,handleVideoLinkClick:Ze,consistentOpenMenus:Ye,conditionalOpenMenus:Be,openInPopupActionButtonEl:Ke,onOpenInPopup:Qe}=bTe({href:O,item:t,cardData:n,actionButtonVisible:ce,hasOpenInPopupActionButton:S.openInPipWindow,getLargePreviewCurrentTime:Se,hideLargePreview:Ue,shouldUseLargePreviewCurrentTime:Te}),{multiSelectBgEl:ke,multiSelectEl:Oe,toggleMultiSelect:ct}=Y5e({multiSelecting:m,multiSelected:p,uniqId:t.uniqId}),Ot=nt(at=>{b&&(at.target.closest(".ant-dropdown-menu")||at.target.closest("a")||qe());});co(s,"open",()=>qe()),co(s,"open-in-popup",Qe),co(s,"open-with-large-preview-visible",()=>{Ie&&(Ue(),qe());}),co(s,"toggle-watch-later",()=>{ge.onToggleWatchlater();}),co(s,"trigger-dislike",()=>{et();}),co(s,"start-preview-animation",se),co(s,"hotkey-preview-animation",le);const mt=C5e({item:t,cardData:n,tab:r,watchlaterContext:ge,favContext:je,hasDislikeEntry:Re,onTriggerDislike:et,onRemoveCurrent:i,consistentOpenMenus:Ye,conditionalOpenMenus:Be,multiSelecting:m}),kt=nt(at=>{at&&je.updateFavFolderNames();}),yt=!!n.cardTags?.some(v6),Dt=dG(t),ft=Jp(t)&&t.live_status===Zs.Streaming||vc(t)&&t.goto===Fa.Live,ut=r===rt.AppRecommend&&!Qa(t)&&!Jp(t),vt=wM(t)&&M||qu(t)&&!!t.vol&&!ut,He=T&&P&&C(ta,{visible:ce,inlinePosition:"right",icon:C(Iu,{className:"size-14px"}),tooltip:"复制 BVID 信息",onClick:at=>{at.stopPropagation(),at.preventDefault(),Ou(C6(n));}}),Ge=_(De,{children:[m&&Oe,Ce,Dt&&C(TTe,{item:t}),ft&&C(ATe,{}),ut&&C(RTe,{item:t}),vt&&!!t.vol&&C(NTe,{vol:t.vol,volTooltip:qu(t)?t.volTooltip:void 0}),yt&&n.cardTags?.map(at=>C(ETe,{tag:at},at.key))]}),be=_(De,{children:[he,He,Ke,Ne]}),Me=!R_(Ge),ye=!R_(be),me=or("left-top-marks",eg.topContainer("left"),m&&"gap-x-10px"),Le=uG(t)&&t.progress>0?C(UK,{progress:t.progress/t.duration,className:Y("h-3px",sxe)}):void 0,xe=`.${Ls} .${ec}`,ze=f.useMemo(()=>[dn(xe," &{overflow:hidden;border-radius:",KR,";transition:border-radius 0.2s ease;}",""),!B&&[(o||m||b&&!y)&&dn(xe," &{border-bottom-left-radius:0;border-bottom-right-radius:0;}",""),b&&dn(xe,":hover &{border-bottom-left-radius:0;border-bottom-right-radius:0;}","")]],[B,o,m,b,y]),tt=f.useMemo(()=>b&&!y||m?false:!b||b&&y&&!ae,[b,y,ae,m]),it=wm(),dt=_("a",{ref:de,href:O,target:it,className:Y(F9,"relative isolate block aspect-16/9 w-100% overflow-hidden",tt&&"ring-1px ring-gate-border"),css:[ze,B&&rM.cover,"",""],onClick:Ze,onContextMenu:at=>{Kh(at)||at.preventDefault();},children:[L?C(AG,{src:`${L}@672w_378h_1c_!web-home-common-cover`,className:"bili-video-card__cover size-full",imgProps:{alt:D},style:{borderRadius:0}}):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})}),_("div",{className:"bili-video-card__stats",css:dn(xe," &{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:at,value:Ve})=>C(JTe,{field:at,value:Ve},at))}),C("span",{className:"bili-video-card__stats__duration relative top-0.5px",children:K&&U})]}),Le,J&&Ee,ke,Me&&C("div",{className:me,children:Ge}),ye&&C("div",{className:Y("right-actions",eg.topContainer("right")),children:be})]}),Et=C(VK,{item:t,cardData:n,gridDisplayMode:d,handleVideoLinkClick:m?ct:Ze}),_t=C(De,{children:ve});function Nt(at){return C(Ec,{trigger:["contextMenu"],onOpenChange:kt,getPopupContainer:()=>oe.current?.closest(`.${ec}`)??document.body,rootClassName:Y(gxe,hQ),menu:{items:mt,className:"w-max"},children:at})}function pn(at){return C("div",{className:"bili-video-card__wrap",ref:oe,css:[e4e,B&&rM.cardWrap,"",""],onClick:m?ct:Ot,onContextMenu:Ve=>{b&&Ve.preventDefault();},children:at})}const Wn=b&&!B?Nt(pn(_(De,{children:[dt,Et]}))):pn(_(De,{children:[Nt(dt),Et]}));return _(De,{children:[Wn,_t]})}),n4e=({title:e,titleId:t,...n},r)=>_("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,_("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"})]})]}),r4e=f.forwardRef(n4e),tf=bo.extend("components:RecGrid"),WK="grid-col-span-full";class o4e{store=_n({refreshKey:-1,showSkeleton:false,hasMore:true,refreshError:void 0,loadMoreError:void 0,items:[]});get refreshKey(){return this.store.refreshKey}get refreshKeyValid(){return this.refreshKey>0}get showSkeleton(){return this.store.showSkeleton}get items(){return this.store.items}get hasMore(){return this.store.hasMore}get refreshError(){return this.store.refreshError}get loadMoreError(){return this.store.loadMoreError}useStore=()=>pt(this.store);setStore=t=>{const n=["items","refreshError","loadMoreError"];for(const r of n)typeof t[r]=="object"&&(t[r]=O9(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 GK=f.memo(function({className:t,containerClassName:n,shortcutEnabled:r,tab:o,infiniteScrollUseWindow:i,onScrollToTop:s,scrollerRef:l,ref:u}){const d=ls(),{serviceRegistry:m,recSharedEmitter:p}=d,{refreshing:g}=d.useStore(),b=Wg(()=>new o4e,[]),{items:y,hasMore:S,refreshError:x,refreshKey:$,showSkeleton:w,loadMoreError:M}=b.useStore(),{useCustomGrid:T,gridDisplayMode:A,enableForceColumn:P,forceColumnCount:N,cardMinWidth:I}=pt(ot.grid),{multiSelecting:O}=pt(kn),D=pW();AAe();const L=nt(()=>{D.current||d.setStore({tabbarView:m[o]?.tabbarView,sidebarView:m[o]?.sidebarView});});vo(L);const V=nt(()=>{se(),L(),s?.();}),U=nt(()=>{se(),L(),b.loadedPage=1,k();}),{refresh:W}=vNe({tab:o,debug:tf,fetcher:pNe,preAction:V,postAction:U,updateViewFromService:L,self:b});f.useImperativeHandle(u,()=>({refresh:W}),[W]),f.useEffect(()=>RPe(y),[y]);const z=f.useRef(void 0);Ns("visibilitychange",Se=>{if(!(document.visibilityState==="visible")){z.current=Date.now();return}d.refreshing||b.loadMoreRunning||o===rt.Watchlater&&z.current&&Date.now()-z.current>Zr("1h")&&W("reuse");},{target:document});const k=nt(async()=>{if(await fn(zg?100:0),tf("checkShouldLoadMore(): footerInViewRef = %s",ge.current),ge.current)return j()}),G=nt(()=>!(d.refreshing||D.current||b.abortController.signal.aborted||b.loadMoreRunning||!b.refreshKeyValid||!b.hasMore||b.refreshError||b.loadMoreError)),j=nt(async()=>{if(!G())return;const Se=()=>b.refreshKey,Ie=Se();b.lock(Ie);let Ue=b.items,je=true,qe;try{const Ze=sK(m,o);let Ye=await Ze.loadMore(b.abortController.signal)||[];Ye=m1(Ye,o),Ue=BM(Ue,Ye),je=Ze.hasMore;}catch(Ze){qe=Ze;}if(D.current||b.abortController.signal.aborted){tf("loadMore: skip update for RecGrid unmounted or aborted: tab=%s startingRefreshKey=%s",o,Ie),b.unlock(Ie);return}if(Ie!==Se()){tf("loadMore: skip update for refreshKey mismatch, expect %o but found %o",Ie,Se()),b.unlock(Ie);return}if(qe)throw b.unlock(Ie),Ji.error({title:"加载失败",description:qe.message||qe.stack}),b.setStore({loadMoreError:qe}),qe;b.loadedPage++,tf("loadMore: loadedPage(%s) len(%s -> %s)",b.loadedPage,b.items.length,Ue.length),b.setStore({hasMore:je,items:Ue}),b.unlock(Ie),k();}),K=nt(()=>(b.setStore({loadMoreError:void 0}),j())),X=nt(async()=>{const Ie={key:"RecGrid:loadToEnd"+":error",title:"加载全部",duration:15},Ue={title:"加载全部"},je=qe=>{throw Ji.error({...Ie,description:qe}),new Error("loadToEnd error",{cause:qe})};if(!yq())return je("当前 Tab 不支持加载全部");if(b.refreshError)return je("预检查失败: 先前错误");if(!b.hasMore)return Ji.success({...Ue,description:"没有更多了"});for(;!G();)await fn(500);for(;G();)await j();Ji.success({...Ue,description:"已完成"});});co(p,"load-to-end",X);const B=y,H=f.useMemo(()=>B.filter(Se=>Se.api!==Je.Separator),[B]),Q=f.useRef(null),J=nt(()=>{if(i){const Se=ju.get()+50;return new DOMRect(0,Se,window.innerWidth,window.innerHeight-Se)}else return l?.current?.getBoundingClientRect()}),te=f.useMemo(()=>new Map,[$]),ne=f.useMemo(()=>H.map(({uniqId:Se})=>{const Ie=Se;return te.get(Ie)||(()=>{const Ue=new ho;return te.set(Ie,Ue),Ue})()}),[H]),[re,oe]=f.useState(void 0);co(p,"show-large-preview",({data:Se})=>oe(Se));const de=f.useMemo(()=>{if(re)return H.findIndex(Se=>Se.uniqId===re)},[B,re]),{activeIndex:ee,clearActiveIndex:se}=uNe({enabled:r,maxIndex:H.length-1,gridRef:Q,getScrollerRect:J,videoCardEmitters:ne,activeLargePreviewItemIndex:de,changeScrollY:i?function({offset:Se,absolute:Ie}){const Ue=document.documentElement;if(typeof Se=="number"){Ue.scrollTop+=Se;return}if(typeof Ie=="number"){Ue.scrollTop=Ie;return}}:void 0}),le=nt(Se=>{const Ie=b.items;b.setStore({items:Se(Ie)??Ie});}),ae=nt((Se,Ie,Ue)=>{le(je=>{const qe=je.slice(),Ze=[];for(const[Ye,Be]of Se.entries()){const Ke=qe.findIndex(ke=>ke.uniqId===Be);if(Ke===-1)continue;qe.splice(Ke,1);const Qe=Ie?.[Ye];Qe&&Ze.push(Qe),o===rt.Watchlater&&m[o]?.decreaseTotal(),o===rt.Fav&&m[o]?.decreaseTotal();}return o===rt.Watchlater&&qe.length>2&&qe.slice(0,2).every(Ye=>Ye.api===Je.Separator)&&qe.splice(0,1),!Ue&&Ze.length&&(Ze.length<=3?Ze.forEach(Ye=>Rt.success(`已移除: ${Ze.join(", ")}`)):Rt.success(`已移除: ${Ze.length}个视频`)),qe});}),Ee=nt((Se,Ie)=>{le(Ue=>{const je=Ue.findIndex(qe=>qe.uniqId===Se);if(je!==-1){if(Ie==="start"){const qe=Ue.findIndex(Ze=>Ze.api!==Je.Separator);return ag(Ue,je,qe)}else if(Ie==="end")return ag(Ue,je,Ue.length-1)}});});co(p,"remove-cards",({data:Se})=>ae(...Se)),co(p,"move-card-to",({data:Se})=>Ee(...Se));const{ref:ce,inView:he}=wPe({root:i?null:l?.current||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(Se){Se&&(tf("footerInView change to visible"),ic(()=>ge.current=!0),k());}}),ge=Gg(he),Ce=C("div",{ref:ce,className:Y(WK,"flex items-center justify-center py-30px text-size-120%"),children:(()=>{if(!g)return S?M?_("div",{className:"flex flex-col gap-y-10px",children:[C(p_,{err:M}),C("div",{children:C(lt,{onClick:K,children:"重试"})})]}):_(De,{children:[C(r4e,{className:"mr-10px size-40px animate-spin color-gate-primary"}),"加载中~"]}):"没有更多了~"})()}),Re=Y("min-h-100vh @container-inline-size",n),et=f.useMemo(()=>{const{videoGrid:Se,videoGridBiliFeed4:Ie,videoGridCustom:Ue,videoGridAddonCenterEmpty:je,gridTemplateColumnsUsingVarCol:qe,gridTemplateColumnsUsingCardMinWidth:Ze,narrowMode:Ye}=L4,Be=T&&!(P&&N)&&A!==Kr.TwoColumnGrid?Ze:qe,Ke=[RZ,Se,Be,T?Ue:Ie],Qe=(...ke)=>Y(Ke,...ke,t);return A===Kr.TwoColumnGrid?{className:Qe(Ye)}:(A===Kr.CenterEmptyGrid&&Ke.push(je),T?P&&N?{className:Qe(),style:{"--col":N.toString()}}:{className:Qe(),style:{"--card-min-width":`${I}px`}}:{className:Qe()})},[L4,T,A,P,N,I,t]),Ne=o5e(),ve=({gridChildren:Se,gridSiblings:Ie}={})=>_("div",{"data-tab":o,className:Re,children:[C("div",{"data-tab":o,ref:Q,...et,children:Se}),Ie]});if(x)return console.error("RecGrid.refresh error:",x.stack||x),ve({gridSiblings:C(p_,{tab:o,err:x})});if(g&&w){const Se=j6();return ve({gridChildren:Array.from({length:Se}).fill(0).map((Ie,Ue)=>C(z_,{loading:true,tab:o},Ue))})}const Te=Se=>{if(Se.api===Je.Separator){const Ie=Se.wrapWithDivider??true;return C(f.Fragment,{children:Ie?i4e(Se.content):Se.content},Se.uniqId)}else {const Ie=H.findIndex(je=>je.uniqId===Se.uniqId),Ue=Ie===ee;return C(z_,{baseCss:[Ne,i5e(Ue)],tab:o,item:Se,active:Ue,onRemoveCurrent:(je,qe,Ze)=>ae([je.uniqId],[qe.title],Ze),emitter:ne[Ie],recSharedEmitter:p,gridDisplayMode:A,multiSelecting:O},Se.uniqId)}};return ve({gridChildren:_(De,{children:[B.map(Te),Ce]})})});function i4e(e){return C(fc,{className:Y(WK,mQ),orientation:"horizontal",titlePlacement:"left",children:e})}function qK({className:e="",style:t,tab:n,refreshHotkeyEnabled:r,ref:o}){r??=true;const{refreshing:i}=ls().useStore(),s=yo(),l=f.useRef(null),u=nt(()=>{l.current&&(l.current.disabled||l.current.click());});f.useImperativeHandle(o,()=>({click:u}),[]),Ro("R",u,{enabled:r});const{watchlaterItemsOrder:d,popularWeeklyUseShuffle:m}=jt(),{usingShuffle:p}=pt(cn),g=n===rt.AppRecommend||n===rt.PcRecommend||n===rt.KeepFollowOnly||n===rt.Watchlater&&d===Ao.Shuffle||n===rt.Fav&&p||n===rt.Hot&&iq(m)?"换一换":"刷新",[b,y]=BCe(),S=nt(x=>{y(b.current,{rotate:[0,360]},{duration:.5,type:"tween"}),s();});return _(lt,{ref:l,style:t,className:Y(yU,"[&:disabled]:cursor-wait",e),disabled:i,onClick:S,children:[C(OTe,{ref:b,className:"size-14px"}),g]})}const s4e={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 a4e(e){const t=pt(Jo).subtab;if(e===rt.Fav)return "max-w-300px";if(e===rt.DynamicFeed)return "min-w-200px";if(e===rt.Hot&&t===gr.Rank)return "min-w-130px"}function KK({className:e,style:t,sidebarView:n,tab:r}){const o=OS(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",a4e(r),e);return o&&n&&C("div",{className:i,css:s4e,style:t,children:C(Vo,{theme:{components:{Menu:{itemHeight:30}}},children:n})})}const l4e=f.memo(function({show:t,onHide:n}){const{grid:{gridDisplayMode:r},modalFeedFullScreen:o,sidebarAlign:i}=jt(),{usingTwoColumnMode:s}=tG(r),l=!s&&o,u=f.useRef(null),d=f.useMemo(()=>Y(l?"b-5px":"b-1px","b-gate-primary b-solid"),[l]),m=nt(()=>{u.current&&(u.current.scrollTop=0);}),{modalSettingsVisible:p}=X6(),g=[t,!p,!Iq(),!kq()].every(Boolean),b=cK(true),{tabbarView:y,sidebarView:S}=b.useStore(),{tab:x,direction:$}=AK(),w=()=>_("div",{className:Y(Bo.modalHeader,"gap-x-15px pr-15px"),children:[_("div",{className:"left flex flex-shrink-1 flex-wrap items-center gap-x-15px gap-y-4px",children:[C(RK,{}),y]}),_("div",{className:"right flex flex-shrink-0 items-center gap-x-8px",children:[r===Kr.TwoColumnGrid?null:C(vPe,{initialOpen:true,children:C(c4e,{})}),C(qK,{refreshHotkeyEnabled:g,tab:x}),C(Xg,{onClick:n,className:"ml-5px"})]})]}),M=Y(s&&"bg-black/90%"),P=Y("h-[calc(100vh-30px)] max-h-unset w-[calc(100vw-30px)] pr-0",l&&"h-full w-full",s&&eG,d);return C(B6.Provider,{value:b,children:_(Yg,{show:t,onHide:n,clsModalMask:M,clsModal:P,children:[w(),_("div",{"data-role":"modal-body",className:Y("flex flex-1 gap-x-25px overflow-hidden",i===jf.Right&&"flex-row-reverse"),children:[C(KK,{tab:x,sidebarView:S,className:"max-h-full"}),C("div",{className:"h-full flex-1 overflow-y-auto pr-15px",ref:u,children:C(GK,{tab:x,direction:$,shortcutEnabled:g,onScrollToTop:m,infiniteScrollUseWindow:false,scrollerRef:u},x)})]})]})})});function c4e(){return C(De,{children:C(It,{configPath:"modalFeedFullScreen",label:"全屏",tooltip:"世界清净了~"})})}const Am=_n({modalFeedVisible:false,modalSettingsVisible:false});function X6(){return pt(Am)}function u4e(){ZK(),Am.modalFeedVisible=true;}function d4e(){Am.modalFeedVisible=false;}function YK(){Am.modalSettingsVisible?XK():Q6();}function Q6(){ZK(),Am.modalSettingsVisible=true;}function XK(){Am.modalSettingsVisible=false;}function QK(){GM.registerMenuCommand?.("⚙️ 设置",Q6);}const ZK=Yf(function(){const t=document.createElement("div");t.classList.add("modals-container",Ls),document.body.appendChild(t),fa(t).render(C(ha,{children:C(f4e,{})}));});function f4e(){const{modalFeedVisible:e,modalSettingsVisible:t}=X6();return _(De,{children:[C(l4e,{show:e,onHide:d4e}),C(pPe,{show:t,onHide:XK})]})}const ou=rS({align:"right",top:100},"float-entry"),ay={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 m4e(){return C(HW,{children:C(h4e,{})})}function h4e(){const{align:e,top:t}=pt(ou,{sync:true}),n=f.useMemo(()=>({arrow:false,placement:e==="right"?"left":"right",align:{offset:[10*(e==="right"?-1:1),0]}}),[e]),r=f.useMemo(aRe,[]),{attributes:o,listeners:i,setNodeRef:s,setActivatorNodeRef:l,transform:u}=VW({id:"GateFloatEntry"});TW({onDragEnd(b){if(b.active.id==="GateFloatEntry"){Tf.update();const y=d.current?.getBoundingClientRect();if(!y)return;const S=zf(Math.round(y.top),0,window.innerHeight-y.height);let x=ou.align;(ou.align==="right"&&y.left<window.innerWidth/4||ou.align==="left"&&y.right>window.innerWidth/4*3)&&(x=ou.align==="right"?"left":"right"),OZ("new pos",{align:x,top:S}),ou.align=x,ou.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=$S(s),m=or("fixed transition-250 transition-ease-in-out transition-property-right,left",mxe,e==="right"&&"right--34px pr-10px hover:right--5px",e==="left"&&"left--34px pl-10px hover:left--5px");vo(Tf.updateThrottled);const{height:p}=Tf.use(),g=f.useMemo(()=>zf(t,0,p-150),[t,p]);return C("div",{ref:d,className:m,style:{top:`${g}px`,transform:qf.Transform.toString(u)},children:_("div",{className:ay.wrapperInner,children:[C(en,{title:_(De,{children:[Mo,": 在新窗口打开"]}),...n,children:C(lt,{className:"icon-only-round-button",href:r,target:"_blank",children:C(To,{className:ay.buttonIcon})})}),C(en,{title:_(De,{children:[Mo,": 弹窗打开"]}),...n,children:C(lt,{className:"icon-only-round-button",onClick:u4e,children:C(IK,{className:ay.buttonIcon})})}),C(en,{title:_(De,{children:[Mo,": 设置"]}),...n,children:C(lt,{className:"icon-only-round-button",onClick:YK,children:C(_g,{className:ay.buttonIcon})})}),C(lt,{className:"icon-only-round-button cursor-move",...i,...o,ref:l,children:C(NK,{className:"size-14px"})})]})})}function p4e(e,t,n){const r=nt(t),o=Jl(n);return f.useEffect(()=>{const i=new ResizeObserver(s=>{for(const l of s)if(l.target===e&&l.contentRect){const u=r(l);ti(o.val,u)||o.set(u);}});return i.observe(e),()=>{i.disconnect();}},[e,r]),o.state}function g4e(){const e=f.useRef(null),[t,n]=f.useState(false);return f.useEffect(()=>{const r=ua(()=>{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 v4e=({title:e,titleId:t,...n},r)=>_("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"})]}),b4e=f.forwardRef(v4e),y4e=({title:e,titleId:t,...n},r)=>_("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"})]}),S4e=f.forwardRef(y4e),C4e=bo.extend("RecHeader");function x4e({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}}}=jt(),p=yo(),g=f.useMemo(()=>og(e),[e]),b=ls(),{refreshing:y}=b.useStore(),[S,x]=b.useTabBackForwardStatus(e),$=b.useTabServiceQueueState(e),w=$?_(De,{children:[" ","(当前 ",$.cursor+1,"/",$.len,")"]}):void 0;Ro({shift:true,key:"<"},YK,{eventType:"keyup"}),Ro("Shift+M",()=>{cq(false),Rt.success({key:"multi-select-state-changed",content:`已${kn.multiSelecting?"进入":"退出"}「多选」`});},{enabled:l});const[M,T]=g4e(),A=nt(()=>{if(!i)return;const W=M.current?.parentElement;if(!W)return;const z=W.getBoundingClientRect(),k=ju.get();if(z.top<k){const G=_$e(W).top;C4e("[refresh:scroll] rect.top = %s, headerHeight = %s",z.top,k),document.documentElement.scrollTop=G-k+2;}});f.useImperativeHandle(o,()=>({scrollToTop:A}));const P=ju.use(),N=$4e(e),I=UA.use(),O=vS(),D=w4e(),L=(()=>{let W;return I?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%)"}`,dn("box-shadow:",W,";","")})(),V=or(i&&u&&["sticky  mb-10px b-b-1px b-b-transparent b-b-solid",fxe,T&&["bg-gate-bg","b-b-gate-bg-lv1"]],T&&"sticky-state-on"),U=f.useMemo(()=>{if(!(i&&u))return;const z=[dn("top:",P-1,"px;","")];return d&&T&&z.push(L,D),z},[i,u,d,T,P,L,D]);return C("div",{ref:M,"data-role":"tab-bar-wrapper",className:V,css:U,children:_("div",{"data-role":"tab-bar",className:Y(H9,"relative mb-0 h-auto flex flex-row items-center justify-between gap-x-15px px-0 py-8px"),children:[_("div",{"data-class-name":"left",className:"h-full flex flex-wrap items-center gap-x-15px gap-y-8px",children:[C(RK,{className:"flex-none"}),t]}),_("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(qK,{tab:e,refreshHotkeyEnabled:r}),s&&g&&_(De,{children:[C(en,{arrow:false,title:_(De,{children:["前进",w]}),children:C(lt,{className:"icon-only-round-button",disabled:y||!x,onClick:()=>p("forward"),children:C(b4e,{})})}),C(en,{arrow:false,title:_(De,{children:["后退",w]}),children:C(lt,{className:"icon-only-round-button",disabled:y||!S,onClick:()=>p("back"),children:C(S4e,{})})})]}),C(en,{title:"设置",arrow:false,children:_(lt,{onClick:Q6,className:"icon-only-round-button",children:[C(mPe,{}),C(_g,{className:"size-14px"})]})}),l&&C(dq,{iconOnly:true,addCopyActions:true}),N&&C(c6,{style:{marginLeft:5}}),n]})]})})}function w4e(){const{xScrolling:e,bodyWidth:t}=p4e(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 dn("margin-inline:calc((100% - ",n,"px) / 2);padding-inline:calc((",n,"px - 100%) / 2);","")}else {const n=PR||zg?"0px":"20px";return dn("margin-inline:calc((100% - 100vw + ",n,") / 2);padding-inline:calc((100vw - ",n," - 100%) / 2);","")}},[e,t])}function $4e(e){const{accessKey:t}=jt();return !t&&[rt.AppRecommend,rt.Liked].includes(e)}function E4e(){const{grid:{twoColumnModeAlign:e},sidebarAlign:t}=jt(),{usingTwoColumnMode:n}=nG(),r=Bq(),o=cK(),{tabbarView:i,sidebarView:s}=o.useStore(),{tab:l,direction:u}=AK(),d=f.useRef(null),m=nt(()=>d.current?.scrollToTop()),p=ju.use(),g=f.useMemo(()=>dn("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===jf.Right&&"flex-row-reverse"),y="flex-1",S=Y(n&&[eG,dMe(e,"margin")]),_(B6.Provider,{value:o,children:[C(x4e,{ref:d,tab:l,leftSlot:i,shortcutEnabled:r}),_("div",{className:b,children:[C(KK,{css:g,tab:l,sidebarView:s}),C(GK,{tab:l,direction:u,containerClassName:y,className:S,shortcutEnabled:r,infiniteScrollUseWindow:true,onScrollToTop:m},l)]})]})}const JK="html.bewly-design:not(:has(#i_cecream,#app))";function M4e(){return !!document.querySelector(JK)}function T4e(){return pS(JK,()=>{zo("unmount for using bewly-design"),cg?.unmount();},{pollTimeout:5e3,warnOnTimeout:false})}let cg;async function A4e(){if(dp(".adblock-tips"),dp(".vip-login-tip"),pS("html.gray",t=>t.classList.remove("gray")),QK(),M4e())return zo("quit for using bewly-design");ot.pureRecommend||sRe()||kS()?(await N4e(),T4e()):R4e();}function R4e(){const e=document.createElement("section");e.classList.add(Ls),document.body.append(e),cg=fa(e),cg.render(_(ha,{children:[C(SS,{antd:true,baseGlobalStyle:true}),C(m4e,{})]}));}async function N4e(){zg&&await fn(500),dp("#i_cecream .bili-feed4-layout, body > #app .bili-feed4-layout"),dp(".bili-feed4 .header-channel"),dp(".palette-button-wrap");const e=document.createElement("div");e.classList.add("bili-feed4-layout","pure-recommend",Ls),await nd(()=>document.querySelector(".bili-feed4 .bili-header"),{interval:20,timeout:2e3}),document.body.append(e);const t=document.createElement("div");e.append(t),cg=fa(t),cg.render(_(ha,{children:[C(SS,{antd:true,baseGlobalStyle:true,homePageGlobalStyle:true}),C(E4e,{}),C(td.BackTop,{style:{insetInlineEnd:"var(--back-top-right, 24px)"}})]}));}function Z6(){I4e(),QK();}const P4e=Yf(()=>{const e=document.createElement("div");document.body.appendChild(e),fa(e).render(C(ha,{children:C(SS,{antd:true,baseGlobalStyle:true})}));});function I4e(){P4e();}function O4e(){return mo.try(()=>globalThis.self!==window.top).unwrapOr(true)}const US=new ho,D4e=Yf(()=>{window.navigation?.addEventListener?.("navigatesuccess",()=>{US.emit("navigate-success");});});queueMicrotask(D4e);function L4e(){O4e()||(Z6(),ot.videoCard.videoPreview.addTo.searchPage&&k4e());}function k4e(){const e=ua(()=>{const r=Array.from(document.querySelectorAll(".video-list-item:has(> .bili-video-card),div:has(> .bili-video-card)"));for(const o of r)_4e(o);},1e3);e(),new MutationObserver(()=>e()).observe(document.body,{childList:true,subtree:true});}const F_=new WeakSet,H_=`${Xr}-add-large-preview-processed`;function _4e(e){if(F_.has(e)||e.getAttribute(H_))return;const t=e.querySelector(".bili-watch-later--wrap");if(!t)return;const n=document.createElement("div");t.after(n),F_.add(e),e.setAttribute(H_,"true"),fa(n).render(C(ha,{children:C(z4e,{el:e})}));}const B4e={useMotion:true,motionProps:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:0}},transition:{duration:.2,ease:"linear",delay:.2}}};function z4e({el:e}){const{bvid:t="",cover:n}=f.useMemo(()=>F4e(e),[e]),r=f.useMemo(()=>e.querySelector(".bili-video-card")??e,[e]),o=f.useMemo(()=>r.querySelector(".bili-video-card__wrap > a"),[e]),i=bS(o),s=f.useRef(o),{largePreviewActionButtonEl:l,largePreviewEl:u}=kK({shouldFetchPreviewData:!!t,hasLargePreviewActionButton:true,actionButtonVisible:i,actionButtonProps:B4e,bvid:t,cid:void 0,uniqId:t,recSharedEmitter:aK,cardTarget:r,cover:n,videoCardAsTriggerRef:s});return _(De,{children:[C("div",{className:or(eg.top("right"),"right-[calc(8px+28px+5px)]"),children:l}),Lo.createPortal(u,r)]})}function F4e(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 H4e=`${Xr}-${crypto.randomUUID()}`;async function V4e(){if(!Bu.mid)return;const e=".h-action",t=".upinfo .operations";await pS([e,t].join(","),n=>{Bu.href=location.href,Bu.usingNewSpacePage=n.matches(t),eY();const r=document.createElement("span");r.id=H4e,r.classList.add("mr-24px"),n.prepend(r),fa(r).render(C(ha,{children:C(j4e,{})}));},{pollTimeout:1e4,pollInterval:1e3});}const Bu=_n({href:location.href,usingNewSpacePage:false,followed:false,get mid(){return U4e(this.href)},get collectionId(){const e=new URL(this.href);{const t=/https:\/\/space.bilibili.com\/(?<mid>\d+)\/lists\/(?<collectionId>\d+)(?:\?type=season)?/,n=this.href.match(t);if(n?.groups?.collectionId&&(e.searchParams.get("type")==="season"||!e.searchParams.get("type")))return Number(n?.groups?.collectionId)}if(/https:\/\/space.bilibili.com\/\d+\/channel\/collectiondetail\?/.test(this.href)){const r=new URL(this.href).searchParams.get("sid")?.trim();if(r)return Number(r)}},get isCollectionPage(){return typeof this.collectionId=="number"},get searchKeyword(){return /https:\/\/space.bilibili.com\/\d+\/search/.test(this.href)?new URLSearchParams(location.search).get("keyword")??void 0:void 0},get isSearching(){return !!this.searchKeyword?.trim()}}),eY=al(async()=>{const e=await nd(()=>{if(Array.from(document.querySelectorAll(".space-follow-btn")).filter(n=>n.textContent?.trim()==="已关注").length>0)return  true},{interval:100,timeout:5e3});Bu.followed=!!e;});US.on("navigate-success",()=>{Bu.href=location.href,eY();});function j4e(){const{mid:e,collectionId:t,followed:n,isSearching:r,searchKeyword:o}=pt(Bu);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/?${Yi.Mid}=${e}`;r&&o&&(m+=`&${Yi.SearchText}=${o}`),l=C(nE,{className:i,href:m,tooltip:`在「${Mo}」中查看 UP 的投稿`,children:C(Q0,{className:s})},"btnSpaceUpload");}let u;if(n){const m=`https://www.bilibili.com/?${$i.Mid}=${e}`;u=C(nE,{className:i,href:m,tooltip:`在「${Mo}」中查看 UP 的动态`,children:C(X0,{className:s})},"btnDynamicFeed");}let d;return typeof t=="number"&&(d=C(nE,{className:i,href:`https://www.bilibili.com/?${ig.CollectionIdFull}=${t}`,target:"_blank",tooltip:`在「${Mo}」中查看合集`,children:C(Mm,{className:s})},"btnViewCollection")),_("span",{className:"inline-flex items-center gap-x-8px",children:[d,l,u]})}function nE({href:e,children:t,className:n,style:r,tooltip:o,...i}){const{usingNewSpacePage:s}=pt(Bu),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(en,{title:o,children:u}):u}function U4e(e=location.href){const n=new URL(e).pathname.split("/").map(r=>r.trim()).find(Boolean);if(!(!n||!/^\d+$/.test(n)))return n}function W4e(){US.on("navigate-success",G4e);}function G4e(){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 q4e(){Z6(),W4e(),V4e();}async function K4e(){if(GM.registerMenuCommand?.("⭐️ 加入收藏",()=>rE()),!Ky())return;const e=()=>ot.fav.useCustomFavPicker.onPlayPage;document.addEventListener("keydown",t=>{if(J0(t,"Shift+E")||e()&&J0(t,"E")){if(!Ky()||k$e()||t.target.closest("bili-comments"))return;t.stopImmediatePropagation(),t.preventDefault(),rE();}},{capture:true}),e()&&(await nd(()=>document.querySelector(".video-fav.video-toolbar-left-item"),{interval:100,timeout:5e3}))?.addEventListener("click",n=>{!e()||!Ky()||(n.stopImmediatePropagation(),n.preventDefault(),rE());},{capture:true});}async function rE(e){const t=Ky();if(!t)return Rt.error("无法解析视频 BVID !");const n=FMe(t);if(e===void 0){const r=await gc.getVideoFavState(n);r&&(e=r.favFolderIds);}await d1(e,async r=>{if(!await R6(n,e,r))return;const i=!!r;return document.querySelector(".video-fav.video-toolbar-left-item")?.classList.toggle("on",i),true});}var Y4e=jR({key:"css"}),X4e=Y4e.css;function Q4e(){ot.videoPlayPage.addQuickLinks&&Z4e();}async function Z4e(){await fn(2e3);const e=".rcmd-tab .video-pod .header-bottom .subscribe-btn",t=await nd(()=>document.querySelector(e),{interval:250,timeout:1e4});if(!t)return zo("failed to find .subscribe-btn");const n=document.createElement("div");t.insertAdjacentElement("afterend",n),t.parentElement?.classList.add(X4e({name:"wzlxvn",styles:"display:flex;flex-direction:row-reverse;align-items:center;.subscribe-btn{flex:none;}"})),fa(n).render(C(ha,{children:C(J4e,{})}));}const fu=_n({href:location.href,collectionUrl:void 0,queryCollectionUrl:ua(function(){fu.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://${Ya.Main}/?${ig.CollectionId}=${t}`}});US.on("navigate-success",async()=>{const e=Br(fu);if(fu.href=location.href,fu.queryCollectionUrl(),fu.href!==e.href)for(const t of [100,200,400,1e3,2e3,4e3])await fn(t),fu.queryCollectionUrl();});function J4e(){const{gateCollectionUrl:e}=pt(fu);return !!e&&C(en,{title:_(De,{children:["在「",Mo,"」中查看合集 "]}),children:C(lt,{className:"mr-5px icon-only-round-button size-24px",href:e,target:"_blank",children:C(Mm,{className:"size-16px"})})})}function jM(){if(!(typeof unsafeWindow>"u"))return unsafeWindow.player}const Jy=bo.extend("main:video-play-page");async function eIe(){tIe(),nIe(),await Promise.all([rIe(),oIe()]);}function tIe(){g6&&GM.registerMenuCommand?.("🎦 小窗打开",()=>{tY(),iIe();});}function nIe(){PR&&GM.registerMenuCommand?.("▶️ IINA 打开",()=>{tY(),sIe();});}async function rIe(){const e=new URL(location.href).searchParams.get(pc.PlayerScreenMode);if(Jy("targetMode=%s",e),!(e===Kl.WebFullscreen||e===Kl.Fullscreen))return;let n;e===Kl.WebFullscreen&&(n=()=>document.querySelector('[role="button"][aria-label="网页全屏"]')?.click()),e===Kl.Fullscreen&&(n=()=>document.querySelector('[role="button"][aria-label="全屏"]')?.click());const r=()=>document.querySelector("#bilibili-player .bpx-player-container")?.dataset.screen||Kl.Normal,o=Date.now()+Zr("30s");for(;r()!==e&&Date.now()<=o;)Jy("current mode: %s",r()),n?.(),await fn(100);Jy("handleFullscreen to %s complete",e);}async function oIe(){if(bG()||!(new URL(location.href).searchParams.get(pc.ForceAutoPlay)===OR.ON))return;const t=()=>{const r=jM();return !!r&&!r.isPaused()},n=Date.now()+Zr("30s");for(;Date.now()<=n&&!t();)jM()?.play(),await fn(1e3);Jy("syncForceAutoPlayState complete, playing = %s",t());}function tY(){const e=jM();e&&!e.isPaused()&&e.pause();}function iIe(){const e=new URL(location.href);e.searchParams.set(pc.PlayerScreenMode,Kl.WebFullscreen);const t=e.href;$G(t,"");}function sIe(){const e=`iina://open?url=${encodeURIComponent(location.href)}`;window.open(e,"_self");}function aIe(){return Z6(),Promise.all([K4e(),eIe(),Q4e()])}Xn.extend(Nwe);(function(){if(tl)return A4e();if(iG)return aIe();if(PZ)return q4e();if(IZ)return L4e()})();

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